@tresjs/core 4.3.0 → 4.3.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/dist/src/components/TresCanvas.vue.d.ts +5 -4
- package/dist/src/composables/useCamera/index.d.ts +1154 -930
- package/dist/src/composables/useLoader/component.vue.d.ts +7 -8
- package/dist/src/composables/useLoader/index.d.ts +1 -1
- package/dist/src/composables/useRenderer/index.d.ts +1 -1
- package/dist/src/composables/useTexture/component.vue.d.ts +2 -1
- package/dist/src/types/index.d.ts +1 -8
- package/dist/tres.js +272 -368
- package/dist/tres.umd.cjs +3 -3
- package/package.json +30 -31
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { LoaderProto } from './index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
loader: LoaderProto<unknown>;
|
|
4
|
+
url: string | string[];
|
|
5
|
+
};
|
|
2
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
3
8
|
slots: {
|
|
4
9
|
default?(_: {
|
|
5
10
|
data: unknown;
|
|
6
11
|
}): any;
|
|
7
12
|
};
|
|
8
13
|
refs: {};
|
|
9
|
-
|
|
14
|
+
rootEl: any;
|
|
10
15
|
};
|
|
11
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
13
|
-
loader: LoaderProto<unknown>;
|
|
14
|
-
url: string | string[];
|
|
15
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
16
|
-
loader: LoaderProto<unknown>;
|
|
17
|
-
url: string | string[];
|
|
18
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
19
|
export default _default;
|
|
21
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -12,7 +12,7 @@ export type LoaderReturnType<T, L extends LoaderProto<T>> = T extends unknown ?
|
|
|
12
12
|
* @param {Object3D} object
|
|
13
13
|
* @return { [key: string]: any }
|
|
14
14
|
*/
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function traverseObjects(object: Object3D): {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
};
|
|
18
18
|
export type Extensions<T extends {
|
|
@@ -85,7 +85,7 @@ export declare function useRenderer({ canvas, options, contextParts: { sizes, re
|
|
|
85
85
|
advance: () => void;
|
|
86
86
|
};
|
|
87
87
|
}): {
|
|
88
|
-
renderer: import('vue').ShallowRef<WebGLRenderer>;
|
|
88
|
+
renderer: import('vue').ShallowRef<WebGLRenderer, WebGLRenderer>;
|
|
89
89
|
};
|
|
90
90
|
export type UseRendererReturn = ReturnType<typeof useRenderer>;
|
|
91
91
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PBRUseTextureMap } from './index';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {
|
|
5
6
|
textures: {
|
|
@@ -15,7 +16,7 @@ declare function __VLS_template(): {
|
|
|
15
16
|
}): any;
|
|
16
17
|
};
|
|
17
18
|
refs: {};
|
|
18
|
-
|
|
19
|
+
rootEl: any;
|
|
19
20
|
};
|
|
20
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
22
|
declare const __VLS_component: import('vue').DefineComponent<PBRUseTextureMap, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PBRUseTextureMap> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -187,14 +187,7 @@ type TresComponents = {
|
|
|
187
187
|
};
|
|
188
188
|
declare module 'vue' {
|
|
189
189
|
interface GlobalComponents extends TresComponents {
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
declare module '@vue/runtime-core' {
|
|
193
|
-
interface GlobalComponents extends TresComponents {
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
declare module '@vue/runtime-dom' {
|
|
197
|
-
interface GlobalComponents extends TresComponents {
|
|
190
|
+
primitive: DefineComponent<TresPrimitive>;
|
|
198
191
|
}
|
|
199
192
|
}
|
|
200
193
|
export {};
|