viewstl 2.0.0-rc.6 → 2.0.0-rc.7
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/README.md +3 -3
- package/build/chunks/scene-export-7P6ZJOG3.js +1 -0
- package/build/stl_viewer.min.js +6 -5
- package/build/viewstl.cjs +118 -17
- package/build/viewstl.js +119 -17
- package/build/viewstl.min.js +6 -5
- package/build/viewstl.worker.js +1 -1
- package/docs/releases/2.0.0-rc.7.md +16 -0
- package/docs/v2-usage.md +15 -0
- package/docs/v2-verification.md +43 -0
- package/package.json +2 -2
- package/build/chunks/scene-export-FPPL466I.js +0 -1
- package/docs/releases/2.0.0-rc.6.md +0 -7
package/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Javascript STL/OBJ/3MF/STEP/IGES 3D files Viewer
|
|
4
4
|
|
|
5
|
-
**ViewSTL v2.00 — release candidate 2.0.0-rc.
|
|
5
|
+
**ViewSTL v2.00 — release candidate 2.0.0-rc.7.** A new native WebGL 2 implementation; no THREE.js runtime required. Reads local files on the user's device, with resizing, units, duplication, camera bookmarks, model exports, animation, VSB/VSJ scene saving and mesh checks.
|
|
6
6
|
|
|
7
7
|
The new plugin is in `src/` and `build/`. Previous versions remain available in [legacy/](https://github.com/omrips/viewstl/tree/main/legacy), on the unchanged [master branch](https://github.com/omrips/viewstl/tree/master), and through their existing tags. v2 has [documented compatibility differences](docs/v2-usage.md#existing-api-and-intentional-differences).
|
|
8
8
|
|
|
9
9
|
## Usage:
|
|
10
10
|
|
|
11
|
-
Download the [v2 plugin ZIP](https://github.com/omrips/viewstl/releases/download/v2.0.0-rc.
|
|
11
|
+
Download the [v2 plugin ZIP](https://github.com/omrips/viewstl/releases/download/v2.0.0-rc.7/viewstl-2.0.0-rc.7.zip) and copy its complete `build/` folder to your website. Add to your page:
|
|
12
12
|
|
|
13
13
|
```html
|
|
14
14
|
<div id="stl_cont" style="height:500px"></div>
|
|
@@ -33,6 +33,6 @@ console.log(await analyzeFile('part.stl', { units: 'mm' }));
|
|
|
33
33
|
|
|
34
34
|
No version suffix is needed. `npm install @omrips/viewstl` also installs the current release; existing scoped imports remain supported. Both names contain the same plugin, including animation and VSB/VSJ scene persistence.
|
|
35
35
|
|
|
36
|
-
More at [viewstl.com/plugin](https://www.viewstl.com/plugin/)
|
|
36
|
+
More at [viewstl.com/plugin](https://www.viewstl.com/plugin/). For v2, see [usage and API notes](docs/v2-usage.md), [release notes](docs/releases/2.0.0-rc.7.md) and [verification](docs/v2-verification.md).
|
|
37
37
|
|
|
38
38
|
The [original README and usage examples](https://github.com/omrips/viewstl/blob/main/legacy/v1/README.md) are preserved with the legacy plugin. ViewSTL uses the [MIT license](LICENSE); optional dependencies retain their [third-party notices](THIRD-PARTY-NOTICES.txt).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as p}from"./chunk-CVGQTUJ5.js";import"./chunk-ZSV4PTIA.js";import{f as a}from"./chunk-FUXP2W57.js";import"./chunk-W5KVLGVR.js";import"./chunk-6AW5U52H.js";function g(c,t,i,n){let o=[];for(let e of t)o.push({id:e.id,bin:a(e,e.scale,e.center)}),n({loaded:o.length,total:t.length,phase:"exporting"});n({loaded:t.length,total:t.length,phase:"packaging"});let l=p({vsj:c,files:o},i);return n({loaded:t.length,total:t.length,phase:"complete"}),new Blob([l],{type:"application/octet-stream"})}export{g as exportSceneArchive};
|