@threlte/flex 2.0.0-next.11 → 2.0.0-next.13
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/dist/Box/Box.svelte.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { propsChanged } from '../lib/propsChanged';
|
|
|
11
11
|
import { createNodeContext } from '../nodes/context';
|
|
12
12
|
import { createFlexContext } from './context';
|
|
13
13
|
let { yoga, width = 1, height = 1, plane = 'xy', direction = 'LTR', scaleFactor = 1000, classParser, class: _class = '', reflowStage, ref = $bindable(), onreflow, children, ...props } = $props();
|
|
14
|
-
$inspect(yoga);
|
|
15
14
|
ref = new Group();
|
|
16
15
|
ref.userData.isNode = true;
|
|
17
16
|
const boundingBox = new Box3();
|
package/dist/lib/props.d.ts
CHANGED
|
@@ -17,44 +17,44 @@ export declare const propSetter: {
|
|
|
17
17
|
justifyContent: (justify: keyof typeof Justify, node: Node) => void;
|
|
18
18
|
flexDirection: (dir: keyof typeof FlexDirection, node: Node) => void;
|
|
19
19
|
flexWrap: (wrap: keyof typeof Wrap, node: Node) => void;
|
|
20
|
-
flex: (flex: Parameters<Node[
|
|
21
|
-
flexBasis: (basis: Parameters<Node[
|
|
22
|
-
flexGrow: (grow: Parameters<Node[
|
|
23
|
-
flexShrink: (shrink: Parameters<Node[
|
|
24
|
-
height: (height: Parameters<Node[
|
|
25
|
-
width: (width: Parameters<Node[
|
|
26
|
-
maxHeight: (maxHeight: Parameters<Node[
|
|
27
|
-
maxWidth: (maxWidth: Parameters<Node[
|
|
28
|
-
minHeight: (minHeight: Parameters<Node[
|
|
29
|
-
minWidth: (minWidth: Parameters<Node[
|
|
20
|
+
flex: (flex: Parameters<Node["setFlex"]>[0], node: Node) => void;
|
|
21
|
+
flexBasis: (basis: Parameters<Node["setFlexBasis"]>[0], node: Node) => void;
|
|
22
|
+
flexGrow: (grow: Parameters<Node["setFlexGrow"]>[0], node: Node) => void;
|
|
23
|
+
flexShrink: (shrink: Parameters<Node["setFlexShrink"]>[0], node: Node) => void;
|
|
24
|
+
height: (height: Parameters<Node["setHeight"]>[0], node: Node) => void;
|
|
25
|
+
width: (width: Parameters<Node["setWidth"]>[0], node: Node) => void;
|
|
26
|
+
maxHeight: (maxHeight: Parameters<Node["setMaxHeight"]>[0], node: Node) => void;
|
|
27
|
+
maxWidth: (maxWidth: Parameters<Node["setMaxWidth"]>[0], node: Node) => void;
|
|
28
|
+
minHeight: (minHeight: Parameters<Node["setMinHeight"]>[0], node: Node) => void;
|
|
29
|
+
minWidth: (minWidth: Parameters<Node["setMinWidth"]>[0], node: Node) => void;
|
|
30
30
|
/** As of now, this won't work since the bounding box is still computed by nodes marked as absolutely positioned */
|
|
31
|
-
top: (top: Parameters<Node[
|
|
32
|
-
right: (right: Parameters<Node[
|
|
33
|
-
bottom: (bottom: Parameters<Node[
|
|
34
|
-
left: (left: Parameters<Node[
|
|
35
|
-
padding: (padding: Parameters<Node[
|
|
36
|
-
paddingTop: (paddingTop: Parameters<Node[
|
|
37
|
-
paddingRight: (paddingRight: Parameters<Node[
|
|
38
|
-
paddingBottom: (paddingBottom: Parameters<Node[
|
|
39
|
-
paddingLeft: (paddingLeft: Parameters<Node[
|
|
40
|
-
margin: (margin: Parameters<Node[
|
|
41
|
-
marginTop: (marginTop: Parameters<Node[
|
|
42
|
-
marginRight: (marginRight: Parameters<Node[
|
|
43
|
-
marginBottom: (marginBottom: Parameters<Node[
|
|
44
|
-
marginLeft: (marginLeft: Parameters<Node[
|
|
45
|
-
gap: (gap: Parameters<Node[
|
|
31
|
+
top: (top: Parameters<Node["setPosition"]>[1], node: Node) => void;
|
|
32
|
+
right: (right: Parameters<Node["setPosition"]>[1], node: Node) => void;
|
|
33
|
+
bottom: (bottom: Parameters<Node["setPosition"]>[1], node: Node) => void;
|
|
34
|
+
left: (left: Parameters<Node["setPosition"]>[1], node: Node) => void;
|
|
35
|
+
padding: (padding: Parameters<Node["setPadding"]>[1], node: Node) => void;
|
|
36
|
+
paddingTop: (paddingTop: Parameters<Node["setPadding"]>[1], node: Node) => void;
|
|
37
|
+
paddingRight: (paddingRight: Parameters<Node["setPadding"]>[1], node: Node) => void;
|
|
38
|
+
paddingBottom: (paddingBottom: Parameters<Node["setPadding"]>[1], node: Node) => void;
|
|
39
|
+
paddingLeft: (paddingLeft: Parameters<Node["setPadding"]>[1], node: Node) => void;
|
|
40
|
+
margin: (margin: Parameters<Node["setMargin"]>[1], node: Node) => void;
|
|
41
|
+
marginTop: (marginTop: Parameters<Node["setMargin"]>[1], node: Node) => void;
|
|
42
|
+
marginRight: (marginRight: Parameters<Node["setMargin"]>[1], node: Node) => void;
|
|
43
|
+
marginBottom: (marginBottom: Parameters<Node["setMargin"]>[1], node: Node) => void;
|
|
44
|
+
marginLeft: (marginLeft: Parameters<Node["setMargin"]>[1], node: Node) => void;
|
|
45
|
+
gap: (gap: Parameters<Node["setGap"]>[1], node: Node) => {
|
|
46
46
|
unit: Yoga.Unit;
|
|
47
47
|
value: number;
|
|
48
48
|
};
|
|
49
|
-
gapColumn: (gapColumn: Parameters<Node[
|
|
49
|
+
gapColumn: (gapColumn: Parameters<Node["setGap"]>[1], node: Node) => {
|
|
50
50
|
unit: Yoga.Unit;
|
|
51
51
|
value: number;
|
|
52
52
|
};
|
|
53
|
-
gapRow: (gapRow: Parameters<Node[
|
|
53
|
+
gapRow: (gapRow: Parameters<Node["setGap"]>[1], node: Node) => {
|
|
54
54
|
unit: Yoga.Unit;
|
|
55
55
|
value: number;
|
|
56
56
|
};
|
|
57
|
-
aspectRatio: (aspectRatio: Parameters<Node[
|
|
57
|
+
aspectRatio: (aspectRatio: Parameters<Node["setAspectRatio"]>[0], node: Node) => void;
|
|
58
58
|
};
|
|
59
59
|
export type NodeProps = {
|
|
60
60
|
[Key in keyof typeof propSetter]?: Parameters<(typeof propSetter)[Key]>[0];
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/flex",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.13",
|
|
4
4
|
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Components to easily use the flexbox spec with Threlte",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@sveltejs/adapter-auto": "^3.
|
|
9
|
-
"@sveltejs/kit": "^2.7.
|
|
8
|
+
"@sveltejs/adapter-auto": "^3.3.1",
|
|
9
|
+
"@sveltejs/kit": "^2.7.7",
|
|
10
10
|
"@sveltejs/package": "^2.3.7",
|
|
11
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
11
|
+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
12
12
|
"@types/node": "^20.12.7",
|
|
13
13
|
"@types/three": "^0.169.0",
|
|
14
14
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"prettier-plugin-svelte": "^3.2.2",
|
|
22
22
|
"publint": "^0.2.7",
|
|
23
23
|
"rimraf": "^5.0.5",
|
|
24
|
-
"svelte": "^5.1.
|
|
24
|
+
"svelte": "^5.1.10",
|
|
25
25
|
"svelte-check": "^3.6.9",
|
|
26
26
|
"svelte-preprocess": "^5.1.3",
|
|
27
27
|
"svelte2tsx": "^0.7.6",
|
|
28
|
-
"three": "^0.
|
|
28
|
+
"three": "^0.170.0",
|
|
29
29
|
"tslib": "^2.6.2",
|
|
30
|
-
"typescript": "^5.
|
|
30
|
+
"typescript": "^5.6.3",
|
|
31
31
|
"vite": "^5.2.8",
|
|
32
|
-
"@threlte/core": "8.0.0-next.
|
|
33
|
-
"@threlte/extras": "9.0.0-next.
|
|
32
|
+
"@threlte/core": "8.0.0-next.33",
|
|
33
|
+
"@threlte/extras": "9.0.0-next.43"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"mitt": "^3.0.1",
|