x_ite-spz-parser 1.1.5 → 1.2.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/README.md CHANGED
@@ -13,25 +13,25 @@ Include the script after X_ITE:
13
13
 
14
14
  ```html
15
15
  <script defer src="https://cdn.jsdelivr.net/npm/x_ite@VERSION/dist/x_ite.min.js"></script>
16
- <script defer src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.1.5/dist/x_ite-spz-parser-4.min.js"></script>
16
+ <script defer src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-4.min.js"></script>
17
17
  <!-- or/and for version 1-3 SPZ format -->
18
- <script defer src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.1.5/dist/x_ite-spz-parser-123.min.js"></script>
18
+ <script defer src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-123.min.js"></script>
19
19
 
20
20
  <!-- or as ES module -->
21
21
  <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite@VERSION/dist/x_ite.min.mjs"></script>
22
- <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.1.5/dist/x_ite-spz-parser-4.min.js"></script>
22
+ <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-4.min.js"></script>
23
23
  <!-- or/and for version 1-3 SPZ format -->
24
- <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.1.5/dist/x_ite-spz-parser-123.min.js"></script>
24
+ <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-spz-parser@1.2.0/dist/x_ite-spz-parser-123.min.js"></script>
25
25
  ```
26
26
 
27
- Now you can load 3DGS SPZ files with the `data-src` attribute:
27
+ Now you can directly load `.spz` files with the `src` attribute, but you also have to add the `extensions` attribute with a number, how many X_ITE extension you have included. Each extension will decrease this count and when it becomes `0`, the canvas knows that all extensions are loaded and now starts loading the file in the `src` attribute.
28
+
29
+ You can also use `.spz` files as source of an Inline node.
28
30
 
29
31
  ```html
30
32
  <x3d-canvas data-src="room.spz"></x3d-canvas>
31
33
  ```
32
34
 
33
- Or use `.spz` files as source of an Inline node.
34
-
35
35
  ## NPM
36
36
 
37
37
  You can also install it from npm:
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite-spz-parser",
3
- "version": "1.1.5",
3
+ "version": "1.2.0",
4
4
  "description": "3DGS SPZ File Format Parser for X_ITE",
5
5
  "main": "dist/x_ite-spz-parser-4.js",
6
6
  "module": "dist/x_ite-spz-parser-4.js",