@lukekaalim/act-three 8.0.0 → 8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lukekaalim/act-three
2
2
 
3
+ ## 8.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 36412c6: Fix issue with threejs builder trying to build non-primirive elements
8
+
9
+ ## 8.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 4168a3d: Lie about the ReadOnly nature of a Ref passes to an element to avoid obscure type issues
14
+
3
15
  ## 8.0.0
4
16
 
5
17
  ### Major Changes
package/builder.ts CHANGED
@@ -9,7 +9,9 @@ export const createThreeJSBuilder = (rootObject: Object3D | null = null): NodeBu
9
9
  roots: new Set(['threejs']),
10
10
 
11
11
  create(element) {
12
- return registry.create(element);
12
+ if (typeof element.type === 'string')
13
+ return registry.create(element);
14
+ return null;
13
15
  },
14
16
  update(el, next, prev) {
15
17
  registry.update(el, next, prev);
package/elements.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as three from "three";
2
- import { Ref } from "@lukekaalim/act";
2
+ import { ReadonlyRef, Ref } from "@lukekaalim/act";
3
3
  import { createPrimitiveRegistry } from "@lukekaalim/act-backstage";
4
4
  import { setProps } from "./props";
5
5
 
@@ -31,7 +31,7 @@ export type PropsFromClass<T extends three.Object3D> = {
31
31
  //onAdded?: (self: T) => void,
32
32
  //onRemoved?: (self: T) => void,
33
33
 
34
- ref?: Ref<null | T>
34
+ ref?: ReadonlyRef<null | T>
35
35
  }
36
36
  & (T extends three.Mesh | three.Points | three.Line ? DrawableProps : {})
37
37
  & (T extends three.Sprite ? SpriteProps : {})
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lukekaalim/act-three",
3
3
  "main": "index.ts",
4
4
  "type": "module",
5
- "version": "8.0.0",
5
+ "version": "8.0.2",
6
6
  "dependencies": {
7
7
  "@lukekaalim/act": "^4.3.0",
8
8
  "@lukekaalim/act-backstage": "^3.2.0",