@opentui/core 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Renderable.d.ts +7 -1
- package/index-07zpr2dg.js +10058 -0
- package/index-07zpr2dg.js.map +33 -0
- package/{index-59t85rvq.js → index-pcvh9d34.js} +14631 -24773
- package/index-pcvh9d34.js.map +57 -0
- package/index.d.ts +1 -1
- package/index.js +51 -50
- package/index.js.map +4 -4
- package/lib/yoga.options.d.ts +1 -1
- package/package.json +14 -11
- package/renderer.d.ts +6 -0
- package/testing.js +5 -3
- package/testing.js.map +2 -2
- package/tests/yoga-upstream/tools/MeasureCounter.d.ts +16 -0
- package/tests/yoga-upstream/tools/utils.d.ts +11 -0
- package/yoga.d.ts +440 -0
- package/yoga.js +193 -0
- package/yoga.js.map +9 -0
- package/zig.d.ts +61 -1
- package/index-59t85rvq.js.map +0 -84
package/yoga.d.ts
ADDED
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import type { Pointer } from "./platform/ffi.js";
|
|
2
|
+
export declare enum Align {
|
|
3
|
+
Auto = 0,
|
|
4
|
+
FlexStart = 1,
|
|
5
|
+
Center = 2,
|
|
6
|
+
FlexEnd = 3,
|
|
7
|
+
Stretch = 4,
|
|
8
|
+
Baseline = 5,
|
|
9
|
+
SpaceBetween = 6,
|
|
10
|
+
SpaceAround = 7,
|
|
11
|
+
SpaceEvenly = 8
|
|
12
|
+
}
|
|
13
|
+
export declare enum BoxSizing {
|
|
14
|
+
BorderBox = 0,
|
|
15
|
+
ContentBox = 1
|
|
16
|
+
}
|
|
17
|
+
export declare enum Dimension {
|
|
18
|
+
Width = 0,
|
|
19
|
+
Height = 1
|
|
20
|
+
}
|
|
21
|
+
export declare enum Direction {
|
|
22
|
+
Inherit = 0,
|
|
23
|
+
LTR = 1,
|
|
24
|
+
RTL = 2
|
|
25
|
+
}
|
|
26
|
+
export declare enum Display {
|
|
27
|
+
Flex = 0,
|
|
28
|
+
None = 1,
|
|
29
|
+
Contents = 2
|
|
30
|
+
}
|
|
31
|
+
export declare enum Edge {
|
|
32
|
+
Left = 0,
|
|
33
|
+
Top = 1,
|
|
34
|
+
Right = 2,
|
|
35
|
+
Bottom = 3,
|
|
36
|
+
Start = 4,
|
|
37
|
+
End = 5,
|
|
38
|
+
Horizontal = 6,
|
|
39
|
+
Vertical = 7,
|
|
40
|
+
All = 8
|
|
41
|
+
}
|
|
42
|
+
export declare enum Errata {
|
|
43
|
+
None = 0,
|
|
44
|
+
StretchFlexBasis = 1,
|
|
45
|
+
AbsolutePositionWithoutInsetsExcludesPadding = 2,
|
|
46
|
+
AbsolutePercentAgainstInnerSize = 4,
|
|
47
|
+
All = 2147483647,
|
|
48
|
+
Classic = 2147483646
|
|
49
|
+
}
|
|
50
|
+
export declare enum ExperimentalFeature {
|
|
51
|
+
WebFlexBasis = 0
|
|
52
|
+
}
|
|
53
|
+
export declare enum FlexDirection {
|
|
54
|
+
Column = 0,
|
|
55
|
+
ColumnReverse = 1,
|
|
56
|
+
Row = 2,
|
|
57
|
+
RowReverse = 3
|
|
58
|
+
}
|
|
59
|
+
export declare enum Gutter {
|
|
60
|
+
Column = 0,
|
|
61
|
+
Row = 1,
|
|
62
|
+
All = 2
|
|
63
|
+
}
|
|
64
|
+
export declare enum Justify {
|
|
65
|
+
FlexStart = 0,
|
|
66
|
+
Center = 1,
|
|
67
|
+
FlexEnd = 2,
|
|
68
|
+
SpaceBetween = 3,
|
|
69
|
+
SpaceAround = 4,
|
|
70
|
+
SpaceEvenly = 5
|
|
71
|
+
}
|
|
72
|
+
export declare enum LogLevel {
|
|
73
|
+
Error = 0,
|
|
74
|
+
Warn = 1,
|
|
75
|
+
Info = 2,
|
|
76
|
+
Debug = 3,
|
|
77
|
+
Verbose = 4,
|
|
78
|
+
Fatal = 5
|
|
79
|
+
}
|
|
80
|
+
export declare enum MeasureMode {
|
|
81
|
+
Undefined = 0,
|
|
82
|
+
Exactly = 1,
|
|
83
|
+
AtMost = 2
|
|
84
|
+
}
|
|
85
|
+
export declare enum NodeType {
|
|
86
|
+
Default = 0,
|
|
87
|
+
Text = 1
|
|
88
|
+
}
|
|
89
|
+
export declare enum Overflow {
|
|
90
|
+
Visible = 0,
|
|
91
|
+
Hidden = 1,
|
|
92
|
+
Scroll = 2
|
|
93
|
+
}
|
|
94
|
+
export declare enum PositionType {
|
|
95
|
+
Static = 0,
|
|
96
|
+
Relative = 1,
|
|
97
|
+
Absolute = 2
|
|
98
|
+
}
|
|
99
|
+
export declare enum Unit {
|
|
100
|
+
Undefined = 0,
|
|
101
|
+
Point = 1,
|
|
102
|
+
Percent = 2,
|
|
103
|
+
Auto = 3
|
|
104
|
+
}
|
|
105
|
+
export declare enum Wrap {
|
|
106
|
+
NoWrap = 0,
|
|
107
|
+
Wrap = 1,
|
|
108
|
+
WrapReverse = 2
|
|
109
|
+
}
|
|
110
|
+
export declare const ALIGN_AUTO = Align.Auto;
|
|
111
|
+
export declare const ALIGN_FLEX_START = Align.FlexStart;
|
|
112
|
+
export declare const ALIGN_CENTER = Align.Center;
|
|
113
|
+
export declare const ALIGN_FLEX_END = Align.FlexEnd;
|
|
114
|
+
export declare const ALIGN_STRETCH = Align.Stretch;
|
|
115
|
+
export declare const ALIGN_BASELINE = Align.Baseline;
|
|
116
|
+
export declare const ALIGN_SPACE_BETWEEN = Align.SpaceBetween;
|
|
117
|
+
export declare const ALIGN_SPACE_AROUND = Align.SpaceAround;
|
|
118
|
+
export declare const ALIGN_SPACE_EVENLY = Align.SpaceEvenly;
|
|
119
|
+
export declare const BOX_SIZING_BORDER_BOX = BoxSizing.BorderBox;
|
|
120
|
+
export declare const BOX_SIZING_CONTENT_BOX = BoxSizing.ContentBox;
|
|
121
|
+
export declare const DIMENSION_WIDTH = Dimension.Width;
|
|
122
|
+
export declare const DIMENSION_HEIGHT = Dimension.Height;
|
|
123
|
+
export declare const DIRECTION_INHERIT = Direction.Inherit;
|
|
124
|
+
export declare const DIRECTION_LTR = Direction.LTR;
|
|
125
|
+
export declare const DIRECTION_RTL = Direction.RTL;
|
|
126
|
+
export declare const DISPLAY_FLEX = Display.Flex;
|
|
127
|
+
export declare const DISPLAY_NONE = Display.None;
|
|
128
|
+
export declare const DISPLAY_CONTENTS = Display.Contents;
|
|
129
|
+
export declare const EDGE_LEFT = Edge.Left;
|
|
130
|
+
export declare const EDGE_TOP = Edge.Top;
|
|
131
|
+
export declare const EDGE_RIGHT = Edge.Right;
|
|
132
|
+
export declare const EDGE_BOTTOM = Edge.Bottom;
|
|
133
|
+
export declare const EDGE_START = Edge.Start;
|
|
134
|
+
export declare const EDGE_END = Edge.End;
|
|
135
|
+
export declare const EDGE_HORIZONTAL = Edge.Horizontal;
|
|
136
|
+
export declare const EDGE_VERTICAL = Edge.Vertical;
|
|
137
|
+
export declare const EDGE_ALL = Edge.All;
|
|
138
|
+
export declare const ERRATA_NONE = Errata.None;
|
|
139
|
+
export declare const ERRATA_STRETCH_FLEX_BASIS = Errata.StretchFlexBasis;
|
|
140
|
+
export declare const ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING = Errata.AbsolutePositionWithoutInsetsExcludesPadding;
|
|
141
|
+
export declare const ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE = Errata.AbsolutePercentAgainstInnerSize;
|
|
142
|
+
export declare const ERRATA_ALL = Errata.All;
|
|
143
|
+
export declare const ERRATA_CLASSIC = Errata.Classic;
|
|
144
|
+
export declare const EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS = ExperimentalFeature.WebFlexBasis;
|
|
145
|
+
export declare const FLEX_DIRECTION_COLUMN = FlexDirection.Column;
|
|
146
|
+
export declare const FLEX_DIRECTION_COLUMN_REVERSE = FlexDirection.ColumnReverse;
|
|
147
|
+
export declare const FLEX_DIRECTION_ROW = FlexDirection.Row;
|
|
148
|
+
export declare const FLEX_DIRECTION_ROW_REVERSE = FlexDirection.RowReverse;
|
|
149
|
+
export declare const GUTTER_COLUMN = Gutter.Column;
|
|
150
|
+
export declare const GUTTER_ROW = Gutter.Row;
|
|
151
|
+
export declare const GUTTER_ALL = Gutter.All;
|
|
152
|
+
export declare const JUSTIFY_FLEX_START = Justify.FlexStart;
|
|
153
|
+
export declare const JUSTIFY_CENTER = Justify.Center;
|
|
154
|
+
export declare const JUSTIFY_FLEX_END = Justify.FlexEnd;
|
|
155
|
+
export declare const JUSTIFY_SPACE_BETWEEN = Justify.SpaceBetween;
|
|
156
|
+
export declare const JUSTIFY_SPACE_AROUND = Justify.SpaceAround;
|
|
157
|
+
export declare const JUSTIFY_SPACE_EVENLY = Justify.SpaceEvenly;
|
|
158
|
+
export declare const LOG_LEVEL_ERROR = LogLevel.Error;
|
|
159
|
+
export declare const LOG_LEVEL_WARN = LogLevel.Warn;
|
|
160
|
+
export declare const LOG_LEVEL_INFO = LogLevel.Info;
|
|
161
|
+
export declare const LOG_LEVEL_DEBUG = LogLevel.Debug;
|
|
162
|
+
export declare const LOG_LEVEL_VERBOSE = LogLevel.Verbose;
|
|
163
|
+
export declare const LOG_LEVEL_FATAL = LogLevel.Fatal;
|
|
164
|
+
export declare const MEASURE_MODE_UNDEFINED = MeasureMode.Undefined;
|
|
165
|
+
export declare const MEASURE_MODE_EXACTLY = MeasureMode.Exactly;
|
|
166
|
+
export declare const MEASURE_MODE_AT_MOST = MeasureMode.AtMost;
|
|
167
|
+
export declare const NODE_TYPE_DEFAULT = NodeType.Default;
|
|
168
|
+
export declare const NODE_TYPE_TEXT = NodeType.Text;
|
|
169
|
+
export declare const OVERFLOW_VISIBLE = Overflow.Visible;
|
|
170
|
+
export declare const OVERFLOW_HIDDEN = Overflow.Hidden;
|
|
171
|
+
export declare const OVERFLOW_SCROLL = Overflow.Scroll;
|
|
172
|
+
export declare const POSITION_TYPE_STATIC = PositionType.Static;
|
|
173
|
+
export declare const POSITION_TYPE_RELATIVE = PositionType.Relative;
|
|
174
|
+
export declare const POSITION_TYPE_ABSOLUTE = PositionType.Absolute;
|
|
175
|
+
export declare const UNIT_UNDEFINED = Unit.Undefined;
|
|
176
|
+
export declare const UNIT_POINT = Unit.Point;
|
|
177
|
+
export declare const UNIT_PERCENT = Unit.Percent;
|
|
178
|
+
export declare const UNIT_AUTO = Unit.Auto;
|
|
179
|
+
export declare const WRAP_NO_WRAP = Wrap.NoWrap;
|
|
180
|
+
export declare const WRAP_WRAP = Wrap.Wrap;
|
|
181
|
+
export declare const WRAP_WRAP_REVERSE = Wrap.WrapReverse;
|
|
182
|
+
export interface Layout {
|
|
183
|
+
left: number;
|
|
184
|
+
right: number;
|
|
185
|
+
top: number;
|
|
186
|
+
bottom: number;
|
|
187
|
+
width: number;
|
|
188
|
+
height: number;
|
|
189
|
+
}
|
|
190
|
+
export interface Size {
|
|
191
|
+
width: number;
|
|
192
|
+
height: number;
|
|
193
|
+
}
|
|
194
|
+
export interface Value {
|
|
195
|
+
unit: Unit;
|
|
196
|
+
value: number;
|
|
197
|
+
}
|
|
198
|
+
export type MeasureFunction = (width: number, widthMode: MeasureMode, height: number, heightMode: MeasureMode) => Size;
|
|
199
|
+
export type DirtiedFunction = (node: Node) => void;
|
|
200
|
+
type ValueInput = number | "auto" | `${number}%` | Value | undefined;
|
|
201
|
+
type ValueInputNoAuto = number | `${number}%` | Value | undefined;
|
|
202
|
+
export declare class Config {
|
|
203
|
+
readonly ptr: Pointer;
|
|
204
|
+
private freed;
|
|
205
|
+
private constructor();
|
|
206
|
+
static create(): Config;
|
|
207
|
+
static destroy(config: Config): void;
|
|
208
|
+
free(): void;
|
|
209
|
+
setUseWebDefaults(useWebDefaults: boolean): void;
|
|
210
|
+
useWebDefaults(): boolean;
|
|
211
|
+
setPointScaleFactor(pointScaleFactor: number): void;
|
|
212
|
+
getPointScaleFactor(): number;
|
|
213
|
+
setErrata(errata: Errata): void;
|
|
214
|
+
getErrata(): Errata;
|
|
215
|
+
setExperimentalFeatureEnabled(feature: ExperimentalFeature, enabled: boolean): void;
|
|
216
|
+
isExperimentalFeatureEnabled(feature: ExperimentalFeature): boolean;
|
|
217
|
+
}
|
|
218
|
+
export declare class Node {
|
|
219
|
+
readonly ptr: Pointer;
|
|
220
|
+
private freed;
|
|
221
|
+
private measureCallback;
|
|
222
|
+
private dirtiedCallback;
|
|
223
|
+
private constructor();
|
|
224
|
+
static create(config?: Config): Node;
|
|
225
|
+
static createForOpenTUI(): Node;
|
|
226
|
+
static createDefault(): Node;
|
|
227
|
+
static createWithConfig(config: Config): Node;
|
|
228
|
+
static destroy(node: Node): void;
|
|
229
|
+
private static fromPointer;
|
|
230
|
+
isFreed(): boolean;
|
|
231
|
+
free(): void;
|
|
232
|
+
freeRecursive(): void;
|
|
233
|
+
reset(): void;
|
|
234
|
+
copyStyle(node: Node): void;
|
|
235
|
+
insertChild(child: Node, index: number): void;
|
|
236
|
+
removeChild(child: Node): void;
|
|
237
|
+
removeAllChildren(): void;
|
|
238
|
+
getChild(index: number): Node | null;
|
|
239
|
+
getChildCount(): number;
|
|
240
|
+
getParent(): Node | null;
|
|
241
|
+
calculateLayout(width?: number | "auto", height?: number | "auto", direction?: Direction): void;
|
|
242
|
+
hasNewLayout(): boolean;
|
|
243
|
+
markLayoutSeen(): void;
|
|
244
|
+
markDirty(): void;
|
|
245
|
+
isDirty(): boolean;
|
|
246
|
+
getComputedLayout(): Layout;
|
|
247
|
+
getComputedLeft(): number;
|
|
248
|
+
getComputedTop(): number;
|
|
249
|
+
getComputedRight(): number;
|
|
250
|
+
getComputedBottom(): number;
|
|
251
|
+
getComputedWidth(): number;
|
|
252
|
+
getComputedHeight(): number;
|
|
253
|
+
getComputedMargin(edge: Edge): number;
|
|
254
|
+
getComputedPadding(edge: Edge): number;
|
|
255
|
+
getComputedBorder(edge: Edge): number;
|
|
256
|
+
setDirection(direction: Direction): void;
|
|
257
|
+
getDirection(): Direction;
|
|
258
|
+
setFlexDirection(flexDirection: FlexDirection): void;
|
|
259
|
+
getFlexDirection(): FlexDirection;
|
|
260
|
+
setJustifyContent(justifyContent: Justify): void;
|
|
261
|
+
getJustifyContent(): Justify;
|
|
262
|
+
setAlignContent(alignContent: Align): void;
|
|
263
|
+
getAlignContent(): Align;
|
|
264
|
+
setAlignItems(alignItems: Align): void;
|
|
265
|
+
getAlignItems(): Align;
|
|
266
|
+
setAlignSelf(alignSelf: Align): void;
|
|
267
|
+
getAlignSelf(): Align;
|
|
268
|
+
setPositionType(positionType: PositionType): void;
|
|
269
|
+
getPositionType(): PositionType;
|
|
270
|
+
setFlexWrap(flexWrap: Wrap): void;
|
|
271
|
+
getFlexWrap(): Wrap;
|
|
272
|
+
setOverflow(overflow: Overflow): void;
|
|
273
|
+
getOverflow(): Overflow;
|
|
274
|
+
setDisplay(display: Display): void;
|
|
275
|
+
getDisplay(): Display;
|
|
276
|
+
setBoxSizing(boxSizing: BoxSizing): void;
|
|
277
|
+
getBoxSizing(): BoxSizing;
|
|
278
|
+
setFlex(flex: number | undefined): void;
|
|
279
|
+
getFlex(): number;
|
|
280
|
+
setFlexGrow(flexGrow: number | undefined): void;
|
|
281
|
+
getFlexGrow(): number;
|
|
282
|
+
setFlexShrink(flexShrink: number | undefined): void;
|
|
283
|
+
getFlexShrink(): number;
|
|
284
|
+
setAspectRatio(aspectRatio: number | undefined): void;
|
|
285
|
+
getAspectRatio(): number;
|
|
286
|
+
setFlexBasis(flexBasis: ValueInput): void;
|
|
287
|
+
setFlexBasisPercent(flexBasis: number | undefined): void;
|
|
288
|
+
setFlexBasisAuto(): void;
|
|
289
|
+
getFlexBasis(): Value;
|
|
290
|
+
setWidth(width: ValueInput): void;
|
|
291
|
+
setWidthPercent(width: number | undefined): void;
|
|
292
|
+
setWidthAuto(): void;
|
|
293
|
+
getWidth(): Value;
|
|
294
|
+
setHeight(height: ValueInput): void;
|
|
295
|
+
setHeightPercent(height: number | undefined): void;
|
|
296
|
+
setHeightAuto(): void;
|
|
297
|
+
getHeight(): Value;
|
|
298
|
+
setMinWidth(minWidth: ValueInputNoAuto): void;
|
|
299
|
+
setMinWidthPercent(minWidth: number | undefined): void;
|
|
300
|
+
getMinWidth(): Value;
|
|
301
|
+
setMinHeight(minHeight: ValueInputNoAuto): void;
|
|
302
|
+
setMinHeightPercent(minHeight: number | undefined): void;
|
|
303
|
+
getMinHeight(): Value;
|
|
304
|
+
setMaxWidth(maxWidth: ValueInputNoAuto): void;
|
|
305
|
+
setMaxWidthPercent(maxWidth: number | undefined): void;
|
|
306
|
+
getMaxWidth(): Value;
|
|
307
|
+
setMaxHeight(maxHeight: ValueInputNoAuto): void;
|
|
308
|
+
setMaxHeightPercent(maxHeight: number | undefined): void;
|
|
309
|
+
getMaxHeight(): Value;
|
|
310
|
+
setMargin(edge: Edge, margin: ValueInput): void;
|
|
311
|
+
setMarginPercent(edge: Edge, margin: number | undefined): void;
|
|
312
|
+
setMarginAuto(edge: Edge): void;
|
|
313
|
+
getMargin(edge: Edge): Value;
|
|
314
|
+
setPadding(edge: Edge, padding: ValueInputNoAuto): void;
|
|
315
|
+
setPaddingPercent(edge: Edge, padding: number | undefined): void;
|
|
316
|
+
getPadding(edge: Edge): Value;
|
|
317
|
+
setPosition(edge: Edge, position: ValueInput): void;
|
|
318
|
+
setPositionPercent(edge: Edge, position: number | undefined): void;
|
|
319
|
+
setPositionAuto(edge: Edge): void;
|
|
320
|
+
getPosition(edge: Edge): Value;
|
|
321
|
+
setGap(gutter: Gutter, gap: ValueInputNoAuto): void;
|
|
322
|
+
setGapPercent(gutter: Gutter, gap: number | undefined): void;
|
|
323
|
+
getGap(gutter: Gutter): Value;
|
|
324
|
+
setBorder(edge: Edge, border: number | undefined): void;
|
|
325
|
+
getBorder(edge: Edge): number;
|
|
326
|
+
setIsReferenceBaseline(isReferenceBaseline: boolean): void;
|
|
327
|
+
isReferenceBaseline(): boolean;
|
|
328
|
+
setAlwaysFormsContainingBlock(alwaysFormsContainingBlock: boolean): void;
|
|
329
|
+
getAlwaysFormsContainingBlock(): boolean;
|
|
330
|
+
setMeasureFunc(measureFunc: MeasureFunction | null): void;
|
|
331
|
+
unsetMeasureFunc(): void;
|
|
332
|
+
hasMeasureFunc(): boolean;
|
|
333
|
+
setDirtiedFunc(dirtiedFunc: DirtiedFunction | null): void;
|
|
334
|
+
unsetDirtiedFunc(): void;
|
|
335
|
+
private setEnum;
|
|
336
|
+
private getEnum;
|
|
337
|
+
private setFloat;
|
|
338
|
+
private getFloat;
|
|
339
|
+
private setValue;
|
|
340
|
+
private getValue;
|
|
341
|
+
private collectSubtree;
|
|
342
|
+
private closeMeasureCallback;
|
|
343
|
+
private closeDirtiedCallback;
|
|
344
|
+
private markFreed;
|
|
345
|
+
}
|
|
346
|
+
declare const Yoga: {
|
|
347
|
+
Config: typeof Config;
|
|
348
|
+
Node: typeof Node;
|
|
349
|
+
Align: typeof Align;
|
|
350
|
+
BoxSizing: typeof BoxSizing;
|
|
351
|
+
Dimension: typeof Dimension;
|
|
352
|
+
Direction: typeof Direction;
|
|
353
|
+
Display: typeof Display;
|
|
354
|
+
Edge: typeof Edge;
|
|
355
|
+
Errata: typeof Errata;
|
|
356
|
+
ExperimentalFeature: typeof ExperimentalFeature;
|
|
357
|
+
FlexDirection: typeof FlexDirection;
|
|
358
|
+
Gutter: typeof Gutter;
|
|
359
|
+
Justify: typeof Justify;
|
|
360
|
+
LogLevel: typeof LogLevel;
|
|
361
|
+
MeasureMode: typeof MeasureMode;
|
|
362
|
+
NodeType: typeof NodeType;
|
|
363
|
+
Overflow: typeof Overflow;
|
|
364
|
+
PositionType: typeof PositionType;
|
|
365
|
+
Unit: typeof Unit;
|
|
366
|
+
Wrap: typeof Wrap;
|
|
367
|
+
ALIGN_AUTO: Align;
|
|
368
|
+
ALIGN_FLEX_START: Align;
|
|
369
|
+
ALIGN_CENTER: Align;
|
|
370
|
+
ALIGN_FLEX_END: Align;
|
|
371
|
+
ALIGN_STRETCH: Align;
|
|
372
|
+
ALIGN_BASELINE: Align;
|
|
373
|
+
ALIGN_SPACE_BETWEEN: Align;
|
|
374
|
+
ALIGN_SPACE_AROUND: Align;
|
|
375
|
+
ALIGN_SPACE_EVENLY: Align;
|
|
376
|
+
BOX_SIZING_BORDER_BOX: BoxSizing;
|
|
377
|
+
BOX_SIZING_CONTENT_BOX: BoxSizing;
|
|
378
|
+
DIMENSION_WIDTH: Dimension;
|
|
379
|
+
DIMENSION_HEIGHT: Dimension;
|
|
380
|
+
DIRECTION_INHERIT: Direction;
|
|
381
|
+
DIRECTION_LTR: Direction;
|
|
382
|
+
DIRECTION_RTL: Direction;
|
|
383
|
+
DISPLAY_FLEX: Display;
|
|
384
|
+
DISPLAY_NONE: Display;
|
|
385
|
+
DISPLAY_CONTENTS: Display;
|
|
386
|
+
EDGE_LEFT: Edge;
|
|
387
|
+
EDGE_TOP: Edge;
|
|
388
|
+
EDGE_RIGHT: Edge;
|
|
389
|
+
EDGE_BOTTOM: Edge;
|
|
390
|
+
EDGE_START: Edge;
|
|
391
|
+
EDGE_END: Edge;
|
|
392
|
+
EDGE_HORIZONTAL: Edge;
|
|
393
|
+
EDGE_VERTICAL: Edge;
|
|
394
|
+
EDGE_ALL: Edge;
|
|
395
|
+
ERRATA_NONE: Errata;
|
|
396
|
+
ERRATA_STRETCH_FLEX_BASIS: Errata;
|
|
397
|
+
ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING: Errata;
|
|
398
|
+
ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE: Errata;
|
|
399
|
+
ERRATA_ALL: Errata;
|
|
400
|
+
ERRATA_CLASSIC: Errata;
|
|
401
|
+
EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS: ExperimentalFeature;
|
|
402
|
+
FLEX_DIRECTION_COLUMN: FlexDirection;
|
|
403
|
+
FLEX_DIRECTION_COLUMN_REVERSE: FlexDirection;
|
|
404
|
+
FLEX_DIRECTION_ROW: FlexDirection;
|
|
405
|
+
FLEX_DIRECTION_ROW_REVERSE: FlexDirection;
|
|
406
|
+
GUTTER_COLUMN: Gutter;
|
|
407
|
+
GUTTER_ROW: Gutter;
|
|
408
|
+
GUTTER_ALL: Gutter;
|
|
409
|
+
JUSTIFY_FLEX_START: Justify;
|
|
410
|
+
JUSTIFY_CENTER: Justify;
|
|
411
|
+
JUSTIFY_FLEX_END: Justify;
|
|
412
|
+
JUSTIFY_SPACE_BETWEEN: Justify;
|
|
413
|
+
JUSTIFY_SPACE_AROUND: Justify;
|
|
414
|
+
JUSTIFY_SPACE_EVENLY: Justify;
|
|
415
|
+
LOG_LEVEL_ERROR: LogLevel;
|
|
416
|
+
LOG_LEVEL_WARN: LogLevel;
|
|
417
|
+
LOG_LEVEL_INFO: LogLevel;
|
|
418
|
+
LOG_LEVEL_DEBUG: LogLevel;
|
|
419
|
+
LOG_LEVEL_VERBOSE: LogLevel;
|
|
420
|
+
LOG_LEVEL_FATAL: LogLevel;
|
|
421
|
+
MEASURE_MODE_UNDEFINED: MeasureMode;
|
|
422
|
+
MEASURE_MODE_EXACTLY: MeasureMode;
|
|
423
|
+
MEASURE_MODE_AT_MOST: MeasureMode;
|
|
424
|
+
NODE_TYPE_DEFAULT: NodeType;
|
|
425
|
+
NODE_TYPE_TEXT: NodeType;
|
|
426
|
+
OVERFLOW_VISIBLE: Overflow;
|
|
427
|
+
OVERFLOW_HIDDEN: Overflow;
|
|
428
|
+
OVERFLOW_SCROLL: Overflow;
|
|
429
|
+
POSITION_TYPE_STATIC: PositionType;
|
|
430
|
+
POSITION_TYPE_RELATIVE: PositionType;
|
|
431
|
+
POSITION_TYPE_ABSOLUTE: PositionType;
|
|
432
|
+
UNIT_UNDEFINED: Unit;
|
|
433
|
+
UNIT_POINT: Unit;
|
|
434
|
+
UNIT_PERCENT: Unit;
|
|
435
|
+
UNIT_AUTO: Unit;
|
|
436
|
+
WRAP_NO_WRAP: Wrap;
|
|
437
|
+
WRAP_WRAP: Wrap;
|
|
438
|
+
WRAP_WRAP_REVERSE: Wrap;
|
|
439
|
+
};
|
|
440
|
+
export default Yoga;
|
package/yoga.js
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ALIGN_AUTO,
|
|
3
|
+
ALIGN_BASELINE,
|
|
4
|
+
ALIGN_CENTER,
|
|
5
|
+
ALIGN_FLEX_END,
|
|
6
|
+
ALIGN_FLEX_START,
|
|
7
|
+
ALIGN_SPACE_AROUND,
|
|
8
|
+
ALIGN_SPACE_BETWEEN,
|
|
9
|
+
ALIGN_SPACE_EVENLY,
|
|
10
|
+
ALIGN_STRETCH,
|
|
11
|
+
Align,
|
|
12
|
+
BOX_SIZING_BORDER_BOX,
|
|
13
|
+
BOX_SIZING_CONTENT_BOX,
|
|
14
|
+
BoxSizing,
|
|
15
|
+
Config,
|
|
16
|
+
DIMENSION_HEIGHT,
|
|
17
|
+
DIMENSION_WIDTH,
|
|
18
|
+
DIRECTION_INHERIT,
|
|
19
|
+
DIRECTION_LTR,
|
|
20
|
+
DIRECTION_RTL,
|
|
21
|
+
DISPLAY_CONTENTS,
|
|
22
|
+
DISPLAY_FLEX,
|
|
23
|
+
DISPLAY_NONE,
|
|
24
|
+
Dimension,
|
|
25
|
+
Direction,
|
|
26
|
+
Display,
|
|
27
|
+
EDGE_ALL,
|
|
28
|
+
EDGE_BOTTOM,
|
|
29
|
+
EDGE_END,
|
|
30
|
+
EDGE_HORIZONTAL,
|
|
31
|
+
EDGE_LEFT,
|
|
32
|
+
EDGE_RIGHT,
|
|
33
|
+
EDGE_START,
|
|
34
|
+
EDGE_TOP,
|
|
35
|
+
EDGE_VERTICAL,
|
|
36
|
+
ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE,
|
|
37
|
+
ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING,
|
|
38
|
+
ERRATA_ALL,
|
|
39
|
+
ERRATA_CLASSIC,
|
|
40
|
+
ERRATA_NONE,
|
|
41
|
+
ERRATA_STRETCH_FLEX_BASIS,
|
|
42
|
+
EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS,
|
|
43
|
+
Edge,
|
|
44
|
+
Errata,
|
|
45
|
+
ExperimentalFeature,
|
|
46
|
+
FLEX_DIRECTION_COLUMN,
|
|
47
|
+
FLEX_DIRECTION_COLUMN_REVERSE,
|
|
48
|
+
FLEX_DIRECTION_ROW,
|
|
49
|
+
FLEX_DIRECTION_ROW_REVERSE,
|
|
50
|
+
FlexDirection,
|
|
51
|
+
GUTTER_ALL,
|
|
52
|
+
GUTTER_COLUMN,
|
|
53
|
+
GUTTER_ROW,
|
|
54
|
+
Gutter,
|
|
55
|
+
JUSTIFY_CENTER,
|
|
56
|
+
JUSTIFY_FLEX_END,
|
|
57
|
+
JUSTIFY_FLEX_START,
|
|
58
|
+
JUSTIFY_SPACE_AROUND,
|
|
59
|
+
JUSTIFY_SPACE_BETWEEN,
|
|
60
|
+
JUSTIFY_SPACE_EVENLY,
|
|
61
|
+
Justify,
|
|
62
|
+
LOG_LEVEL_DEBUG,
|
|
63
|
+
LOG_LEVEL_ERROR,
|
|
64
|
+
LOG_LEVEL_FATAL,
|
|
65
|
+
LOG_LEVEL_INFO,
|
|
66
|
+
LOG_LEVEL_VERBOSE,
|
|
67
|
+
LOG_LEVEL_WARN,
|
|
68
|
+
LogLevel1 as LogLevel,
|
|
69
|
+
MEASURE_MODE_AT_MOST,
|
|
70
|
+
MEASURE_MODE_EXACTLY,
|
|
71
|
+
MEASURE_MODE_UNDEFINED,
|
|
72
|
+
MeasureMode,
|
|
73
|
+
NODE_TYPE_DEFAULT,
|
|
74
|
+
NODE_TYPE_TEXT,
|
|
75
|
+
Node,
|
|
76
|
+
NodeType,
|
|
77
|
+
OVERFLOW_HIDDEN,
|
|
78
|
+
OVERFLOW_SCROLL,
|
|
79
|
+
OVERFLOW_VISIBLE,
|
|
80
|
+
Overflow,
|
|
81
|
+
POSITION_TYPE_ABSOLUTE,
|
|
82
|
+
POSITION_TYPE_RELATIVE,
|
|
83
|
+
POSITION_TYPE_STATIC,
|
|
84
|
+
PositionType,
|
|
85
|
+
UNIT_AUTO,
|
|
86
|
+
UNIT_PERCENT,
|
|
87
|
+
UNIT_POINT,
|
|
88
|
+
UNIT_UNDEFINED,
|
|
89
|
+
Unit,
|
|
90
|
+
WRAP_NO_WRAP,
|
|
91
|
+
WRAP_WRAP,
|
|
92
|
+
WRAP_WRAP_REVERSE,
|
|
93
|
+
Wrap,
|
|
94
|
+
yoga_default
|
|
95
|
+
} from "./index-pcvh9d34.js";
|
|
96
|
+
export {
|
|
97
|
+
yoga_default as default,
|
|
98
|
+
Wrap,
|
|
99
|
+
WRAP_WRAP_REVERSE,
|
|
100
|
+
WRAP_WRAP,
|
|
101
|
+
WRAP_NO_WRAP,
|
|
102
|
+
Unit,
|
|
103
|
+
UNIT_UNDEFINED,
|
|
104
|
+
UNIT_POINT,
|
|
105
|
+
UNIT_PERCENT,
|
|
106
|
+
UNIT_AUTO,
|
|
107
|
+
PositionType,
|
|
108
|
+
POSITION_TYPE_STATIC,
|
|
109
|
+
POSITION_TYPE_RELATIVE,
|
|
110
|
+
POSITION_TYPE_ABSOLUTE,
|
|
111
|
+
Overflow,
|
|
112
|
+
OVERFLOW_VISIBLE,
|
|
113
|
+
OVERFLOW_SCROLL,
|
|
114
|
+
OVERFLOW_HIDDEN,
|
|
115
|
+
NodeType,
|
|
116
|
+
Node,
|
|
117
|
+
NODE_TYPE_TEXT,
|
|
118
|
+
NODE_TYPE_DEFAULT,
|
|
119
|
+
MeasureMode,
|
|
120
|
+
MEASURE_MODE_UNDEFINED,
|
|
121
|
+
MEASURE_MODE_EXACTLY,
|
|
122
|
+
MEASURE_MODE_AT_MOST,
|
|
123
|
+
LogLevel,
|
|
124
|
+
LOG_LEVEL_WARN,
|
|
125
|
+
LOG_LEVEL_VERBOSE,
|
|
126
|
+
LOG_LEVEL_INFO,
|
|
127
|
+
LOG_LEVEL_FATAL,
|
|
128
|
+
LOG_LEVEL_ERROR,
|
|
129
|
+
LOG_LEVEL_DEBUG,
|
|
130
|
+
Justify,
|
|
131
|
+
JUSTIFY_SPACE_EVENLY,
|
|
132
|
+
JUSTIFY_SPACE_BETWEEN,
|
|
133
|
+
JUSTIFY_SPACE_AROUND,
|
|
134
|
+
JUSTIFY_FLEX_START,
|
|
135
|
+
JUSTIFY_FLEX_END,
|
|
136
|
+
JUSTIFY_CENTER,
|
|
137
|
+
Gutter,
|
|
138
|
+
GUTTER_ROW,
|
|
139
|
+
GUTTER_COLUMN,
|
|
140
|
+
GUTTER_ALL,
|
|
141
|
+
FlexDirection,
|
|
142
|
+
FLEX_DIRECTION_ROW_REVERSE,
|
|
143
|
+
FLEX_DIRECTION_ROW,
|
|
144
|
+
FLEX_DIRECTION_COLUMN_REVERSE,
|
|
145
|
+
FLEX_DIRECTION_COLUMN,
|
|
146
|
+
ExperimentalFeature,
|
|
147
|
+
Errata,
|
|
148
|
+
Edge,
|
|
149
|
+
EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS,
|
|
150
|
+
ERRATA_STRETCH_FLEX_BASIS,
|
|
151
|
+
ERRATA_NONE,
|
|
152
|
+
ERRATA_CLASSIC,
|
|
153
|
+
ERRATA_ALL,
|
|
154
|
+
ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING,
|
|
155
|
+
ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE,
|
|
156
|
+
EDGE_VERTICAL,
|
|
157
|
+
EDGE_TOP,
|
|
158
|
+
EDGE_START,
|
|
159
|
+
EDGE_RIGHT,
|
|
160
|
+
EDGE_LEFT,
|
|
161
|
+
EDGE_HORIZONTAL,
|
|
162
|
+
EDGE_END,
|
|
163
|
+
EDGE_BOTTOM,
|
|
164
|
+
EDGE_ALL,
|
|
165
|
+
Display,
|
|
166
|
+
Direction,
|
|
167
|
+
Dimension,
|
|
168
|
+
DISPLAY_NONE,
|
|
169
|
+
DISPLAY_FLEX,
|
|
170
|
+
DISPLAY_CONTENTS,
|
|
171
|
+
DIRECTION_RTL,
|
|
172
|
+
DIRECTION_LTR,
|
|
173
|
+
DIRECTION_INHERIT,
|
|
174
|
+
DIMENSION_WIDTH,
|
|
175
|
+
DIMENSION_HEIGHT,
|
|
176
|
+
Config,
|
|
177
|
+
BoxSizing,
|
|
178
|
+
BOX_SIZING_CONTENT_BOX,
|
|
179
|
+
BOX_SIZING_BORDER_BOX,
|
|
180
|
+
Align,
|
|
181
|
+
ALIGN_STRETCH,
|
|
182
|
+
ALIGN_SPACE_EVENLY,
|
|
183
|
+
ALIGN_SPACE_BETWEEN,
|
|
184
|
+
ALIGN_SPACE_AROUND,
|
|
185
|
+
ALIGN_FLEX_START,
|
|
186
|
+
ALIGN_FLEX_END,
|
|
187
|
+
ALIGN_CENTER,
|
|
188
|
+
ALIGN_BASELINE,
|
|
189
|
+
ALIGN_AUTO
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
//# debugId=3DEE98A3AAE9E41E64756E2164756E21
|
|
193
|
+
//# sourceMappingURL=yoga.js.map
|