@effindomv2/fui-as 0.1.34 → 0.1.36
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 +1 -1
- package/src/color.ts +0 -1
- package/src/controls/ContextMenu.ts +1 -1
- package/src/core/Node.ts +3 -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
package/src/color.ts
CHANGED
package/src/core/Node.ts
CHANGED
|
@@ -991,6 +991,8 @@ export abstract class Node implements DragGestureHost, Disposable {
|
|
|
991
991
|
return this;
|
|
992
992
|
}
|
|
993
993
|
|
|
994
|
+
/// Removes `node` from this parent. Does NOT call `dispose()` — the C++ handle
|
|
995
|
+
/// stays alive so callers can re-parent with `addChildNode()`.
|
|
994
996
|
removeChildNode(node: Node): this {
|
|
995
997
|
const index = this.indexOfChild(node);
|
|
996
998
|
if (index < 0) {
|
|
@@ -1737,4 +1739,4 @@ export abstract class Node implements DragGestureHost, Disposable {
|
|
|
1737
1739
|
}
|
|
1738
1740
|
}
|
|
1739
1741
|
|
|
1740
|
-
}
|
|
1742
|
+
}
|
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 {
|