@opentui/core 0.0.0-20250929-69eb6c87 → 0.0.0-20250930-6541ec7f

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/3d.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  __export,
6
6
  __require,
7
7
  __toESM
8
- } from "./index-yd5hcdcm.js";
8
+ } from "./index-kvwmgj67.js";
9
9
 
10
10
  // ../../node_modules/omggif/omggif.js
11
11
  var require_omggif = __commonJS((exports) => {
@@ -7318,6 +7318,16 @@ class Renderable extends BaseRenderable {
7318
7318
  if (zIndexIndex !== -1) {
7319
7319
  this._childrenInZIndexOrder.splice(zIndexIndex, 1);
7320
7320
  }
7321
+ if (this._forceLayoutUpdateFor) {
7322
+ const forceIndex = this._forceLayoutUpdateFor.findIndex((obj2) => obj2.id === id);
7323
+ if (forceIndex !== -1) {
7324
+ this._forceLayoutUpdateFor?.splice(forceIndex, 1);
7325
+ }
7326
+ }
7327
+ const newChildIndex = this._newChildren.findIndex((obj2) => obj2.id === id);
7328
+ if (newChildIndex !== -1) {
7329
+ this._newChildren?.splice(newChildIndex, 1);
7330
+ }
7321
7331
  this.childrenPrimarySortDirty = true;
7322
7332
  }
7323
7333
  }
@@ -8625,7 +8635,7 @@ class CliRenderer extends EventEmitter5 {
8625
8635
  stdin;
8626
8636
  stdout;
8627
8637
  exitOnCtrlC;
8628
- isDestroyed = false;
8638
+ _isDestroyed = false;
8629
8639
  nextRenderBuffer;
8630
8640
  currentRenderBuffer;
8631
8641
  _isRunning = false;
@@ -8831,6 +8841,9 @@ Captured output:
8831
8841
  }
8832
8842
  this.setupInput();
8833
8843
  }
8844
+ get isDestroyed() {
8845
+ return this._isDestroyed;
8846
+ }
8834
8847
  registerLifecyclePass(renderable) {
8835
8848
  this.lifecyclePasses.add(renderable);
8836
8849
  }
@@ -9194,7 +9207,7 @@ Captured output:
9194
9207
  return false;
9195
9208
  }
9196
9209
  takeMemorySnapshot() {
9197
- if (this.isDestroyed)
9210
+ if (this._isDestroyed)
9198
9211
  return;
9199
9212
  const memoryUsage = process.memoryUsage();
9200
9213
  this.lastMemorySnapshot = {
@@ -9227,7 +9240,7 @@ Captured output:
9227
9240
  }
9228
9241
  }
9229
9242
  handleResize(width, height) {
9230
- if (this.isDestroyed)
9243
+ if (this._isDestroyed)
9231
9244
  return;
9232
9245
  if (this._splitHeight > 0) {
9233
9246
  this.processResize(width, height);
@@ -9386,7 +9399,7 @@ Captured output:
9386
9399
  this.controlState = this._isRunning ? "auto_started" /* AUTO_STARTED */ : "idle" /* IDLE */;
9387
9400
  }
9388
9401
  internalStart() {
9389
- if (!this._isRunning && !this.isDestroyed) {
9402
+ if (!this._isRunning && !this._isDestroyed) {
9390
9403
  this._isRunning = true;
9391
9404
  if (this.memorySnapshotInterval > 0) {
9392
9405
  this.startMemorySnapshotTimer();
@@ -9406,7 +9419,7 @@ Captured output:
9406
9419
  this.internalStop();
9407
9420
  }
9408
9421
  internalStop() {
9409
- if (this.isRunning && !this.isDestroyed) {
9422
+ if (this.isRunning && !this._isDestroyed) {
9410
9423
  this._isRunning = false;
9411
9424
  if (this.memorySnapshotTimer) {
9412
9425
  clearInterval(this.memorySnapshotTimer);
@@ -9427,9 +9440,9 @@ Captured output:
9427
9440
  if (this.memorySnapshotTimer) {
9428
9441
  clearInterval(this.memorySnapshotTimer);
9429
9442
  }
9430
- if (this.isDestroyed)
9443
+ if (this._isDestroyed)
9431
9444
  return;
9432
- this.isDestroyed = true;
9445
+ this._isDestroyed = true;
9433
9446
  if (this.renderTimeout) {
9434
9447
  clearTimeout(this.renderTimeout);
9435
9448
  this.renderTimeout = null;
@@ -9462,7 +9475,7 @@ Captured output:
9462
9475
  this.loop();
9463
9476
  }
9464
9477
  async loop() {
9465
- if (this.rendering || this.isDestroyed)
9478
+ if (this.rendering || this._isDestroyed)
9466
9479
  return;
9467
9480
  this.rendering = true;
9468
9481
  if (this.renderTimeout) {
@@ -9506,17 +9519,17 @@ Captured output:
9506
9519
  postProcessFn(this.nextRenderBuffer, deltaTime);
9507
9520
  }
9508
9521
  this._console.renderToBuffer(this.nextRenderBuffer);
9509
- if (!this.isDestroyed) {
9522
+ if (!this._isDestroyed) {
9510
9523
  this.renderNative();
9511
- }
9512
- const overallFrameTime = performance.now() - overallStart;
9513
- this.lib.updateStats(this.rendererPtr, overallFrameTime, this.renderStats.fps, this.renderStats.frameCallbackTime);
9514
- if (this.gatherStats) {
9515
- this.collectStatSample(overallFrameTime);
9516
- }
9517
- if (this._isRunning) {
9518
- const delay = Math.max(1, this.targetFrameTime - Math.floor(overallFrameTime));
9519
- this.renderTimeout = setTimeout(() => this.loop(), delay);
9524
+ const overallFrameTime = performance.now() - overallStart;
9525
+ this.lib.updateStats(this.rendererPtr, overallFrameTime, this.renderStats.fps, this.renderStats.frameCallbackTime);
9526
+ if (this.gatherStats) {
9527
+ this.collectStatSample(overallFrameTime);
9528
+ }
9529
+ if (this._isRunning) {
9530
+ const delay = Math.max(1, this.targetFrameTime - Math.floor(overallFrameTime));
9531
+ this.renderTimeout = setTimeout(() => this.loop(), delay);
9532
+ }
9520
9533
  }
9521
9534
  this.rendering = false;
9522
9535
  if (this.immediateRerenderRequested) {
@@ -9677,5 +9690,5 @@ Captured output:
9677
9690
 
9678
9691
  export { __toESM, __commonJS, __export, __require, Edge, Gutter, exports_src, BorderChars, getBorderFromSides, getBorderSides, borderCharsToArray, BorderCharArrays, nonAlphanumericKeys, parseKeypress, ANSI, KeyEvent, PasteEvent, KeyHandler, InternalKeyHandler, RGBA, hexToRgb, rgbToHex, hsvToRgb, parseColor, fonts, measureText, getCharacterPositions, coordinateToCharacterIndex, renderFontToFrameBuffer, TextAttributes, DebugOverlayCorner, createTextAttributes, visualizeRenderableTree, isStyledText, StyledText, stringToStyledText, black, red, green, yellow, blue, magenta, cyan, white, brightBlack, brightRed, brightGreen, brightYellow, brightBlue, brightMagenta, brightCyan, brightWhite, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bold, italic, underline, strikethrough, dim, reverse, blink, fg, bg, t, SyntaxStyle, hastToStyledText, parseAlign, parseBoxSizing, parseDimension, parseDirection, parseDisplay, parseEdge, parseFlexDirection, parseGutter, parseJustify, parseLogLevel, parseMeasureMode, parseOverflow, parsePositionType, parseUnit, parseWrap, MouseParser, Selection, convertGlobalToLocalSelection, ASCIIFontSelectionHelper, envRegistry, registerEnvVar, generateEnvMarkdown, generateEnvColored, env, TextBuffer, LogLevel2 as LogLevel, setRenderLibPath, resolveRenderLib, OptimizedBuffer, h, isVNode, maybeMakeRenderable, wrapWithDelegates, instantiate, delegate, isValidPercentage, LayoutEvents, RenderableEvents, isRenderable, BaseRenderable, Renderable, RootRenderable, capture, ConsolePosition, TerminalConsole, getObjectsInViewport, MouseEvent, MouseButton, createCliRenderer, CliRenderEvents, CliRenderer };
9679
9692
 
9680
- //# debugId=0B29BE27CDCDF3A264756E2164756E21
9681
- //# sourceMappingURL=index-yd5hcdcm.js.map
9693
+ //# debugId=B65C4E4D90FC9D3564756E2164756E21
9694
+ //# sourceMappingURL=index-kvwmgj67.js.map