flexily 0.3.0 → 0.3.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.
Files changed (73) hide show
  1. package/README.md +2 -0
  2. package/package.json +16 -24
  3. package/src/classic/layout.ts +2 -2
  4. package/src/layout-helpers.ts +2 -2
  5. package/dist/classic/layout.d.ts +0 -57
  6. package/dist/classic/layout.d.ts.map +0 -1
  7. package/dist/classic/layout.js +0 -1567
  8. package/dist/classic/layout.js.map +0 -1
  9. package/dist/classic/node.d.ts +0 -648
  10. package/dist/classic/node.d.ts.map +0 -1
  11. package/dist/classic/node.js +0 -1002
  12. package/dist/classic/node.js.map +0 -1
  13. package/dist/constants.d.ts +0 -59
  14. package/dist/constants.d.ts.map +0 -1
  15. package/dist/constants.js +0 -71
  16. package/dist/constants.js.map +0 -1
  17. package/dist/index-classic.d.ts +0 -30
  18. package/dist/index-classic.d.ts.map +0 -1
  19. package/dist/index-classic.js +0 -57
  20. package/dist/index-classic.js.map +0 -1
  21. package/dist/index.d.ts +0 -30
  22. package/dist/index.d.ts.map +0 -1
  23. package/dist/index.js +0 -57
  24. package/dist/index.js.map +0 -1
  25. package/dist/layout-flex-lines.d.ts +0 -77
  26. package/dist/layout-flex-lines.d.ts.map +0 -1
  27. package/dist/layout-flex-lines.js +0 -317
  28. package/dist/layout-flex-lines.js.map +0 -1
  29. package/dist/layout-helpers.d.ts +0 -45
  30. package/dist/layout-helpers.d.ts.map +0 -1
  31. package/dist/layout-helpers.js +0 -103
  32. package/dist/layout-helpers.js.map +0 -1
  33. package/dist/layout-measure.d.ts +0 -25
  34. package/dist/layout-measure.d.ts.map +0 -1
  35. package/dist/layout-measure.js +0 -231
  36. package/dist/layout-measure.js.map +0 -1
  37. package/dist/layout-stats.d.ts +0 -19
  38. package/dist/layout-stats.d.ts.map +0 -1
  39. package/dist/layout-stats.js +0 -37
  40. package/dist/layout-stats.js.map +0 -1
  41. package/dist/layout-traversal.d.ts +0 -28
  42. package/dist/layout-traversal.d.ts.map +0 -1
  43. package/dist/layout-traversal.js +0 -65
  44. package/dist/layout-traversal.js.map +0 -1
  45. package/dist/layout-zero.d.ts +0 -26
  46. package/dist/layout-zero.d.ts.map +0 -1
  47. package/dist/layout-zero.js +0 -1757
  48. package/dist/layout-zero.js.map +0 -1
  49. package/dist/logger.d.ts +0 -14
  50. package/dist/logger.d.ts.map +0 -1
  51. package/dist/logger.js +0 -61
  52. package/dist/logger.js.map +0 -1
  53. package/dist/node-zero.d.ts +0 -702
  54. package/dist/node-zero.d.ts.map +0 -1
  55. package/dist/node-zero.js +0 -1268
  56. package/dist/node-zero.js.map +0 -1
  57. package/dist/testing.d.ts +0 -69
  58. package/dist/testing.d.ts.map +0 -1
  59. package/dist/testing.js +0 -179
  60. package/dist/testing.js.map +0 -1
  61. package/dist/trace.d.ts +0 -74
  62. package/dist/trace.d.ts.map +0 -1
  63. package/dist/trace.js +0 -191
  64. package/dist/trace.js.map +0 -1
  65. package/dist/types.d.ts +0 -170
  66. package/dist/types.d.ts.map +0 -1
  67. package/dist/types.js +0 -43
  68. package/dist/types.js.map +0 -1
  69. package/dist/utils.d.ts +0 -49
  70. package/dist/utils.d.ts.map +0 -1
  71. package/dist/utils.js +0 -222
  72. package/dist/utils.js.map +0 -1
  73. package/src/beorn-logger.d.ts +0 -10
@@ -1,648 +0,0 @@
1
- /**
2
- * Flexily Node
3
- *
4
- * Yoga-compatible Node class for flexbox layout.
5
- */
6
- import { type BaselineFunc, type Layout, type MeasureFunc, type Style, type Value } from "../types.js";
7
- /**
8
- * A layout node in the flexbox tree.
9
- */
10
- export declare class Node {
11
- private _parent;
12
- private _children;
13
- private _style;
14
- private _measureFunc;
15
- private _baselineFunc;
16
- private _layout;
17
- private _isDirty;
18
- private _hasNewLayout;
19
- /**
20
- * Create a new layout node.
21
- *
22
- * @returns A new Node instance
23
- * @example
24
- * ```typescript
25
- * const root = Node.create();
26
- * root.setWidth(100);
27
- * root.setHeight(200);
28
- * ```
29
- */
30
- static create(): Node;
31
- /**
32
- * Get the number of child nodes.
33
- *
34
- * @returns The number of children
35
- */
36
- getChildCount(): number;
37
- /**
38
- * Get a child node by index.
39
- *
40
- * @param index - Zero-based child index
41
- * @returns The child node at the given index, or undefined if index is out of bounds
42
- */
43
- getChild(index: number): Node | undefined;
44
- /**
45
- * Get the parent node.
46
- *
47
- * @returns The parent node, or null if this is a root node
48
- */
49
- getParent(): Node | null;
50
- /**
51
- * Insert a child node at the specified index.
52
- * If the child already has a parent, it will be removed from that parent first.
53
- * Marks the node as dirty to trigger layout recalculation.
54
- *
55
- * @param child - The child node to insert
56
- * @param index - The index at which to insert the child
57
- * @example
58
- * ```typescript
59
- * const parent = Node.create();
60
- * const child1 = Node.create();
61
- * const child2 = Node.create();
62
- * parent.insertChild(child1, 0);
63
- * parent.insertChild(child2, 1);
64
- * ```
65
- */
66
- insertChild(child: Node, index: number): void;
67
- /**
68
- * Remove a child node from this node.
69
- * The child's parent reference will be cleared.
70
- * Marks the node as dirty to trigger layout recalculation.
71
- *
72
- * @param child - The child node to remove
73
- */
74
- removeChild(child: Node): void;
75
- /**
76
- * Free this node and clean up all references.
77
- * Removes the node from its parent, clears all children, and removes the measure function.
78
- * This does not recursively free child nodes.
79
- */
80
- free(): void;
81
- /**
82
- * Dispose the node (calls free)
83
- */
84
- [Symbol.dispose](): void;
85
- /**
86
- * Set a measure function for intrinsic sizing.
87
- * The measure function is called during layout to determine the node's natural size.
88
- * Typically used for text nodes or other content that has an intrinsic size.
89
- * Marks the node as dirty to trigger layout recalculation.
90
- *
91
- * @param measureFunc - Function that returns width and height given available space and constraints
92
- * @example
93
- * ```typescript
94
- * const textNode = Node.create();
95
- * textNode.setMeasureFunc((width, widthMode, height, heightMode) => {
96
- * // Measure text and return dimensions
97
- * return { width: 50, height: 20 };
98
- * });
99
- * ```
100
- */
101
- setMeasureFunc(measureFunc: MeasureFunc): void;
102
- /**
103
- * Remove the measure function from this node.
104
- * Marks the node as dirty to trigger layout recalculation.
105
- */
106
- unsetMeasureFunc(): void;
107
- /**
108
- * Check if this node has a measure function.
109
- *
110
- * @returns True if a measure function is set
111
- */
112
- hasMeasureFunc(): boolean;
113
- /**
114
- * Set a baseline function to determine where this node's text baseline is.
115
- * Used for ALIGN_BASELINE to align text across siblings with different heights.
116
- *
117
- * @param baselineFunc - Function that returns baseline offset from top given width and height
118
- * @example
119
- * ```typescript
120
- * textNode.setBaselineFunc((width, height) => {
121
- * // For a text node, baseline might be at 80% of height
122
- * return height * 0.8;
123
- * });
124
- * ```
125
- */
126
- setBaselineFunc(baselineFunc: BaselineFunc): void;
127
- /**
128
- * Remove the baseline function from this node.
129
- * Marks the node as dirty to trigger layout recalculation.
130
- */
131
- unsetBaselineFunc(): void;
132
- /**
133
- * Check if this node has a baseline function.
134
- *
135
- * @returns True if a baseline function is set
136
- */
137
- hasBaselineFunc(): boolean;
138
- /**
139
- * Check if this node needs layout recalculation.
140
- *
141
- * @returns True if the node is dirty and needs layout
142
- */
143
- isDirty(): boolean;
144
- /**
145
- * Mark this node and all ancestors as dirty.
146
- * A dirty node needs layout recalculation.
147
- * This is automatically called by all style setters and tree operations.
148
- */
149
- markDirty(): void;
150
- /**
151
- * Check if this node has new layout results since the last check.
152
- *
153
- * @returns True if layout was recalculated since the last call to markLayoutSeen
154
- */
155
- hasNewLayout(): boolean;
156
- /**
157
- * Mark that the current layout has been seen/processed.
158
- * Clears the hasNewLayout flag.
159
- */
160
- markLayoutSeen(): void;
161
- /**
162
- * Calculate layout for this node and all descendants.
163
- * This runs the flexbox layout algorithm to compute positions and sizes.
164
- * Only recalculates if the node is marked as dirty.
165
- *
166
- * @param width - Available width for layout
167
- * @param height - Available height for layout
168
- * @param _direction - Text direction (LTR or RTL), defaults to LTR
169
- * @example
170
- * ```typescript
171
- * const root = Node.create();
172
- * root.setFlexDirection(FLEX_DIRECTION_ROW);
173
- * root.setWidth(100);
174
- * root.setHeight(50);
175
- *
176
- * const child = Node.create();
177
- * child.setFlexGrow(1);
178
- * root.insertChild(child, 0);
179
- *
180
- * root.calculateLayout(100, 50, DIRECTION_LTR);
181
- *
182
- * // Now you can read computed layout
183
- * console.log(child.getComputedWidth());
184
- * ```
185
- */
186
- calculateLayout(width?: number, height?: number, _direction?: number): void;
187
- /**
188
- * Get the computed left position after layout.
189
- *
190
- * @returns The left position in points
191
- */
192
- getComputedLeft(): number;
193
- /**
194
- * Get the computed top position after layout.
195
- *
196
- * @returns The top position in points
197
- */
198
- getComputedTop(): number;
199
- /**
200
- * Get the computed width after layout.
201
- *
202
- * @returns The width in points
203
- */
204
- getComputedWidth(): number;
205
- /**
206
- * Get the computed height after layout.
207
- *
208
- * @returns The height in points
209
- */
210
- getComputedHeight(): number;
211
- get children(): readonly Node[];
212
- get style(): Style;
213
- get layout(): Layout;
214
- get measureFunc(): MeasureFunc | null;
215
- get baselineFunc(): BaselineFunc | null;
216
- /**
217
- * Set the width to a fixed value in points.
218
- *
219
- * @param value - Width in points
220
- */
221
- setWidth(value: number): void;
222
- /**
223
- * Set the width as a percentage of the parent's width.
224
- *
225
- * @param value - Width as a percentage (0-100)
226
- */
227
- setWidthPercent(value: number): void;
228
- /**
229
- * Set the width to auto (determined by layout algorithm).
230
- */
231
- setWidthAuto(): void;
232
- /**
233
- * Set the height to a fixed value in points.
234
- *
235
- * @param value - Height in points
236
- */
237
- setHeight(value: number): void;
238
- /**
239
- * Set the height as a percentage of the parent's height.
240
- *
241
- * @param value - Height as a percentage (0-100)
242
- */
243
- setHeightPercent(value: number): void;
244
- /**
245
- * Set the height to auto (determined by layout algorithm).
246
- */
247
- setHeightAuto(): void;
248
- /**
249
- * Set the minimum width in points.
250
- *
251
- * @param value - Minimum width in points
252
- */
253
- setMinWidth(value: number): void;
254
- /**
255
- * Set the minimum width as a percentage of the parent's width.
256
- *
257
- * @param value - Minimum width as a percentage (0-100)
258
- */
259
- setMinWidthPercent(value: number): void;
260
- /**
261
- * Set the minimum height in points.
262
- *
263
- * @param value - Minimum height in points
264
- */
265
- setMinHeight(value: number): void;
266
- /**
267
- * Set the minimum height as a percentage of the parent's height.
268
- *
269
- * @param value - Minimum height as a percentage (0-100)
270
- */
271
- setMinHeightPercent(value: number): void;
272
- /**
273
- * Set the maximum width in points.
274
- *
275
- * @param value - Maximum width in points
276
- */
277
- setMaxWidth(value: number): void;
278
- /**
279
- * Set the maximum width as a percentage of the parent's width.
280
- *
281
- * @param value - Maximum width as a percentage (0-100)
282
- */
283
- setMaxWidthPercent(value: number): void;
284
- /**
285
- * Set the maximum height in points.
286
- *
287
- * @param value - Maximum height in points
288
- */
289
- setMaxHeight(value: number): void;
290
- /**
291
- * Set the maximum height as a percentage of the parent's height.
292
- *
293
- * @param value - Maximum height as a percentage (0-100)
294
- */
295
- setMaxHeightPercent(value: number): void;
296
- /**
297
- * Set the aspect ratio of the node.
298
- * When set, the node's width/height relationship is constrained.
299
- * If width is defined, height = width / aspectRatio.
300
- * If height is defined, width = height * aspectRatio.
301
- *
302
- * @param value - Aspect ratio (width/height). Use NaN to unset.
303
- */
304
- setAspectRatio(value: number): void;
305
- /**
306
- * Set the flex grow factor.
307
- * Determines how much the node will grow relative to siblings when there is extra space.
308
- *
309
- * @param value - Flex grow factor (typically 0 or 1+)
310
- * @example
311
- * ```typescript
312
- * const child = Node.create();
313
- * child.setFlexGrow(1); // Will grow to fill available space
314
- * ```
315
- */
316
- setFlexGrow(value: number): void;
317
- /**
318
- * Set the flex shrink factor.
319
- * Determines how much the node will shrink relative to siblings when there is insufficient space.
320
- *
321
- * @param value - Flex shrink factor (default is 1)
322
- */
323
- setFlexShrink(value: number): void;
324
- /**
325
- * Set the flex basis to a fixed value in points.
326
- * The initial size of the node before flex grow/shrink is applied.
327
- *
328
- * @param value - Flex basis in points
329
- */
330
- setFlexBasis(value: number): void;
331
- /**
332
- * Set the flex basis as a percentage of the parent's size.
333
- *
334
- * @param value - Flex basis as a percentage (0-100)
335
- */
336
- setFlexBasisPercent(value: number): void;
337
- /**
338
- * Set the flex basis to auto (based on the node's width/height).
339
- */
340
- setFlexBasisAuto(): void;
341
- /**
342
- * Set the flex direction (main axis direction).
343
- *
344
- * @param direction - FLEX_DIRECTION_ROW, FLEX_DIRECTION_COLUMN, FLEX_DIRECTION_ROW_REVERSE, or FLEX_DIRECTION_COLUMN_REVERSE
345
- * @example
346
- * ```typescript
347
- * const container = Node.create();
348
- * container.setFlexDirection(FLEX_DIRECTION_ROW); // Lay out children horizontally
349
- * ```
350
- */
351
- setFlexDirection(direction: number): void;
352
- /**
353
- * Set the flex wrap behavior.
354
- *
355
- * @param wrap - WRAP_NO_WRAP, WRAP_WRAP, or WRAP_WRAP_REVERSE
356
- */
357
- setFlexWrap(wrap: number): void;
358
- /**
359
- * Set how children are aligned along the cross axis.
360
- *
361
- * @param align - ALIGN_FLEX_START, ALIGN_CENTER, ALIGN_FLEX_END, ALIGN_STRETCH, or ALIGN_BASELINE
362
- * @example
363
- * ```typescript
364
- * const container = Node.create();
365
- * container.setFlexDirection(FLEX_DIRECTION_ROW);
366
- * container.setAlignItems(ALIGN_CENTER); // Center children vertically
367
- * ```
368
- */
369
- setAlignItems(align: number): void;
370
- /**
371
- * Set how this node is aligned along the parent's cross axis.
372
- * Overrides the parent's alignItems for this specific child.
373
- *
374
- * @param align - ALIGN_AUTO, ALIGN_FLEX_START, ALIGN_CENTER, ALIGN_FLEX_END, ALIGN_STRETCH, or ALIGN_BASELINE
375
- */
376
- setAlignSelf(align: number): void;
377
- /**
378
- * Set how lines are aligned in a multi-line flex container.
379
- * Only affects containers with wrap enabled and multiple lines.
380
- *
381
- * @param align - ALIGN_FLEX_START, ALIGN_CENTER, ALIGN_FLEX_END, ALIGN_STRETCH, ALIGN_SPACE_BETWEEN, or ALIGN_SPACE_AROUND
382
- */
383
- setAlignContent(align: number): void;
384
- /**
385
- * Set how children are distributed along the main axis.
386
- *
387
- * @param justify - JUSTIFY_FLEX_START, JUSTIFY_CENTER, JUSTIFY_FLEX_END, JUSTIFY_SPACE_BETWEEN, JUSTIFY_SPACE_AROUND, or JUSTIFY_SPACE_EVENLY
388
- * @example
389
- * ```typescript
390
- * const container = Node.create();
391
- * container.setJustifyContent(JUSTIFY_SPACE_BETWEEN); // Space children evenly with edges at start/end
392
- * ```
393
- */
394
- setJustifyContent(justify: number): void;
395
- /**
396
- * Set padding for one or more edges.
397
- *
398
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
399
- * @param value - Padding in points
400
- * @example
401
- * ```typescript
402
- * node.setPadding(EDGE_ALL, 10); // Set 10pt padding on all edges
403
- * node.setPadding(EDGE_HORIZONTAL, 5); // Set 5pt padding on left and right
404
- * ```
405
- */
406
- setPadding(edge: number, value: number): void;
407
- /**
408
- * Set padding as a percentage of the parent's width.
409
- * Per CSS spec, percentage padding always resolves against the containing block's width.
410
- *
411
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
412
- * @param value - Padding as a percentage (0-100)
413
- */
414
- setPaddingPercent(edge: number, value: number): void;
415
- /**
416
- * Set margin for one or more edges.
417
- *
418
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
419
- * @param value - Margin in points
420
- * @example
421
- * ```typescript
422
- * node.setMargin(EDGE_ALL, 5); // Set 5pt margin on all edges
423
- * node.setMargin(EDGE_TOP, 10); // Set 10pt margin on top only
424
- * ```
425
- */
426
- setMargin(edge: number, value: number): void;
427
- /**
428
- * Set margin as a percentage of the parent's size.
429
- *
430
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
431
- * @param value - Margin as a percentage (0-100)
432
- */
433
- setMarginPercent(edge: number, value: number): void;
434
- /**
435
- * Set margin to auto (for centering items with margin: auto).
436
- *
437
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
438
- */
439
- setMarginAuto(edge: number): void;
440
- /**
441
- * Set border width for one or more edges.
442
- *
443
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
444
- * @param value - Border width in points
445
- */
446
- setBorder(edge: number, value: number): void;
447
- /**
448
- * Set gap between flex items.
449
- *
450
- * @param gutter - GUTTER_COLUMN (horizontal gap), GUTTER_ROW (vertical gap), or GUTTER_ALL (both)
451
- * @param value - Gap size in points
452
- * @example
453
- * ```typescript
454
- * container.setGap(GUTTER_ALL, 8); // Set 8pt gap between all items
455
- * container.setGap(GUTTER_COLUMN, 10); // Set 10pt horizontal gap only
456
- * ```
457
- */
458
- setGap(gutter: number, value: number): void;
459
- /**
460
- * Set the position type.
461
- *
462
- * @param positionType - POSITION_TYPE_STATIC, POSITION_TYPE_RELATIVE, or POSITION_TYPE_ABSOLUTE
463
- * @example
464
- * ```typescript
465
- * node.setPositionType(POSITION_TYPE_ABSOLUTE);
466
- * node.setPosition(EDGE_LEFT, 10);
467
- * node.setPosition(EDGE_TOP, 20);
468
- * ```
469
- */
470
- setPositionType(positionType: number): void;
471
- /**
472
- * Set position offset for one or more edges.
473
- * Only applies when position type is ABSOLUTE or RELATIVE.
474
- *
475
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
476
- * @param value - Position offset in points
477
- */
478
- setPosition(edge: number, value: number): void;
479
- /**
480
- * Set position offset as a percentage.
481
- *
482
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_HORIZONTAL, EDGE_VERTICAL, or EDGE_ALL
483
- * @param value - Position offset as a percentage of parent's corresponding dimension
484
- */
485
- setPositionPercent(edge: number, value: number): void;
486
- /**
487
- * Set the display type.
488
- *
489
- * @param display - DISPLAY_FLEX or DISPLAY_NONE
490
- */
491
- setDisplay(display: number): void;
492
- /**
493
- * Set the overflow behavior.
494
- *
495
- * @param overflow - OVERFLOW_VISIBLE, OVERFLOW_HIDDEN, or OVERFLOW_SCROLL
496
- */
497
- setOverflow(overflow: number): void;
498
- /**
499
- * Get the width style value.
500
- *
501
- * @returns Width value with unit (points, percent, or auto)
502
- */
503
- getWidth(): Value;
504
- /**
505
- * Get the height style value.
506
- *
507
- * @returns Height value with unit (points, percent, or auto)
508
- */
509
- getHeight(): Value;
510
- /**
511
- * Get the minimum width style value.
512
- *
513
- * @returns Minimum width value with unit
514
- */
515
- getMinWidth(): Value;
516
- /**
517
- * Get the minimum height style value.
518
- *
519
- * @returns Minimum height value with unit
520
- */
521
- getMinHeight(): Value;
522
- /**
523
- * Get the maximum width style value.
524
- *
525
- * @returns Maximum width value with unit
526
- */
527
- getMaxWidth(): Value;
528
- /**
529
- * Get the maximum height style value.
530
- *
531
- * @returns Maximum height value with unit
532
- */
533
- getMaxHeight(): Value;
534
- /**
535
- * Get the aspect ratio.
536
- *
537
- * @returns Aspect ratio value (NaN if not set)
538
- */
539
- getAspectRatio(): number;
540
- /**
541
- * Get the flex grow factor.
542
- *
543
- * @returns Flex grow value
544
- */
545
- getFlexGrow(): number;
546
- /**
547
- * Get the flex shrink factor.
548
- *
549
- * @returns Flex shrink value
550
- */
551
- getFlexShrink(): number;
552
- /**
553
- * Get the flex basis style value.
554
- *
555
- * @returns Flex basis value with unit
556
- */
557
- getFlexBasis(): Value;
558
- /**
559
- * Get the flex direction.
560
- *
561
- * @returns Flex direction constant
562
- */
563
- getFlexDirection(): number;
564
- /**
565
- * Get the flex wrap setting.
566
- *
567
- * @returns Flex wrap constant
568
- */
569
- getFlexWrap(): number;
570
- /**
571
- * Get the align items setting.
572
- *
573
- * @returns Align items constant
574
- */
575
- getAlignItems(): number;
576
- /**
577
- * Get the align self setting.
578
- *
579
- * @returns Align self constant
580
- */
581
- getAlignSelf(): number;
582
- /**
583
- * Get the align content setting.
584
- *
585
- * @returns Align content constant
586
- */
587
- getAlignContent(): number;
588
- /**
589
- * Get the justify content setting.
590
- *
591
- * @returns Justify content constant
592
- */
593
- getJustifyContent(): number;
594
- /**
595
- * Get the padding for a specific edge.
596
- *
597
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, or EDGE_BOTTOM
598
- * @returns Padding value with unit
599
- */
600
- getPadding(edge: number): Value;
601
- /**
602
- * Get the margin for a specific edge.
603
- *
604
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, or EDGE_BOTTOM
605
- * @returns Margin value with unit
606
- */
607
- getMargin(edge: number): Value;
608
- /**
609
- * Get the border width for a specific edge.
610
- *
611
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, or EDGE_BOTTOM
612
- * @returns Border width in points
613
- */
614
- getBorder(edge: number): number;
615
- /**
616
- * Get the position offset for a specific edge.
617
- *
618
- * @param edge - EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, or EDGE_BOTTOM
619
- * @returns Position value with unit
620
- */
621
- getPosition(edge: number): Value;
622
- /**
623
- * Get the position type.
624
- *
625
- * @returns Position type constant
626
- */
627
- getPositionType(): number;
628
- /**
629
- * Get the display type.
630
- *
631
- * @returns Display constant
632
- */
633
- getDisplay(): number;
634
- /**
635
- * Get the overflow setting.
636
- *
637
- * @returns Overflow constant
638
- */
639
- getOverflow(): number;
640
- /**
641
- * Get the gap for column or row.
642
- *
643
- * @param gutter - GUTTER_COLUMN or GUTTER_ROW
644
- * @returns Gap size in points
645
- */
646
- getGap(gutter: number): number;
647
- }
648
- //# sourceMappingURL=node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/classic/node.ts"],"names":[],"mappings":"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