@omrips/viewstl 2.0.0-rc.8 → 2.0.0-rc.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/README.md CHANGED
@@ -1,40 +1,42 @@
1
1
  > This is the maintained `@omrips/viewstl` package. The shorter `npm install viewstl` installs the same plugin. Existing `@omrips/viewstl` and `@omrips/viewstl/node` imports remain supported.
2
2
 
3
- # Viewstl
4
-
5
- Javascript STL/OBJ/3MF/STEP/IGES 3D files Viewer
6
-
7
- **ViewSTL v2.00 — release candidate 2.0.0-rc.8.** 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.
8
-
9
- 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).
10
-
11
- ## Usage:
12
-
13
- Download the [v2 plugin ZIP](https://github.com/omrips/viewstl/releases/download/v2.0.0-rc.8/viewstl-2.0.0-rc.8.zip) and copy its complete `build/` folder to your website. Add to your page:
14
-
15
- ```html
16
- <div id="stl_cont" style="height:500px"></div>
17
- <script src="build/viewstl.min.js"></script>
18
- <script>var stl_viewer=new StlViewer(document.getElementById("stl_cont"), {models:[{id:0, filename:"mystl.stl"}]});</script>
19
- ```
20
-
21
- Replace `mystl.stl` with your model and serve the page over HTTP(S). Keep the worker, `chunks/` and `cad/` folders alongside the viewer. Archive/CAD dependencies are included and load only when needed; v2 does not require a separate JSZip setup.
22
-
23
- ## npm / Node.js:
24
-
25
- ```sh
26
- npm install viewstl
27
- ```
28
-
29
- Browser apps can import `StlViewer` from `viewstl`; see [worker setup](https://github.com/omrips/viewstl/blob/main/docs/v2-usage.md#es-modules-and-npm). Server-only analysis requires Node.js 20+:
30
-
31
- ```js
32
- import { analyzeFile } from 'viewstl/node';
33
- console.log(await analyzeFile('part.stl', { units: 'mm' }));
34
- ```
35
-
36
- 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.
37
-
38
- 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.8.md) and [verification](docs/v2-verification.md).
39
-
40
- 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).
3
+ # Viewstl
4
+
5
+ Javascript STL/OBJ/3MF/STEP/IGES 3D files Viewer
6
+
7
+ **ViewSTL v2.00 — release candidate 2.0.0-rc.9.** 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.
8
+
9
+ 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).
10
+
11
+ The plugin contains model/scene operations; website controls and dialogs are separate. rc.8 app-helper users should read the [migration note](docs/v2-usage.md#viewer-sessions-and-custom-interfaces).
12
+
13
+ ## Usage:
14
+
15
+ Download the [v2 plugin ZIP](https://github.com/omrips/viewstl/releases/download/v2.0.0-rc.9/viewstl-2.0.0-rc.9.zip) and copy its complete `build/` folder to your website. Add to your page:
16
+
17
+ ```html
18
+ <div id="stl_cont" style="height:500px"></div>
19
+ <script src="build/viewstl.min.js"></script>
20
+ <script>var stl_viewer=new StlViewer(document.getElementById("stl_cont"), {models:[{id:0, filename:"mystl.stl"}]});</script>
21
+ ```
22
+
23
+ Replace `mystl.stl` with your model and serve the page over HTTP(S). Keep the worker, `chunks/` and `cad/` folders alongside the viewer. Archive/CAD dependencies are included and load only when needed; v2 does not require a separate JSZip setup.
24
+
25
+ ## npm / Node.js:
26
+
27
+ ```sh
28
+ npm install viewstl
29
+ ```
30
+
31
+ Browser apps can import `StlViewer` from `viewstl`; see [worker setup](https://github.com/omrips/viewstl/blob/main/docs/v2-usage.md#es-modules-and-npm). Server-only analysis requires Node.js 20+:
32
+
33
+ ```js
34
+ import { analyzeFile } from 'viewstl/node';
35
+ console.log(await analyzeFile('part.stl', { units: 'mm' }));
36
+ ```
37
+
38
+ 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.
39
+
40
+ 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.9.md) and [verification](docs/v2-verification.md).
41
+
42
+ 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).