@tresjs/cientos 3.9.0 → 4.0.0-next.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/composables/useOnDemandInvalidation.d.ts +3 -0
- 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/Lensflare/component.vue.d.ts +4 -4
- package/dist/core/abstractions/Levioso.vue.d.ts +15 -13
- package/dist/core/abstractions/MouseParallax.vue.d.ts +6 -6
- package/dist/core/abstractions/Reflector.vue.d.ts +9 -7
- package/dist/core/abstractions/Text3D.vue.d.ts +7 -5
- package/dist/core/abstractions/index.d.ts +2 -1
- package/dist/core/abstractions/useFBO/component.vue.d.ts +2 -2
- package/dist/core/abstractions/useFBO/index.d.ts +2 -2
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +6 -4
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +161 -133
- package/dist/core/controls/CameraControls.vue.d.ts +1593 -1473
- package/dist/core/controls/KeyboardControls.vue.d.ts +39 -85
- package/dist/core/controls/MapControls.vue.d.ts +9495 -2
- package/dist/core/controls/OrbitControls.vue.d.ts +1366 -1262
- package/dist/core/controls/PointerLockControls.vue.d.ts +1 -1
- package/dist/core/controls/ScrollControls.vue.d.ts +19 -15
- package/dist/core/controls/TransformControls.vue.d.ts +6 -2
- package/dist/core/index.d.ts +0 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +2 -2
- package/dist/core/loaders/useFBX/component.vue.d.ts +5 -5
- package/dist/core/loaders/useGLTF/component.vue.d.ts +9 -9
- package/dist/core/loaders/useGLTF/index.d.ts +41 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +4 -2
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +22 -22
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +6 -5
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +170 -40
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +31 -34
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +7 -5
- package/dist/core/misc/html/HTML.vue.d.ts +8 -4
- package/dist/core/misc/index.d.ts +1 -2
- package/dist/core/shapes/Box.vue.d.ts +9 -7
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +3 -1
- package/dist/core/shapes/Circle.vue.d.ts +9 -7
- package/dist/core/shapes/Cone.vue.d.ts +9 -7
- package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
- package/dist/core/shapes/Dodecahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Icosahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Line2.vue.d.ts +4 -2
- package/dist/core/shapes/Octahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Plane.vue.d.ts +9 -7
- package/dist/core/shapes/Ring.vue.d.ts +9 -7
- package/dist/core/shapes/RoundedBox.vue.d.ts +9 -7
- package/dist/core/shapes/Sphere.vue.d.ts +9 -7
- package/dist/core/shapes/Superformula.vue.d.ts +8 -6
- package/dist/core/shapes/Tetrahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Torus.vue.d.ts +9 -7
- package/dist/core/shapes/TorusKnot.vue.d.ts +9 -7
- package/dist/core/shapes/Tube.vue.d.ts +10 -8
- package/dist/core/shapes/index.d.ts +2 -1
- package/dist/core/staging/Backdrop.vue.d.ts +9 -5
- package/dist/core/staging/ContactShadows.vue.d.ts +173 -0
- package/dist/core/staging/Fit.vue.d.ts +9 -6
- package/dist/core/staging/Ocean.vue.d.ts +11 -9
- package/dist/core/staging/Precipitation.vue.d.ts +6 -4
- package/dist/core/staging/Sky.vue.d.ts +2 -2
- package/dist/core/staging/Smoke.vue.d.ts +3 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +3 -3
- package/dist/core/staging/Sparkles/component.vue.d.ts +10 -8
- package/dist/core/staging/Stars.vue.d.ts +4 -4
- package/dist/core/staging/useEnvironment/component.vue.d.ts +8 -6
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +11 -11
- package/dist/trescientos.js +6517 -6177
- package/dist/trescientos.umd.cjs +455 -440
- package/package.json +20 -24
- package/dist/core/directives/index.d.ts +0 -6
- package/dist/core/directives/vAlwaysLookAt.d.ts +0 -5
- package/dist/core/directives/vDistanceTo.d.ts +0 -4
- package/dist/core/directives/vLightHelper.d.ts +0 -7
- package/dist/core/directives/vLog.d.ts +0 -3
- package/dist/core/misc/useTweakPane/index.d.ts +0 -11
- /package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +0 -0
|
@@ -20,7 +20,8 @@ export interface HTMLProps {
|
|
|
20
20
|
occlude?: Ref<TresObject3D>[] | boolean | 'raycast' | 'blending';
|
|
21
21
|
}
|
|
22
22
|
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
23
|
-
declare
|
|
23
|
+
declare function __VLS_template(): Readonly<Record<string, any>> & Record<string, any>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HTMLProps>, {
|
|
24
25
|
geometry: PlaneGeometry;
|
|
25
26
|
zIndexRange: () => number[];
|
|
26
27
|
as: string;
|
|
@@ -28,7 +29,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
28
29
|
eps: number;
|
|
29
30
|
pointerEvents: string;
|
|
30
31
|
sprite: boolean;
|
|
31
|
-
}>, {
|
|
32
|
+
}>, {
|
|
33
|
+
instance: Ref<TresObject3D | undefined>;
|
|
34
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
35
|
onOcclude: (...args: any[]) => void;
|
|
33
36
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HTMLProps>, {
|
|
34
37
|
geometry: PlaneGeometry;
|
|
@@ -47,8 +50,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
47
50
|
as: string;
|
|
48
51
|
eps: number;
|
|
49
52
|
pointerEvents: PointerEventsProperties;
|
|
50
|
-
zIndexRange: number
|
|
51
|
-
}, {}
|
|
53
|
+
zIndexRange: Array<number>;
|
|
54
|
+
}, {}>;
|
|
55
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
52
56
|
export default _default;
|
|
53
57
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
58
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,8 +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
4
|
import { default as Html } from './html/HTML.vue';
|
|
6
5
|
import { useGLTFExporter } from './useGLTFExporter';
|
|
7
6
|
|
|
8
|
-
export {
|
|
7
|
+
export { Html, Stats, StatsGl, BakeShadows, useGLTFExporter };
|
|
@@ -20,20 +20,22 @@ export interface BoxProps {
|
|
|
20
20
|
*/
|
|
21
21
|
color?: TresColor;
|
|
22
22
|
}
|
|
23
|
-
declare
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
24
27
|
args: () => number[];
|
|
25
28
|
color: string;
|
|
26
29
|
}>, {
|
|
27
|
-
|
|
30
|
+
instance: import('vue').ShallowRef<any>;
|
|
28
31
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
29
32
|
args: () => number[];
|
|
30
33
|
color: string;
|
|
31
34
|
}>>>, {
|
|
32
|
-
color:
|
|
33
|
-
args:
|
|
34
|
-
}, {}
|
|
35
|
-
|
|
36
|
-
}>;
|
|
35
|
+
color: TresColor;
|
|
36
|
+
args: ConstructorParameters<typeof BoxGeometry>;
|
|
37
|
+
}, {}>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
37
39
|
export default _default;
|
|
38
40
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
41
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -25,7 +25,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
25
|
closed: boolean;
|
|
26
26
|
curveType: string;
|
|
27
27
|
tension: number;
|
|
28
|
-
}>, {
|
|
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_TypePropsToRuntimeProps<CatmullRomCurve3Props>, {
|
|
29
31
|
segments: number;
|
|
30
32
|
closed: boolean;
|
|
31
33
|
curveType: string;
|
|
@@ -19,20 +19,22 @@ export interface CircleProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof CircleGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,20 +19,22 @@ export interface ConeProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConeProps>, {
|
|
23
26
|
args: () => (number | boolean)[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConeProps>, {
|
|
28
31
|
args: () => (number | boolean)[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof ConeGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -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_TypePropsToRuntimeProps<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_TypePropsToRuntimeProps<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_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
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
|
+
default: D[K];
|
|
51
|
+
}> : P[K];
|
|
52
|
+
};
|
|
53
|
+
type __VLS_Prettify<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -19,20 +19,22 @@ export interface DodecahedronProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DodecahedronProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DodecahedronProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof DodecahedronGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,20 +19,22 @@ export interface IcosahedronProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IcosahedronProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IcosahedronProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof IcosahedronGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -27,7 +27,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
27
27
|
gapSize: number;
|
|
28
28
|
dashScale: number;
|
|
29
29
|
dashOffset: number;
|
|
30
|
-
}>, {
|
|
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_TypePropsToRuntimeProps<LineProps>, {
|
|
31
33
|
vertexColors: null;
|
|
32
34
|
color: string;
|
|
33
35
|
lineWidth: number;
|
|
@@ -39,7 +41,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
39
41
|
dashScale: number;
|
|
40
42
|
dashOffset: number;
|
|
41
43
|
}>>>, {
|
|
42
|
-
color:
|
|
44
|
+
color: TresColor;
|
|
43
45
|
alphaToCoverage: boolean;
|
|
44
46
|
vertexColors: VertexColors | null;
|
|
45
47
|
lineWidth: number;
|
|
@@ -19,20 +19,22 @@ export interface OctahedronProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OctahedronProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OctahedronProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof OctahedronGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,20 +19,22 @@ export interface PlaneProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaneProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaneProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof PlaneGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,20 +19,22 @@ export interface RingProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RingProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RingProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof RingGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -20,20 +20,22 @@ export interface BoxProps {
|
|
|
20
20
|
*/
|
|
21
21
|
color?: TresColor;
|
|
22
22
|
}
|
|
23
|
-
declare
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
24
27
|
args: () => number[];
|
|
25
28
|
color: string;
|
|
26
29
|
}>, {
|
|
27
|
-
|
|
30
|
+
instance: import('vue').ShallowRef<any>;
|
|
28
31
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
29
32
|
args: () => number[];
|
|
30
33
|
color: string;
|
|
31
34
|
}>>>, {
|
|
32
|
-
color:
|
|
33
|
-
args:
|
|
34
|
-
}, {}
|
|
35
|
-
|
|
36
|
-
}>;
|
|
35
|
+
color: TresColor;
|
|
36
|
+
args: ConstructorParameters<typeof BoxGeometry>;
|
|
37
|
+
}, {}>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
37
39
|
export default _default;
|
|
38
40
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
41
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -20,20 +20,22 @@ export interface SphereProps {
|
|
|
20
20
|
*/
|
|
21
21
|
color?: TresColor;
|
|
22
22
|
}
|
|
23
|
-
declare
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SphereProps>, {
|
|
24
27
|
args: () => number[];
|
|
25
28
|
color: string;
|
|
26
29
|
}>, {
|
|
27
|
-
|
|
30
|
+
instance: import('vue').ShallowRef<any>;
|
|
28
31
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SphereProps>, {
|
|
29
32
|
args: () => number[];
|
|
30
33
|
color: string;
|
|
31
34
|
}>>>, {
|
|
32
|
-
color:
|
|
33
|
-
args:
|
|
34
|
-
}, {}
|
|
35
|
-
|
|
36
|
-
}>;
|
|
35
|
+
color: TresColor;
|
|
36
|
+
args: ConstructorParameters<typeof SphereGeometry>;
|
|
37
|
+
}, {}>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
37
39
|
export default _default;
|
|
38
40
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
41
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -32,7 +32,10 @@ export interface SuperFormulaProps {
|
|
|
32
32
|
*/
|
|
33
33
|
color?: TresColor;
|
|
34
34
|
}
|
|
35
|
-
declare
|
|
35
|
+
declare function __VLS_template(): {
|
|
36
|
+
default?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuperFormulaProps>, {
|
|
36
39
|
widthSegments: number;
|
|
37
40
|
heightSegments: number;
|
|
38
41
|
numArmsA: number;
|
|
@@ -41,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
41
44
|
expB: () => number[];
|
|
42
45
|
color: string;
|
|
43
46
|
}>, {
|
|
44
|
-
|
|
47
|
+
instance: import('vue').ShallowRef<any>;
|
|
45
48
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuperFormulaProps>, {
|
|
46
49
|
widthSegments: number;
|
|
47
50
|
heightSegments: number;
|
|
@@ -51,16 +54,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
51
54
|
expB: () => number[];
|
|
52
55
|
color: string;
|
|
53
56
|
}>>>, {
|
|
54
|
-
color:
|
|
57
|
+
color: TresColor;
|
|
55
58
|
widthSegments: number;
|
|
56
59
|
heightSegments: number;
|
|
57
60
|
numArmsA: number;
|
|
58
61
|
expA: Float3;
|
|
59
62
|
numArmsB: number;
|
|
60
63
|
expB: Float3;
|
|
61
|
-
}, {}
|
|
62
|
-
|
|
63
|
-
}>;
|
|
64
|
+
}, {}>;
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
64
66
|
export default _default;
|
|
65
67
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
66
68
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,20 +19,22 @@ export interface TetrahedronProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TetrahedronProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TetrahedronProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof TetrahedronGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,20 +19,22 @@ export interface TorusProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof TorusGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,20 +19,22 @@ export interface TorusKnotProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusKnotProps>, {
|
|
23
26
|
args: () => number[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusKnotProps>, {
|
|
28
31
|
args: () => number[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof TorusKnotGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TresColor } from '@tresjs/core';
|
|
2
|
-
import { TubeGeometry, QuadraticBezierCurve3
|
|
2
|
+
import { TubeGeometry, QuadraticBezierCurve3 } from 'three';
|
|
3
3
|
|
|
4
4
|
export interface TubeProps {
|
|
5
5
|
/**
|
|
@@ -19,20 +19,22 @@ export interface TubeProps {
|
|
|
19
19
|
*/
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
|
-
declare
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TubeProps>, {
|
|
23
26
|
args: () => (number | boolean | QuadraticBezierCurve3)[];
|
|
24
27
|
color: string;
|
|
25
28
|
}>, {
|
|
26
|
-
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
27
30
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TubeProps>, {
|
|
28
31
|
args: () => (number | boolean | QuadraticBezierCurve3)[];
|
|
29
32
|
color: string;
|
|
30
33
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
34
|
+
color: TresColor;
|
|
35
|
+
args: ConstructorParameters<typeof TubeGeometry>;
|
|
36
|
+
}, {}>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
38
|
export default _default;
|
|
37
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
40
|
type __VLS_TypePropsToRuntimeProps<T> = {
|