@jscad/regl-renderer 2.6.7 → 2.6.8
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,17 @@
|
|
|
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.8](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/regl-renderer@2.6.7...@jscad/regl-renderer@2.6.8) (2024-02-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **regl-renderer:** define the entity type and corrected TS definitions ([d7dc4fb](https://github.com/jscad/OpenJSCAD.org/commit/d7dc4fb3722652362d2a209b2c82adc8cbf7ad33))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [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
18
|
|
|
8
19
|
**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.
|
|
3
|
+
"version": "2.6.8",
|
|
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.
|
|
39
|
+
"@jscad/modeling": "2.12.1",
|
|
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": "
|
|
46
|
+
"gitHead": "e07bb27d61f638348c73cc1383dfb5339060a02a"
|
|
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:
|
|
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[]):
|
|
14
|
+
declare function entitiesFromSolids(options: { color?: number[]; smoothNormals?: boolean }, ...solids:Geom2[] | Geom3[]): Entity[];
|