@threlte/theatre 3.0.0-next.0 → 3.0.0-next.1
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/project/Project.svelte +1 -1
- package/dist/project/Project.svelte.d.ts +5 -0
- package/dist/sequence/Sequence.svelte +1 -1
- package/dist/sequence/Sequence.svelte.d.ts +15 -0
- package/dist/sheet/Sheet.svelte +1 -1
- package/dist/sheet/Sheet.svelte.d.ts +5 -0
- package/dist/sheet/createSheetObjectAction.d.ts +2 -2
- package/dist/sheetObject/SheetObject.svelte +1 -1
- package/dist/sheetObject/declare/Declare.svelte +1 -1
- package/dist/sheetObject/sync/Sync.svelte +1 -1
- package/dist/sheetObject/transform/Transform.svelte +1 -1
- package/dist/studio/InnerStudio.svelte +2 -2
- package/dist/studio/InnerStudio.svelte.d.ts +3 -0
- package/dist/studio/Studio.svelte +1 -1
- package/dist/studio/Studio.svelte.d.ts +3 -0
- package/dist/theatre/Theatre.svelte +1 -1
- package/dist/theatre/Theatre.svelte.d.ts +3 -0
- package/package.json +22 -22
|
@@ -6,6 +6,11 @@ declare const __propDef: {
|
|
|
6
6
|
config?: IProjectConfig | undefined;
|
|
7
7
|
project?: import("@theatre/core").IProject | undefined;
|
|
8
8
|
isReady?: boolean | undefined;
|
|
9
|
+
children?: ((this: void, args_0: {
|
|
10
|
+
project: import("@theatre/core").IProject;
|
|
11
|
+
}) => typeof import("svelte").SnippetReturn & {
|
|
12
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
13
|
+
}) | undefined;
|
|
9
14
|
};
|
|
10
15
|
events: {
|
|
11
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -25,6 +25,21 @@ declare const __propDef: {
|
|
|
25
25
|
rafDriver?: IRafDriver | undefined;
|
|
26
26
|
} | undefined) => Promise<boolean>) | undefined;
|
|
27
27
|
pause?: (() => void) | undefined;
|
|
28
|
+
children?: ((this: void, args_0: {
|
|
29
|
+
sequence: import("./SequenceController").SequenceController;
|
|
30
|
+
position: number;
|
|
31
|
+
playing: boolean;
|
|
32
|
+
play: (conf?: {
|
|
33
|
+
iterationCount?: number | undefined;
|
|
34
|
+
range?: [from: number, to: number] | undefined;
|
|
35
|
+
rate?: number | undefined;
|
|
36
|
+
direction?: ("reverse" | "alternate" | "normal" | "alternateReverse") | undefined;
|
|
37
|
+
rafDriver?: IRafDriver | undefined;
|
|
38
|
+
} | undefined) => Promise<boolean>;
|
|
39
|
+
pause: () => void;
|
|
40
|
+
}) => typeof import("svelte").SnippetReturn & {
|
|
41
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
42
|
+
}) | undefined;
|
|
28
43
|
};
|
|
29
44
|
events: {
|
|
30
45
|
[evt: string]: CustomEvent<any>;
|
package/dist/sheet/Sheet.svelte
CHANGED
|
@@ -8,6 +8,11 @@ declare const __propDef: {
|
|
|
8
8
|
instance?: string | undefined;
|
|
9
9
|
sheet?: import("@theatre/core").ISheet | undefined;
|
|
10
10
|
sequence?: SequenceController | undefined;
|
|
11
|
+
children?: ((this: void, args_0: {
|
|
12
|
+
sheet: import("@theatre/core").ISheet;
|
|
13
|
+
}) => typeof import("svelte").SnippetReturn & {
|
|
14
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
15
|
+
}) | undefined;
|
|
11
16
|
};
|
|
12
17
|
events: {
|
|
13
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -5,8 +5,8 @@ export declare function createSheetObjectAction<Props extends UnknownShorthandCo
|
|
|
5
5
|
props: Props;
|
|
6
6
|
callback: (node: T, props: PropsValue<Props>) => void;
|
|
7
7
|
options?: {
|
|
8
|
-
reconfigure?: boolean
|
|
9
|
-
}
|
|
8
|
+
reconfigure?: boolean;
|
|
9
|
+
};
|
|
10
10
|
}) => {
|
|
11
11
|
destroy(): void;
|
|
12
12
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
- Creating namespaces
|
|
4
4
|
- Potentially Providing a sheet object
|
|
5
5
|
-->
|
|
6
|
-
<script>import { useStudio } from '../studio/useStudio';
|
|
6
|
+
<script lang="ts">import { useStudio } from '../studio/useStudio';
|
|
7
7
|
import { currentWritable, watch, useThrelte } from '@threlte/core';
|
|
8
8
|
import { getContext, onDestroy, onMount, setContext } from 'svelte';
|
|
9
9
|
import Declare from './declare/Declare.svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>import { watch, currentWritable } from '@threlte/core';
|
|
1
|
+
<script lang="ts">import { watch, currentWritable } from '@threlte/core';
|
|
2
2
|
import { onDestroy, getContext } from 'svelte';
|
|
3
3
|
export let props;
|
|
4
4
|
const { sheetObject, addProps, removeProps } = getContext('threlte-theater-sheet-context');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>import { resolvePropertyPath, useParent, watch } from '@threlte/core';
|
|
1
|
+
<script lang="ts">import { resolvePropertyPath, useParent, watch } from '@threlte/core';
|
|
2
2
|
import { onDestroy, getContext } from 'svelte';
|
|
3
3
|
import { getInitialValue } from './utils/getInitialValue';
|
|
4
4
|
import { isComplexProp } from './utils/isComplexProp';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script
|
|
2
|
-
|
|
2
|
+
lang="ts"
|
|
3
3
|
context="module"
|
|
4
4
|
>import Studio from '@theatre/studio';
|
|
5
5
|
import { studio } from '../consts';
|
|
@@ -7,7 +7,7 @@ Studio.initialize();
|
|
|
7
7
|
studio.set(Studio);
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
-
<script>import { watch } from '@threlte/core';
|
|
10
|
+
<script lang="ts">import { watch } from '@threlte/core';
|
|
11
11
|
import { writable } from 'svelte/store';
|
|
12
12
|
export let hide;
|
|
13
13
|
const hideStore = writable(hide);
|
|
@@ -2,6 +2,9 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
hide: boolean;
|
|
5
|
+
children?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
|
6
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
7
|
+
}) | undefined;
|
|
5
8
|
};
|
|
6
9
|
events: {
|
|
7
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,6 +3,9 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
enabled?: boolean | undefined;
|
|
5
5
|
hide?: boolean | undefined;
|
|
6
|
+
children?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
|
7
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
8
|
+
}) | undefined;
|
|
6
9
|
};
|
|
7
10
|
events: {
|
|
8
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -7,6 +7,9 @@ declare const __propDef: {
|
|
|
7
7
|
hide?: boolean | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
config?: IProjectConfig | undefined;
|
|
10
|
+
children?: ((this: void) => typeof import("svelte").SnippetReturn & {
|
|
11
|
+
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
12
|
+
}) | undefined;
|
|
10
13
|
};
|
|
11
14
|
events: {
|
|
12
15
|
[evt: string]: CustomEvent<any>;
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/theatre",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.1",
|
|
4
4
|
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@sveltejs/adapter-auto": "^3.
|
|
8
|
-
"@sveltejs/kit": "^2.
|
|
9
|
-
"@sveltejs/package": "^2.
|
|
10
|
-
"@sveltejs/vite-plugin-svelte": "^3.
|
|
11
|
-
"@types/node": "^20.
|
|
12
|
-
"@types/three": "^0.
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
14
|
-
"@typescript-eslint/parser": "^6.
|
|
7
|
+
"@sveltejs/adapter-auto": "^3.2.0",
|
|
8
|
+
"@sveltejs/kit": "^2.5.5",
|
|
9
|
+
"@sveltejs/package": "^2.3.1",
|
|
10
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
11
|
+
"@types/node": "^20.12.7",
|
|
12
|
+
"@types/three": "^0.163.0",
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
14
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
15
15
|
"@yushijinhun/three-minifier-rollup": "^0.4.0",
|
|
16
|
-
"eslint": "^
|
|
16
|
+
"eslint": "^9.0.0",
|
|
17
17
|
"eslint-config-prettier": "^9.1.0",
|
|
18
|
-
"eslint-plugin-svelte": "^2.
|
|
19
|
-
"prettier": "^3.2.
|
|
20
|
-
"prettier-plugin-svelte": "^3.
|
|
18
|
+
"eslint-plugin-svelte": "^2.36.0",
|
|
19
|
+
"prettier": "^3.2.5",
|
|
20
|
+
"prettier-plugin-svelte": "^3.2.2",
|
|
21
21
|
"publint": "^0.2.7",
|
|
22
22
|
"rimraf": "^5.0.5",
|
|
23
|
-
"svelte": "^
|
|
24
|
-
"svelte-check": "^3.6.
|
|
23
|
+
"svelte": "^5.0.0-next.95",
|
|
24
|
+
"svelte-check": "^3.6.9",
|
|
25
25
|
"svelte-preprocess": "^5.1.3",
|
|
26
|
-
"svelte2tsx": "^0.7.
|
|
27
|
-
"three": "^0.
|
|
26
|
+
"svelte2tsx": "^0.7.6",
|
|
27
|
+
"three": "^0.163.0",
|
|
28
28
|
"tslib": "^2.6.2",
|
|
29
|
-
"type-fest": "^4.
|
|
30
|
-
"typescript": "^5.
|
|
31
|
-
"vite": "^5.
|
|
32
|
-
"@threlte/core": "8.0.0-next.
|
|
33
|
-
"@threlte/extras": "9.0.0-next.
|
|
29
|
+
"type-fest": "^4.15.0",
|
|
30
|
+
"typescript": "^5.4.5",
|
|
31
|
+
"vite": "^5.2.8",
|
|
32
|
+
"@threlte/core": "8.0.0-next.2",
|
|
33
|
+
"@threlte/extras": "9.0.0-next.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"svelte": ">=4",
|