@opentui/core 0.5.13 → 0.5.15
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-awdjbppg.js → chunk-bun-3qwevekk.js} +25 -12
- package/{chunk-bun-awdjbppg.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-fz19wge8.js → chunk-node-f3yste6w.js} +25 -12
- package/{chunk-node-fz19wge8.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/renderer.d.ts +2 -0
- 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
|
@@ -11537,6 +11537,8 @@ class OptimizedBuffer2 {
|
|
|
11537
11537
|
}
|
|
11538
11538
|
fillRect(x, y, width, height, bg) {
|
|
11539
11539
|
this.guard();
|
|
11540
|
+
if (width <= 0 || height <= 0)
|
|
11541
|
+
return;
|
|
11540
11542
|
this.lib.bufferFillRect(this.bufferPtr, x, y, width, height, bg);
|
|
11541
11543
|
}
|
|
11542
11544
|
colorMatrix(matrix, cellMask, strength = 1, target = 3 /* Both */) {
|
|
@@ -11596,6 +11598,8 @@ class OptimizedBuffer2 {
|
|
|
11596
11598
|
}
|
|
11597
11599
|
drawPackedBuffer(data, dataLen, posX, posY, terminalWidthCells, terminalHeightCells) {
|
|
11598
11600
|
this.guard();
|
|
11601
|
+
if (dataLen <= 0 || terminalWidthCells <= 0 || terminalHeightCells <= 0)
|
|
11602
|
+
return;
|
|
11599
11603
|
this.lib.bufferDrawPackedBuffer(this.bufferPtr, typeof data === "number" || typeof data === "bigint" ? toPointer(data) : data, dataLen, posX, posY, terminalWidthCells, terminalHeightCells);
|
|
11600
11604
|
}
|
|
11601
11605
|
drawGrayscaleBuffer(posX, posY, intensities, srcWidth, srcHeight, fg = null, bg = null) {
|
|
@@ -11617,6 +11621,8 @@ class OptimizedBuffer2 {
|
|
|
11617
11621
|
}
|
|
11618
11622
|
drawBox(options) {
|
|
11619
11623
|
this.guard();
|
|
11624
|
+
if (options.width <= 0 || options.height <= 0)
|
|
11625
|
+
return;
|
|
11620
11626
|
const style = parseBorderStyle2(options.borderStyle, "single");
|
|
11621
11627
|
const borderChars = options.customBorderChars ?? BorderCharArrays2[style];
|
|
11622
11628
|
const packedOptions = packDrawOptions(options.border, options.shouldFill ?? false, options.titleAlignment || "left", options.bottomTitleAlignment || "left");
|
|
@@ -11624,7 +11630,7 @@ class OptimizedBuffer2 {
|
|
|
11624
11630
|
}
|
|
11625
11631
|
pushScissorRect(x, y, width, height) {
|
|
11626
11632
|
this.guard();
|
|
11627
|
-
this.lib.bufferPushScissorRect(this.bufferPtr, x, y, width, height);
|
|
11633
|
+
this.lib.bufferPushScissorRect(this.bufferPtr, x, y, Math.max(0, width), Math.max(0, height));
|
|
11628
11634
|
}
|
|
11629
11635
|
popScissorRect() {
|
|
11630
11636
|
this.guard();
|
|
@@ -14007,19 +14013,19 @@ function getOpenTUILib(libPath) {
|
|
|
14007
14013
|
returns: "u32"
|
|
14008
14014
|
},
|
|
14009
14015
|
bufferDrawText: {
|
|
14010
|
-
args: ["u32", "ptr", "u32", "
|
|
14016
|
+
args: ["u32", "ptr", "u32", "i32", "i32", "buffer", "ptr", "u32"],
|
|
14011
14017
|
returns: "void"
|
|
14012
14018
|
},
|
|
14013
14019
|
bufferSetCellWithAlphaBlending: {
|
|
14014
|
-
args: ["u32", "
|
|
14020
|
+
args: ["u32", "i32", "i32", "u32", "buffer", "buffer", "u32"],
|
|
14015
14021
|
returns: "void"
|
|
14016
14022
|
},
|
|
14017
14023
|
bufferSetCell: {
|
|
14018
|
-
args: ["u32", "
|
|
14024
|
+
args: ["u32", "i32", "i32", "u32", "buffer", "buffer", "u32"],
|
|
14019
14025
|
returns: "void"
|
|
14020
14026
|
},
|
|
14021
14027
|
bufferFillRect: {
|
|
14022
|
-
args: ["u32", "
|
|
14028
|
+
args: ["u32", "i32", "i32", "u32", "u32", "buffer"],
|
|
14023
14029
|
returns: "void"
|
|
14024
14030
|
},
|
|
14025
14031
|
bufferColorMatrix: {
|
|
@@ -14167,7 +14173,7 @@ function getOpenTUILib(libPath) {
|
|
|
14167
14173
|
returns: "bool"
|
|
14168
14174
|
},
|
|
14169
14175
|
bufferDrawSuperSampleBuffer: {
|
|
14170
|
-
args: ["u32", "
|
|
14176
|
+
args: ["u32", "i32", "i32", "ptr", "u32", "u8", "u32"],
|
|
14171
14177
|
returns: "void"
|
|
14172
14178
|
},
|
|
14173
14179
|
bufferDrawImage: {
|
|
@@ -14175,7 +14181,7 @@ function getOpenTUILib(libPath) {
|
|
|
14175
14181
|
returns: "u8"
|
|
14176
14182
|
},
|
|
14177
14183
|
bufferDrawPackedBuffer: {
|
|
14178
|
-
args: ["u32", "ptr", "u32", "
|
|
14184
|
+
args: ["u32", "ptr", "u32", "i32", "i32", "u32", "u32"],
|
|
14179
14185
|
returns: "void"
|
|
14180
14186
|
},
|
|
14181
14187
|
bufferDrawGrayscaleBuffer: {
|
|
@@ -14968,7 +14974,7 @@ function getOpenTUILib(libPath) {
|
|
|
14968
14974
|
returns: "void"
|
|
14969
14975
|
},
|
|
14970
14976
|
bufferDrawChar: {
|
|
14971
|
-
args: ["u32", "u32", "
|
|
14977
|
+
args: ["u32", "u32", "i32", "i32", "buffer", "buffer", "u32"],
|
|
14972
14978
|
returns: "void"
|
|
14973
14979
|
},
|
|
14974
14980
|
yogaConfigCreate: {
|
|
@@ -18834,5 +18840,5 @@ var yoga_default = Yoga;
|
|
|
18834
18840
|
|
|
18835
18841
|
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 };
|
|
18836
18842
|
|
|
18837
|
-
//# debugId=
|
|
18838
|
-
//# sourceMappingURL=chunk-node-
|
|
18843
|
+
//# debugId=5554968FC48F44C564756E2164756E21
|
|
18844
|
+
//# sourceMappingURL=chunk-node-tfvyz31s.js.map
|