@opentui/core 0.1.96 → 0.1.97
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 +1 -1
- package/buffer.d.ts +2 -0
- package/{index-dg6qsc3m.js → index-9y4vegye.js} +29 -4
- package/{index-dg6qsc3m.js.map → index-9y4vegye.js.map} +3 -3
- package/index-bzjr4q9g.js +411 -0
- package/index-bzjr4q9g.js.map +10 -0
- package/{index-vy1rm1x3.js → index-kgg0v67t.js} +14 -17
- package/{index-vy1rm1x3.js.map → index-kgg0v67t.js.map} +7 -7
- package/index.js +2 -2
- package/lib/border.d.ts +2 -0
- package/package.json +7 -7
- package/renderables/Box.d.ts +9 -0
- package/runtime-plugin-support.js +3 -3
- package/runtime-plugin.js +3 -3
- package/testing.js +7 -2
- package/testing.js.map +3 -3
- package/zig.d.ts +1 -1
- package/index-ahc2zd0v.js +0 -208
- package/index-ahc2zd0v.js.map +0 -10
package/3d.js
CHANGED
package/buffer.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export declare class OptimizedBuffer {
|
|
|
74
74
|
shouldFill?: boolean;
|
|
75
75
|
title?: string;
|
|
76
76
|
titleAlignment?: "left" | "center" | "right";
|
|
77
|
+
bottomTitle?: string;
|
|
78
|
+
bottomTitleAlignment?: "left" | "center" | "right";
|
|
77
79
|
}): void;
|
|
78
80
|
pushScissorRect(x: number, y: number, width: number, height: number): void;
|
|
79
81
|
popScissorRect(): void;
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
white,
|
|
168
168
|
wrapWithDelegates,
|
|
169
169
|
yellow
|
|
170
|
-
} from "./index-
|
|
170
|
+
} from "./index-kgg0v67t.js";
|
|
171
171
|
|
|
172
172
|
// src/index.ts
|
|
173
173
|
var exports_src2 = {};
|
|
@@ -3526,6 +3526,8 @@ class BoxRenderable extends Renderable {
|
|
|
3526
3526
|
shouldFill;
|
|
3527
3527
|
_title;
|
|
3528
3528
|
_titleAlignment;
|
|
3529
|
+
_bottomTitle;
|
|
3530
|
+
_bottomTitleAlignment;
|
|
3529
3531
|
_defaultOptions = {
|
|
3530
3532
|
backgroundColor: "transparent",
|
|
3531
3533
|
borderStyle: "single",
|
|
@@ -3533,6 +3535,7 @@ class BoxRenderable extends Renderable {
|
|
|
3533
3535
|
borderColor: "#FFFFFF",
|
|
3534
3536
|
shouldFill: true,
|
|
3535
3537
|
titleAlignment: "left",
|
|
3538
|
+
bottomTitleAlignment: "left",
|
|
3536
3539
|
focusedBorderColor: "#00AAFF"
|
|
3537
3540
|
};
|
|
3538
3541
|
constructor(ctx, options) {
|
|
@@ -3554,6 +3557,8 @@ class BoxRenderable extends Renderable {
|
|
|
3554
3557
|
this.shouldFill = options.shouldFill ?? this._defaultOptions.shouldFill;
|
|
3555
3558
|
this._title = options.title;
|
|
3556
3559
|
this._titleAlignment = options.titleAlignment || this._defaultOptions.titleAlignment;
|
|
3560
|
+
this._bottomTitle = options.bottomTitle;
|
|
3561
|
+
this._bottomTitleAlignment = options.bottomTitleAlignment || this._defaultOptions.bottomTitleAlignment;
|
|
3557
3562
|
this.applyYogaBorders();
|
|
3558
3563
|
const hasInitialGapProps = options.gap !== undefined || options.rowGap !== undefined || options.columnGap !== undefined;
|
|
3559
3564
|
if (hasInitialGapProps) {
|
|
@@ -3650,6 +3655,24 @@ class BoxRenderable extends Renderable {
|
|
|
3650
3655
|
this.requestRender();
|
|
3651
3656
|
}
|
|
3652
3657
|
}
|
|
3658
|
+
get bottomTitle() {
|
|
3659
|
+
return this._bottomTitle;
|
|
3660
|
+
}
|
|
3661
|
+
set bottomTitle(value) {
|
|
3662
|
+
if (this._bottomTitle !== value) {
|
|
3663
|
+
this._bottomTitle = value;
|
|
3664
|
+
this.requestRender();
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
get bottomTitleAlignment() {
|
|
3668
|
+
return this._bottomTitleAlignment;
|
|
3669
|
+
}
|
|
3670
|
+
set bottomTitleAlignment(value) {
|
|
3671
|
+
if (this._bottomTitleAlignment !== value) {
|
|
3672
|
+
this._bottomTitleAlignment = value;
|
|
3673
|
+
this.requestRender();
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3653
3676
|
renderSelf(buffer) {
|
|
3654
3677
|
const currentBorderColor = this._focused ? this._focusedBorderColor : this._borderColor;
|
|
3655
3678
|
buffer.drawBox({
|
|
@@ -3664,7 +3687,9 @@ class BoxRenderable extends Renderable {
|
|
|
3664
3687
|
backgroundColor: this._backgroundColor,
|
|
3665
3688
|
shouldFill: this.shouldFill,
|
|
3666
3689
|
title: this._title,
|
|
3667
|
-
titleAlignment: this._titleAlignment
|
|
3690
|
+
titleAlignment: this._titleAlignment,
|
|
3691
|
+
bottomTitle: this._bottomTitle,
|
|
3692
|
+
bottomTitleAlignment: this._bottomTitleAlignment
|
|
3668
3693
|
});
|
|
3669
3694
|
}
|
|
3670
3695
|
getScissorRect() {
|
|
@@ -12044,5 +12069,5 @@ class TimeToFirstDrawRenderable extends Renderable {
|
|
|
12044
12069
|
}
|
|
12045
12070
|
export { TextBufferView, convertThemeToStyles, SyntaxStyle, DistortionEffect, VignetteEffect, CloudsEffect, FlamesEffect, CRTRollingBarEffect, RainbowTextEffect, applyScanlines, applyInvert, applyNoise, applyChromaticAberration, applyAsciiArt, applyBrightness, applyGain, applySaturation, BloomEffect, SEPIA_MATRIX, PROTANOPIA_SIM_MATRIX, DEUTERANOPIA_SIM_MATRIX, TRITANOPIA_SIM_MATRIX, ACHROMATOPSIA_MATRIX, PROTANOPIA_COMP_MATRIX, DEUTERANOPIA_COMP_MATRIX, TRITANOPIA_COMP_MATRIX, TECHNICOLOR_MATRIX, SOLARIZATION_MATRIX, SYNTHWAVE_MATRIX, GREENSCALE_MATRIX, GRAYSCALE_MATRIX, INVERT_MATRIX, Timeline, engine, createTimeline, SlotRegistry, createSlotRegistry, createCoreSlotRegistry, registerCorePlugin, resolveCoreSlot, SlotRenderable, NativeSpanFeed, FrameBufferRenderable, ASCIIFontRenderable, BoxRenderable, TextBufferRenderable, CodeRenderable, isTextNodeRenderable, TextNodeRenderable, RootTextNodeRenderable, Generic, Box, Text, ASCIIFont, Input, Select, TabSelect, FrameBuffer, Code, ScrollBox, vstyles, VRenderable, LineNumberRenderable, TextRenderable, DiffRenderable, TextareaRenderable, InputRenderableEvents, InputRenderable, TextTableRenderable, MarkdownRenderable, SliderRenderable, ScrollBarRenderable, ArrowRenderable, ScrollBoxRenderable, SelectRenderableEvents, SelectRenderable, TabSelectRenderableEvents, TabSelectRenderable, TimeToFirstDrawRenderable, exports_src2 as exports_src };
|
|
12046
12071
|
|
|
12047
|
-
//# debugId=
|
|
12048
|
-
//# sourceMappingURL=index-
|
|
12072
|
+
//# debugId=56EDE40183F8E45364756E2164756E21
|
|
12073
|
+
//# sourceMappingURL=index-9y4vegye.js.map
|