MCPcopy Create free account
hub / github.com/codeaashu/claude-code / constructor

Method constructor

src/native-ts/yoga-layout/index.ts:498–516  ·  view source on GitHub ↗
(config?: Config)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

defaultStyleFunction · 0.70

Tested by

no test coverage detected