@threlte/theatre 0.0.2 → 0.0.3-next.0
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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import { useParent, useThrelte } from '@threlte/core';
|
|
2
|
+
import { TransformControls } from '@threlte/extras';
|
|
2
3
|
import { getContext, onDestroy } from 'svelte';
|
|
3
4
|
import { DEG2RAD, RAD2DEG } from 'three/src/math/MathUtils';
|
|
4
5
|
import { globalObjects, globalStudio } from '../consts';
|
|
@@ -276,15 +277,12 @@ const onKeyUp = (e) => {
|
|
|
276
277
|
};
|
|
277
278
|
</script>
|
|
278
279
|
|
|
279
|
-
<svelte:window
|
|
280
|
-
on:keypress={onKeyPress}
|
|
281
|
-
on:keydown={onKeyDown}
|
|
282
|
-
on:keyup={onKeyUp}
|
|
283
|
-
/>
|
|
280
|
+
<svelte:window on:keypress={onKeyPress} on:keydown={onKeyDown} on:keyup={onKeyUp} />
|
|
284
281
|
|
|
285
282
|
{#if selected && isObject3D($parent) && transform && controls}
|
|
286
283
|
<TransformControls
|
|
287
284
|
{mode}
|
|
285
|
+
object={$parent}
|
|
288
286
|
translationSnap={snapActive ? snapValues.translate : null}
|
|
289
287
|
rotationSnap={snapActive ? snapValues.rotate : null}
|
|
290
288
|
scaleSnap={snapActive ? snapValues.scale : null}
|
|
@@ -294,9 +292,4 @@ const onKeyUp = (e) => {
|
|
|
294
292
|
/>
|
|
295
293
|
{/if}
|
|
296
294
|
|
|
297
|
-
<slot
|
|
298
|
-
{values}
|
|
299
|
-
{read}
|
|
300
|
-
{sheet}
|
|
301
|
-
{object}
|
|
302
|
-
/>
|
|
295
|
+
<slot {values} {read} {sheet} {object} />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/theatre",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-next.0",
|
|
4
4
|
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"devDependencies": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"@sveltejs/kit": "1.0.0-next.377",
|
|
10
10
|
"@theatre/core": "0.5.1-rc.1",
|
|
11
11
|
"@theatre/studio": "0.5.1-rc.1",
|
|
12
|
-
"@threlte/core": "
|
|
12
|
+
"@threlte/core": "6.0.0-next.0",
|
|
13
|
+
"@threlte/extras": "5.0.0-next.0",
|
|
13
14
|
"@types/node": "^18.0.3",
|
|
14
15
|
"@types/three": "^0.144.0",
|
|
15
16
|
"@typescript-eslint/eslint-plugin": "^4.31.1",
|