@tresjs/core 5.1.0 → 5.1.1
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/chunk-QpvadvMP.js +30 -0
- package/dist/template-compiler-options.d.mts +17 -0
- package/dist/template-compiler-options.mjs +18 -0
- package/dist/tres.d.ts +1056 -0
- package/dist/tres.js +2349 -5573
- package/package.json +21 -26
- package/components.d.ts +0 -1
- package/composables.d.ts +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/src/components/TresCanvas.vue.d.ts +0 -94
- package/dist/src/components/index.d.ts +0 -2
- package/dist/src/composables/index.d.ts +0 -9
- package/dist/src/composables/useCamera/index.d.ts +0 -43
- package/dist/src/composables/useCreateRafLoop/index.d.ts +0 -14
- package/dist/src/composables/useEventManager/index.d.ts +0 -10
- package/dist/src/composables/useGraph/index.d.ts +0 -3
- package/dist/src/composables/useLoader/component.vue.d.ts +0 -38
- package/dist/src/composables/useLoader/index.d.ts +0 -51
- package/dist/src/composables/useLoop/index.d.ts +0 -14
- package/dist/src/composables/useRenderer/pixelRatio.d.ts +0 -4
- package/dist/src/composables/useRenderer/useRendererManager.d.ts +0 -194
- package/dist/src/composables/useSizes/index.d.ts +0 -11
- package/dist/src/composables/useTres/index.d.ts +0 -37
- package/dist/src/composables/useTresContextProvider/index.d.ts +0 -24
- package/dist/src/core/catalogue.d.ts +0 -9
- package/dist/src/core/nodeOps.d.ts +0 -4
- package/dist/src/core/revision.d.ts +0 -1
- package/dist/src/devtools/DevtoolsMessenger.d.ts +0 -53
- package/dist/src/devtools/highlight.d.ts +0 -7
- package/dist/src/devtools/index.d.ts +0 -2
- package/dist/src/devtools/inspectorHandlers.d.ts +0 -60
- package/dist/src/devtools/plugin.d.ts +0 -10
- package/dist/src/devtools/setupDevtools.d.ts +0 -14
- package/dist/src/devtools/types.d.ts +0 -90
- package/dist/src/devtools/utils.d.ts +0 -7
- package/dist/src/directives/index.d.ts +0 -4
- package/dist/src/directives/vDistanceTo.d.ts +0 -6
- package/dist/src/directives/vLightHelper.d.ts +0 -6
- package/dist/src/directives/vLog.d.ts +0 -6
- package/dist/src/index.d.ts +0 -25
- package/dist/src/types/index.d.ts +0 -137
- package/dist/src/utils/array.d.ts +0 -6
- package/dist/src/utils/createPriorityEventHook.d.ts +0 -15
- package/dist/src/utils/graph.d.ts +0 -15
- package/dist/src/utils/index.d.ts +0 -19
- package/dist/src/utils/is/dom.d.ts +0 -1
- package/dist/src/utils/is/index.d.ts +0 -4
- package/dist/src/utils/is/three.d.ts +0 -162
- package/dist/src/utils/is/tres.d.ts +0 -70
- package/dist/src/utils/is/typed.d.ts +0 -1
- package/dist/src/utils/is/util.d.ts +0 -1
- package/dist/src/utils/logger.d.ts +0 -25
- package/dist/src/utils/makeMap.d.ts +0 -9
- package/dist/src/utils/normalize.d.ts +0 -17
- package/dist/src/utils/perf.d.ts +0 -7
- package/dist/src/utils/pointerEvents.d.ts +0 -10
- package/dist/src/utils/primitive/createRetargetingProxy.d.ts +0 -1
- package/dist/src/utils/string.d.ts +0 -1
- package/dist/src/utils/template-compiler-options.d.ts +0 -8
- package/dist/src/utils/test-utils.d.ts +0 -2
- package/dist/src/utils/three.d.ts +0 -9
- package/types.d.ts +0 -1
- package/utils.d.ts +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: @tresjs/core
|
|
3
|
+
* version: v5.1.1
|
|
4
|
+
* (c) 2025
|
|
5
|
+
* description: Declarative ThreeJS using Vue Components
|
|
6
|
+
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
|
+
*/
|
|
8
|
+
//#region rolldown:runtime
|
|
9
|
+
var __create = Object.create;
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
17
|
+
key = keys[i];
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: ((k) => from[k]).bind(null, key),
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: true
|
|
28
|
+
}) : target, mod));
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: @tresjs/core
|
|
3
|
+
* version: v5.1.1
|
|
4
|
+
* (c) 2025
|
|
5
|
+
* description: Declarative ThreeJS using Vue Components
|
|
6
|
+
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
|
+
*/
|
|
8
|
+
//#region src/utils/template-compiler-options.d.ts
|
|
9
|
+
declare const templateCompilerOptions: {
|
|
10
|
+
template: {
|
|
11
|
+
compilerOptions: {
|
|
12
|
+
isCustomElement: (tag: string) => boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { templateCompilerOptions as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: @tresjs/core
|
|
3
|
+
* version: v5.1.1
|
|
4
|
+
* (c) 2025
|
|
5
|
+
* description: Declarative ThreeJS using Vue Components
|
|
6
|
+
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
|
+
*/
|
|
8
|
+
//#region src/utils/template-compiler-options.ts
|
|
9
|
+
const whitelist = [
|
|
10
|
+
"TresCanvas",
|
|
11
|
+
"TresLeches",
|
|
12
|
+
"TresScene"
|
|
13
|
+
];
|
|
14
|
+
const templateCompilerOptions = { template: { compilerOptions: { isCustomElement: (tag) => (/^Tres[A-Z]/.test(tag) || tag.startsWith("tres-")) && !whitelist.includes(tag) || tag === "primitive" } } };
|
|
15
|
+
var template_compiler_options_default = templateCompilerOptions;
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { template_compiler_options_default as default };
|