@opentui/core 0.6.4 → 0.6.5
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/Renderable.d.ts +18 -2
- package/{chunk-bun-qphgryjx.js → chunk-bun-2kxv0ysg.js} +56 -7
- package/{chunk-node-j1h89sfg.js.map → chunk-bun-2kxv0ysg.js.map} +7 -7
- package/{chunk-bun-e2gttx65.js → chunk-bun-gwy4vfr3.js} +6 -3
- package/{chunk-bun-e2gttx65.js.map → chunk-bun-gwy4vfr3.js.map} +2 -2
- package/{chunk-node-6rc18den.js → chunk-node-bjkm7vf5.js} +6 -3
- package/{chunk-node-6rc18den.js.map → chunk-node-bjkm7vf5.js.map} +2 -2
- package/{chunk-node-j1h89sfg.js → chunk-node-ekhpjemz.js} +56 -7
- package/{chunk-bun-qphgryjx.js.map → chunk-node-ekhpjemz.js.map} +7 -7
- package/index.bun.js +2 -2
- package/index.node.js +2 -2
- package/package.json +9 -9
- package/testing.bun.js +2 -2
- package/testing.js +2 -2
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
sceneSetEnum,
|
|
24
24
|
sceneGetEnum,
|
|
25
25
|
sceneSetFloat,
|
|
26
|
+
sceneGetFloat,
|
|
26
27
|
sceneSetValue,
|
|
27
28
|
sceneGetValue,
|
|
28
29
|
sceneSetDimension,
|
|
@@ -62,7 +63,7 @@ import {
|
|
|
62
63
|
PositionType2,
|
|
63
64
|
Unit2,
|
|
64
65
|
Wrap2
|
|
65
|
-
} from "./chunk-node-
|
|
66
|
+
} from "./chunk-node-bjkm7vf5.js";
|
|
66
67
|
|
|
67
68
|
// src/lib/border.ts
|
|
68
69
|
var VALID_BORDER_STYLES = ["single", "double", "rounded", "heavy"];
|
|
@@ -3342,7 +3343,7 @@ class SyntaxStyle2 {
|
|
|
3342
3343
|
static create(source) {
|
|
3343
3344
|
const owner = source?.resourceContext;
|
|
3344
3345
|
if (!owner)
|
|
3345
|
-
throw new Error("SyntaxStyle requires an explicit resource owner");
|
|
3346
|
+
throw new Error("SyntaxStyle requires an explicit resource owner: pass renderer.nativeScene, or a ResourceContext when there is no renderer");
|
|
3346
3347
|
owner.assertAlive();
|
|
3347
3348
|
const lib = owner.renderLib;
|
|
3348
3349
|
const handle = lib.createContextSyntaxStyle(owner.context);
|
|
@@ -10005,7 +10006,7 @@ class OptimizedBuffer2 {
|
|
|
10005
10006
|
static create(width, height, widthMethod, options) {
|
|
10006
10007
|
const owner = options?.owner?.resourceContext;
|
|
10007
10008
|
if (!owner)
|
|
10008
|
-
throw new Error("OptimizedBuffer requires an explicit resource owner");
|
|
10009
|
+
throw new Error("OptimizedBuffer requires an explicit resource owner: pass { owner: renderer.nativeScene }, or a ResourceContext when there is no renderer");
|
|
10009
10010
|
owner.assertAlive();
|
|
10010
10011
|
const { renderLib: lib, context } = owner;
|
|
10011
10012
|
const buffer = lib.createContextBuffer(context, {
|
|
@@ -11168,6 +11169,9 @@ class Renderable2 extends BaseRenderable2 {
|
|
|
11168
11169
|
yogaGetEnum(kind, fallback) {
|
|
11169
11170
|
return this.isFreed() ? fallback : sceneGetEnum(this._ctx.nativeScene, this, kind);
|
|
11170
11171
|
}
|
|
11172
|
+
yogaGetFloat(kind) {
|
|
11173
|
+
return this.isFreed() ? NaN : sceneGetFloat(this._ctx.nativeScene, this, kind);
|
|
11174
|
+
}
|
|
11171
11175
|
yogaSetFloat(kind, value) {
|
|
11172
11176
|
if (this.isFreed())
|
|
11173
11177
|
return;
|
|
@@ -11250,6 +11254,51 @@ class Renderable2 extends BaseRenderable2 {
|
|
|
11250
11254
|
getWidth() {
|
|
11251
11255
|
return this.yogaGetValue(YogaValueKind.Width, NATIVE_EDGE_NONE2);
|
|
11252
11256
|
}
|
|
11257
|
+
getFlexWrap() {
|
|
11258
|
+
return this.yogaGetEnum(YogaEnumKind.FlexWrap, Wrap2.NoWrap);
|
|
11259
|
+
}
|
|
11260
|
+
getAlignItems() {
|
|
11261
|
+
return this.yogaGetEnum(YogaEnumKind.AlignItems, Align2.Stretch);
|
|
11262
|
+
}
|
|
11263
|
+
getJustifyContent() {
|
|
11264
|
+
return this.yogaGetEnum(YogaEnumKind.JustifyContent, Justify2.FlexStart);
|
|
11265
|
+
}
|
|
11266
|
+
getAlignSelf() {
|
|
11267
|
+
return this.yogaGetEnum(YogaEnumKind.AlignSelf, Align2.Auto);
|
|
11268
|
+
}
|
|
11269
|
+
getPositionType() {
|
|
11270
|
+
return this.yogaGetEnum(YogaEnumKind.PositionType, PositionType2.Relative);
|
|
11271
|
+
}
|
|
11272
|
+
getFlexGrow() {
|
|
11273
|
+
return this.yogaGetFloat(YogaFloatKind.FlexGrow);
|
|
11274
|
+
}
|
|
11275
|
+
getFlexShrink() {
|
|
11276
|
+
return this.yogaGetFloat(YogaFloatKind.FlexShrink);
|
|
11277
|
+
}
|
|
11278
|
+
getFlexBasis() {
|
|
11279
|
+
return this.yogaGetValue(YogaValueKind.FlexBasis, NATIVE_EDGE_NONE2);
|
|
11280
|
+
}
|
|
11281
|
+
getHeight() {
|
|
11282
|
+
return this.yogaGetValue(YogaValueKind.Height, NATIVE_EDGE_NONE2);
|
|
11283
|
+
}
|
|
11284
|
+
getMinWidth() {
|
|
11285
|
+
return this.yogaGetValue(YogaValueKind.MinWidth, NATIVE_EDGE_NONE2);
|
|
11286
|
+
}
|
|
11287
|
+
getMinHeight() {
|
|
11288
|
+
return this.yogaGetValue(YogaValueKind.MinHeight, NATIVE_EDGE_NONE2);
|
|
11289
|
+
}
|
|
11290
|
+
getMaxWidth() {
|
|
11291
|
+
return this.yogaGetValue(YogaValueKind.MaxWidth, NATIVE_EDGE_NONE2);
|
|
11292
|
+
}
|
|
11293
|
+
getMaxHeight() {
|
|
11294
|
+
return this.yogaGetValue(YogaValueKind.MaxHeight, NATIVE_EDGE_NONE2);
|
|
11295
|
+
}
|
|
11296
|
+
getPadding(edge) {
|
|
11297
|
+
return this.yogaGetValue(YogaValueKind.Padding, edge);
|
|
11298
|
+
}
|
|
11299
|
+
getGap(gutter) {
|
|
11300
|
+
return this.yogaGetValue(YogaValueKind.Gap, gutter);
|
|
11301
|
+
}
|
|
11253
11302
|
setPositions(positions) {
|
|
11254
11303
|
const units = new Uint32Array(Edge2.Bottom + 1);
|
|
11255
11304
|
const values = new Float32Array(Edge2.Bottom + 1);
|
|
@@ -12767,7 +12816,7 @@ class TextBuffer2 {
|
|
|
12767
12816
|
static create(widthMethod, source) {
|
|
12768
12817
|
const owner = source?.resourceContext;
|
|
12769
12818
|
if (!owner)
|
|
12770
|
-
throw new Error("TextBuffer requires an explicit resource owner");
|
|
12819
|
+
throw new Error("TextBuffer requires an explicit resource owner: pass renderer.nativeScene, or a ResourceContext when there is no renderer");
|
|
12771
12820
|
owner.assertAlive();
|
|
12772
12821
|
const lib = owner.renderLib;
|
|
12773
12822
|
const handle = lib.createContextTextBuffer(owner.context, { widthMethod });
|
|
@@ -13223,7 +13272,7 @@ class EditBuffer2 extends EventEmitter5 {
|
|
|
13223
13272
|
static create(widthMethod, source) {
|
|
13224
13273
|
const owner = source?.resourceContext;
|
|
13225
13274
|
if (!owner)
|
|
13226
|
-
throw new Error("EditBuffer requires an explicit resource owner");
|
|
13275
|
+
throw new Error("EditBuffer requires an explicit resource owner: pass renderer.nativeScene, or a ResourceContext when there is no renderer");
|
|
13227
13276
|
owner.assertAlive();
|
|
13228
13277
|
const lib = owner.renderLib;
|
|
13229
13278
|
const handle = lib.createContextEditBuffer(owner.context, { widthMethod });
|
|
@@ -24887,5 +24936,5 @@ Captured external output:
|
|
|
24887
24936
|
|
|
24888
24937
|
export { isValidBorderStyle2, parseBorderStyle2, BorderChars2, getBorderFromSides2, getBorderSides2, borderCharsToArray2, BorderCharArrays2, KeyEvent2, PasteEvent2, KeyHandler2, InternalKeyHandler2, fonts2, measureText2, getCharacterPositions2, coordinateToCharacterIndex2, renderFontToFrameBuffer2, convertThemeToStyles2, SyntaxStyle2, 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, normalizeMarkdownLinkTarget, detectLinks2, acquireSessionBufferLease2, ResourceContext2, OptimizedBuffer2, h2, isVNode2, maybeMakeRenderable2, wrapWithDelegates2, instantiate2, delegate2, LayoutEvents2, RenderableEvents2, isRenderable2, BaseRenderable2, Renderable2, RootRenderable2, TextBuffer2, TextBufferView2, EditBuffer2, measureEditText2, EditorView2, Timeline2, engine2, getTimelineEngine2, createTimeline2, ANSI, BoxRenderable2, TextBufferRenderable2, CodeRenderable2, ImageLoadError2, ImageError2, imageInfo2, NativeImage2, NativeImagePool2, resolveImageRenderProtocol2, ImageRenderable2, isTextNodeRenderable2, TextNodeRenderable2, RootTextNodeRenderable2, TextRenderable2, NativeSession2, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingAction, buildKeyBindingsMap, capture2, ConsolePosition2, TerminalConsole2, EditBufferRenderableEvents2, isEditBufferRenderable2, EditBufferRenderable2, buildKittyKeyboardFlags2, MouseEvent2, MouseButton2, createCliRenderer2, CliRenderEvents2, RendererControlState2, CliRenderer2 };
|
|
24889
24938
|
|
|
24890
|
-
//# debugId=
|
|
24891
|
-
//# sourceMappingURL=chunk-node-
|
|
24939
|
+
//# debugId=1485B44ADCD1E90164756E2164756E21
|
|
24940
|
+
//# sourceMappingURL=chunk-node-ekhpjemz.js.map
|