@danielsimonjr/sciengjs 0.6.0 → 0.7.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 (47) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +9 -5
  3. package/assets/licenses/MIT-three.txt +21 -0
  4. package/assets/three.BufferGeometryUtils.js +1523 -0
  5. package/assets/three.GLTFLoader.js +5006 -0
  6. package/assets/three.OrbitControls.js +1985 -0
  7. package/assets/three.SkeletonUtils.js +496 -0
  8. package/assets/three.core.js +61162 -0
  9. package/assets/three.module.js +19537 -0
  10. package/dist/browser/pinned.d.ts +23 -0
  11. package/dist/browser/pinned.js +18 -0
  12. package/dist/browser/pinned.js.map +1 -1
  13. package/dist/browser/render.d.ts +6 -0
  14. package/dist/browser/render.js +10 -1
  15. package/dist/browser/render.js.map +1 -1
  16. package/dist/mesh/backend-glb.d.ts +25 -0
  17. package/dist/mesh/backend-glb.js +74 -0
  18. package/dist/mesh/backend-glb.js.map +1 -0
  19. package/dist/mesh/backend-html.d.ts +6 -0
  20. package/dist/mesh/backend-html.js +12 -0
  21. package/dist/mesh/backend-html.js.map +1 -0
  22. package/dist/mesh/backend-png.d.ts +6 -0
  23. package/dist/mesh/backend-png.js +35 -0
  24. package/dist/mesh/backend-png.js.map +1 -0
  25. package/dist/mesh/glb.d.ts +9 -0
  26. package/dist/mesh/glb.js +163 -0
  27. package/dist/mesh/glb.js.map +1 -0
  28. package/dist/mesh/index.d.ts +5 -0
  29. package/dist/mesh/index.js +5 -0
  30. package/dist/mesh/index.js.map +1 -0
  31. package/dist/mesh/pinned-three.d.ts +6 -0
  32. package/dist/mesh/pinned-three.js +21 -0
  33. package/dist/mesh/pinned-three.js.map +1 -0
  34. package/dist/mesh/read.d.ts +27 -0
  35. package/dist/mesh/read.js +56 -0
  36. package/dist/mesh/read.js.map +1 -0
  37. package/dist/mesh/viewer-script.d.ts +6 -0
  38. package/dist/mesh/viewer-script.js +207 -0
  39. package/dist/mesh/viewer-script.js.map +1 -0
  40. package/dist/mesh/viewer.d.ts +14 -0
  41. package/dist/mesh/viewer.js +39 -0
  42. package/dist/mesh/viewer.js.map +1 -0
  43. package/dist/registry.js +9 -0
  44. package/dist/registry.js.map +1 -1
  45. package/dist/version.d.ts +1 -1
  46. package/dist/version.js +1 -1
  47. package/package.json +8 -2
package/README.md CHANGED
@@ -10,7 +10,7 @@ sciengjs turns diagram source into images on your own machine. It sends no sourc
10
10
 
11
11
  ## What this release does
12
12
 
13
- Release 0.6.0 holds five input types. They are **Graphviz DOT**, **Mermaid** (every diagram type) and **LaTeX math** (to SVG, PNG and PDF). They also include **Plotly plots** (to SVG, PNG and HTML) and **HTML** (to PNG, PDF and Markdown). The browser stage draws the Mermaid types other than class, state and sequence, and every PDF.
13
+ Release 0.7.0 holds eight input types. They are **Graphviz DOT**, **Mermaid** (every diagram type) and **LaTeX math** (to SVG, PNG and PDF). They also include **Plotly plots** (to SVG, PNG and HTML) and **HTML** (to PNG, PDF and Markdown). The CAD files **STEP**, **IGES** and **BREP** go to GLB, to a viewer page in HTML, and to PNG. The browser stage draws the Mermaid types other than class, state and sequence, and every PDF.
14
14
 
15
15
  | Input | Output | Engine |
16
16
  |---|---|---|
@@ -14,9 +14,9 @@ Version: each row gives the version that the engine pins.
14
14
  | math | `@mathjax/src` 4.1.3 (MathJax, with the Newcm math font and the packages it installs; see "MathJax") | Apache-2.0 for MathJax and the math font; the other packages are listed under "MathJax" | a dependency |
15
15
  | tex | The own WASM build of `tex.web` with `etex.ch` (trials T5 and T6) | The "tex" stage of the design gives the licence of each input | not yet a dependency |
16
16
  | tex | TeX packages (bundles) | LPPL or public domain only. Each package keeps its own licence | not yet a dependency |
17
- | mesh | `occt-import-js` (OpenCascade compiled to WASM) | LGPL-2.1 | not yet a dependency |
17
+ | mesh | `occt-import-js` 0.0.23 (OpenCascade compiled to WASM) | LGPL-2.1 | a dependency |
18
18
  | mesh | `manifold-3d` | Apache-2.0 | not yet a dependency |
19
- | mesh (viewer page) | `three` | MIT | not yet a dependency |
19
+ | mesh (viewer page) | `three` 0.187.0 (six pinned module files, copied into the assets folder at build) | MIT | a devDependency. The browser stage serves the copies to pages |
20
20
  | browser | `mermaid` 11.17.2 (the pinned build `dist/mermaid.min.js`, copied into the assets folder at build) | MIT | a devDependency. The browser stage serves the copy to pages |
21
21
  | raster | `@resvg/resvg-wasm` 2.6.2 | MPL-2.0 | a dependency |
22
22
  | raster | Liberation Serif Regular 2.1.5 (font, in `assets/fonts/`) | SIL Open Font License 1.1 | bundled |
@@ -59,7 +59,7 @@ The Apache License 2.0 applies to the MathJax packages. The BlueOak Model Licens
59
59
 
60
60
  ### Plotly (MIT)
61
61
 
62
- The MIT licence applies to `plotly.js-dist-min` 4.2.0. The package is a devDependency. The engine does not bundle the build into the package and does not copy it into the assets folder. The html output of the `plot` stage is a page that loads the pinned build from the CDN URL in the engine, with a subresource integrity hash. The page makes that request when a reader opens it. The licence text is in the installed package at `node_modules/plotly.js-dist-min/LICENSE`.
62
+ The MIT licence applies to `plotly.js-dist-min` 4.2.0. The package is a devDependency. The engine does not bundle the build into the package and does not copy it into the assets folder. The html output of the `plot` stage is a page. The page loads the pinned build from the CDN URL in the engine, with a subresource integrity hash. The page makes that request when a reader opens it. The licence text is in the installed package at `node_modules/plotly.js-dist-min/LICENSE`.
63
63
 
64
64
  ### Mermaid (MIT)
65
65
 
@@ -76,9 +76,13 @@ The file mermaid.min.js also holds the code of the runtime dependencies of `merm
76
76
 
77
77
  The file `assets/licenses/mermaid-bundle.txt` holds the licence text of each of the 79 packages, with its name and version. The script `scripts/mermaid-licenses.mjs` writes that file from the installed `mermaid` package. Run the script again after a change of the pinned Mermaid version.
78
78
 
79
+ ### Three.js (MIT)
80
+
81
+ The MIT licence applies to `three` 0.187.0. The package is a devDependency. The build copies six files of the package into the assets folder: three.module.js, three.core.js, three.OrbitControls.js, three.GLTFLoader.js, three.BufferGeometryUtils.js and three.SkeletonUtils.js. Those copies are generated at build time and are not committed. The html output of the mesh stage is a page. The page loads the six pinned files from the CDN URLs in the engine, with a subresource integrity hash for each file. The browser stage fulfils the same URLs from the copies in the assets folder, so a png render makes no network request. The licence text is in `assets/licenses/MIT-three.txt`.
82
+
79
83
  ### OpenCascade (LGPL-2.1)
80
84
 
81
- `occt-import-js` is licensed under the GNU Lesser General Public License 2.1. The WASM file stays a separate, unmodified file.
85
+ `occt-import-js` 0.0.23 is licensed under the GNU Lesser General Public License 2.1. The WASM file stays a separate, unmodified file. The mesh stage reads STEP, IGES and BREP files through this package. The licence text is in the installed package at `node_modules/occt-import-js/LICENSE.md`.
82
86
 
83
87
  ### resvg (MPL-2.0)
84
88
 
@@ -98,7 +102,7 @@ The package detection of the `tex` stage follows the templater of the Upmath ren
98
102
 
99
103
  ### Trial T2 sample files (LGPL-2.0-or-later, LGPL-2.1 and Apache-2.0)
100
104
 
101
- The trial folder `trials/t2-mesh/samples/` holds three CAD test files from other projects. The engine package does not ship them. The licence texts are in `trials/t2-mesh/samples/LICENSES/`. The source, commit and SHA-256 of each file are in `trials/t2-mesh/samples/README.md`.
105
+ The folder `test/corpus/mesh/` holds three CAD test files from other projects. The engine package does not ship them. The licence texts are in `test/corpus/mesh/LICENSES/`. The source, commit and SHA-256 of each file are in `test/corpus/mesh/README.md`.
102
106
 
103
107
  - `red_cube_blue_cylinder.step`, from CadQuery: Apache-2.0.
104
108
  - `cube-10x10mm.igs`, from occt-import-js: LGPL-2.1.
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright © 2010-2026 three.js authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.