@opentui/core 0.5.14 → 0.5.16

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.
@@ -42,7 +42,7 @@ import {
42
42
  NativeMeasureTargetKind2,
43
43
  resolveRenderLib2,
44
44
  yoga_default
45
- } from "./chunk-bun-sjw2d9bq.js";
45
+ } from "./chunk-bun-6rvkxs1v.js";
46
46
 
47
47
  // src/syntax-style.ts
48
48
  function convertThemeToStyles2(theme) {
@@ -7701,14 +7701,14 @@ Captured external output:
7701
7701
  this.capturedRenderable = renderable;
7702
7702
  }
7703
7703
  addToHitGrid(x, y, width, height, id) {
7704
- if (!this._useMouse)
7704
+ if (!this._useMouse || width <= 0 || height <= 0)
7705
7705
  return;
7706
7706
  if (id !== this.capturedRenderable?.num) {
7707
7707
  this.lib.addToHitGrid(this.rendererPtr, x, y, width, height, id);
7708
7708
  }
7709
7709
  }
7710
7710
  pushHitGridScissorRect(x, y, width, height) {
7711
- this.lib.hitGridPushScissorRect(this.rendererPtr, x, y, width, height);
7711
+ this.lib.hitGridPushScissorRect(this.rendererPtr, x, y, Math.max(0, width), Math.max(0, height));
7712
7712
  }
7713
7713
  popHitGridScissorRect() {
7714
7714
  this.lib.hitGridPopScissorRect(this.rendererPtr);
@@ -10527,5 +10527,5 @@ Captured external output:
10527
10527
 
10528
10528
  export { convertThemeToStyles2, SyntaxStyle2, h2, isVNode2, maybeMakeRenderable2, wrapWithDelegates2, instantiate2, delegate2, LayoutEvents2, RenderableEvents2, isRenderable2, BaseRenderable2, Renderable2, RootRenderable2, TextBufferView2, EditBuffer2, EditorView2, ANSI, BoxRenderable2, TextBufferRenderable2, CodeRenderable2, isTextNodeRenderable2, TextNodeRenderable2, RootTextNodeRenderable2, TextRenderable2, NativeSpanFeed2, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingAction, buildKeyBindingsMap, capture2, ConsolePosition2, TerminalConsole2, getObjectsInViewport, EditBufferRenderableEvents2, isEditBufferRenderable2, EditBufferRenderable2, buildKittyKeyboardFlags2, MouseEvent2, MouseButton2, createCliRenderer2, CliRenderEvents2, RendererControlState2, CliRenderer2 };
10529
10529
 
10530
- //# debugId=4E73883D8730554464756E2164756E21
10531
- //# sourceMappingURL=chunk-bun-j2z63cdy.js.map
10530
+ //# debugId=B1417C68EF4B2E1C64756E2164756E21
10531
+ //# sourceMappingURL=chunk-bun-3qwevekk.js.map