@tresjs/cientos 3.7.0 → 3.9.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/README.md +7 -6
- package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
- package/dist/core/abstractions/Lensflare/RandUtils.d.ts +2 -2
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +11 -10
- package/dist/core/abstractions/Lensflare/constants.d.ts +2 -1
- package/dist/core/abstractions/Lensflare/index.d.ts +5 -4
- package/dist/core/abstractions/Levioso.vue.d.ts +5 -5
- package/dist/core/abstractions/MouseParallax.vue.d.ts +16 -5
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +69 -0
- package/dist/core/abstractions/Reflector.vue.d.ts +6 -5
- package/dist/core/abstractions/Text3D.vue.d.ts +3 -3
- package/dist/core/abstractions/index.d.ts +10 -8
- package/dist/core/abstractions/useAnimations.d.ts +4 -4
- package/dist/core/abstractions/useFBO/component.vue.d.ts +6 -5
- package/dist/core/abstractions/useFBO/index.d.ts +4 -4
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +5 -4
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +12 -6
- package/dist/core/controls/CameraControls.vue.d.ts +3251 -3161
- package/dist/core/controls/KeyboardControls.vue.d.ts +13 -13
- package/dist/core/controls/MapControls.vue.d.ts +4 -3
- package/dist/core/controls/OrbitControls.vue.d.ts +5188 -5116
- package/dist/core/controls/PointerLockControls.vue.d.ts +6 -5
- package/dist/core/controls/ScrollControls.vue.d.ts +8 -8
- package/dist/core/controls/TransformControls.vue.d.ts +6 -4
- package/dist/core/controls/index.d.ts +9 -8
- package/dist/core/directives/index.d.ts +1 -0
- package/dist/core/directives/vAlwaysLookAt.d.ts +2 -1
- package/dist/core/directives/vLightHelper.d.ts +3 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +13 -12
- package/dist/core/loaders/index.d.ts +4 -3
- package/dist/core/loaders/useFBX/component.vue.d.ts +45 -4
- package/dist/core/loaders/useFBX/index.d.ts +2 -1
- package/dist/core/loaders/useGLTF/component.vue.d.ts +36 -6
- package/dist/core/loaders/useProgress.d.ts +2 -1
- package/dist/core/loaders/useVideoTexture.d.ts +1 -0
- package/dist/core/materials/blurPass.d.ts +23 -0
- package/dist/core/materials/convolutionMaterial.d.ts +8 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -3
- package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +41 -0
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +86 -0
- package/dist/core/materials/holographicMaterial/material.d.ts +27 -0
- package/dist/core/materials/index.d.ts +7 -4
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -3
- package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -2
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +75 -0
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +51 -0
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +2 -2
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -2
- package/dist/core/misc/BakeShadows.d.ts +1 -0
- package/dist/core/misc/Stats.d.ts +2 -2
- package/dist/core/misc/StatsGl.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +8 -7
- package/dist/core/misc/html/utils.d.ts +3 -3
- package/dist/core/misc/index.d.ts +5 -2
- package/dist/core/misc/useGLTFExporter.d.ts +13 -0
- package/dist/core/misc/useTweakPane/index.d.ts +3 -2
- package/dist/core/shapes/Box.vue.d.ts +7 -6
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +4 -3
- package/dist/core/shapes/Circle.vue.d.ts +7 -6
- package/dist/core/shapes/Cone.vue.d.ts +7 -6
- package/dist/core/shapes/Dodecahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Icosahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Line2.vue.d.ts +5 -4
- package/dist/core/shapes/Octahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Plane.vue.d.ts +7 -6
- package/dist/core/shapes/Ring.vue.d.ts +7 -6
- package/dist/core/shapes/RoundedBox.vue.d.ts +59 -0
- package/dist/core/shapes/Sphere.vue.d.ts +7 -6
- package/dist/core/shapes/Superformula.vue.d.ts +21 -20
- package/dist/core/shapes/Tetrahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Torus.vue.d.ts +7 -6
- package/dist/core/shapes/TorusKnot.vue.d.ts +7 -6
- package/dist/core/shapes/Tube.vue.d.ts +8 -8
- package/dist/core/shapes/index.d.ts +19 -17
- package/dist/core/staging/Backdrop.vue.d.ts +2 -2
- package/dist/core/staging/Fit.vue.d.ts +56 -0
- package/dist/core/staging/Ocean.vue.d.ts +164 -0
- package/dist/core/staging/Precipitation.vue.d.ts +6 -5
- package/dist/core/staging/Sky.vue.d.ts +8 -2
- package/dist/core/staging/Smoke.vue.d.ts +6 -5
- package/dist/core/staging/Sparkles/ShaderData.d.ts +4 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +4 -4
- package/dist/core/staging/Sparkles/component.vue.d.ts +19 -19
- package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +1 -0
- package/dist/core/staging/Stars.vue.d.ts +4 -4
- package/dist/core/staging/index.d.ts +13 -9
- package/dist/core/staging/useEnvironment/component.vue.d.ts +62 -0
- package/dist/core/staging/useEnvironment/const.d.ts +28 -0
- package/dist/core/staging/useEnvironment/envSence.d.ts +9 -0
- package/dist/core/staging/useEnvironment/index.d.ts +5 -3
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +56 -0
- package/dist/trescientos.js +8570 -5962
- package/dist/trescientos.umd.cjs +480 -117
- package/dist/utils/Gradient.d.ts +3 -2
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types.d.ts +4 -0
- package/package.json +32 -29
- package/dist/core/loaders/useGLTF/index.d.ts +0 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import(
|
|
2
|
-
MeshGlassMaterialClass: import(
|
|
3
|
-
}, {}, {}, {}, import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
MeshGlassMaterialClass: import('vue').ShallowRef<any>;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MeshStandardMaterial } from 'three';
|
|
1
|
+
import { MeshStandardMaterialParameters, MeshStandardMaterial } from 'three';
|
|
3
2
|
import { Vector2 } from 'three/src/math/Vector2.js';
|
|
4
3
|
import { Color } from 'three/src/math/Color.js';
|
|
4
|
+
|
|
5
5
|
declare class MeshGlassMaterial extends MeshStandardMaterial {
|
|
6
6
|
isMeshPhysicalMaterial: boolean;
|
|
7
7
|
clearcoatMap: null;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { MeshStandardMaterial, Texture } from 'three';
|
|
2
|
+
|
|
3
|
+
export interface MeshReflectorMaterialProps extends /* @vue-ignore */ MeshStandardMaterial {
|
|
4
|
+
resolution?: number;
|
|
5
|
+
mixBlur?: number;
|
|
6
|
+
mixStrength?: number;
|
|
7
|
+
blur?: [number, number] | number;
|
|
8
|
+
mirror?: number;
|
|
9
|
+
minDepthThreshold?: number;
|
|
10
|
+
maxDepthThreshold?: number;
|
|
11
|
+
depthScale?: number;
|
|
12
|
+
depthToBlurRatioBias?: number;
|
|
13
|
+
distortionMap?: Texture;
|
|
14
|
+
distortion?: number;
|
|
15
|
+
mixContrast?: number;
|
|
16
|
+
reflectorOffset?: number;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MeshReflectorMaterialProps>, {
|
|
19
|
+
mixBlur: number;
|
|
20
|
+
mixStrength: number;
|
|
21
|
+
resolution: number;
|
|
22
|
+
blur: () => number[];
|
|
23
|
+
minDepthThreshold: number;
|
|
24
|
+
maxDepthThreshold: number;
|
|
25
|
+
depthScale: number;
|
|
26
|
+
depthToBlurRatioBias: number;
|
|
27
|
+
mirror: number;
|
|
28
|
+
distortion: number;
|
|
29
|
+
mixContrast: number;
|
|
30
|
+
reflectorOffset: number;
|
|
31
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MeshReflectorMaterialProps>, {
|
|
32
|
+
mixBlur: number;
|
|
33
|
+
mixStrength: number;
|
|
34
|
+
resolution: number;
|
|
35
|
+
blur: () => number[];
|
|
36
|
+
minDepthThreshold: number;
|
|
37
|
+
maxDepthThreshold: number;
|
|
38
|
+
depthScale: number;
|
|
39
|
+
depthToBlurRatioBias: number;
|
|
40
|
+
mirror: number;
|
|
41
|
+
distortion: number;
|
|
42
|
+
mixContrast: number;
|
|
43
|
+
reflectorOffset: number;
|
|
44
|
+
}>>>, {
|
|
45
|
+
blur: number | [number, number];
|
|
46
|
+
resolution: number;
|
|
47
|
+
minDepthThreshold: number;
|
|
48
|
+
maxDepthThreshold: number;
|
|
49
|
+
depthScale: number;
|
|
50
|
+
depthToBlurRatioBias: number;
|
|
51
|
+
mixBlur: number;
|
|
52
|
+
mixStrength: number;
|
|
53
|
+
mirror: number;
|
|
54
|
+
distortion: number;
|
|
55
|
+
mixContrast: number;
|
|
56
|
+
reflectorOffset: number;
|
|
57
|
+
}, {}>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
60
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
61
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
62
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
63
|
+
} : {
|
|
64
|
+
type: import('vue').PropType<T[K]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
type __VLS_WithDefaults<P, D> = {
|
|
69
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
70
|
+
default: D[K];
|
|
71
|
+
}> : P[K];
|
|
72
|
+
};
|
|
73
|
+
type __VLS_Prettify<T> = {
|
|
74
|
+
[K in keyof T]: T[K];
|
|
75
|
+
} & {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Matrix4, Texture, MeshStandardMaterial } from 'three';
|
|
2
|
+
|
|
3
|
+
export declare class MeshReflectorMaterial extends MeshStandardMaterial {
|
|
4
|
+
private _tDepth;
|
|
5
|
+
private _distortionMap;
|
|
6
|
+
private _tDiffuse;
|
|
7
|
+
private _tDiffuseBlur;
|
|
8
|
+
private _textureMatrix;
|
|
9
|
+
private _hasBlur;
|
|
10
|
+
private _mirror;
|
|
11
|
+
private _mixBlur;
|
|
12
|
+
private _blurStrength;
|
|
13
|
+
private _minDepthThreshold;
|
|
14
|
+
private _maxDepthThreshold;
|
|
15
|
+
private _depthScale;
|
|
16
|
+
private _depthToBlurRatioBias;
|
|
17
|
+
private _distortion;
|
|
18
|
+
private _mixContrast;
|
|
19
|
+
constructor(parameters?: {});
|
|
20
|
+
onBeforeCompile(shader: any): void;
|
|
21
|
+
get tDiffuse(): Texture | null;
|
|
22
|
+
set tDiffuse(v: Texture | null);
|
|
23
|
+
get tDepth(): Texture | null;
|
|
24
|
+
set tDepth(v: Texture | null);
|
|
25
|
+
get distortionMap(): Texture | null;
|
|
26
|
+
set distortionMap(v: Texture | null);
|
|
27
|
+
get tDiffuseBlur(): Texture | null;
|
|
28
|
+
set tDiffuseBlur(v: Texture | null);
|
|
29
|
+
get textureMatrix(): Matrix4 | null;
|
|
30
|
+
set textureMatrix(v: Matrix4 | null);
|
|
31
|
+
get hasBlur(): boolean;
|
|
32
|
+
set hasBlur(v: boolean);
|
|
33
|
+
get mirror(): number;
|
|
34
|
+
set mirror(v: number);
|
|
35
|
+
get mixBlur(): number;
|
|
36
|
+
set mixBlur(v: number);
|
|
37
|
+
get mixStrength(): number;
|
|
38
|
+
set mixStrength(v: number);
|
|
39
|
+
get minDepthThreshold(): number;
|
|
40
|
+
set minDepthThreshold(v: number);
|
|
41
|
+
get maxDepthThreshold(): number;
|
|
42
|
+
set maxDepthThreshold(v: number);
|
|
43
|
+
get depthScale(): number;
|
|
44
|
+
set depthScale(v: number);
|
|
45
|
+
get depthToBlurRatioBias(): number;
|
|
46
|
+
set depthToBlurRatioBias(v: number);
|
|
47
|
+
get distortion(): number;
|
|
48
|
+
set distortion(v: number);
|
|
49
|
+
get mixContrast(): number;
|
|
50
|
+
set mixContrast(v: number);
|
|
51
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
speed?: number | undefined;
|
|
3
3
|
factor?: number | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
speed: number;
|
|
6
6
|
factor: number;
|
|
7
|
-
}>, {}, unknown, {}, {}, import(
|
|
7
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
speed?: number | undefined;
|
|
9
9
|
factor?: number | undefined;
|
|
10
10
|
}>, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BakeShadows: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const Stats: import(
|
|
1
|
+
export declare const Stats: import('vue').DefineComponent<{
|
|
2
2
|
showPanel: {
|
|
3
3
|
type: NumberConstructor;
|
|
4
4
|
default: number;
|
|
5
5
|
};
|
|
6
|
-
},
|
|
6
|
+
}, void, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
7
|
showPanel: {
|
|
8
8
|
type: NumberConstructor;
|
|
9
9
|
default: number;
|
|
@@ -7,4 +7,4 @@ export interface StatsGlProps {
|
|
|
7
7
|
minimal?: boolean;
|
|
8
8
|
mode?: number;
|
|
9
9
|
}
|
|
10
|
-
export declare const StatsGl: import(
|
|
10
|
+
export declare const StatsGl: import('vue').DefineComponent<StatsGlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatsGlProps>, {}, {}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
2
|
import { PlaneGeometry } from 'three';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { TresObject3D } from '@tresjs/core';
|
|
4
|
+
import { Mutable } from '@vueuse/core';
|
|
5
|
+
|
|
5
6
|
export interface HTMLProps {
|
|
6
7
|
geometry?: any;
|
|
7
8
|
material?: any;
|
|
@@ -19,7 +20,7 @@ export interface HTMLProps {
|
|
|
19
20
|
occlude?: Ref<TresObject3D>[] | boolean | 'raycast' | 'blending';
|
|
20
21
|
}
|
|
21
22
|
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HTMLProps>, {
|
|
23
24
|
geometry: PlaneGeometry;
|
|
24
25
|
zIndexRange: () => number[];
|
|
25
26
|
as: string;
|
|
@@ -27,9 +28,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
28
|
eps: number;
|
|
28
29
|
pointerEvents: string;
|
|
29
30
|
sprite: boolean;
|
|
30
|
-
}>, {}, unknown, {}, {}, import(
|
|
31
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
32
|
onOcclude: (...args: any[]) => void;
|
|
32
|
-
}, string, import(
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HTMLProps>, {
|
|
33
34
|
geometry: PlaneGeometry;
|
|
34
35
|
zIndexRange: () => number[];
|
|
35
36
|
as: string;
|
|
@@ -47,7 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
48
|
eps: number;
|
|
48
49
|
pointerEvents: PointerEventsProperties;
|
|
49
50
|
zIndexRange: number[];
|
|
50
|
-
}, {}>, Readonly<Record<string, any
|
|
51
|
+
}, {}>, Readonly<Record<string, any>> & Record<string, any>>;
|
|
51
52
|
export default _default;
|
|
52
53
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
54
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { TresCamera, TresObject3D } from '@tresjs/core';
|
|
2
|
+
import { Matrix4, Raycaster, Vector3 } from 'three';
|
|
3
|
+
|
|
4
4
|
export declare const v1: Vector3;
|
|
5
5
|
export declare const v2: Vector3;
|
|
6
6
|
export declare const v3: Vector3;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { useTweakPane } from './useTweakPane';
|
|
2
2
|
import { Stats } from './Stats';
|
|
3
3
|
import { StatsGl } from './StatsGl';
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import { BakeShadows } from './BakeShadows';
|
|
5
|
+
import { default as Html } from './html/HTML.vue';
|
|
6
|
+
import { useGLTFExporter } from './useGLTFExporter';
|
|
7
|
+
|
|
8
|
+
export { useTweakPane, Html, Stats, StatsGl, BakeShadows, useGLTFExporter };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnimationClip, Object3D } from 'three';
|
|
2
|
+
|
|
3
|
+
interface gltfExporterOptions {
|
|
4
|
+
fileName?: string;
|
|
5
|
+
trs?: boolean;
|
|
6
|
+
onlyVisible?: boolean;
|
|
7
|
+
binary?: boolean;
|
|
8
|
+
maxTextureSize?: number;
|
|
9
|
+
animations?: AnimationClip[];
|
|
10
|
+
includeCustomExtensions?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function useGLTFExporter(object3D: Object3D | Object3D[], options?: gltfExporterOptions): Promise<void>;
|
|
13
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Pane } from 'tweakpane';
|
|
2
|
+
|
|
2
3
|
type TweakPane = Pane & {
|
|
3
|
-
addBlade(blade: any)
|
|
4
|
-
addInput(blade: any)
|
|
4
|
+
addBlade: (blade: any) => void;
|
|
5
|
+
addInput: (blade: any) => void;
|
|
5
6
|
};
|
|
6
7
|
export declare const useTweakPane: (selector?: string) => {
|
|
7
8
|
pane: TweakPane;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { BoxGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface BoxProps {
|
|
4
5
|
/**
|
|
5
6
|
* The width, height and depth of the box.
|
|
@@ -19,16 +20,16 @@ export interface BoxProps {
|
|
|
19
20
|
*/
|
|
20
21
|
color?: TresColor;
|
|
21
22
|
}
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
23
24
|
args: () => number[];
|
|
24
25
|
color: string;
|
|
25
26
|
}>, {
|
|
26
|
-
value: import(
|
|
27
|
-
}, unknown, {}, {}, import(
|
|
27
|
+
value: import('vue').ShallowRef<any>;
|
|
28
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
28
29
|
args: () => number[];
|
|
29
30
|
color: string;
|
|
30
31
|
}>>>, {
|
|
31
|
-
color: import(
|
|
32
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
32
33
|
args: [width?: number | undefined, height?: number | undefined, depth?: number | undefined, widthSegments?: number | undefined, heightSegments?: number | undefined, depthSegments?: number | undefined];
|
|
33
34
|
}, {}>, {
|
|
34
35
|
default?(_: {}): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
2
|
import { Vector3 } from 'three';
|
|
3
|
+
|
|
3
4
|
type CurveType = 'centripetal' | 'chordal' | 'catmullrom';
|
|
4
5
|
type Points = Array<Vector3 | [number, number, number]>;
|
|
5
6
|
interface CatmullRomCurve3Props {
|
|
@@ -19,12 +20,12 @@ interface CatmullRomCurve3Props {
|
|
|
19
20
|
gapSize?: number;
|
|
20
21
|
worldUnits?: boolean;
|
|
21
22
|
}
|
|
22
|
-
declare const _default: import(
|
|
23
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CatmullRomCurve3Props>, {
|
|
23
24
|
segments: number;
|
|
24
25
|
closed: boolean;
|
|
25
26
|
curveType: string;
|
|
26
27
|
tension: number;
|
|
27
|
-
}>, {}, unknown, {}, {}, import(
|
|
28
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CatmullRomCurve3Props>, {
|
|
28
29
|
segments: number;
|
|
29
30
|
closed: boolean;
|
|
30
31
|
curveType: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { CircleGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface CircleProps {
|
|
4
5
|
/**
|
|
5
6
|
* The radius, segment, thetaStart, thetaLength of the circle.
|
|
@@ -18,16 +19,16 @@ export interface CircleProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleProps>, {
|
|
22
23
|
args: () => number[];
|
|
23
24
|
color: string;
|
|
24
25
|
}>, {
|
|
25
|
-
value: import(
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
26
|
+
value: import('vue').ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleProps>, {
|
|
27
28
|
args: () => number[];
|
|
28
29
|
color: string;
|
|
29
30
|
}>>>, {
|
|
30
|
-
color: import(
|
|
31
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
31
32
|
args: [radius?: number | undefined, segments?: number | undefined, thetaStart?: number | undefined, thetaLength?: number | undefined];
|
|
32
33
|
}, {}>, {
|
|
33
34
|
default?(_: {}): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { ConeGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface ConeProps {
|
|
4
5
|
/**
|
|
5
6
|
* The radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength of the cone.
|
|
@@ -18,16 +19,16 @@ export interface ConeProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConeProps>, {
|
|
22
23
|
args: () => (number | boolean)[];
|
|
23
24
|
color: string;
|
|
24
25
|
}>, {
|
|
25
|
-
value: import(
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
26
|
+
value: import('vue').ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConeProps>, {
|
|
27
28
|
args: () => (number | boolean)[];
|
|
28
29
|
color: string;
|
|
29
30
|
}>>>, {
|
|
30
|
-
color: import(
|
|
31
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
31
32
|
args: [radius?: number | undefined, height?: number | undefined, radialSegments?: number | undefined, heightSegments?: number | undefined, openEnded?: boolean | undefined, thetaStart?: number | undefined, thetaLength?: number | undefined];
|
|
32
33
|
}, {}>, {
|
|
33
34
|
default?(_: {}): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { DodecahedronGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface DodecahedronProps {
|
|
4
5
|
/**
|
|
5
6
|
* The radius and detail of the dodecahedron.
|
|
@@ -18,16 +19,16 @@ export interface DodecahedronProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DodecahedronProps>, {
|
|
22
23
|
args: () => number[];
|
|
23
24
|
color: string;
|
|
24
25
|
}>, {
|
|
25
|
-
value: import(
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
26
|
+
value: import('vue').ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DodecahedronProps>, {
|
|
27
28
|
args: () => number[];
|
|
28
29
|
color: string;
|
|
29
30
|
}>>>, {
|
|
30
|
-
color: import(
|
|
31
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
31
32
|
args: [radius?: number | undefined, detail?: number | undefined];
|
|
32
33
|
}, {}>, {
|
|
33
34
|
default?(_: {}): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { IcosahedronGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface IcosahedronProps {
|
|
4
5
|
/**
|
|
5
6
|
* The radius and detail of the icosahedron.
|
|
@@ -18,16 +19,16 @@ export interface IcosahedronProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IcosahedronProps>, {
|
|
22
23
|
args: () => number[];
|
|
23
24
|
color: string;
|
|
24
25
|
}>, {
|
|
25
|
-
value: import(
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
26
|
+
value: import('vue').ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IcosahedronProps>, {
|
|
27
28
|
args: () => number[];
|
|
28
29
|
color: string;
|
|
29
30
|
}>>>, {
|
|
30
|
-
color: import(
|
|
31
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
31
32
|
args: [radius?: number | undefined, detail?: number | undefined];
|
|
32
33
|
}, {}>, {
|
|
33
34
|
default?(_: {}): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Vector2, Vector3 } from 'three';
|
|
2
|
-
import
|
|
2
|
+
import { TresColor } from '@tresjs/core';
|
|
3
|
+
|
|
3
4
|
type Points = (Vector3 | Vector2 | [number, number, number] | [number, number] | number)[];
|
|
4
5
|
type VertexColors = Array<TresColor>;
|
|
5
6
|
export interface LineProps {
|
|
@@ -15,7 +16,7 @@ export interface LineProps {
|
|
|
15
16
|
dashScale?: number;
|
|
16
17
|
dashOffset?: number;
|
|
17
18
|
}
|
|
18
|
-
declare const _default: import(
|
|
19
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LineProps>, {
|
|
19
20
|
vertexColors: null;
|
|
20
21
|
color: string;
|
|
21
22
|
lineWidth: number;
|
|
@@ -26,7 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
26
27
|
gapSize: number;
|
|
27
28
|
dashScale: number;
|
|
28
29
|
dashOffset: number;
|
|
29
|
-
}>, {}, unknown, {}, {}, import(
|
|
30
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LineProps>, {
|
|
30
31
|
vertexColors: null;
|
|
31
32
|
color: string;
|
|
32
33
|
lineWidth: number;
|
|
@@ -38,7 +39,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
39
|
dashScale: number;
|
|
39
40
|
dashOffset: number;
|
|
40
41
|
}>>>, {
|
|
41
|
-
color: import(
|
|
42
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
42
43
|
alphaToCoverage: boolean;
|
|
43
44
|
vertexColors: VertexColors | null;
|
|
44
45
|
lineWidth: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { OctahedronGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface OctahedronProps {
|
|
4
5
|
/**
|
|
5
6
|
* The radius and detail of the octahedron.
|
|
@@ -18,16 +19,16 @@ export interface OctahedronProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OctahedronProps>, {
|
|
22
23
|
args: () => number[];
|
|
23
24
|
color: string;
|
|
24
25
|
}>, {
|
|
25
|
-
value: import(
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
26
|
+
value: import('vue').ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OctahedronProps>, {
|
|
27
28
|
args: () => number[];
|
|
28
29
|
color: string;
|
|
29
30
|
}>>>, {
|
|
30
|
-
color: import(
|
|
31
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
31
32
|
args: [radius?: number | undefined, detail?: number | undefined];
|
|
32
33
|
}, {}>, {
|
|
33
34
|
default?(_: {}): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { PlaneGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface PlaneProps {
|
|
4
5
|
/**
|
|
5
6
|
* The width and height, widthSegments, heightSegments of the plane.
|
|
@@ -18,16 +19,16 @@ export interface PlaneProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaneProps>, {
|
|
22
23
|
args: () => number[];
|
|
23
24
|
color: string;
|
|
24
25
|
}>, {
|
|
25
|
-
value: import(
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
26
|
+
value: import('vue').ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaneProps>, {
|
|
27
28
|
args: () => number[];
|
|
28
29
|
color: string;
|
|
29
30
|
}>>>, {
|
|
30
|
-
color: import(
|
|
31
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
31
32
|
args: [width?: number | undefined, height?: number | undefined, widthSegments?: number | undefined, heightSegments?: number | undefined];
|
|
32
33
|
}, {}>, {
|
|
33
34
|
default?(_: {}): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { RingGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface RingProps {
|
|
4
5
|
/**
|
|
5
6
|
* The innerRadius, outerRadius, thetaSegments, phiSegments, tethaStart, thetaLength of the ring.
|
|
@@ -18,16 +19,16 @@ export interface RingProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RingProps>, {
|
|
22
23
|
args: () => number[];
|
|
23
24
|
color: string;
|
|
24
25
|
}>, {
|
|
25
|
-
value: import(
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
26
|
+
value: import('vue').ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RingProps>, {
|
|
27
28
|
args: () => number[];
|
|
28
29
|
color: string;
|
|
29
30
|
}>>>, {
|
|
30
|
-
color: import(
|
|
31
|
+
color: import('three').ColorRepresentation | [r: number, g: number, b: number];
|
|
31
32
|
args: [innerRadius?: number | undefined, outerRadius?: number | undefined, thetaSegments?: number | undefined, phiSegments?: number | undefined, thetaStart?: number | undefined, thetaLength?: number | undefined];
|
|
32
33
|
}, {}>, {
|
|
33
34
|
default?(_: {}): any;
|