(config?: Config)
| 496 | _cWr = 0 |
| 497 | |
| 498 | constructor(config?: Config) { |
| 499 | this.style = defaultStyle() |
| 500 | this.layout = { |
| 501 | left: 0, |
| 502 | top: 0, |
| 503 | width: 0, |
| 504 | height: 0, |
| 505 | border: [0, 0, 0, 0], |
| 506 | padding: [0, 0, 0, 0], |
| 507 | margin: [0, 0, 0, 0], |
| 508 | } |
| 509 | this.parent = null |
| 510 | this.children = [] |
| 511 | this.measureFunc = null |
| 512 | this.config = config ?? DEFAULT_CONFIG |
| 513 | this.isDirty_ = true |
| 514 | this.isReferenceBaseline_ = false |
| 515 | _yogaLiveNodes++ |
| 516 | } |
| 517 | |
| 518 | // -- Tree |
| 519 |
nothing calls this directly
no test coverage detected