@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.
- package/{chunk-bun-j2z63cdy.js → chunk-bun-3qwevekk.js} +5 -5
- package/{chunk-bun-j2z63cdy.js.map → chunk-bun-3qwevekk.js.map} +3 -3
- package/{chunk-bun-sjw2d9bq.js → chunk-bun-6rvkxs1v.js} +16 -10
- package/{chunk-bun-sjw2d9bq.js.map → chunk-bun-6rvkxs1v.js.map} +4 -4
- package/{chunk-node-wp7ct2m6.js → chunk-node-f3yste6w.js} +5 -5
- package/{chunk-node-wp7ct2m6.js.map → chunk-node-f3yste6w.js.map} +3 -3
- package/{chunk-node-80p7e6t6.js → chunk-node-tfvyz31s.js} +16 -10
- package/{chunk-node-80p7e6t6.js.map → chunk-node-tfvyz31s.js.map} +4 -4
- package/index.bun.js +31 -26
- package/index.bun.js.map +4 -4
- package/index.node.js +31 -26
- package/index.node.js.map +4 -4
- package/package.json +9 -9
- package/renderables/Diff.d.ts +3 -1
- package/renderables/LineNumberRenderable.d.ts +1 -1
- package/runtime-plugin-support-configure.d.ts +1 -1
- package/runtime-plugin-support-configure.js +11 -0
- package/runtime-plugin-support-configure.js.map +1 -1
- package/runtime-plugin-support.d.ts +1 -1
- package/runtime-plugin-support.js.map +1 -1
- package/runtime-plugin.d.ts +2 -0
- package/runtime-plugin.js +18 -3
- package/runtime-plugin.js.map +1 -1
- package/testing.bun.js +2 -2
- package/testing.js +2 -2
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
|
@@ -11555,6 +11555,8 @@ class OptimizedBuffer2 {
|
|
|
11555
11555
|
}
|
|
11556
11556
|
fillRect(x, y, width, height, bg) {
|
|
11557
11557
|
this.guard();
|
|
11558
|
+
if (width <= 0 || height <= 0)
|
|
11559
|
+
return;
|
|
11558
11560
|
this.lib.bufferFillRect(this.bufferPtr, x, y, width, height, bg);
|
|
11559
11561
|
}
|
|
11560
11562
|
colorMatrix(matrix, cellMask, strength = 1, target = 3 /* Both */) {
|
|
@@ -11614,6 +11616,8 @@ class OptimizedBuffer2 {
|
|
|
11614
11616
|
}
|
|
11615
11617
|
drawPackedBuffer(data, dataLen, posX, posY, terminalWidthCells, terminalHeightCells) {
|
|
11616
11618
|
this.guard();
|
|
11619
|
+
if (dataLen <= 0 || terminalWidthCells <= 0 || terminalHeightCells <= 0)
|
|
11620
|
+
return;
|
|
11617
11621
|
this.lib.bufferDrawPackedBuffer(this.bufferPtr, typeof data === "number" || typeof data === "bigint" ? toPointer(data) : data, dataLen, posX, posY, terminalWidthCells, terminalHeightCells);
|
|
11618
11622
|
}
|
|
11619
11623
|
drawGrayscaleBuffer(posX, posY, intensities, srcWidth, srcHeight, fg = null, bg = null) {
|
|
@@ -11635,6 +11639,8 @@ class OptimizedBuffer2 {
|
|
|
11635
11639
|
}
|
|
11636
11640
|
drawBox(options) {
|
|
11637
11641
|
this.guard();
|
|
11642
|
+
if (options.width <= 0 || options.height <= 0)
|
|
11643
|
+
return;
|
|
11638
11644
|
const style = parseBorderStyle2(options.borderStyle, "single");
|
|
11639
11645
|
const borderChars = options.customBorderChars ?? BorderCharArrays2[style];
|
|
11640
11646
|
const packedOptions = packDrawOptions(options.border, options.shouldFill ?? false, options.titleAlignment || "left", options.bottomTitleAlignment || "left");
|
|
@@ -11642,7 +11648,7 @@ class OptimizedBuffer2 {
|
|
|
11642
11648
|
}
|
|
11643
11649
|
pushScissorRect(x, y, width, height) {
|
|
11644
11650
|
this.guard();
|
|
11645
|
-
this.lib.bufferPushScissorRect(this.bufferPtr, x, y, width, height);
|
|
11651
|
+
this.lib.bufferPushScissorRect(this.bufferPtr, x, y, Math.max(0, width), Math.max(0, height));
|
|
11646
11652
|
}
|
|
11647
11653
|
popScissorRect() {
|
|
11648
11654
|
this.guard();
|
|
@@ -14025,19 +14031,19 @@ function getOpenTUILib(libPath) {
|
|
|
14025
14031
|
returns: "u32"
|
|
14026
14032
|
},
|
|
14027
14033
|
bufferDrawText: {
|
|
14028
|
-
args: ["u32", "ptr", "u32", "
|
|
14034
|
+
args: ["u32", "ptr", "u32", "i32", "i32", "buffer", "ptr", "u32"],
|
|
14029
14035
|
returns: "void"
|
|
14030
14036
|
},
|
|
14031
14037
|
bufferSetCellWithAlphaBlending: {
|
|
14032
|
-
args: ["u32", "
|
|
14038
|
+
args: ["u32", "i32", "i32", "u32", "buffer", "buffer", "u32"],
|
|
14033
14039
|
returns: "void"
|
|
14034
14040
|
},
|
|
14035
14041
|
bufferSetCell: {
|
|
14036
|
-
args: ["u32", "
|
|
14042
|
+
args: ["u32", "i32", "i32", "u32", "buffer", "buffer", "u32"],
|
|
14037
14043
|
returns: "void"
|
|
14038
14044
|
},
|
|
14039
14045
|
bufferFillRect: {
|
|
14040
|
-
args: ["u32", "
|
|
14046
|
+
args: ["u32", "i32", "i32", "u32", "u32", "buffer"],
|
|
14041
14047
|
returns: "void"
|
|
14042
14048
|
},
|
|
14043
14049
|
bufferColorMatrix: {
|
|
@@ -14185,7 +14191,7 @@ function getOpenTUILib(libPath) {
|
|
|
14185
14191
|
returns: "bool"
|
|
14186
14192
|
},
|
|
14187
14193
|
bufferDrawSuperSampleBuffer: {
|
|
14188
|
-
args: ["u32", "
|
|
14194
|
+
args: ["u32", "i32", "i32", "ptr", "u32", "u8", "u32"],
|
|
14189
14195
|
returns: "void"
|
|
14190
14196
|
},
|
|
14191
14197
|
bufferDrawImage: {
|
|
@@ -14193,7 +14199,7 @@ function getOpenTUILib(libPath) {
|
|
|
14193
14199
|
returns: "u8"
|
|
14194
14200
|
},
|
|
14195
14201
|
bufferDrawPackedBuffer: {
|
|
14196
|
-
args: ["u32", "ptr", "u32", "
|
|
14202
|
+
args: ["u32", "ptr", "u32", "i32", "i32", "u32", "u32"],
|
|
14197
14203
|
returns: "void"
|
|
14198
14204
|
},
|
|
14199
14205
|
bufferDrawGrayscaleBuffer: {
|
|
@@ -14986,7 +14992,7 @@ function getOpenTUILib(libPath) {
|
|
|
14986
14992
|
returns: "void"
|
|
14987
14993
|
},
|
|
14988
14994
|
bufferDrawChar: {
|
|
14989
|
-
args: ["u32", "u32", "
|
|
14995
|
+
args: ["u32", "u32", "i32", "i32", "buffer", "buffer", "u32"],
|
|
14990
14996
|
returns: "void"
|
|
14991
14997
|
},
|
|
14992
14998
|
yogaConfigCreate: {
|
|
@@ -18852,5 +18858,5 @@ var yoga_default = Yoga;
|
|
|
18852
18858
|
|
|
18853
18859
|
export { toArrayBuffer, singleton, envRegistry2, registerEnvVar2, clearEnvCache2, generateEnvMarkdown2, generateEnvColored2, env2, sleep, stringWidth, resolveBundledFilePath2, DEFAULT_FOREGROUND_RGB2, DEFAULT_BACKGROUND_RGB2, normalizeIndexedColorIndex2, ansi256IndexToRgb2, RGBA2, normalizeColorValue2, hexToRgb2, rgbToHex2, hsvToRgb2, parseColor2, isValidBorderStyle2, parseBorderStyle2, BorderChars2, getBorderFromSides2, getBorderSides2, borderCharsToArray2, BorderCharArrays2, KeyEvent2, PasteEvent2, KeyHandler2, InternalKeyHandler2, fonts2, measureText2, getCharacterPositions2, coordinateToCharacterIndex2, renderFontToFrameBuffer2, TextAttributes2, ATTRIBUTE_BASE_BITS2, ATTRIBUTE_BASE_MASK2, getBaseAttributes2, DebugOverlayCorner2, TargetChannel2, createTextAttributes2, attributesWithLink2, getLinkId2, visualizeRenderableTree2, isStyledText2, StyledText2, stringToStyledText2, black2, red2, green2, yellow2, blue2, magenta2, cyan2, white2, brightBlack2, brightRed2, brightGreen2, brightYellow2, brightBlue2, brightMagenta2, brightCyan2, brightWhite2, bgBlack2, bgRed2, bgGreen2, bgYellow2, bgBlue2, bgMagenta2, bgCyan2, bgWhite2, bold2, italic2, underline2, strikethrough2, dim2, reverse2, blink2, fg2, bg2, link2, t2, hastToStyledText2, SystemClock2, nonAlphanumericKeys2, terminalNamedSingleStrokeKeys2, parseKeypress2, LinearScrollAccel2, MacOSScrollAccel2, parseAlign2, parseAlignItems2, parseBoxSizing2, parseDimension2, parseDirection2, parseDisplay2, parseEdge2, parseFlexDirection2, parseGutter2, parseJustify2, parseLogLevel2, parseMeasureMode2, parseOverflow2, parsePositionType2, parseUnit2, parseWrap2, MouseParser2, Selection2, convertGlobalToLocalSelection2, ASCIIFontSelectionHelper2, StdinParser2, addDefaultParsers2, TreeSitterClient2, treeSitterToTextChunks2, treeSitterToStyledText2, DataPathsManager2, getDataPaths2, extensionToFiletype2, basenameToFiletype2, extToFiletype2, pathToFiletype2, infoStringToFiletype2, getTreeSitterClient2, destroyTreeSitterClient2, ExtmarksController2, createExtmarksController2, TerminalPalette2, createTerminalPalette2, normalizeTerminalPalette2, buildTerminalPaletteSignature2, decodePasteBytes2, stripAnsiSequences2, createHostClipboard2, createClipboard2, ClipboardTarget2, createRendererClipboardAdapter2, Clipboard2, normalizeMarkdownLinkTarget, detectLinks2, OptimizedBuffer2, TextBuffer2, SpanInfoStruct, NativeAudioStreamFormat2, NativeAudioStreamState2, NativeAudioStreamStateNames, NativeAudioStreamCloseReason2, NativeAudioStreamState3, NativeAudioStreamCloseReason3, NativeAudioStreamFormat3, MAX_LINK_URL_BYTES2, NativeClipboardOperationStatus2, NativeClipboardStartStatus2, NativeClipboardCancelStatus2, NativeClipboardCopyStatus2, NativeClipboardDestroyStatus2, NativeClipboardShutdownStatus2, LogLevel2, NativeMeasureTargetKind2, setRenderLibPath2, resolveRenderLib2, Align2, BoxSizing2, Dimension2, Direction2, Display2, Edge2, Errata2, ExperimentalFeature2, FlexDirection2, Gutter2, Justify2, LogLevel3, MeasureMode2, NodeType2, Overflow2, PositionType2, Unit2, Wrap2, ALIGN_AUTO2, ALIGN_FLEX_START2, ALIGN_CENTER2, ALIGN_FLEX_END2, ALIGN_STRETCH2, ALIGN_BASELINE2, ALIGN_SPACE_BETWEEN2, ALIGN_SPACE_AROUND2, ALIGN_SPACE_EVENLY2, BOX_SIZING_BORDER_BOX2, BOX_SIZING_CONTENT_BOX2, DIMENSION_WIDTH2, DIMENSION_HEIGHT2, DIRECTION_INHERIT2, DIRECTION_LTR2, DIRECTION_RTL2, DISPLAY_FLEX2, DISPLAY_NONE2, DISPLAY_CONTENTS2, EDGE_LEFT2, EDGE_TOP2, EDGE_RIGHT2, EDGE_BOTTOM2, EDGE_START2, EDGE_END2, EDGE_HORIZONTAL2, EDGE_VERTICAL2, EDGE_ALL2, ERRATA_NONE2, ERRATA_STRETCH_FLEX_BASIS2, ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING2, ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE2, ERRATA_ALL2, ERRATA_CLASSIC2, EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS2, FLEX_DIRECTION_COLUMN2, FLEX_DIRECTION_COLUMN_REVERSE2, FLEX_DIRECTION_ROW2, FLEX_DIRECTION_ROW_REVERSE2, GUTTER_COLUMN2, GUTTER_ROW2, GUTTER_ALL2, JUSTIFY_FLEX_START2, JUSTIFY_CENTER2, JUSTIFY_FLEX_END2, JUSTIFY_SPACE_BETWEEN2, JUSTIFY_SPACE_AROUND2, JUSTIFY_SPACE_EVENLY2, LOG_LEVEL_ERROR2, LOG_LEVEL_WARN2, LOG_LEVEL_INFO2, LOG_LEVEL_DEBUG2, LOG_LEVEL_VERBOSE2, LOG_LEVEL_FATAL2, MEASURE_MODE_UNDEFINED2, MEASURE_MODE_EXACTLY2, MEASURE_MODE_AT_MOST2, NODE_TYPE_DEFAULT2, NODE_TYPE_TEXT2, OVERFLOW_VISIBLE2, OVERFLOW_HIDDEN2, OVERFLOW_SCROLL2, POSITION_TYPE_STATIC2, POSITION_TYPE_RELATIVE2, POSITION_TYPE_ABSOLUTE2, UNIT_UNDEFINED2, UNIT_POINT2, UNIT_PERCENT2, UNIT_AUTO2, WRAP_NO_WRAP2, WRAP_WRAP2, WRAP_WRAP_REVERSE2, Config2, Node2, exports_yoga, yoga_default };
|
|
18854
18860
|
|
|
18855
|
-
//# debugId=
|
|
18856
|
-
//# sourceMappingURL=chunk-bun-
|
|
18861
|
+
//# debugId=0D2EB3ECF5F1840764756E2164756E21
|
|
18862
|
+
//# sourceMappingURL=chunk-bun-6rvkxs1v.js.map
|