@opentui/core 0.0.0-20250915-7be4d9eb → 0.0.0-20250918-7ff2578a

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/index.js CHANGED
@@ -28,7 +28,6 @@ import {
28
28
  TerminalConsole,
29
29
  TextAttributes,
30
30
  TextBuffer,
31
- TrackedNode,
32
31
  bg,
33
32
  bgBlack,
34
33
  bgBlue,
@@ -56,7 +55,6 @@ import {
56
55
  coordinateToCharacterIndex,
57
56
  createCliRenderer,
58
57
  createTextAttributes,
59
- createTrackedNode,
60
58
  cyan,
61
59
  delegate,
62
60
  dim,
@@ -73,15 +71,7 @@ import {
73
71
  hexToRgb,
74
72
  hsvToRgb,
75
73
  instantiate,
76
- isDimensionType,
77
- isFlexBasisType,
78
- isMarginType,
79
- isOverflowType,
80
- isPaddingType,
81
- isPositionType,
82
- isPositionTypeType,
83
74
  isRenderable,
84
- isSizeType,
85
75
  isStyledText,
86
76
  isVNode,
87
77
  isValidPercentage,
@@ -121,7 +111,7 @@ import {
121
111
  white,
122
112
  wrapWithDelegates,
123
113
  yellow
124
- } from "./index-dgjbzqw3.js";
114
+ } from "./index-9skjt1d2.js";
125
115
  // src/post/filters.ts
126
116
  function applyScanlines(buffer, strength = 0.8, step = 2) {
127
117
  const width = buffer.width;
@@ -1379,7 +1369,7 @@ class BoxRenderable extends Renderable {
1379
1369
  };
1380
1370
  }
1381
1371
  applyYogaBorders() {
1382
- const node = this.layoutNode.yogaNode;
1372
+ const node = this.yogaNode;
1383
1373
  node.setBorder(Edge.Left, this.borderSides.left ? 1 : 0);
1384
1374
  node.setBorder(Edge.Right, this.borderSides.right ? 1 : 0);
1385
1375
  node.setBorder(Edge.Top, this.borderSides.top ? 1 : 0);
@@ -1387,7 +1377,7 @@ class BoxRenderable extends Renderable {
1387
1377
  this.requestRender();
1388
1378
  }
1389
1379
  applyYogaGap(options) {
1390
- const node = this.layoutNode.yogaNode;
1380
+ const node = this.yogaNode;
1391
1381
  if (isGapType(options.gap)) {
1392
1382
  node.setGap(Gutter.All, options.gap);
1393
1383
  }
@@ -1400,19 +1390,19 @@ class BoxRenderable extends Renderable {
1400
1390
  }
1401
1391
  set gap(gap) {
1402
1392
  if (isGapType(gap)) {
1403
- this.layoutNode.yogaNode.setGap(Gutter.All, gap);
1393
+ this.yogaNode.setGap(Gutter.All, gap);
1404
1394
  this.requestRender();
1405
1395
  }
1406
1396
  }
1407
1397
  set rowGap(rowGap) {
1408
1398
  if (isGapType(rowGap)) {
1409
- this.layoutNode.yogaNode.setGap(Gutter.Row, rowGap);
1399
+ this.yogaNode.setGap(Gutter.Row, rowGap);
1410
1400
  this.requestRender();
1411
1401
  }
1412
1402
  }
1413
1403
  set columnGap(columnGap) {
1414
1404
  if (isGapType(columnGap)) {
1415
- this.layoutNode.yogaNode.setGap(Gutter.Column, columnGap);
1405
+ this.yogaNode.setGap(Gutter.Column, columnGap);
1416
1406
  this.requestRender();
1417
1407
  }
1418
1408
  }
@@ -1838,7 +1828,7 @@ class TextRenderable extends Renderable {
1838
1828
  this.requestRender();
1839
1829
  }
1840
1830
  }
1841
- this.layoutNode.yogaNode.markDirty();
1831
+ this.yogaNode.markDirty();
1842
1832
  this.requestRender();
1843
1833
  }
1844
1834
  setupMeasureFunc() {
@@ -1862,7 +1852,7 @@ class TextRenderable extends Renderable {
1862
1852
  height: Math.max(1, measuredHeight)
1863
1853
  };
1864
1854
  };
1865
- this.layoutNode.yogaNode.setMeasureFunc(measureFunc);
1855
+ this.yogaNode.setMeasureFunc(measureFunc);
1866
1856
  }
1867
1857
  insertChunk(chunk, index) {
1868
1858
  this.textBuffer.insertChunkGroup(index ?? this.textBuffer.chunkGroupCount, chunk.text, chunk.fg, chunk.bg, chunk.attributes);
@@ -4168,19 +4158,10 @@ export {
4168
4158
  maybeMakeRenderable,
4169
4159
  magenta,
4170
4160
  italic,
4171
- isValidPercentage,
4172
4161
  isVNode,
4173
4162
  isTextNodeRenderable,
4174
4163
  isStyledText,
4175
- isSizeType,
4176
4164
  isRenderable,
4177
- isPositionTypeType,
4178
- isPositionType,
4179
- isPaddingType,
4180
- isOverflowType,
4181
- isMarginType,
4182
- isFlexBasisType,
4183
- isDimensionType,
4184
4165
  instantiate,
4185
4166
  hsvToRgb,
4186
4167
  hexToRgb,
@@ -4197,7 +4178,6 @@ export {
4197
4178
  dim,
4198
4179
  delegate,
4199
4180
  cyan,
4200
- createTrackedNode,
4201
4181
  createTimeline,
4202
4182
  createTextAttributes,
4203
4183
  createCliRenderer,
@@ -4235,7 +4215,6 @@ export {
4235
4215
  applyAsciiArt,
4236
4216
  VignetteEffect,
4237
4217
  VRenderable,
4238
- TrackedNode,
4239
4218
  Timeline,
4240
4219
  TextRenderable,
4241
4220
  TextNodeRenderable,
@@ -4291,5 +4270,5 @@ export {
4291
4270
  ASCIIFont
4292
4271
  };
4293
4272
 
4294
- //# debugId=C24A2E933E87A1F264756E2164756E21
4273
+ //# debugId=624CE1C61076A58864756E2164756E21
4295
4274
  //# sourceMappingURL=index.js.map