@jscad/regl-renderer 2.6.7 → 2.6.9

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
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.6.9](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/regl-renderer@2.6.8...@jscad/regl-renderer@2.6.9) (2024-06-02)
7
+
8
+ **Note:** Version bump only for package @jscad/regl-renderer
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.6.8](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/regl-renderer@2.6.7...@jscad/regl-renderer@2.6.8) (2024-02-18)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **regl-renderer:** define the entity type and corrected TS definitions ([d7dc4fb](https://github.com/jscad/OpenJSCAD.org/commit/d7dc4fb3722652362d2a209b2c82adc8cbf7ad33))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.6.7](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/regl-renderer@2.6.6...@jscad/regl-renderer@2.6.7) (2023-06-27)
7
26
 
8
27
  **Note:** Version bump only for package @jscad/regl-renderer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscad/regl-renderer",
3
- "version": "2.6.7",
3
+ "version": "2.6.9",
4
4
  "description": "Renderer for JSCAD Geometries",
5
5
  "homepage": "https://openjscad.xyz/",
6
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
@@ -36,12 +36,12 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@jscad/img-utils": "2.0.5",
39
- "@jscad/modeling": "2.12.0",
39
+ "@jscad/modeling": "2.12.2",
40
40
  "ava": "3.15.0",
41
41
  "browserify": "16.5.1",
42
42
  "budo": "11.6.4",
43
43
  "nyc": "15.1.0",
44
44
  "uglifyify": "5.0.2"
45
45
  },
46
- "gitHead": "e269f212db5a00cda740d2f7ad3e5206d1eb839f"
46
+ "gitHead": "5fbb5fea458c28b0d96450dde9231e1d4d8ce6a4"
47
47
  }
@@ -1,4 +1,5 @@
1
1
  import { Geometry } from '@jscad/modeling/src/geometries/types'
2
+ import { Entity } from '../geometry-utils-V2/entity'
2
3
 
3
4
  export namespace controlsProps {
4
5
  namespace limits {
@@ -100,7 +101,7 @@ export function pan({ controls, camera, speed }: {
100
101
  export function zoomToFit({ controls, camera, entities }: {
101
102
  controls: typeof controlsState;
102
103
  camera: typeof import('../cameras/orthographicCamera').cameraState | typeof import('../cameras/perspectiveCamera').cameraState;
103
- entities: { geometry: Geometry; visuals: { drawCmd: string; show: boolean; transparent: boolean; useVertexColors: boolean } }[];
104
+ entities: Entity[];
104
105
  }): {
105
106
  controls: typeof controlsState;
106
107
  camera: typeof import('../cameras/orthographicCamera').cameraState | typeof import('../cameras/perspectiveCamera').cameraState;
@@ -1,4 +1,5 @@
1
1
  import { Geom2, Geom3, Geometry } from '@jscad/modeling/src/geometries/types'
2
+ import { Entity } from './entity'
2
3
 
3
4
  export = entitiesFromSolids;
4
5
  /**
@@ -10,4 +11,4 @@ export = entitiesFromSolids;
10
11
  * @param {Boolean} [options.smoothNormals=true] - smooth the normals of 3d solids, rendering a smooth surface
11
12
  * @returns {Array} an array of renderable entities
12
13
  */
13
- declare function entitiesFromSolids(options: { color?: number[]; smoothNormals?: boolean }, ...solids:Geom2[] | Geom3[]): Geometry[];
14
+ declare function entitiesFromSolids(options: { color?: number[]; smoothNormals?: boolean }, ...solids:Geom2[] | Geom3[]): Entity[];
@@ -0,0 +1,11 @@
1
+ import { Geometry } from '@jscad/modeling/src/geometries/types'
2
+
3
+ export type Entity = {
4
+ geometry: Geometry;
5
+ visuals: {
6
+ drawCmd: string;
7
+ show: boolean;
8
+ transparent: boolean;
9
+ useVertexColors: boolean
10
+ }
11
+ };