@tresjs/cientos 5.2.4 → 5.3.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/dist/trescientos.d.ts +2608 -2608
- package/dist/trescientos.js +7 -4
- package/package.json +7 -7
package/dist/trescientos.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/cientos
|
|
3
|
-
* version: v5.
|
|
3
|
+
* version: v5.3.0
|
|
4
4
|
* (c) 2026
|
|
5
5
|
* description: Collection of useful helpers and fully functional, ready-made abstractions for Tres
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
@@ -1079,14 +1079,17 @@ var component_vue_vue_type_script_setup_true_lang_default$16 = /* @__PURE__ */ d
|
|
|
1079
1079
|
const props = __props;
|
|
1080
1080
|
const imageRef = shallowRef();
|
|
1081
1081
|
const texture$1 = shallowRef(props.texture ?? null);
|
|
1082
|
-
const size = useTres()
|
|
1082
|
+
const { sizes: size, renderer } = useTres();
|
|
1083
1083
|
const planeBounds = computed(() => Array.isArray(props.scale) ? [props.scale[0], props.scale[1]] : [props.scale, props.scale]);
|
|
1084
1084
|
const imageBounds = computed(() => [texture$1.value?.image?.width ?? 0, texture$1.value?.image?.height ?? 0]);
|
|
1085
1085
|
const resolution = computed(() => Math.max(size.width.value, size.height.value));
|
|
1086
1086
|
const { state, isLoading } = useTexture(props.url);
|
|
1087
1087
|
watchEffect(() => {
|
|
1088
1088
|
if (props.texture) texture$1.value = props.texture;
|
|
1089
|
-
if (!isLoading.value)
|
|
1089
|
+
if (!isLoading.value) {
|
|
1090
|
+
texture$1.value = state.value;
|
|
1091
|
+
texture$1.value.colorSpace = renderer.outputColorSpace;
|
|
1092
|
+
}
|
|
1090
1093
|
});
|
|
1091
1094
|
const scale = computed(() => Array.isArray(props.scale) ? [...props.scale, 1] : props.scale);
|
|
1092
1095
|
__expose({ instance: imageRef });
|
|
@@ -11693,7 +11696,7 @@ var component_vue_vue_type_script_setup_true_lang_default$1 = /* @__PURE__ */ de
|
|
|
11693
11696
|
}
|
|
11694
11697
|
});
|
|
11695
11698
|
onUnmounted(() => {
|
|
11696
|
-
mat.uniforms.uMap.value?.dispose();
|
|
11699
|
+
mat.uniforms.uMap.value?.dispose?.();
|
|
11697
11700
|
infoTexture.value.dispose();
|
|
11698
11701
|
mat.dispose();
|
|
11699
11702
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/cientos",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.3.0",
|
|
5
5
|
"description": "Collection of useful helpers and fully functional, ready-made abstractions for Tres",
|
|
6
6
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@tresjs/core": "5.
|
|
41
|
+
"@tresjs/core": "5.4.0",
|
|
42
42
|
"three": ">=0.133",
|
|
43
43
|
"vue": ">=3.5.17"
|
|
44
44
|
},
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"stats-gl": "^2.0.1",
|
|
49
49
|
"stats.js": "^0.17.0",
|
|
50
50
|
"three-custom-shader-material": "^5.4.0",
|
|
51
|
-
"three-stdlib": "^2.36.
|
|
51
|
+
"three-stdlib": "^2.36.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/node": "^24.
|
|
55
|
-
"@types/three": "^0.
|
|
54
|
+
"@types/node": "^24.5.2",
|
|
55
|
+
"@types/three": "^0.182.0",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
57
57
|
"@typescript-eslint/parser": "^8.42.0",
|
|
58
58
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"pathe": "^2.0.3",
|
|
63
63
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
64
64
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
65
|
-
"three": "^0.
|
|
65
|
+
"three": "^0.182.0",
|
|
66
66
|
"tsdown": "0.18.3",
|
|
67
67
|
"typescript": "^5.8.3",
|
|
68
68
|
"vite": "^7.1.9",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"vite-plugin-glsl": "^1.5.1",
|
|
72
72
|
"vite-svg-loader": "^5.1.0",
|
|
73
73
|
"vue-tsc": "^3.2.1",
|
|
74
|
-
"@tresjs/core": "5.
|
|
74
|
+
"@tresjs/core": "5.4.0",
|
|
75
75
|
"@tresjs/eslint-config": "1.5.1"
|
|
76
76
|
},
|
|
77
77
|
"nx": {
|