@effindomv2/fui-as 0.1.34 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effindomv2/fui-as",
3
- "version": "0.1.34",
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",
package/src/color.ts CHANGED
@@ -1,4 +1,3 @@
1
- // v2 UI colors are packed as 0xRRGGBBAA.
2
1
  export function rgba(red: u32, green: u32, blue: u32, alpha: u32): u32 {
3
2
  return ((red & 0xff) << 24) | ((green & 0xff) << 16) | ((blue & 0xff) << 8) | (alpha & 0xff);
4
3
  }
@@ -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 { HandleValue, NodeType, ObjectFit, SemanticRole, Unit } from "../core/ffi";
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
 
@@ -9,7 +9,7 @@ import {
9
9
  storePersistedScrollOffset,
10
10
  tryLoadPersistedScrollOffset,
11
11
  } from "../core/PersistedUiState";
12
- import { HandleValue, NodeType, Unit } from "../core/ffi";
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 { HandleValue, NodeType, SemanticRole, Unit } from "../core/ffi";
13
+ import { NodeType, SemanticRole, Unit } from "../core/ffi";
14
14
  import { Signal } from "../core/Signal";
15
15
  import { FlexBox, FlexBoxProps } from "./FlexBox";
16
16
 
@@ -7,7 +7,6 @@ import { Theme, activeTheme } from "../core/Theme";
7
7
  import { FontFamily, FontStack, FontStyle, FontWeight } from "../core/Typography";
8
8
  import {
9
9
  CursorStyle,
10
- HandleValue,
11
10
  NodeType,
12
11
  TextAlign,
13
12
  TextOverflow,
@@ -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 scrollBar(): ScrollBar {
145
- return this.scrollBoxValue.verticalScrollBar;
141
+ get scrollBox(): ScrollBox {
142
+ return this.scrollBoxValue;
146
143
  }
147
144
 
148
145
  get itemHeight(): f32 {