@opentui/core 0.1.22 → 0.1.23
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/Renderable.d.ts +1 -0
- package/{index-443j38eh.js → index-a6ydv6yb.js} +10 -2
- package/{index-443j38eh.js.map → index-a6ydv6yb.js.map} +3 -3
- package/index.js +104 -2
- package/index.js.map +3 -3
- package/package.json +7 -7
- package/renderables/ScrollBox.d.ts +16 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.23",
|
|
8
8
|
"description": "OpenTUI is a TypeScript library for building terminal user interfaces (TUIs)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"bun-webgpu": "0.1.3",
|
|
39
39
|
"planck": "^1.4.2",
|
|
40
40
|
"three": "0.177.0",
|
|
41
|
-
"@opentui/core-darwin-x64": "0.1.
|
|
42
|
-
"@opentui/core-darwin-arm64": "0.1.
|
|
43
|
-
"@opentui/core-linux-x64": "0.1.
|
|
44
|
-
"@opentui/core-linux-arm64": "0.1.
|
|
45
|
-
"@opentui/core-win32-x64": "0.1.
|
|
46
|
-
"@opentui/core-win32-arm64": "0.1.
|
|
41
|
+
"@opentui/core-darwin-x64": "0.1.23",
|
|
42
|
+
"@opentui/core-darwin-arm64": "0.1.23",
|
|
43
|
+
"@opentui/core-linux-x64": "0.1.23",
|
|
44
|
+
"@opentui/core-linux-arm64": "0.1.23",
|
|
45
|
+
"@opentui/core-win32-x64": "0.1.23",
|
|
46
|
+
"@opentui/core-win32-arm64": "0.1.23"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -18,6 +18,8 @@ export interface ScrollBoxOptions extends BoxOptions<ScrollBoxRenderable> {
|
|
|
18
18
|
scrollbarOptions?: Omit<ScrollBarOptions, "orientation">;
|
|
19
19
|
verticalScrollbarOptions?: Omit<ScrollBarOptions, "orientation">;
|
|
20
20
|
horizontalScrollbarOptions?: Omit<ScrollBarOptions, "orientation">;
|
|
21
|
+
stickyScroll?: boolean;
|
|
22
|
+
stickyStart?: "bottom" | "top" | "left" | "right";
|
|
21
23
|
}
|
|
22
24
|
export declare class ScrollBoxRenderable extends BoxRenderable {
|
|
23
25
|
static idCounter: number;
|
|
@@ -40,13 +42,26 @@ export declare class ScrollBoxRenderable extends BoxRenderable {
|
|
|
40
42
|
private cachedAutoScrollSpeed;
|
|
41
43
|
private autoScrollAccumulatorX;
|
|
42
44
|
private autoScrollAccumulatorY;
|
|
45
|
+
private _stickyScroll;
|
|
46
|
+
private _stickyScrollTop;
|
|
47
|
+
private _stickyScrollBottom;
|
|
48
|
+
private _stickyScrollLeft;
|
|
49
|
+
private _stickyScrollRight;
|
|
50
|
+
private _stickyStart?;
|
|
51
|
+
private _hasManualScroll;
|
|
52
|
+
get stickyScroll(): boolean;
|
|
53
|
+
set stickyScroll(value: boolean);
|
|
54
|
+
get stickyStart(): "bottom" | "top" | "left" | "right" | undefined;
|
|
55
|
+
set stickyStart(value: "bottom" | "top" | "left" | "right" | undefined);
|
|
43
56
|
get scrollTop(): number;
|
|
44
57
|
set scrollTop(value: number);
|
|
45
58
|
get scrollLeft(): number;
|
|
46
59
|
set scrollLeft(value: number);
|
|
47
60
|
get scrollWidth(): number;
|
|
48
61
|
get scrollHeight(): number;
|
|
49
|
-
|
|
62
|
+
private updateStickyState;
|
|
63
|
+
private applyStickyStart;
|
|
64
|
+
constructor(ctx: RenderContext, { wrapperOptions, viewportOptions, contentOptions, rootOptions, scrollbarOptions, verticalScrollbarOptions, horizontalScrollbarOptions, stickyScroll, stickyStart, ...options }: ScrollBoxOptions);
|
|
50
65
|
protected onUpdate(deltaTime: number): void;
|
|
51
66
|
scrollBy(delta: number | {
|
|
52
67
|
x: number;
|