@threlte/theatre 2.1.6 → 2.1.7
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.d.ts +2 -2
- package/dist/sequence/Sequence.svelte.d.ts +2 -2
- package/dist/sheet/Sheet.svelte.d.ts +2 -2
- package/dist/sheetObject/sync/Sync.svelte.d.ts +2 -2
- package/dist/sheetObject/transfomers/defaults/degrees.js +1 -1
- package/dist/sheetObject/transfomers/defaults/euler.js +1 -1
- package/dist/sheetObject/transfomers/getDefaultTransformer.js +0 -1
- package/dist/sheetObject/transform/Transform.svelte +1 -1
- package/dist/studio/InnerStudio.svelte.d.ts +2 -2
- package/dist/studio/Studio.svelte.d.ts +2 -2
- package/dist/theatre/Theatre.svelte.d.ts +2 -2
- package/package.json +29 -28
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { IProjectConfig } from '@theatre/core';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
@@ -19,7 +19,7 @@ declare const __propDef: {
|
|
|
19
19
|
export type ProjectProps = typeof __propDef.props;
|
|
20
20
|
export type ProjectEvents = typeof __propDef.events;
|
|
21
21
|
export type ProjectSlots = typeof __propDef.slots;
|
|
22
|
-
export default class Project extends
|
|
22
|
+
export default class Project extends SvelteComponent<ProjectProps, ProjectEvents, ProjectSlots> {
|
|
23
23
|
get project(): import("@theatre/core").IProject;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { IRafDriver } from '@theatre/core';
|
|
3
3
|
import type { Autoreset, IterationCount, PlaybackDirection, PlaybackRange, SequenceAudioOptions } from './types';
|
|
4
4
|
declare const __propDef: {
|
|
@@ -48,7 +48,7 @@ declare const __propDef: {
|
|
|
48
48
|
export type SequenceProps = typeof __propDef.props;
|
|
49
49
|
export type SequenceEvents = typeof __propDef.events;
|
|
50
50
|
export type SequenceSlots = typeof __propDef.slots;
|
|
51
|
-
export default class Sequence extends
|
|
51
|
+
export default class Sequence extends SvelteComponent<SequenceProps, SequenceEvents, SequenceSlots> {
|
|
52
52
|
get sequence(): import("./SequenceController").SequenceController;
|
|
53
53
|
get length(): number;
|
|
54
54
|
get play(): (conf?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { IProject } from '@theatre/core';
|
|
3
3
|
import { SequenceController } from '../sequence/SequenceController';
|
|
4
4
|
declare const __propDef: {
|
|
@@ -21,7 +21,7 @@ declare const __propDef: {
|
|
|
21
21
|
export type SheetProps = typeof __propDef.props;
|
|
22
22
|
export type SheetEvents = typeof __propDef.events;
|
|
23
23
|
export type SheetSlots = typeof __propDef.slots;
|
|
24
|
-
export default class Sheet extends
|
|
24
|
+
export default class Sheet extends SvelteComponent<SheetProps, SheetEvents, SheetSlots> {
|
|
25
25
|
get project(): IProject;
|
|
26
26
|
get sheet(): import("@theatre/core").ISheet;
|
|
27
27
|
get sequence(): SequenceController;
|
|
@@ -30,8 +30,8 @@ type InstanceProps<Type extends any> = Partial<
|
|
|
30
30
|
| Parameters<MaybeInstance<Type>[K]['set']>
|
|
31
31
|
| Parameters<MaybeInstance<Type>[K]['set']>[0]
|
|
32
32
|
: MaybeInstance<Type>[K] extends AnyFn
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
? never
|
|
34
|
+
: MaybeInstance<Type>[K]
|
|
35
35
|
},
|
|
36
36
|
ConditionalKeys<MaybeInstance<Type>, AnyFn> | OmittedPropKeys
|
|
37
37
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEG2RAD, RAD2DEG } from 'three/src/math/MathUtils';
|
|
1
|
+
import { DEG2RAD, RAD2DEG } from 'three/src/math/MathUtils.js';
|
|
2
2
|
import { createTransformer } from '../createTransformer';
|
|
3
3
|
import { types } from '../../../theatre';
|
|
4
4
|
export const degrees = createTransformer({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEG2RAD, RAD2DEG } from 'three/src/math/MathUtils';
|
|
1
|
+
import { DEG2RAD, RAD2DEG } from 'three/src/math/MathUtils.js';
|
|
2
2
|
import { createTransformer } from '../createTransformer';
|
|
3
3
|
import { types } from '../../../theatre';
|
|
4
4
|
export const euler = createTransformer({
|
|
@@ -3,7 +3,7 @@ import { T, watch } from '@threlte/core';
|
|
|
3
3
|
import { TransformControls } from '@threlte/extras';
|
|
4
4
|
import { onMount } from 'svelte';
|
|
5
5
|
import { Group } from 'three';
|
|
6
|
-
import { RAD2DEG } from 'three/src/math/MathUtils';
|
|
6
|
+
import { RAD2DEG } from 'three/src/math/MathUtils.js';
|
|
7
7
|
import { useStudio } from '../../studio/useStudio';
|
|
8
8
|
import { getDefaultTransformer } from '../transfomers/getDefaultTransformer';
|
|
9
9
|
export let label = undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
hide: boolean;
|
|
@@ -13,6 +13,6 @@ declare const __propDef: {
|
|
|
13
13
|
export type InnerStudioProps = typeof __propDef.props;
|
|
14
14
|
export type InnerStudioEvents = typeof __propDef.events;
|
|
15
15
|
export type InnerStudioSlots = typeof __propDef.slots;
|
|
16
|
-
export default class InnerStudio extends
|
|
16
|
+
export default class InnerStudio extends SvelteComponent<InnerStudioProps, InnerStudioEvents, InnerStudioSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
enabled?: boolean | undefined;
|
|
@@ -14,6 +14,6 @@ declare const __propDef: {
|
|
|
14
14
|
export type StudioProps = typeof __propDef.props;
|
|
15
15
|
export type StudioEvents = typeof __propDef.events;
|
|
16
16
|
export type StudioSlots = typeof __propDef.slots;
|
|
17
|
-
export default class Studio extends
|
|
17
|
+
export default class Studio extends SvelteComponent<StudioProps, StudioEvents, StudioSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { IProjectConfig } from '@theatre/core';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
@@ -18,6 +18,6 @@ declare const __propDef: {
|
|
|
18
18
|
export type TheatreProps = typeof __propDef.props;
|
|
19
19
|
export type TheatreEvents = typeof __propDef.events;
|
|
20
20
|
export type TheatreSlots = typeof __propDef.slots;
|
|
21
|
-
export default class Theatre extends
|
|
21
|
+
export default class Theatre extends SvelteComponent<TheatreProps, TheatreEvents, TheatreSlots> {
|
|
22
22
|
}
|
|
23
23
|
export {};
|
package/package.json
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/theatre",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@sveltejs/adapter-auto": "^
|
|
8
|
-
"@sveltejs/kit": "^
|
|
9
|
-
"@sveltejs/package": "^2.
|
|
10
|
-
"@
|
|
11
|
-
"@types/
|
|
12
|
-
"@
|
|
13
|
-
"@typescript-eslint/
|
|
14
|
-
"@
|
|
15
|
-
"
|
|
16
|
-
"eslint
|
|
17
|
-
"eslint-
|
|
18
|
-
"
|
|
19
|
-
"prettier
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"svelte
|
|
24
|
-
"svelte-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"@threlte/
|
|
7
|
+
"@sveltejs/adapter-auto": "^3.1.1",
|
|
8
|
+
"@sveltejs/kit": "^2.4.3",
|
|
9
|
+
"@sveltejs/package": "^2.2.6",
|
|
10
|
+
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
|
11
|
+
"@types/node": "^20.11.6",
|
|
12
|
+
"@types/three": "^0.160.0",
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
14
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
15
|
+
"@yushijinhun/three-minifier-rollup": "^0.4.0",
|
|
16
|
+
"eslint": "^8.56.0",
|
|
17
|
+
"eslint-config-prettier": "^9.1.0",
|
|
18
|
+
"eslint-plugin-svelte": "^2.35.1",
|
|
19
|
+
"prettier": "^3.2.4",
|
|
20
|
+
"prettier-plugin-svelte": "^3.1.2",
|
|
21
|
+
"publint": "^0.2.7",
|
|
22
|
+
"rimraf": "^5.0.5",
|
|
23
|
+
"svelte": "^4.2.9",
|
|
24
|
+
"svelte-check": "^3.6.3",
|
|
25
|
+
"svelte-preprocess": "^5.1.3",
|
|
26
|
+
"svelte2tsx": "^0.7.0",
|
|
27
|
+
"three": "^0.160.1",
|
|
28
|
+
"tslib": "^2.6.2",
|
|
29
|
+
"type-fest": "^4.10.1",
|
|
30
|
+
"typescript": "^5.3.3",
|
|
31
|
+
"vite": "^5.0.12",
|
|
32
|
+
"@threlte/core": "7.2.1",
|
|
33
|
+
"@threlte/extras": "8.10.1"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
36
|
"svelte": ">=4",
|
|
36
|
-
"three": ">=0.
|
|
37
|
+
"three": ">=0.152",
|
|
37
38
|
"@threlte/core": ">=6.0.3",
|
|
38
39
|
"@threlte/extras": ">=5.1.0",
|
|
39
40
|
"@theatre/core": ">=0.6",
|