@tresjs/core 3.7.0-next.0 → 3.8.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/index.d.ts +3 -18
- package/dist/{components → src/components}/TresCanvas.vue.d.ts +11 -9
- package/dist/src/components/index.d.ts +3 -0
- package/dist/{composables → src/composables}/useCamera/index.d.ts +472 -433
- package/dist/{composables → src/composables}/useLogger.d.ts +5 -2
- package/dist/{composables → src/composables}/usePointerEventHandler/index.d.ts +4 -3
- package/dist/{composables → src/composables}/useRenderLoop/index.d.ts +3 -2
- package/dist/{composables → src/composables}/useRenderer/index.d.ts +8 -8
- package/dist/src/composables/useSizes/index.d.ts +12 -0
- package/dist/{composables → src/composables}/useTexture/index.d.ts +2 -1
- package/dist/{composables → src/composables}/useTresContextProvider/index.d.ts +6 -9
- package/dist/{core → src/core}/catalogue.d.ts +3 -2
- package/dist/src/core/nodeOps.d.ts +4 -0
- package/dist/{core → src/core}/renderer.d.ts +1 -1
- package/dist/src/devtools/highlight.d.ts +7 -0
- package/dist/src/devtools/index.d.ts +1 -0
- package/dist/src/devtools/plugin.d.ts +16 -0
- package/dist/src/devtools/utils.d.ts +7 -0
- package/dist/src/directives/index.d.ts +6 -0
- package/dist/src/directives/vAlwaysLookAt.d.ts +7 -0
- package/dist/src/directives/vDistanceTo.d.ts +7 -0
- package/dist/src/directives/vLightHelper.d.ts +7 -0
- package/dist/src/directives/vLog.d.ts +7 -0
- package/dist/src/index.d.ts +19 -0
- package/dist/{types → src/types}/index.d.ts +3 -2
- package/dist/{utils → src/utils}/index.d.ts +8 -8
- package/dist/{utils → src/utils}/normalize.d.ts +2 -2
- package/dist/{utils → src/utils}/perf.d.ts +3 -2
- package/dist/src/utils/test-utils.d.ts +1 -0
- package/dist/tres.js +999 -462
- package/dist/tres.umd.cjs +3 -3
- package/package.json +14 -13
- package/dist/components/index.d.ts +0 -2
- package/dist/composables/useLoader/index.d.ts +0 -44
- package/dist/composables/useRaycaster/index.d.ts +0 -18
- package/dist/composables/useSeek/index.d.ts +0 -19
- package/dist/core/nodeOps.d.ts +0 -3
- package/dist/utils/test-utils.d.ts +0 -1
- /package/dist/{composables → src/composables}/index.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRenderer/const.d.ts +0 -0
- /package/dist/{core → src/core}/revision.d.ts +0 -0
- /package/dist/{utils → src/utils}/template-compiler-options.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import templateCompilerOptions from './utils/template-compiler-options';
|
|
5
|
-
export * from './composables';
|
|
6
|
-
export * from './core/catalogue';
|
|
7
|
-
export * from './components';
|
|
8
|
-
export * from './types';
|
|
9
|
-
export interface TresOptions {
|
|
10
|
-
extends?: Record<string, unknown>;
|
|
11
|
-
}
|
|
12
|
-
export interface TresPlugin {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
install: (app: App, options?: TresOptions) => void;
|
|
15
|
-
}
|
|
16
|
-
declare const plugin: TresPlugin;
|
|
17
|
-
export default plugin;
|
|
18
|
-
export { normalizeColor, normalizeVectorFlexibleParam, templateCompilerOptions, dispose, };
|
|
1
|
+
export * from './src/index'
|
|
2
|
+
import Tres from './src/index'
|
|
3
|
+
export default Tres
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { TresCamera } from '../types/';
|
|
2
|
+
import { RendererPresetsType } from '../composables/useRenderer/const';
|
|
3
|
+
import { TresContext } from '../composables';
|
|
4
|
+
import { WebGLRendererParameters, ColorSpace, ShadowMapType, ToneMapping } from 'three';
|
|
5
|
+
|
|
6
6
|
export interface TresCanvasProps extends Omit<WebGLRendererParameters, 'canvas'> {
|
|
7
7
|
shadows?: boolean;
|
|
8
8
|
clearColor?: string;
|
|
@@ -16,7 +16,7 @@ export interface TresCanvasProps extends Omit<WebGLRendererParameters, 'canvas'>
|
|
|
16
16
|
windowSize?: boolean;
|
|
17
17
|
disableRender?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TresCanvasProps>, {
|
|
20
20
|
alpha: undefined;
|
|
21
21
|
depth: undefined;
|
|
22
22
|
shadows: undefined;
|
|
@@ -29,9 +29,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
logarithmicDepthBuffer: undefined;
|
|
30
30
|
failIfMajorPerformanceCaveat: undefined;
|
|
31
31
|
}>, {
|
|
32
|
-
context:
|
|
32
|
+
context: import("vue").ShallowRef<TresContext | null>;
|
|
33
33
|
dispose: () => void;
|
|
34
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TresCanvasProps>, {
|
|
35
35
|
alpha: undefined;
|
|
36
36
|
depth: undefined;
|
|
37
37
|
shadows: undefined;
|
|
@@ -57,7 +57,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
57
57
|
disableRender: boolean;
|
|
58
58
|
}, {}>, Readonly<{
|
|
59
59
|
default(): any;
|
|
60
|
-
}
|
|
60
|
+
}> & {
|
|
61
|
+
default(): any;
|
|
62
|
+
}>;
|
|
61
63
|
export default _default;
|
|
62
64
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
63
65
|
type __VLS_TypePropsToRuntimeProps<T> = {
|