@threlte/gltf 3.0.0-next.3 → 3.0.0-next.5
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 +12 -0
- package/package.json +2 -2
- package/src/utils/parser.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @threlte/gltf
|
|
2
2
|
|
|
3
|
+
## 3.0.0-next.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fa8a61c: Bump Svelte compiler version
|
|
8
|
+
|
|
9
|
+
## 3.0.0-next.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 54bdef9: Fix gltf parser template for isolated components
|
|
14
|
+
|
|
3
15
|
## 3.0.0-next.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/gltf",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.5",
|
|
4
4
|
"description": "GLTF to Threlte converter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"prettier": "^3.2.5",
|
|
43
43
|
"prettier-plugin-svelte": "^3.2.2",
|
|
44
44
|
"sharp": "^0.32.0",
|
|
45
|
-
"svelte": "5.0.0-next.
|
|
45
|
+
"svelte": "5.0.0-next.181",
|
|
46
46
|
"three": "0.122.0",
|
|
47
47
|
"three-stdlib": "^2.21.8"
|
|
48
48
|
},
|
package/src/utils/parser.js
CHANGED
|
@@ -541,9 +541,9 @@ ${
|
|
|
541
541
|
${options.isolated ? '' : '...props'}
|
|
542
542
|
}${
|
|
543
543
|
options.types
|
|
544
|
-
? `: Props<THREE.Group> & {
|
|
544
|
+
? `: ${options.isolated ? '' : 'Props<THREE.Group> & '} {
|
|
545
545
|
${options.isolated ? '' : 'ref?: THREE.Group'}
|
|
546
|
-
children?: Snippet<[{ ref: THREE.Group }]>
|
|
546
|
+
children?: ${options.isolated ? 'Snippet' : 'Snippet<[{ ref: THREE.Group }]>'}
|
|
547
547
|
fallback?: Snippet
|
|
548
548
|
error?: Snippet<[{ error: Error }]>
|
|
549
549
|
}`
|
|
@@ -569,11 +569,11 @@ ${
|
|
|
569
569
|
{@render fallback?.()}
|
|
570
570
|
{:then gltf}
|
|
571
571
|
${scene}
|
|
572
|
-
{:catch
|
|
573
|
-
{@render error?.({ error })}
|
|
572
|
+
{:catch err}
|
|
573
|
+
{@render error?.({ error: err })}
|
|
574
574
|
{/await}
|
|
575
575
|
|
|
576
|
-
{@render children?.({ ref })}
|
|
576
|
+
{@render children?.(${options.isolated ? '' : '{ ref }'})}
|
|
577
577
|
</T.Group>
|
|
578
578
|
`
|
|
579
579
|
}
|