@tresjs/cientos 4.0.0-next.0 → 4.0.0-rc.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/core/abstractions/AnimatedSprite/Atlas.d.ts +38 -0
- package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +10 -0
- package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +2 -0
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +130 -0
- 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 +22 -21
- 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 +25 -23
- package/dist/core/abstractions/MouseParallax.vue.d.ts +31 -20
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +69 -0
- package/dist/core/abstractions/Reflector.vue.d.ts +21 -18
- package/dist/core/abstractions/Text3D.vue.d.ts +138 -15
- package/dist/core/abstractions/index.d.ts +11 -8
- package/dist/core/abstractions/useAnimations.d.ts +4 -4
- package/dist/core/abstractions/useFBO/component.vue.d.ts +15 -14
- package/dist/core/abstractions/useFBO/index.d.ts +5 -5
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +14 -11
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +170 -142
- package/dist/core/controls/CameraControls.vue.d.ts +4147 -3862
- package/dist/core/controls/KeyboardControls.vue.d.ts +51 -97
- package/dist/core/controls/MapControls.vue.d.ts +9507 -13
- package/dist/core/controls/OrbitControls.vue.d.ts +5906 -5660
- package/dist/core/controls/PointerLockControls.vue.d.ts +15 -14
- package/dist/core/controls/ScrollControls.vue.d.ts +34 -30
- package/dist/core/controls/TransformControls.vue.d.ts +20 -14
- package/dist/core/controls/index.d.ts +9 -8
- package/dist/core/index.d.ts +0 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +23 -22
- package/dist/core/loaders/index.d.ts +4 -3
- package/dist/core/loaders/useFBX/component.vue.d.ts +18 -18
- package/dist/core/loaders/useFBX/index.d.ts +2 -1
- package/dist/core/loaders/useGLTF/component.vue.d.ts +25 -25
- package/dist/core/loaders/useGLTF/index.d.ts +14 -9
- package/dist/core/loaders/useProgress.d.ts +2 -1
- package/dist/core/loaders/useVideoTexture.d.ts +1 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +7 -5
- 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 -5
- 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/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +8 -6
- package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +1 -0
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +180 -49
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +33 -36
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +17 -15
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -2
- package/dist/core/misc/BakeShadows.d.ts +1 -1
- 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 +22 -17
- package/dist/core/misc/html/utils.d.ts +3 -3
- package/dist/core/misc/index.d.ts +3 -3
- package/dist/core/misc/useGLTFExporter.d.ts +2 -1
- package/dist/core/shapes/Box.vue.d.ts +22 -19
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +15 -12
- package/dist/core/shapes/Circle.vue.d.ts +22 -19
- package/dist/core/shapes/Cone.vue.d.ts +22 -19
- package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
- package/dist/core/shapes/Dodecahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Icosahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Line2.vue.d.ts +16 -13
- package/dist/core/shapes/Octahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Plane.vue.d.ts +22 -19
- package/dist/core/shapes/Ring.vue.d.ts +22 -19
- package/dist/core/shapes/RoundedBox.vue.d.ts +22 -19
- package/dist/core/shapes/Sphere.vue.d.ts +22 -19
- package/dist/core/shapes/Superformula.vue.d.ts +35 -32
- package/dist/core/shapes/Tetrahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Torus.vue.d.ts +22 -19
- package/dist/core/shapes/TorusKnot.vue.d.ts +22 -19
- package/dist/core/shapes/Tube.vue.d.ts +22 -20
- package/dist/core/shapes/index.d.ts +20 -18
- package/dist/core/staging/Backdrop.vue.d.ts +18 -14
- package/dist/core/staging/ContactShadows.vue.d.ts +168 -0
- package/dist/core/staging/Fit.vue.d.ts +64 -0
- package/dist/core/staging/Ocean.vue.d.ts +26 -23
- package/dist/core/staging/Precipitation.vue.d.ts +21 -18
- package/dist/core/staging/Sky.vue.d.ts +14 -13
- package/dist/core/staging/Smoke.vue.d.ts +18 -17
- package/dist/core/staging/Sparkles/ShaderData.d.ts +4 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +7 -7
- package/dist/core/staging/Sparkles/component.vue.d.ts +33 -31
- package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +1 -0
- package/dist/core/staging/Stars.vue.d.ts +16 -16
- package/dist/core/staging/index.d.ts +13 -10
- package/dist/core/staging/useEnvironment/component.vue.d.ts +64 -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 +7318 -6360
- package/dist/trescientos.umd.cjs +566 -428
- package/dist/utils/Gradient.d.ts +3 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types.d.ts +4 -0
- package/package.json +29 -29
- package/dist/core/directives/index.d.ts +0 -5
- package/dist/core/directives/vAlwaysLookAt.d.ts +0 -4
- package/dist/core/directives/vDistanceTo.d.ts +0 -4
- package/dist/core/directives/vLightHelper.d.ts +0 -5
- package/dist/core/directives/vLog.d.ts +0 -3
- package/dist/core/misc/useTweakPane/index.d.ts +0 -10
|
@@ -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
|
-
}, void, unknown, {}, {}, import(
|
|
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,8 @@ 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
|
|
23
|
+
declare function __VLS_template(): Readonly<Record<string, any>> & Record<string, any>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<HTMLProps>, {
|
|
23
25
|
geometry: PlaneGeometry;
|
|
24
26
|
zIndexRange: () => number[];
|
|
25
27
|
as: string;
|
|
@@ -27,9 +29,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
29
|
eps: number;
|
|
28
30
|
pointerEvents: string;
|
|
29
31
|
sprite: boolean;
|
|
30
|
-
}>, {
|
|
32
|
+
}>, {
|
|
33
|
+
instance: Ref<TresObject3D | undefined>;
|
|
34
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
35
|
onOcclude: (...args: any[]) => void;
|
|
32
|
-
}, string, import(
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<HTMLProps>, {
|
|
33
37
|
geometry: PlaneGeometry;
|
|
34
38
|
zIndexRange: () => number[];
|
|
35
39
|
as: string;
|
|
@@ -46,18 +50,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
50
|
as: string;
|
|
47
51
|
eps: number;
|
|
48
52
|
pointerEvents: PointerEventsProperties;
|
|
49
|
-
zIndexRange: number
|
|
50
|
-
}, {}
|
|
53
|
+
zIndexRange: Array<number>;
|
|
54
|
+
}, {}>;
|
|
55
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
51
56
|
export default _default;
|
|
52
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
54
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
-
} : {
|
|
57
|
-
type: import('vue').PropType<T[K]>;
|
|
58
|
-
required: true;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
57
|
type __VLS_WithDefaults<P, D> = {
|
|
62
58
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
63
59
|
default: D[K];
|
|
@@ -71,3 +67,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
71
67
|
$slots: S;
|
|
72
68
|
};
|
|
73
69
|
};
|
|
70
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
71
|
+
type __VLS_TypePropsToOption<T> = {
|
|
72
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
73
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
74
|
+
} : {
|
|
75
|
+
type: import('vue').PropType<T[K]>;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -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,7 +1,7 @@
|
|
|
1
|
-
import { useTweakPane } from './useTweakPane';
|
|
2
1
|
import { Stats } from './Stats';
|
|
3
2
|
import { StatsGl } from './StatsGl';
|
|
4
3
|
import { BakeShadows } from './BakeShadows';
|
|
5
|
-
import Html from './html/HTML.vue';
|
|
4
|
+
import { default as Html } from './html/HTML.vue';
|
|
6
5
|
import { useGLTFExporter } from './useGLTFExporter';
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
export { Html, Stats, StatsGl, BakeShadows, useGLTFExporter };
|
|
@@ -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,30 +20,23 @@ export interface BoxProps {
|
|
|
19
20
|
*/
|
|
20
21
|
color?: TresColor;
|
|
21
22
|
}
|
|
22
|
-
declare
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BoxProps>, {
|
|
23
27
|
args: () => number[];
|
|
24
28
|
color: string;
|
|
25
29
|
}>, {
|
|
26
|
-
|
|
27
|
-
}, unknown, {}, {}, import(
|
|
30
|
+
instance: import('vue').ShallowRef<any>;
|
|
31
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BoxProps>, {
|
|
28
32
|
args: () => number[];
|
|
29
33
|
color: string;
|
|
30
34
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
35
|
+
color: TresColor;
|
|
36
|
+
args: ConstructorParameters<typeof BoxGeometry>;
|
|
37
|
+
}, {}>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
39
|
export default _default;
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
-
} : {
|
|
42
|
-
type: import('vue').PropType<T[K]>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
40
|
type __VLS_WithDefaults<P, D> = {
|
|
47
41
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
42
|
default: D[K];
|
|
@@ -56,3 +50,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
56
50
|
$slots: S;
|
|
57
51
|
};
|
|
58
52
|
};
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
+
type __VLS_TypePropsToOption<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
+
} : {
|
|
58
|
+
type: import('vue').PropType<T[K]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -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,14 @@ 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_TypePropsToOption<CatmullRomCurve3Props>, {
|
|
23
24
|
segments: number;
|
|
24
25
|
closed: boolean;
|
|
25
26
|
curveType: string;
|
|
26
27
|
tension: number;
|
|
27
|
-
}>, {
|
|
28
|
+
}>, {
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
30
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CatmullRomCurve3Props>, {
|
|
28
31
|
segments: number;
|
|
29
32
|
closed: boolean;
|
|
30
33
|
curveType: string;
|
|
@@ -36,15 +39,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
36
39
|
tension: number;
|
|
37
40
|
}, {}>;
|
|
38
41
|
export default _default;
|
|
39
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
-
} : {
|
|
44
|
-
type: import('vue').PropType<T[K]>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
42
|
type __VLS_WithDefaults<P, D> = {
|
|
49
43
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
44
|
default: D[K];
|
|
@@ -53,3 +47,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
53
47
|
type __VLS_Prettify<T> = {
|
|
54
48
|
[K in keyof T]: T[K];
|
|
55
49
|
} & {};
|
|
50
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
|
+
type __VLS_TypePropsToOption<T> = {
|
|
52
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
53
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
+
} : {
|
|
55
|
+
type: import('vue').PropType<T[K]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -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,30 +19,23 @@ export interface CircleProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CircleProps>, {
|
|
22
26
|
args: () => number[];
|
|
23
27
|
color: string;
|
|
24
28
|
}>, {
|
|
25
|
-
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
30
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CircleProps>, {
|
|
27
31
|
args: () => number[];
|
|
28
32
|
color: string;
|
|
29
33
|
}>>>, {
|
|
30
|
-
color:
|
|
31
|
-
args:
|
|
32
|
-
}, {}
|
|
33
|
-
|
|
34
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof CircleGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
35
38
|
export default _default;
|
|
36
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
-
} : {
|
|
41
|
-
type: import('vue').PropType<T[K]>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
39
|
type __VLS_WithDefaults<P, D> = {
|
|
46
40
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
41
|
default: D[K];
|
|
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
55
49
|
$slots: S;
|
|
56
50
|
};
|
|
57
51
|
};
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
type __VLS_TypePropsToOption<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -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,30 +19,23 @@ export interface ConeProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ConeProps>, {
|
|
22
26
|
args: () => (number | boolean)[];
|
|
23
27
|
color: string;
|
|
24
28
|
}>, {
|
|
25
|
-
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
30
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ConeProps>, {
|
|
27
31
|
args: () => (number | boolean)[];
|
|
28
32
|
color: string;
|
|
29
33
|
}>>>, {
|
|
30
|
-
color:
|
|
31
|
-
args:
|
|
32
|
-
}, {}
|
|
33
|
-
|
|
34
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof ConeGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
35
38
|
export default _default;
|
|
36
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
-
} : {
|
|
41
|
-
type: import('vue').PropType<T[K]>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
39
|
type __VLS_WithDefaults<P, D> = {
|
|
46
40
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
41
|
default: D[K];
|
|
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
55
49
|
$slots: S;
|
|
56
50
|
};
|
|
57
51
|
};
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
type __VLS_TypePropsToOption<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { CylinderGeometry } from 'three';
|
|
3
|
+
|
|
4
|
+
export interface CylinderProps {
|
|
5
|
+
/**
|
|
6
|
+
* The radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength of the cylinder.
|
|
7
|
+
* @default [1, 1, 1, 32, 1, false, 0, Math.PI * 2]
|
|
8
|
+
* @type {any[]}
|
|
9
|
+
* @memberof CylinderProps
|
|
10
|
+
* @see https://threejs.org/docs/#api/en/geometries/CylinderGeometry
|
|
11
|
+
*/
|
|
12
|
+
args?: ConstructorParameters<typeof CylinderGeometry>;
|
|
13
|
+
/**
|
|
14
|
+
* The color of the cylinder.
|
|
15
|
+
* @default 0xffffff
|
|
16
|
+
* @type {TresColor}
|
|
17
|
+
* @memberof CylinderProps
|
|
18
|
+
* @see https://threejs.org/docs/#api/en/materials/MeshBasicMaterial
|
|
19
|
+
*/
|
|
20
|
+
color?: TresColor;
|
|
21
|
+
}
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CylinderProps>, {
|
|
26
|
+
args: () => (number | boolean)[];
|
|
27
|
+
color: string;
|
|
28
|
+
}>, {
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
30
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CylinderProps>, {
|
|
31
|
+
args: () => (number | boolean)[];
|
|
32
|
+
color: string;
|
|
33
|
+
}>>>, {
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof CylinderGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithDefaults<P, D> = {
|
|
40
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
|
+
default: D[K];
|
|
42
|
+
}> : P[K];
|
|
43
|
+
};
|
|
44
|
+
type __VLS_Prettify<T> = {
|
|
45
|
+
[K in keyof T]: T[K];
|
|
46
|
+
} & {};
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
type __VLS_TypePropsToOption<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -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,30 +19,23 @@ export interface DodecahedronProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<DodecahedronProps>, {
|
|
22
26
|
args: () => number[];
|
|
23
27
|
color: string;
|
|
24
28
|
}>, {
|
|
25
|
-
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
30
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<DodecahedronProps>, {
|
|
27
31
|
args: () => number[];
|
|
28
32
|
color: string;
|
|
29
33
|
}>>>, {
|
|
30
|
-
color:
|
|
31
|
-
args:
|
|
32
|
-
}, {}
|
|
33
|
-
|
|
34
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof DodecahedronGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
35
38
|
export default _default;
|
|
36
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
-
} : {
|
|
41
|
-
type: import('vue').PropType<T[K]>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
39
|
type __VLS_WithDefaults<P, D> = {
|
|
46
40
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
41
|
default: D[K];
|
|
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
55
49
|
$slots: S;
|
|
56
50
|
};
|
|
57
51
|
};
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
type __VLS_TypePropsToOption<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -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,30 +19,23 @@ export interface IcosahedronProps {
|
|
|
18
19
|
*/
|
|
19
20
|
color?: TresColor;
|
|
20
21
|
}
|
|
21
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<IcosahedronProps>, {
|
|
22
26
|
args: () => number[];
|
|
23
27
|
color: string;
|
|
24
28
|
}>, {
|
|
25
|
-
|
|
26
|
-
}, unknown, {}, {}, import(
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
30
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<IcosahedronProps>, {
|
|
27
31
|
args: () => number[];
|
|
28
32
|
color: string;
|
|
29
33
|
}>>>, {
|
|
30
|
-
color:
|
|
31
|
-
args:
|
|
32
|
-
}, {}
|
|
33
|
-
|
|
34
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof IcosahedronGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
35
38
|
export default _default;
|
|
36
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
-
} : {
|
|
41
|
-
type: import('vue').PropType<T[K]>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
39
|
type __VLS_WithDefaults<P, D> = {
|
|
46
40
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
41
|
default: D[K];
|
|
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
55
49
|
$slots: S;
|
|
56
50
|
};
|
|
57
51
|
};
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
type __VLS_TypePropsToOption<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -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_TypePropsToOption<LineProps>, {
|
|
19
20
|
vertexColors: null;
|
|
20
21
|
color: string;
|
|
21
22
|
lineWidth: number;
|
|
@@ -26,7 +27,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
26
27
|
gapSize: number;
|
|
27
28
|
dashScale: number;
|
|
28
29
|
dashOffset: number;
|
|
29
|
-
}>, {
|
|
30
|
+
}>, {
|
|
31
|
+
instance: import('vue').ShallowRef<any>;
|
|
32
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LineProps>, {
|
|
30
33
|
vertexColors: null;
|
|
31
34
|
color: string;
|
|
32
35
|
lineWidth: number;
|
|
@@ -38,7 +41,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
41
|
dashScale: number;
|
|
39
42
|
dashOffset: number;
|
|
40
43
|
}>>>, {
|
|
41
|
-
color:
|
|
44
|
+
color: TresColor;
|
|
42
45
|
alphaToCoverage: boolean;
|
|
43
46
|
vertexColors: VertexColors | null;
|
|
44
47
|
lineWidth: number;
|
|
@@ -50,15 +53,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
50
53
|
dashOffset: number;
|
|
51
54
|
}, {}>;
|
|
52
55
|
export default _default;
|
|
53
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
55
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
-
} : {
|
|
58
|
-
type: import('vue').PropType<T[K]>;
|
|
59
|
-
required: true;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
56
|
type __VLS_WithDefaults<P, D> = {
|
|
63
57
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
58
|
default: D[K];
|
|
@@ -67,3 +61,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
67
61
|
type __VLS_Prettify<T> = {
|
|
68
62
|
[K in keyof T]: T[K];
|
|
69
63
|
} & {};
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
+
type __VLS_TypePropsToOption<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: import('vue').PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|