@needle-tools/gltf-progressive 2.1.0 → 2.1.2
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 +7 -0
- package/README.md +2 -2
- package/examples/threejs/index.html +2 -1
- package/examples/threejs/main.js +1 -1
- package/gltf-progressive.js +381 -380
- package/gltf-progressive.min.js +7 -7
- package/gltf-progressive.umd.cjs +7 -7
- package/lib/extension.js +3 -0
- package/lib/loaders.d.ts +3 -3
- package/lib/loaders.js +30 -7
- package/lib/version.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [2.1.2] - 2025-03-10
|
|
8
|
+
- Chore: Update examples
|
|
9
|
+
|
|
10
|
+
## [2.1.1] - 2025-02-20
|
|
11
|
+
- Fix: Handle failed progressive texture loading due to e.g. offline or missing files
|
|
12
|
+
- Fix: Regression causing custom KTX2Transcoder location not working for e.g. offline usage
|
|
13
|
+
|
|
7
14
|
## [2.1.0] - 2025-02-13
|
|
8
15
|
- Bump version
|
|
9
16
|
|
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ The full example can be found at `examples/threejs`
|
|
|
63
63
|
"three": "https://cdn.jsdelivr.net/npm/three@latest/build/three.module.js",
|
|
64
64
|
"three/addons/": "https://cdn.jsdelivr.net/npm/three@latest/examples/jsm/",
|
|
65
65
|
"three/examples/": "https://cdn.jsdelivr.net/npm/three@latest/examples/",
|
|
66
|
-
"@needle-
|
|
66
|
+
"@needle-tools/gltf-progressive": "https://cdn.jsdelivr.net/npm/@needle-tools/gltf-progressive/gltf-progressive.min.js"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
</script>
|
|
@@ -104,7 +104,7 @@ The example can be found in `examples/modelviewer.html`
|
|
|
104
104
|
}
|
|
105
105
|
</script>
|
|
106
106
|
<!-- Include gltf-progressive -->
|
|
107
|
-
<script type="module" src="https://
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@needle-tools/gltf-progressive/gltf-progressive.min.js"></script>
|
|
108
108
|
<!-- Include model-viewer -->
|
|
109
109
|
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.4.0/model-viewer.min.js"></script>
|
|
110
110
|
</head>
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"imports": {
|
|
16
16
|
"three": "https://cdn.jsdelivr.net/npm/three@latest/build/three.module.js",
|
|
17
17
|
"three/addons/": "https://cdn.jsdelivr.net/npm/three@latest/examples/jsm/",
|
|
18
|
-
"three/examples/": "https://cdn.jsdelivr.net/npm/three@latest/examples/"
|
|
18
|
+
"three/examples/": "https://cdn.jsdelivr.net/npm/three@latest/examples/",
|
|
19
|
+
"@needle-tools/gltf-progressive": "https://cdn.jsdelivr.net/npm/@needle-tools/gltf-progressive/gltf-progressive.min.js"
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
</script>
|
package/examples/threejs/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as THREE from 'three';
|
|
|
2
2
|
import { EXRLoader } from 'three/addons/loaders/EXRLoader.js';
|
|
3
3
|
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
|
4
4
|
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
5
|
-
import { useNeedleProgressive, getRaycastMesh, useRaycastMeshes } from "
|
|
5
|
+
import { useNeedleProgressive, getRaycastMesh, useRaycastMeshes } from "@needle-tools/gltf-progressive";
|
|
6
6
|
import { Pane } from 'https://cdn.jsdelivr.net/npm/tweakpane@4.0.3/dist/tweakpane.min.js';
|
|
7
7
|
|
|
8
8
|
|