@tresjs/cientos 4.0.3 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +18 -5
- package/dist/core/abstractions/Billboard.vue.d.ts +61 -0
- package/dist/core/abstractions/CubeCamera/component.vue.d.ts +39 -0
- package/dist/core/abstractions/CubeCamera/useCubeCamera.d.ts +23 -0
- package/dist/core/abstractions/Edges.vue.d.ts +36 -0
- package/dist/core/abstractions/GradientTexture.vue.d.ts +47 -0
- package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +4 -0
- package/dist/core/abstractions/Image/ImageMaterialImpl.d.ts +8 -0
- package/dist/core/abstractions/Image/component.vue.d.ts +81 -0
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +2 -2
- package/dist/core/abstractions/Levioso.vue.d.ts +17 -3
- package/dist/core/abstractions/Mask/component.vue.d.ts +40 -0
- package/dist/core/abstractions/Mask/useMask.d.ts +9 -0
- package/dist/core/abstractions/Outline/OutlineMaterialImpl.d.ts +4 -0
- package/dist/core/abstractions/Outline/component.vue.d.ts +34 -0
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +1 -1
- package/dist/core/abstractions/Reflector.vue.d.ts +10 -3
- package/dist/core/abstractions/ScreenSizer.vue.d.ts +35 -0
- package/dist/core/abstractions/ScreenSpace.vue.d.ts +32 -0
- package/dist/core/abstractions/Text3D.vue.d.ts +17 -3
- package/dist/core/abstractions/index.d.ts +11 -1
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +16 -2
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +756 -602
- package/dist/core/controls/CameraControls.vue.d.ts +304 -0
- package/dist/core/controls/MapControls.vue.d.ts +258 -0
- package/dist/core/controls/OrbitControls.vue.d.ts +262 -0
- package/dist/core/controls/PointerLockControls.vue.d.ts +1 -2
- package/dist/core/controls/ScrollControls.vue.d.ts +18 -4
- package/dist/core/controls/TransformControls.vue.d.ts +1 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +1 -1
- package/dist/core/loaders/useFBX/index.d.ts +3 -3
- package/dist/core/loaders/useGLTF/index.d.ts +7 -8
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/index.d.ts +2 -1
- package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +4 -0
- package/dist/core/materials/meshDiscardMaterial/material.d.ts +4 -0
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/meshGlassMaterial/material.d.ts +1 -3
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +24 -2
- package/dist/core/shapes/Box.vue.d.ts +17 -3
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +1 -1
- package/dist/core/shapes/Circle.vue.d.ts +17 -3
- package/dist/core/shapes/Cone.vue.d.ts +17 -3
- package/dist/core/shapes/Cylinder.vue.d.ts +17 -3
- package/dist/core/shapes/Dodecahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Icosahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Line2.vue.d.ts +1 -1
- package/dist/core/shapes/Octahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Plane.vue.d.ts +17 -3
- package/dist/core/shapes/Ring.vue.d.ts +17 -3
- package/dist/core/shapes/RoundedBox.vue.d.ts +17 -3
- package/dist/core/shapes/Sphere.vue.d.ts +17 -3
- package/dist/core/shapes/Superformula.vue.d.ts +18 -3
- package/dist/core/shapes/Tetrahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Torus.vue.d.ts +17 -3
- package/dist/core/shapes/TorusKnot.vue.d.ts +17 -3
- package/dist/core/shapes/Tube.vue.d.ts +17 -3
- package/dist/core/staging/Align.vue.d.ts +87 -0
- package/dist/core/staging/Backdrop.vue.d.ts +26 -3
- package/dist/core/staging/ContactShadows.vue.d.ts +1 -1
- package/dist/core/staging/Fit.vue.d.ts +35 -5
- package/dist/core/staging/Grid.vue.d.ts +52 -0
- package/dist/core/staging/Ocean.vue.d.ts +10 -3
- package/dist/core/staging/Precipitation.vue.d.ts +17 -16
- package/dist/core/staging/Sky.vue.d.ts +1 -1
- package/dist/core/staging/Smoke.vue.d.ts +1 -1
- package/dist/core/staging/SoftShadows.vue.d.ts +14 -0
- package/dist/core/staging/Sparkles/ShaderData.d.ts +1 -1
- package/dist/core/staging/Stars.vue.d.ts +1 -1
- package/dist/core/staging/index.d.ts +4 -1
- package/dist/core/staging/useEnvironment/{envSence.d.ts → EnvironmentScene.d.ts} +3 -3
- package/dist/core/staging/useEnvironment/component.vue.d.ts +12 -5
- package/dist/core/staging/useEnvironment/index.d.ts +14 -0
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +6 -4
- package/dist/trescientos.js +15618 -15159
- package/dist/trescientos.umd.cjs +819 -517
- package/dist/utils/calculateScaleFactor.d.ts +7 -0
- package/dist/utils/shaderMaterial.d.ts +6 -0
- package/package.json +22 -22
|
@@ -48,11 +48,25 @@ export interface AnimatedSpriteProps {
|
|
|
48
48
|
depthWrite?: boolean;
|
|
49
49
|
}
|
|
50
50
|
declare function __VLS_template(): {
|
|
51
|
-
|
|
51
|
+
slots: {
|
|
52
|
+
default?(_: {}): any;
|
|
53
|
+
};
|
|
54
|
+
refs: {
|
|
55
|
+
groupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
56
|
+
P: {};
|
|
57
|
+
B: {};
|
|
58
|
+
D: {};
|
|
59
|
+
C: {};
|
|
60
|
+
M: {};
|
|
61
|
+
Defaults: {};
|
|
62
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
63
|
+
};
|
|
64
|
+
attrs: Partial<{}>;
|
|
52
65
|
};
|
|
66
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
53
67
|
declare const __VLS_component: import('vue').DefineComponent<AnimatedSpriteProps, {
|
|
54
|
-
instance: import('vue').ShallowRef<any>;
|
|
55
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
69
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
56
70
|
loop: (frameName: string) => any;
|
|
57
71
|
frame: (frameName: string) => any;
|
|
58
72
|
end: (frameName: string) => any;
|
|
@@ -74,9 +88,8 @@ declare const __VLS_component: import('vue').DefineComponent<AnimatedSpriteProps
|
|
|
74
88
|
depthTest: boolean;
|
|
75
89
|
depthWrite: boolean;
|
|
76
90
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
77
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
91
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
78
92
|
export default _default;
|
|
79
|
-
|
|
80
93
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
94
|
new (): {
|
|
82
95
|
$slots: S;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Camera, Group } from 'three';
|
|
2
|
+
export interface BillboardProps {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the Billboard should face the camera automatically on every frame.
|
|
5
|
+
*/
|
|
6
|
+
autoUpdate?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to lock the x-axis.
|
|
9
|
+
*/
|
|
10
|
+
lockX?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to lock the y-axis.
|
|
13
|
+
*/
|
|
14
|
+
lockY?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to lock the z-axis.
|
|
17
|
+
*/
|
|
18
|
+
lockZ?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare function update(camera?: Camera): void;
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
slots: {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {
|
|
26
|
+
outerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
27
|
+
P: {};
|
|
28
|
+
B: {};
|
|
29
|
+
D: {};
|
|
30
|
+
C: {};
|
|
31
|
+
M: {};
|
|
32
|
+
Defaults: {};
|
|
33
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
34
|
+
innerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
42
|
+
};
|
|
43
|
+
attrs: Partial<{}>;
|
|
44
|
+
};
|
|
45
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
46
|
+
declare const __VLS_component: import('vue').DefineComponent<BillboardProps, {
|
|
47
|
+
instance: import('vue').ShallowRef<Group<import('three').Object3DEventMap>, Group<import('three').Object3DEventMap>>;
|
|
48
|
+
update: typeof update;
|
|
49
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BillboardProps> & Readonly<{}>, {
|
|
50
|
+
autoUpdate: boolean;
|
|
51
|
+
lockX: boolean;
|
|
52
|
+
lockY: boolean;
|
|
53
|
+
lockZ: boolean;
|
|
54
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
55
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Group } from 'three';
|
|
2
|
+
import { CubeCameraOptions } from './useCubeCamera';
|
|
3
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
4
|
+
type Props = {
|
|
5
|
+
/** Number of frames to render, Infinity */
|
|
6
|
+
frames?: MaybeRefOrGetter<number>;
|
|
7
|
+
} & CubeCameraOptions;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
groupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
21
|
+
};
|
|
22
|
+
attrs: Partial<{}>;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
26
|
+
instance: import('vue').ShallowRef<Group<import('three').Object3DEventMap> | undefined, Group<import('three').Object3DEventMap> | undefined>;
|
|
27
|
+
fbo: import('vue').ComputedRef<import('three').WebGLCubeRenderTarget>;
|
|
28
|
+
camera: import('vue').ComputedRef<import('three').CubeCamera>;
|
|
29
|
+
update: () => void;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
31
|
+
frames: MaybeRefOrGetter<number>;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { Fog, FogExp2, Scene, Texture, WebGLRenderer, CubeCamera as ThreeCubeCamera, WebGLCubeRenderTarget } from 'three';
|
|
3
|
+
export interface CubeCameraOptions {
|
|
4
|
+
/** Resolution of the FBO, 255 */
|
|
5
|
+
resolution?: MaybeRefOrGetter<number>;
|
|
6
|
+
/** Camera near, 0.1 */
|
|
7
|
+
near?: MaybeRefOrGetter<number>;
|
|
8
|
+
/** Camera far, 1000 */
|
|
9
|
+
far?: MaybeRefOrGetter<number>;
|
|
10
|
+
/** Custom environment map that is temporarily set as the scene's background */
|
|
11
|
+
envMap?: MaybeRefOrGetter<Texture>;
|
|
12
|
+
/** Custom fog that is temporarily set as the scene's fog */
|
|
13
|
+
fog?: MaybeRefOrGetter<Fog | FogExp2>;
|
|
14
|
+
/** Renderer */
|
|
15
|
+
renderer?: MaybeRefOrGetter<WebGLRenderer>;
|
|
16
|
+
/** Scene */
|
|
17
|
+
scene?: MaybeRefOrGetter<Scene>;
|
|
18
|
+
}
|
|
19
|
+
export declare function useCubeCamera(props: CubeCameraOptions): {
|
|
20
|
+
fbo: import('vue').ComputedRef<WebGLCubeRenderTarget>;
|
|
21
|
+
camera: import('vue').ComputedRef<ThreeCubeCamera>;
|
|
22
|
+
update: () => void;
|
|
23
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LineSegments, BufferGeometry } from 'three';
|
|
2
|
+
import { TresColor } from '@tresjs/core';
|
|
3
|
+
export interface EdgesProps {
|
|
4
|
+
color?: TresColor;
|
|
5
|
+
threshold?: number;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
lineSegmentsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof LineSegments>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
13
|
+
P: {};
|
|
14
|
+
B: {};
|
|
15
|
+
D: {};
|
|
16
|
+
C: {};
|
|
17
|
+
M: {};
|
|
18
|
+
Defaults: {};
|
|
19
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof LineSegments>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
20
|
+
};
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<EdgesProps, {
|
|
25
|
+
instance: import('vue').ShallowRef<LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap> | undefined, LineSegments<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap> | undefined>;
|
|
26
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EdgesProps> & Readonly<{}>, {
|
|
27
|
+
color: TresColor;
|
|
28
|
+
threshold: number;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export type GradientType = 'linear' | 'radial';
|
|
3
|
+
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* A `number[]` of values between `0` and `1` representing the color positions in the gradient. `stops.length` should match `color.
|
|
6
|
+
*/
|
|
7
|
+
stops: Array<number>;
|
|
8
|
+
/**
|
|
9
|
+
* A `THREE.ColorRepresentation[]` representing the colors in the gradient.
|
|
10
|
+
*/
|
|
11
|
+
colors: Array<THREE.ColorRepresentation>;
|
|
12
|
+
/**
|
|
13
|
+
* Where the component should be attached within its parent.
|
|
14
|
+
*/
|
|
15
|
+
attach?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Height of the canvas used to draw the gradient.
|
|
18
|
+
*/
|
|
19
|
+
height?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Width of the canvas used to draw the gradient.
|
|
22
|
+
*/
|
|
23
|
+
width?: number;
|
|
24
|
+
/**
|
|
25
|
+
* `'linear' \| 'radial'` Type of gradient to draw.
|
|
26
|
+
*/
|
|
27
|
+
type?: GradientType;
|
|
28
|
+
/**
|
|
29
|
+
* Radius of the inner circle of a radial gradient.
|
|
30
|
+
*/
|
|
31
|
+
innerCircleRadius?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Radius of the outer circle of a radial gradient.
|
|
34
|
+
*/
|
|
35
|
+
outerCircleRadius?: string | number;
|
|
36
|
+
}
|
|
37
|
+
declare const _default: import('vue').DefineComponent<Props, {
|
|
38
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
40
|
+
type: GradientType;
|
|
41
|
+
attach: string;
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
innerCircleRadius: number;
|
|
45
|
+
outerCircleRadius: string | number;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Side, Texture } from 'three';
|
|
2
|
+
import { TresColor } from '@tresjs/core';
|
|
3
|
+
export type ImageProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Number of divisions in the the default geometry.
|
|
6
|
+
*/
|
|
7
|
+
segments?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Scale of the geometry.
|
|
10
|
+
*/
|
|
11
|
+
scale?: number | [number, number];
|
|
12
|
+
/**
|
|
13
|
+
* Color multiplied into the image texture. Default is white.
|
|
14
|
+
*/
|
|
15
|
+
color?: TresColor;
|
|
16
|
+
/**
|
|
17
|
+
* Shrinks or enlarges the image texture.
|
|
18
|
+
*/
|
|
19
|
+
zoom?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Border radius applied to image texture. Intended for rectangular geometries.
|
|
22
|
+
*/
|
|
23
|
+
radius?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Power of grayscale effect. 0 is no grayscale. 1 is full grayscale.
|
|
26
|
+
*/
|
|
27
|
+
grayscale?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this material is tone mapped according to the renderer's toneMapping setting. [See THREE.material.tonemapped](https://threejs.org/docs/?q=material#api/en/materials/Material.toneMapped)
|
|
30
|
+
*/
|
|
31
|
+
toneMapped?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the image material should be transparent. [See THREE.material.transparent](https://threejs.org/docs/?q=material#api/en/materials/Material.transparent)
|
|
34
|
+
*/
|
|
35
|
+
transparent?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Opacity of the image material. [See THREE.material.transparent](https://threejs.org/docs/?q=material#api/en/materials/Material.transparent)
|
|
38
|
+
*/
|
|
39
|
+
opacity?: number;
|
|
40
|
+
/**
|
|
41
|
+
* THREE.Side of the image material. [See THREE.material.side](https://threejs.org/docs/?q=material#api/en/materials/Material.side)
|
|
42
|
+
*/
|
|
43
|
+
side?: Side;
|
|
44
|
+
} & ({
|
|
45
|
+
/**
|
|
46
|
+
* Image texture to display on the geometry.
|
|
47
|
+
*/
|
|
48
|
+
texture: Texture;
|
|
49
|
+
url?: never;
|
|
50
|
+
} | {
|
|
51
|
+
texture?: never;
|
|
52
|
+
/**
|
|
53
|
+
* Image URL to load and display on the geometry.
|
|
54
|
+
*/
|
|
55
|
+
url: string;
|
|
56
|
+
});
|
|
57
|
+
declare function __VLS_template(): {
|
|
58
|
+
slots: {
|
|
59
|
+
default?(_: {}): any;
|
|
60
|
+
};
|
|
61
|
+
refs: {
|
|
62
|
+
imageRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
63
|
+
P: {};
|
|
64
|
+
B: {};
|
|
65
|
+
D: {};
|
|
66
|
+
C: {};
|
|
67
|
+
M: {};
|
|
68
|
+
Defaults: {};
|
|
69
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
70
|
+
};
|
|
71
|
+
attrs: Partial<{}>;
|
|
72
|
+
};
|
|
73
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
74
|
+
declare const __VLS_component: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
75
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
76
|
+
export default _default;
|
|
77
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
78
|
+
new (): {
|
|
79
|
+
$slots: S;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lensflare } from 'three
|
|
1
|
+
import { Lensflare } from 'three-stdlib';
|
|
2
2
|
import { TresColor } from '@tresjs/core';
|
|
3
3
|
import { Texture } from 'three';
|
|
4
4
|
import { LensflareElementProps, SeedProps } from '.';
|
|
@@ -37,7 +37,7 @@ export interface LensflareProps {
|
|
|
37
37
|
texture?: Texture | string;
|
|
38
38
|
}
|
|
39
39
|
declare const _default: import('vue').DefineComponent<LensflareProps, {
|
|
40
|
-
instance: import('vue').ShallowRef<Lensflare | undefined>;
|
|
40
|
+
instance: import('vue').ShallowRef<Lensflare | undefined, Lensflare | undefined>;
|
|
41
41
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LensflareProps> & Readonly<{}>, {
|
|
42
42
|
texture: Texture | string;
|
|
43
43
|
color: TresColor;
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {
|
|
6
|
+
groupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
14
|
+
};
|
|
15
|
+
attrs: Partial<{}>;
|
|
3
16
|
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
18
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
5
19
|
speed?: number;
|
|
6
20
|
rotationFactor?: number;
|
|
7
21
|
floatFactor?: number;
|
|
8
22
|
range?: [number, number];
|
|
9
23
|
}, {
|
|
10
|
-
instance: import('vue').ShallowRef<any>;
|
|
24
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
11
25
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
12
26
|
speed?: number;
|
|
13
27
|
rotationFactor?: number;
|
|
@@ -19,7 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
19
33
|
floatFactor: number;
|
|
20
34
|
range: [number, number];
|
|
21
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
37
|
export default _default;
|
|
24
38
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
39
|
new (): {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Mesh } from 'three';
|
|
2
|
+
interface MaskProps {
|
|
3
|
+
/** Id of the stencil buffer to use. Each mask must have an id. Multiple masks can refer to the same id. */
|
|
4
|
+
id: number;
|
|
5
|
+
/** Whether the colors of the masks own material will leak through, default: false */
|
|
6
|
+
colorWrite?: boolean;
|
|
7
|
+
/** Whether the depth of the masks own material will leak through, default: false */
|
|
8
|
+
depthWrite?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
meshRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
16
|
+
P: {};
|
|
17
|
+
B: {};
|
|
18
|
+
D: {};
|
|
19
|
+
C: {};
|
|
20
|
+
M: {};
|
|
21
|
+
Defaults: {};
|
|
22
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
23
|
+
};
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<MaskProps, {
|
|
28
|
+
instance: import('vue').ShallowRef<Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap> | undefined, Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap> | undefined>;
|
|
29
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MaskProps> & Readonly<{}>, {
|
|
30
|
+
depthWrite: boolean;
|
|
31
|
+
id: number;
|
|
32
|
+
colorWrite: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare function useMask(id: Ref<number> | number, inverse?: Ref<boolean> | boolean): {
|
|
3
|
+
stencilWrite: boolean;
|
|
4
|
+
stencilRef: number;
|
|
5
|
+
stencilFunc: 514 | 517;
|
|
6
|
+
stencilFail: 7680;
|
|
7
|
+
stencilZFail: 7680;
|
|
8
|
+
stencilZPass: 7680;
|
|
9
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
interface OutlineProps {
|
|
3
|
+
/** Outline color, default: black */
|
|
4
|
+
color?: TresColor;
|
|
5
|
+
/** Line thickness is independent of zoom, default: false */
|
|
6
|
+
screenspace?: boolean;
|
|
7
|
+
/** Outline opacity, default: 1 */
|
|
8
|
+
opacity?: number;
|
|
9
|
+
/** Outline transparency, default: false */
|
|
10
|
+
transparent?: boolean;
|
|
11
|
+
/** Outline thickness, default 0.05 */
|
|
12
|
+
thickness?: number;
|
|
13
|
+
/** Geometry crease angle (-1 === no crease), default: Math.PI, See [BufferGeometryUtils.toCreasedNormals](https://threejs.org/docs/#examples/en/utils/BufferGeometryUtils.toCreasedNormals) */
|
|
14
|
+
angle?: number;
|
|
15
|
+
toneMapped?: boolean;
|
|
16
|
+
polygonOffset?: boolean;
|
|
17
|
+
polygonOffsetFactor?: number;
|
|
18
|
+
renderOrder?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<OutlineProps, {
|
|
21
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OutlineProps> & Readonly<{}>, {
|
|
23
|
+
color: TresColor;
|
|
24
|
+
renderOrder: number;
|
|
25
|
+
opacity: number;
|
|
26
|
+
polygonOffset: boolean;
|
|
27
|
+
polygonOffsetFactor: number;
|
|
28
|
+
toneMapped: boolean;
|
|
29
|
+
transparent: boolean;
|
|
30
|
+
angle: number;
|
|
31
|
+
thickness: number;
|
|
32
|
+
screenspace: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -11,7 +11,7 @@ export interface PositionalAudioProps {
|
|
|
11
11
|
outerGain?: number;
|
|
12
12
|
}
|
|
13
13
|
declare const _default: import('vue').DefineComponent<PositionalAudioProps, {
|
|
14
|
-
|
|
14
|
+
instance: import('vue').ShallowRef<PositionalAudio | null, PositionalAudio | null>;
|
|
15
15
|
play: () => void;
|
|
16
16
|
stop: () => void;
|
|
17
17
|
pause: () => void;
|
|
@@ -57,10 +57,17 @@ export interface ReflectorProps {
|
|
|
57
57
|
shader?: object;
|
|
58
58
|
}
|
|
59
59
|
declare function __VLS_template(): {
|
|
60
|
-
|
|
60
|
+
slots: {
|
|
61
|
+
default?(_: {}): any;
|
|
62
|
+
};
|
|
63
|
+
refs: {
|
|
64
|
+
reflectorRef: unknown;
|
|
65
|
+
};
|
|
66
|
+
attrs: Partial<{}>;
|
|
61
67
|
};
|
|
68
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
62
69
|
declare const __VLS_component: import('vue').DefineComponent<ReflectorProps, {
|
|
63
|
-
instance: import('vue').ShallowRef<Reflector | undefined>;
|
|
70
|
+
instance: import('vue').ShallowRef<Reflector | undefined, Reflector | undefined>;
|
|
64
71
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ReflectorProps> & Readonly<{}>, {
|
|
65
72
|
color: TresColor;
|
|
66
73
|
textureWidth: number;
|
|
@@ -69,7 +76,7 @@ declare const __VLS_component: import('vue').DefineComponent<ReflectorProps, {
|
|
|
69
76
|
multisample: number;
|
|
70
77
|
shader: object;
|
|
71
78
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
72
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
79
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
73
80
|
export default _default;
|
|
74
81
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
82
|
new (): {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {
|
|
6
|
+
outerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
14
|
+
innerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
15
|
+
P: {};
|
|
16
|
+
B: {};
|
|
17
|
+
D: {};
|
|
18
|
+
C: {};
|
|
19
|
+
M: {};
|
|
20
|
+
Defaults: {};
|
|
21
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
22
|
+
};
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
27
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface ScreenSpaceProps {
|
|
2
|
+
depth?: number;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {
|
|
9
|
+
outerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
10
|
+
P: {};
|
|
11
|
+
B: {};
|
|
12
|
+
D: {};
|
|
13
|
+
C: {};
|
|
14
|
+
M: {};
|
|
15
|
+
Defaults: {};
|
|
16
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
17
|
+
};
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<ScreenSpaceProps, {
|
|
22
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScreenSpaceProps> & Readonly<{}>, {
|
|
24
|
+
depth: number;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|