@threlte/theatre 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <a href="https://threlte.xyz">
17
- <img src="./threlte-banner.jpg"/>
17
+ <img src="https://threlte.xyz/logo/threlte-banner.jpg"/>
18
18
  </a>
19
19
 
20
20
  ## Rapidly Build Interactive 3D Apps for the Web
@@ -10,14 +10,14 @@ const isFullOrEndingPattern = (fullPropertyPath, pattern) => {
10
10
  };
11
11
  export const getDefaultTransformer = (target, path, fullPropertyPath) => {
12
12
  const property = target[path];
13
- if (property instanceof Euler)
13
+ if (property.isEuler)
14
14
  return euler;
15
- if (property instanceof Color)
15
+ if (property.isColor)
16
16
  return color;
17
17
  if (isFullOrEndingPattern(fullPropertyPath, 'rotation.x') ||
18
18
  isFullOrEndingPattern(fullPropertyPath, 'rotation.y') ||
19
19
  isFullOrEndingPattern(fullPropertyPath, 'rotation.z') ||
20
- (target instanceof Euler &&
20
+ (target.isEuler &&
21
21
  (fullPropertyPath === 'x' || fullPropertyPath === 'y' || fullPropertyPath === 'z'))) {
22
22
  return degrees;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threlte/theatre",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -32,8 +32,8 @@
32
32
  "@theatre/core": "^0.6.2",
33
33
  "@theatre/studio": "^0.6.2",
34
34
  "three": "^0.153.0",
35
- "@threlte/core": "6.0.0",
36
- "@threlte/extras": "5.0.0"
35
+ "@threlte/core": "6.0.1",
36
+ "@threlte/extras": "5.0.2"
37
37
  },
38
38
  "type": "module",
39
39
  "exports": {