@tresjs/cientos 4.3.1 → 5.0.0-alpha.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/core/abstractions/AnimatedSprite/component.vue.d.ts +14 -4
- package/dist/core/abstractions/Billboard.vue.d.ts +24 -6
- package/dist/core/abstractions/CubeCamera/component.vue.d.ts +14 -4
- package/dist/core/abstractions/CubeCamera/useCubeCamera.d.ts +3 -2
- package/dist/core/abstractions/Edges.vue.d.ts +15 -5
- package/dist/core/abstractions/GradientTexture.vue.d.ts +14 -1
- package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +3 -1
- package/dist/core/abstractions/Image/component.vue.d.ts +3 -9
- package/dist/core/abstractions/Lensflare/LensflareImpl.d.ts +23 -0
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +12 -3
- package/dist/core/abstractions/Levioso.vue.d.ts +22 -16
- package/dist/core/abstractions/MarchingCubes/MarchingCube.vue.d.ts +22 -0
- package/dist/core/abstractions/MarchingCubes/MarchingCubes.vue.d.ts +35 -0
- package/dist/core/abstractions/MarchingCubes/MarchingPlane.vue.d.ts +20 -0
- package/dist/core/abstractions/MarchingCubes/const.d.ts +2 -0
- package/dist/core/abstractions/Mask/component.vue.d.ts +15 -5
- package/dist/core/abstractions/MouseParallax.vue.d.ts +11 -1
- package/dist/core/abstractions/Outline/component.vue.d.ts +12 -2
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +11 -2
- package/dist/core/abstractions/Reflector.vue.d.ts +5 -2
- package/dist/core/abstractions/ScreenSizer.vue.d.ts +24 -6
- package/dist/core/abstractions/ScreenSpace.vue.d.ts +14 -4
- package/dist/core/abstractions/Text3D.vue.d.ts +14 -4
- package/dist/core/abstractions/index.d.ts +4 -1
- package/dist/core/abstractions/useAnimations.d.ts +7 -5
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +14 -4
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +3 -2
- package/dist/core/controls/CameraControls.vue.d.ts +4 -2
- package/dist/core/controls/Helper/component.vue.d.ts +16 -0
- package/dist/core/controls/Helper/useHelper.d.ts +10 -0
- package/dist/core/controls/MapControls.vue.d.ts +3 -1
- package/dist/core/controls/OrbitControls.vue.d.ts +3 -1
- package/dist/core/controls/PointerLockControls.vue.d.ts +3 -1
- package/dist/core/controls/ScrollControls.vue.d.ts +23 -18
- package/dist/core/controls/TransformControls.vue.d.ts +3 -1
- package/dist/core/controls/index.d.ts +2 -1
- package/dist/core/loaders/index.d.ts +6 -2
- package/dist/core/loaders/useFBX/component.vue.d.ts +4 -11
- package/dist/core/loaders/useFBX/index.d.ts +28 -5
- package/dist/core/loaders/useGLTF/component.vue.d.ts +3 -15
- package/dist/core/loaders/useGLTF/index.d.ts +31 -27
- package/dist/core/loaders/{SVG → useSVG}/component.vue.d.ts +2 -1
- package/dist/core/loaders/useSVG/index.d.ts +65 -0
- package/dist/core/loaders/useTexture/component.vue.d.ts +5134 -0
- package/dist/core/loaders/useTexture/index.d.ts +3 -0
- package/dist/core/loaders/useTextures/index.d.ts +13 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -1
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +7 -16
- package/dist/core/materials/index.d.ts +2 -1
- package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +3 -1
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -1
- package/dist/core/materials/meshGlassMaterial/material.d.ts +11 -2
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +7 -5
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +7 -7
- package/dist/core/materials/pointMaterial/component.vue.d.ts +8 -0
- package/dist/core/materials/pointMaterial/material.d.ts +4 -0
- package/dist/core/misc/LOD.vue.d.ts +52 -0
- package/dist/core/misc/html/HTML.vue.d.ts +25 -7
- package/dist/core/misc/index.d.ts +3 -1
- package/dist/core/misc/useIntersect.d.ts +9 -0
- package/dist/core/shapes/Box.vue.d.ts +14 -4
- package/dist/core/shapes/Circle.vue.d.ts +15 -5
- package/dist/core/shapes/Cone.vue.d.ts +14 -4
- package/dist/core/shapes/CubicBezierLine.vue.d.ts +49 -0
- package/dist/core/shapes/Cylinder.vue.d.ts +14 -4
- package/dist/core/shapes/Dodecahedron.vue.d.ts +14 -4
- package/dist/core/shapes/Icosahedron.vue.d.ts +14 -4
- package/dist/core/shapes/Line2.vue.d.ts +2 -2
- package/dist/core/shapes/Octahedron.vue.d.ts +14 -4
- package/dist/core/shapes/Plane.vue.d.ts +15 -5
- package/dist/core/shapes/QuadraticBezierLine.vue.d.ts +48 -0
- package/dist/core/shapes/Ring.vue.d.ts +14 -4
- package/dist/core/shapes/RoundedBox.vue.d.ts +14 -4
- package/dist/core/shapes/ScreenQuad.vue.d.ts +38 -0
- package/dist/core/shapes/Sphere.vue.d.ts +14 -4
- package/dist/core/shapes/Superformula.vue.d.ts +14 -4
- package/dist/core/shapes/Tetrahedron.vue.d.ts +14 -4
- package/dist/core/shapes/Torus.vue.d.ts +14 -4
- package/dist/core/shapes/TorusKnot.vue.d.ts +14 -4
- package/dist/core/shapes/Tube.vue.d.ts +14 -4
- package/dist/core/shapes/index.d.ts +4 -1
- package/dist/core/staging/AccumulativeShadows/ProgressiveLightMap.d.ts +35 -0
- package/dist/core/staging/AccumulativeShadows/SoftShadowMaterial.d.ts +10 -0
- package/dist/core/staging/AccumulativeShadows/component.vue.d.ts +115 -0
- package/dist/core/staging/Align.vue.d.ts +46 -16
- package/dist/core/staging/Backdrop.vue.d.ts +23 -5
- package/dist/core/staging/Bounds/Bounds.d.ts +73 -0
- package/dist/core/staging/Bounds/component.vue.d.ts +60 -0
- package/dist/core/staging/CircleShadow.vue.d.ts +27 -0
- package/dist/core/staging/ContactShadows.vue.d.ts +2 -2
- package/dist/core/staging/Fit.vue.d.ts +35 -9
- package/dist/core/staging/Grid.vue.d.ts +11 -2
- package/dist/core/staging/Ocean.vue.d.ts +5 -2
- package/dist/core/staging/Precipitation.vue.d.ts +18 -1
- package/dist/core/staging/RandomizedLights/RandomizedLights.d.ts +29 -0
- package/dist/core/staging/RandomizedLights/component.vue.d.ts +43 -0
- package/dist/core/staging/Sky.vue.d.ts +1 -1
- package/dist/core/staging/Smoke.vue.d.ts +18 -1
- package/dist/core/staging/Sparkles/component.vue.d.ts +1 -1
- package/dist/core/staging/Stage.vue.d.ts +677 -0
- package/dist/core/staging/Stars.vue.d.ts +10 -1
- package/dist/core/staging/index.d.ts +6 -1
- package/dist/core/staging/useEnvironment/component.vue.d.ts +7 -4
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +24 -13
- package/dist/trescientos.js +52470 -11172
- package/package.json +29 -27
- package/dist/composables/useLogger.d.ts +0 -8
- package/dist/trescientos.umd.cjs +0 -1721
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Texture } from 'three';
|
|
2
|
+
import { MaybeRef } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* Composable that loads multiple textures at once
|
|
5
|
+
*
|
|
6
|
+
* @param paths - Array of paths to texture files
|
|
7
|
+
* @returns Object containing textures, loading state, and error state
|
|
8
|
+
*/
|
|
9
|
+
export declare function useTextures(paths: MaybeRef<string[]>): {
|
|
10
|
+
textures: import('vue').ComputedRef<Texture[]>;
|
|
11
|
+
isLoading: import('vue').ComputedRef<boolean>;
|
|
12
|
+
error: import('vue').ComputedRef<Error[] | null>;
|
|
13
|
+
};
|
|
@@ -10,5 +10,7 @@ interface CustomShaderMaterialProps {
|
|
|
10
10
|
}
|
|
11
11
|
declare const _default: import('vue').DefineComponent<CustomShaderMaterialProps, {
|
|
12
12
|
instance: import('vue').ShallowRef<null, null>;
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CustomShaderMaterialProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CustomShaderMaterialProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
+
customShaderMaterialClass: unknown;
|
|
15
|
+
}, any>;
|
|
14
16
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TresColor } from '@tresjs/core';
|
|
2
2
|
import { Side } from 'three';
|
|
3
3
|
import { default as HolographicMaterial } from './HolographicMaterialParameters';
|
|
4
|
-
|
|
4
|
+
type __VLS_Props = {
|
|
5
5
|
fresnelAmount?: number;
|
|
6
6
|
fresnelOpacity?: number;
|
|
7
7
|
blinkFresnelOnly?: boolean;
|
|
@@ -13,22 +13,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
13
13
|
hologramOpacity?: number;
|
|
14
14
|
hologramColor?: TresColor;
|
|
15
15
|
side?: Side;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
17
18
|
root: import('vue').ShallowRef<any, any>;
|
|
18
19
|
constructor: typeof HolographicMaterial;
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
20
|
-
fresnelAmount?: number;
|
|
21
|
-
fresnelOpacity?: number;
|
|
22
|
-
blinkFresnelOnly?: boolean;
|
|
23
|
-
enableBlinking?: boolean;
|
|
24
|
-
enableAdditive?: boolean;
|
|
25
|
-
hologramBrightness?: number;
|
|
26
|
-
scanlineSize?: number;
|
|
27
|
-
signalSpeed?: number;
|
|
28
|
-
hologramOpacity?: number;
|
|
29
|
-
hologramColor?: TresColor;
|
|
30
|
-
side?: Side;
|
|
31
|
-
}> & Readonly<{}>, {
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
32
21
|
side: Side;
|
|
33
22
|
fresnelOpacity: number;
|
|
34
23
|
fresnelAmount: number;
|
|
@@ -40,5 +29,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
40
29
|
blinkFresnelOnly: boolean;
|
|
41
30
|
hologramOpacity: number;
|
|
42
31
|
enableAdditive: boolean;
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
|
+
MeshHolographicMaterialClass: unknown;
|
|
34
|
+
}, any>;
|
|
44
35
|
export default _default;
|
|
@@ -4,4 +4,5 @@ import { default as MeshDiscardMaterial } from './meshDiscardMaterial/index.vue'
|
|
|
4
4
|
import { default as MeshGlassMaterial } from './meshGlassMaterial/index.vue';
|
|
5
5
|
import { default as MeshReflectionMaterial } from './meshReflectionMaterial/index.vue';
|
|
6
6
|
import { default as MeshWobbleMaterial } from './meshWobbleMaterial/index.vue';
|
|
7
|
-
|
|
7
|
+
import { default as PointMaterial } from './pointMaterial/component.vue';
|
|
8
|
+
export { CustomShaderMaterial, HolographicMaterial, MeshDiscardMaterial, MeshGlassMaterial, MeshReflectionMaterial, MeshWobbleMaterial, PointMaterial, };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
2
|
instance: import('vue').ShallowRef<any, any>;
|
|
3
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
4
|
+
meshDiscardMaterialRef: unknown;
|
|
5
|
+
}, any>;
|
|
4
6
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
2
|
instance: import('vue').ShallowRef<any, any>;
|
|
3
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
4
|
+
MeshGlassMaterialClass: unknown;
|
|
5
|
+
}, any>;
|
|
4
6
|
export default _default;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { MeshStandardMaterialParameters, Color, MeshStandardMaterial, Vector2 } from 'three';
|
|
2
|
-
declare
|
|
2
|
+
declare module 'three' {
|
|
3
|
+
interface Material {
|
|
4
|
+
defines: Record<string, string | number | boolean>;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
interface IMeshGlassMaterial extends MeshStandardMaterial {
|
|
8
|
+
defines: Record<string, string | number | boolean>;
|
|
9
|
+
version: number;
|
|
10
|
+
}
|
|
11
|
+
declare class MeshGlassMaterial extends MeshStandardMaterial implements IMeshGlassMaterial {
|
|
3
12
|
isMeshPhysicalMaterial: boolean;
|
|
4
13
|
clearcoatMap: null;
|
|
5
14
|
clearcoatRoughness: number;
|
|
@@ -23,6 +32,6 @@ declare class MeshGlassMaterial extends MeshStandardMaterial {
|
|
|
23
32
|
set clearcoat(value: number);
|
|
24
33
|
get transmission(): number;
|
|
25
34
|
set transmission(value: number);
|
|
26
|
-
copy(source:
|
|
35
|
+
copy(source: MeshGlassMaterial): this;
|
|
27
36
|
}
|
|
28
37
|
export default MeshGlassMaterial;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Euler, Vector2
|
|
1
|
+
import { Texture, Euler, Vector2 } from 'three';
|
|
2
2
|
import { TresColor } from '@tresjs/core';
|
|
3
3
|
export interface MeshReflectionMaterialProps {
|
|
4
4
|
/** Length in pixels of one side of the square reflective textures. */
|
|
@@ -72,6 +72,7 @@ declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProp
|
|
|
72
72
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MeshReflectionMaterialProps> & Readonly<{}>, {
|
|
73
73
|
color: TresColor;
|
|
74
74
|
fog: boolean;
|
|
75
|
+
mix: number;
|
|
75
76
|
lightMapIntensity: number;
|
|
76
77
|
aoMapIntensity: number;
|
|
77
78
|
envMapRotation: Euler;
|
|
@@ -81,18 +82,17 @@ declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProp
|
|
|
81
82
|
wireframeLinejoin: string;
|
|
82
83
|
displacementScale: number;
|
|
83
84
|
displacementBias: number;
|
|
84
|
-
bumpScale: number;
|
|
85
85
|
emissive: TresColor;
|
|
86
86
|
emissiveIntensity: number;
|
|
87
|
-
|
|
87
|
+
bumpScale: number;
|
|
88
88
|
normalMapType: number;
|
|
89
89
|
normalScale: Vector2;
|
|
90
|
+
flatShading: boolean;
|
|
90
91
|
roughness: number;
|
|
91
92
|
metalness: number;
|
|
92
93
|
roughnessMap: Texture | null;
|
|
93
94
|
envMapIntensity: number;
|
|
94
95
|
resolution: number;
|
|
95
|
-
mix: number;
|
|
96
96
|
sharpMix: number;
|
|
97
97
|
sharpDepthScale: number;
|
|
98
98
|
sharpDepthBias: number;
|
|
@@ -107,5 +107,7 @@ declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProp
|
|
|
107
107
|
blurSize: [number, number] | number;
|
|
108
108
|
distortion: number;
|
|
109
109
|
reflectorOffset: number;
|
|
110
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
110
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
111
|
+
materialRef: unknown;
|
|
112
|
+
}, any>;
|
|
111
113
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
speed?: number;
|
|
3
3
|
factor?: number;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
5
6
|
instance: import('vue').ShallowRef<any, any>;
|
|
6
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
-
speed?: number;
|
|
8
|
-
factor?: number;
|
|
9
|
-
}> & Readonly<{}>, {
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
8
|
speed: number;
|
|
11
9
|
factor: number;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
materialRef: unknown;
|
|
12
|
+
}, any>;
|
|
13
13
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PointMaterial as PointMaterialImpl } from './material';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
sizeAttenuation?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
instance: import('vue').ShallowRef<PointMaterialImpl, PointMaterialImpl>;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Object3DEventMap, LOD } from 'three';
|
|
2
|
+
interface LODProps {
|
|
3
|
+
/**
|
|
4
|
+
* The distances at which to display each level of detail.
|
|
5
|
+
* There should be one `levels` value for each `LOD` child.
|
|
6
|
+
*/
|
|
7
|
+
levels: number[];
|
|
8
|
+
/**
|
|
9
|
+
* Threshold used to avoid flickering at LOD boundaries, as a fraction of distance
|
|
10
|
+
* @default 0.0
|
|
11
|
+
*/
|
|
12
|
+
hysteresis?: number;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {
|
|
20
|
+
lodRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LOD<Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<Object3DEventMap>, typeof LOD>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
21
|
+
P: {};
|
|
22
|
+
B: {};
|
|
23
|
+
D: {};
|
|
24
|
+
C: {};
|
|
25
|
+
M: {};
|
|
26
|
+
Defaults: {};
|
|
27
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LOD<Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<Object3DEventMap>, typeof LOD>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
28
|
+
};
|
|
29
|
+
rootEl: any;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: import('vue').DefineComponent<LODProps, {
|
|
33
|
+
instance: import('vue').ShallowRef<LOD<Object3DEventMap>, LOD<Object3DEventMap>>;
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LODProps> & Readonly<{}>, {
|
|
35
|
+
hysteresis: number;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
37
|
+
lodRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LOD<Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<Object3DEventMap>, typeof LOD>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
38
|
+
P: {};
|
|
39
|
+
B: {};
|
|
40
|
+
D: {};
|
|
41
|
+
C: {};
|
|
42
|
+
M: {};
|
|
43
|
+
Defaults: {};
|
|
44
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LOD<Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<Object3DEventMap>, typeof LOD>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
45
|
+
}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -18,26 +18,27 @@ export interface HTMLProps {
|
|
|
18
18
|
}
|
|
19
19
|
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
20
20
|
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
21
22
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
22
23
|
refs: {
|
|
23
|
-
groupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
24
|
+
groupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
24
25
|
P: {};
|
|
25
26
|
B: {};
|
|
26
27
|
D: {};
|
|
27
28
|
C: {};
|
|
28
29
|
M: {};
|
|
29
30
|
Defaults: {};
|
|
30
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
31
|
-
meshRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
31
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
32
|
+
meshRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
32
33
|
P: {};
|
|
33
34
|
B: {};
|
|
34
35
|
D: {};
|
|
35
36
|
C: {};
|
|
36
37
|
M: {};
|
|
37
38
|
Defaults: {};
|
|
38
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
39
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
+
rootEl: any;
|
|
41
42
|
};
|
|
42
43
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
43
44
|
declare const __VLS_component: import('vue').DefineComponent<HTMLProps, {
|
|
@@ -49,12 +50,29 @@ declare const __VLS_component: import('vue').DefineComponent<HTMLProps, {
|
|
|
49
50
|
}>, {
|
|
50
51
|
sprite: boolean;
|
|
51
52
|
geometry: any;
|
|
53
|
+
pointerEvents: PointerEventsProperties;
|
|
52
54
|
transform: boolean;
|
|
53
55
|
as: string;
|
|
54
56
|
eps: number;
|
|
55
|
-
pointerEvents: PointerEventsProperties;
|
|
56
57
|
zIndexRange: Array<number>;
|
|
57
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
58
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
59
|
+
groupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
60
|
+
P: {};
|
|
61
|
+
B: {};
|
|
62
|
+
D: {};
|
|
63
|
+
C: {};
|
|
64
|
+
M: {};
|
|
65
|
+
Defaults: {};
|
|
66
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
67
|
+
meshRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
68
|
+
P: {};
|
|
69
|
+
B: {};
|
|
70
|
+
D: {};
|
|
71
|
+
C: {};
|
|
72
|
+
M: {};
|
|
73
|
+
Defaults: {};
|
|
74
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
75
|
+
}, any>;
|
|
58
76
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
59
77
|
export default _default;
|
|
60
78
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BakeShadows } from './BakeShadows';
|
|
2
|
+
import { default as LOD } from './LOD.vue';
|
|
2
3
|
import { default as Html } from './html/HTML.vue';
|
|
3
4
|
import { Stats } from './Stats';
|
|
4
5
|
import { StatsGl } from './StatsGl';
|
|
5
6
|
import { useGLTFExporter } from './useGLTFExporter';
|
|
6
|
-
|
|
7
|
+
import { useIntersect } from './useIntersect';
|
|
8
|
+
export { BakeShadows, Html, LOD, Stats, StatsGl, useGLTFExporter, useIntersect, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Object3D } from 'three';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
type UseIntersectCallback = (isIntersected: boolean) => void;
|
|
4
|
+
export declare function useIntersect<T extends Object3D>(onChange?: Ref<UseIntersectCallback> | UseIntersectCallback): {
|
|
5
|
+
ref: import('vue').ShallowRef<T | undefined, T | undefined>;
|
|
6
|
+
intersect: import('vue').ShallowRef<boolean, boolean>;
|
|
7
|
+
off: () => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -20,20 +20,21 @@ export interface BoxProps {
|
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
22
|
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
23
24
|
slots: {
|
|
24
25
|
default?(_: {}): any;
|
|
25
26
|
};
|
|
26
27
|
refs: {
|
|
27
|
-
boxRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
28
|
+
boxRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
28
29
|
P: {};
|
|
29
30
|
B: {};
|
|
30
31
|
D: {};
|
|
31
32
|
C: {};
|
|
32
33
|
M: {};
|
|
33
34
|
Defaults: {};
|
|
34
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
35
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
rootEl: any;
|
|
37
38
|
};
|
|
38
39
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
39
40
|
declare const __VLS_component: import('vue').DefineComponent<BoxProps, {
|
|
@@ -41,7 +42,16 @@ declare const __VLS_component: import('vue').DefineComponent<BoxProps, {
|
|
|
41
42
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BoxProps> & Readonly<{}>, {
|
|
42
43
|
color: TresColor;
|
|
43
44
|
args: ConstructorParameters<typeof BoxGeometry>;
|
|
44
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
46
|
+
boxRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
47
|
+
P: {};
|
|
48
|
+
B: {};
|
|
49
|
+
D: {};
|
|
50
|
+
C: {};
|
|
51
|
+
M: {};
|
|
52
|
+
Defaults: {};
|
|
53
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
54
|
+
}, any>;
|
|
45
55
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
56
|
export default _default;
|
|
47
57
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -4,7 +4,7 @@ export interface CircleProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* The radius, segment, thetaStart, thetaLength of the circle.
|
|
6
6
|
* @default [1, 32, 0, Math.PI * 2]
|
|
7
|
-
* @type {
|
|
7
|
+
* @type {any[]}
|
|
8
8
|
* @memberof CircleProps
|
|
9
9
|
* @see https://threejs.org/docs/#api/en/geometries/CircleGeometry
|
|
10
10
|
*/
|
|
@@ -19,20 +19,21 @@ export interface CircleProps {
|
|
|
19
19
|
color?: TresColor;
|
|
20
20
|
}
|
|
21
21
|
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
22
23
|
slots: {
|
|
23
24
|
default?(_: {}): any;
|
|
24
25
|
};
|
|
25
26
|
refs: {
|
|
26
|
-
circleRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
27
|
+
circleRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
27
28
|
P: {};
|
|
28
29
|
B: {};
|
|
29
30
|
D: {};
|
|
30
31
|
C: {};
|
|
31
32
|
M: {};
|
|
32
33
|
Defaults: {};
|
|
33
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
34
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
rootEl: any;
|
|
36
37
|
};
|
|
37
38
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
38
39
|
declare const __VLS_component: import('vue').DefineComponent<CircleProps, {
|
|
@@ -40,7 +41,16 @@ declare const __VLS_component: import('vue').DefineComponent<CircleProps, {
|
|
|
40
41
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleProps> & Readonly<{}>, {
|
|
41
42
|
color: TresColor;
|
|
42
43
|
args: ConstructorParameters<typeof CircleGeometry>;
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
45
|
+
circleRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
46
|
+
P: {};
|
|
47
|
+
B: {};
|
|
48
|
+
D: {};
|
|
49
|
+
C: {};
|
|
50
|
+
M: {};
|
|
51
|
+
Defaults: {};
|
|
52
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
53
|
+
}, any>;
|
|
44
54
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
55
|
export default _default;
|
|
46
56
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -19,20 +19,21 @@ export interface ConeProps {
|
|
|
19
19
|
color?: TresColor;
|
|
20
20
|
}
|
|
21
21
|
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
22
23
|
slots: {
|
|
23
24
|
default?(_: {}): any;
|
|
24
25
|
};
|
|
25
26
|
refs: {
|
|
26
|
-
coneRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
27
|
+
coneRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
27
28
|
P: {};
|
|
28
29
|
B: {};
|
|
29
30
|
D: {};
|
|
30
31
|
C: {};
|
|
31
32
|
M: {};
|
|
32
33
|
Defaults: {};
|
|
33
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').
|
|
34
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
rootEl: any;
|
|
36
37
|
};
|
|
37
38
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
38
39
|
declare const __VLS_component: import('vue').DefineComponent<ConeProps, {
|
|
@@ -40,7 +41,16 @@ declare const __VLS_component: import('vue').DefineComponent<ConeProps, {
|
|
|
40
41
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConeProps> & Readonly<{}>, {
|
|
41
42
|
color: TresColor;
|
|
42
43
|
args: ConstructorParameters<typeof ConeGeometry>;
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
45
|
+
coneRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
46
|
+
P: {};
|
|
47
|
+
B: {};
|
|
48
|
+
D: {};
|
|
49
|
+
C: {};
|
|
50
|
+
M: {};
|
|
51
|
+
Defaults: {};
|
|
52
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
53
|
+
}, any>;
|
|
44
54
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
55
|
export default _default;
|
|
46
56
|
type __VLS_WithTemplateSlots<T, S> = T & {
|