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

Function defaultStyle

src/native-ts/yoga-layout/index.ts:167–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167function defaultStyle(): Style {
168 return {
169 direction: Direction.Inherit,
170 flexDirection: FlexDirection.Column,
171 justifyContent: Justify.FlexStart,
172 alignItems: Align.Stretch,
173 alignSelf: Align.Auto,
174 alignContent: Align.FlexStart,
175 flexWrap: Wrap.NoWrap,
176 overflow: Overflow.Visible,
177 display: Display.Flex,
178 positionType: PositionType.Relative,
179 flexGrow: 0,
180 flexShrink: 0,
181 flexBasis: AUTO_VALUE,
182 margin: new Array(9).fill(UNDEFINED_VALUE),
183 padding: new Array(9).fill(UNDEFINED_VALUE),
184 border: new Array(9).fill(UNDEFINED_VALUE),
185 position: new Array(9).fill(UNDEFINED_VALUE),
186 gap: new Array(3).fill(UNDEFINED_VALUE),
187 width: AUTO_VALUE,
188 height: AUTO_VALUE,
189 minWidth: UNDEFINED_VALUE,
190 minHeight: UNDEFINED_VALUE,
191 maxWidth: UNDEFINED_VALUE,
192 maxHeight: UNDEFINED_VALUE,
193 }
194}
195
196// --
197// Edge resolution — yoga's 9-edge model collapsed to 4 physical edges

Callers 2

constructorMethod · 0.70
resetMethod · 0.70

Calls 1

fillMethod · 0.80

Tested by

no test coverage detected