@effindomv2/fui-as 0.1.33 → 0.1.35
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 +2 -2
- package/src/color.ts +0 -1
- package/src/nodes/Image.ts +1 -1
- package/src/nodes/ScrollView.ts +1 -1
- package/src/nodes/Svg.ts +1 -1
- package/src/nodes/TextCore.ts +0 -1
- package/src/nodes/VirtualList.ts +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effindomv2/fui-as",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
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",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@assemblyscript/loader": "^0.28.17",
|
|
89
89
|
"@devcycle/assemblyscript-json": "^2.0.0",
|
|
90
|
-
"@effindomv2/runtime": "0.1.
|
|
90
|
+
"@effindomv2/runtime": "0.1.17"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@as-pect/assembly": "8.1.0",
|
package/src/color.ts
CHANGED
package/src/nodes/Image.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../core/Assets";
|
|
11
11
|
import { Action, HandlerAction } from "../core/Action";
|
|
12
12
|
import * as ui from "../bindings/ui";
|
|
13
|
-
import {
|
|
13
|
+
import { NodeType, ObjectFit, SemanticRole, Unit } from "../core/ffi";
|
|
14
14
|
import { Signal } from "../core/Signal";
|
|
15
15
|
import { FlexBox, FlexBoxProps } from "./FlexBox";
|
|
16
16
|
|
package/src/nodes/ScrollView.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
storePersistedScrollOffset,
|
|
10
10
|
tryLoadPersistedScrollOffset,
|
|
11
11
|
} from "../core/PersistedUiState";
|
|
12
|
-
import {
|
|
12
|
+
import { NodeType, Unit } from "../core/ffi";
|
|
13
13
|
import { ScrollState } from "./ScrollState";
|
|
14
14
|
|
|
15
15
|
const PROGRAMMATIC_SCROLL_ACK_TOLERANCE: f32 = 0.5;
|
package/src/nodes/Svg.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../core/Assets";
|
|
11
11
|
import { Action, HandlerAction } from "../core/Action";
|
|
12
12
|
import * as ui from "../bindings/ui";
|
|
13
|
-
import {
|
|
13
|
+
import { NodeType, SemanticRole, Unit } from "../core/ffi";
|
|
14
14
|
import { Signal } from "../core/Signal";
|
|
15
15
|
import { FlexBox, FlexBoxProps } from "./FlexBox";
|
|
16
16
|
|
package/src/nodes/TextCore.ts
CHANGED
package/src/nodes/VirtualList.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { FlexDirection, HandleValue, Unit } from "../core/ffi";
|
|
|
5
5
|
import { VirtualListItemBindingError } from "../core/Errors";
|
|
6
6
|
import { Node } from "../core/Node";
|
|
7
7
|
import { FlexBox } from "./FlexBox";
|
|
8
|
-
import { ScrollBar } from "./ScrollBar";
|
|
9
8
|
import { ScrollBox } from "./ScrollBox";
|
|
10
9
|
import { ScrollState } from "./ScrollState";
|
|
11
10
|
import { Text } from "./Text";
|
|
@@ -62,7 +61,6 @@ export class VirtualList extends FlexBox {
|
|
|
62
61
|
private bindItemValue: VirtualListBinderCallback;
|
|
63
62
|
private readonly scrollStateValue: ScrollState;
|
|
64
63
|
private readonly scrollBoxValue: ScrollBox;
|
|
65
|
-
private readonly contentValue: FlexBox;
|
|
66
64
|
private readonly topSpacerValue: FlexBox;
|
|
67
65
|
private readonly bottomSpacerValue: FlexBox;
|
|
68
66
|
private readonly poolSizeValue: i32;
|
|
@@ -121,7 +119,6 @@ export class VirtualList extends FlexBox {
|
|
|
121
119
|
|
|
122
120
|
this.topSpacerValue = topSpacerValue;
|
|
123
121
|
this.bottomSpacerValue = bottomSpacerValue;
|
|
124
|
-
this.contentValue = contentValue;
|
|
125
122
|
this.scrollBoxValue = scrollBoxValue;
|
|
126
123
|
this.poolValue = poolValue;
|
|
127
124
|
this.poolItemIndexByRow = poolItemIndexByRow;
|
|
@@ -141,8 +138,8 @@ export class VirtualList extends FlexBox {
|
|
|
141
138
|
return this.totalItemsValue;
|
|
142
139
|
}
|
|
143
140
|
|
|
144
|
-
get
|
|
145
|
-
return this.scrollBoxValue
|
|
141
|
+
get scrollBox(): ScrollBox {
|
|
142
|
+
return this.scrollBoxValue;
|
|
146
143
|
}
|
|
147
144
|
|
|
148
145
|
get itemHeight(): f32 {
|