@effindomv2/fui-as 0.1.43 → 0.1.45
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effindomv2/fui-as",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-EffinDom-Commercial",
|
|
6
6
|
"description": "EffinDom v2 AssemblyScript frontend framework SDK and browser harness",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@assemblyscript/loader": "^0.28.19",
|
|
99
|
-
"@effindomv2/runtime": "0.1.
|
|
99
|
+
"@effindomv2/runtime": "0.1.25"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@as-pect/assembly": "9.0.0",
|
package/src/bindings/ui.ts
CHANGED
|
@@ -364,10 +364,6 @@ export function setScrollEnabled(handle: u64, enabledX: bool, enabledY: bool): v
|
|
|
364
364
|
ffi.ui_set_scroll_enabled(handle, enabledX, enabledY);
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
export function setShowScrollbars(handle: u64, showScrollbars: bool): void {
|
|
368
|
-
ffi.ui_set_show_scrollbars(handle, showScrollbars);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
367
|
export function setScrollFriction(handle: u64, friction: f32): void {
|
|
372
368
|
ffi.ui_set_scroll_friction(handle, friction);
|
|
373
369
|
}
|
|
@@ -235,9 +235,6 @@ export declare function ui_set_scroll_proxy_target(handle: u64, scroll_handle: u
|
|
|
235
235
|
@external("effindom_v2_ui", "ui_set_scroll_enabled")
|
|
236
236
|
export declare function ui_set_scroll_enabled(handle: u64, enabled_x: bool, enabled_y: bool): void;
|
|
237
237
|
|
|
238
|
-
@external("effindom_v2_ui", "ui_set_show_scrollbars")
|
|
239
|
-
export declare function ui_set_show_scrollbars(handle: u64, show_scrollbars: bool): void;
|
|
240
|
-
|
|
241
238
|
@external("effindom_v2_ui", "ui_set_scroll_friction")
|
|
242
239
|
export declare function ui_set_scroll_friction(handle: u64, friction: f32): void;
|
|
243
240
|
|
package/src/nodes/ScrollBox.ts
CHANGED
|
@@ -48,7 +48,6 @@ export class ScrollBox extends FlexBox {
|
|
|
48
48
|
|
|
49
49
|
const viewportValue = (viewportOverride === null ? new ScrollView() : viewportOverride)
|
|
50
50
|
.bindScrollState(scrollState)
|
|
51
|
-
.showScrollbars(false)
|
|
52
51
|
.fillSize();
|
|
53
52
|
const verticalGutterValue = new FlexBox()
|
|
54
53
|
.width(DEFAULT_SCROLLBAR_GUTTER, Unit.Pixel)
|
package/src/nodes/ScrollView.ts
CHANGED
|
@@ -63,7 +63,6 @@ export class ScrollView extends Node {
|
|
|
63
63
|
private hasFlexBasis: bool = false;
|
|
64
64
|
private enableScrollX: bool = true;
|
|
65
65
|
private enableScrollY: bool = true;
|
|
66
|
-
private showScrollbarsValue: bool = true;
|
|
67
66
|
private frictionValue: f32 = 0.0;
|
|
68
67
|
private scrollOffsetX: f32 = 0.0;
|
|
69
68
|
private scrollOffsetY: f32 = 0.0;
|
|
@@ -268,15 +267,6 @@ export class ScrollView extends Node {
|
|
|
268
267
|
return this;
|
|
269
268
|
}
|
|
270
269
|
|
|
271
|
-
showScrollbars(flag: bool): this {
|
|
272
|
-
this.showScrollbarsValue = flag;
|
|
273
|
-
if (this.hasBuiltHandle()) {
|
|
274
|
-
ui.setShowScrollbars(this.handle, flag);
|
|
275
|
-
this.notifyRetainedMutation();
|
|
276
|
-
}
|
|
277
|
-
return this;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
270
|
friction(value: f32): this {
|
|
281
271
|
this.frictionValue = value;
|
|
282
272
|
this.hasFriction = true;
|
|
@@ -404,7 +394,6 @@ export class ScrollView extends Node {
|
|
|
404
394
|
this.applyNodeMetadata();
|
|
405
395
|
this.finishBuild();
|
|
406
396
|
ui.setScrollEnabled(this.handle, this.enableScrollX, this.enableScrollY);
|
|
407
|
-
ui.setShowScrollbars(this.handle, this.showScrollbarsValue);
|
|
408
397
|
ui.setSmoothScrolling(this.handle, this.smoothScrollingValue);
|
|
409
398
|
if (this.hasFriction) {
|
|
410
399
|
ui.setScrollFriction(this.handle, this.frictionValue);
|