@opentui/core 0.0.0-20251006-283f60d7 → 0.0.0-20251008-63d6b70d
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/{index-hxktycf0.js → index-pxa2sv92.js} +12 -12
- package/{index-hxktycf0.js.map → index-pxa2sv92.js.map} +3 -3
- package/index.js +9 -4
- package/index.js.map +3 -3
- package/lib/scroll-acceleration.d.ts +1 -0
- package/package.json +7 -7
- package/renderables/ScrollBox.d.ts +2 -0
- package/testing.js +1 -1
package/index.js
CHANGED
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
white,
|
|
133
133
|
wrapWithDelegates,
|
|
134
134
|
yellow
|
|
135
|
-
} from "./index-
|
|
135
|
+
} from "./index-pxa2sv92.js";
|
|
136
136
|
// src/post/filters.ts
|
|
137
137
|
function applyScanlines(buffer, strength = 0.8, step = 2) {
|
|
138
138
|
const width = buffer.width;
|
|
@@ -3941,9 +3941,8 @@ class ScrollBoxRenderable extends BoxRenderable {
|
|
|
3941
3941
|
this.scrollAccel = scrollAcceleration;
|
|
3942
3942
|
} else if (process.platform === "darwin") {
|
|
3943
3943
|
this.scrollAccel = new MacOSScrollAccel;
|
|
3944
|
-
} else {
|
|
3945
|
-
this.scrollAccel = new LinearScrollAccel;
|
|
3946
3944
|
}
|
|
3945
|
+
this.scrollAccel ??= new LinearScrollAccel;
|
|
3947
3946
|
this.wrapper = new BoxRenderable(ctx, {
|
|
3948
3947
|
flexDirection: "column",
|
|
3949
3948
|
flexGrow: 1,
|
|
@@ -4250,6 +4249,12 @@ class ScrollBoxRenderable extends BoxRenderable {
|
|
|
4250
4249
|
Object.assign(this.horizontalScrollBar, options);
|
|
4251
4250
|
this.requestRender();
|
|
4252
4251
|
}
|
|
4252
|
+
get scrollAcceleration() {
|
|
4253
|
+
return this.scrollAccel;
|
|
4254
|
+
}
|
|
4255
|
+
set scrollAcceleration(value) {
|
|
4256
|
+
this.scrollAccel = value;
|
|
4257
|
+
}
|
|
4253
4258
|
destroySelf() {
|
|
4254
4259
|
if (this.selectionListener) {
|
|
4255
4260
|
this._ctx.off("selection", this.selectionListener);
|
|
@@ -4501,5 +4506,5 @@ export {
|
|
|
4501
4506
|
ASCIIFont
|
|
4502
4507
|
};
|
|
4503
4508
|
|
|
4504
|
-
//# debugId=
|
|
4509
|
+
//# debugId=FC58789917A63DFA64756E2164756E21
|
|
4505
4510
|
//# sourceMappingURL=index.js.map
|