@jscad/regl-renderer 3.0.0-alpha.0 → 3.0.2-alpha.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.
- package/CHANGELOG.md +14 -0
- package/LICENSE +1 -1
- package/dist/jscad-regl-renderer.es.js +2 -2
- package/dist/jscad-regl-renderer.min.js +2 -2
- package/package.json +4 -4
- package/rollup.config.js +1 -1
- package/types/controls/orbitControls.d.ts +2 -1
- package/types/geometry-utils-V2/entitiesFromSolids.d.ts +2 -1
- package/types/geometry-utils-V2/entity.d.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jscad/regl-renderer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-alpha.0",
|
|
4
4
|
"description": "Renderer for JSCAD Geometries",
|
|
5
5
|
"homepage": "https://openjscad.xyz/",
|
|
6
6
|
"repository": "https://github.com/jscad/OpenJSCAD.org",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@jscad/array-utils": "3.0.
|
|
53
|
+
"@jscad/array-utils": "3.0.1-alpha.0",
|
|
54
54
|
"camera-unproject": "1.0.1",
|
|
55
55
|
"gl-mat4": "1.2.0",
|
|
56
56
|
"gl-vec3": "1.1.3",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@jscad/img-utils": "2.0.5",
|
|
61
|
-
"@jscad/modeling": "3.0.
|
|
61
|
+
"@jscad/modeling": "3.0.2-alpha.0",
|
|
62
62
|
"@rollup/plugin-commonjs": "^23.0.4",
|
|
63
63
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
64
64
|
"@rollup/plugin-terser": "^0.4.3",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"rollup": "^2.79.1",
|
|
69
69
|
"rollup-plugin-banner": "^0.2.1"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "ac80d1a7cb0a8efb21aff9193d4a8bccb6e31f1c"
|
|
72
72
|
}
|
package/rollup.config.js
CHANGED
|
@@ -22,6 +22,6 @@ export default {
|
|
|
22
22
|
nodeResolve(),
|
|
23
23
|
commonjs(),
|
|
24
24
|
banner('<%= pkg.description %>\n@module <%= pkg.name %>\n@version <%= pkg.version %>\n@license <%= pkg.license %>'),
|
|
25
|
-
terser({ compress: { module: true }, mangle: false, format: { comments: 'some'} })
|
|
25
|
+
terser({ compress: { module: true }, mangle: false, format: { comments: 'some' } })
|
|
26
26
|
]
|
|
27
27
|
}
|
|
@@ -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[];
|