@lukekaalim/act-three 5.12.6 → 5.14.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.
Files changed (2) hide show
  1. package/components.d.ts +12 -1
  2. package/package.json +1 -1
package/components.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Component, Ref } from "@lukekaalim/act";
2
- import { AmbientLight, Color, CubeTexture, DirectionalLight, Euler, HemisphereLight, Light, Mesh, PerspectiveCamera, PointLight, Quaternion, Scene, Sprite, Texture, Vector3 } from "three";
2
+ import { AmbientLight, Color, CubeTexture, DirectionalLight, Euler, Group, HemisphereLight, Light, Line, LineLoop, LineSegments, Mesh, PerspectiveCamera, PointLight, Quaternion, Scene, Sprite, Texture, Vector3 } from "three";
3
3
 
4
4
  export type ReferenceProps<T> = {
5
5
  ref?: ((reference: T) => unknown) | Ref<null | T>
@@ -32,6 +32,10 @@ export type SceneProps =
32
32
  "environment"
33
33
  ]>
34
34
 
35
+ export const group: Component<GroupProps>;
36
+ export type GroupProps =
37
+ & Object3DProps<Group>
38
+
35
39
  export const mesh: Component<MeshProps>;
36
40
  export type MeshProps =
37
41
  & Object3DProps<Mesh>
@@ -42,6 +46,13 @@ export type SpriteProps =
42
46
  & Object3DProps<Sprite>
43
47
  & PropsFromList<Sprite, ["geometry", "material", "center"]>
44
48
 
49
+ export const line: Component<LineProps>;
50
+ export const lineLoop: Component<LineProps>;
51
+ export const lineSegments: Component<LineProps>;
52
+ export type LineProps =
53
+ & Object3DProps<Line>
54
+ & PropsFromList<Line, ["geometry", "material"]>
55
+
45
56
 
46
57
  export type LightProps = PropsFromList<Light, [
47
58
  "color", "intensity", "shadow"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukekaalim/act-three",
3
- "version": "5.12.6",
3
+ "version": "5.14.0",
4
4
  "description": "Render threejs content using act",
5
5
  "main": "entry.js",
6
6
  "types": "entry.d.ts",