@tresjs/cientos 5.1.0 → 5.1.2
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/trescientos.d.ts +11587 -0
- package/dist/trescientos.js +11796 -60020
- package/package.json +11 -17
- package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +0 -37
- package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +0 -10
- package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +0 -2
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +0 -107
- package/dist/core/abstractions/Billboard.vue.d.ts +0 -79
- package/dist/core/abstractions/CubeCamera/component.vue.d.ts +0 -49
- package/dist/core/abstractions/CubeCamera/useCubeCamera.d.ts +0 -24
- package/dist/core/abstractions/Edges.vue.d.ts +0 -46
- package/dist/core/abstractions/GlobalAudio.d.ts +0 -50
- package/dist/core/abstractions/GradientTexture.vue.d.ts +0 -60
- package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +0 -6
- package/dist/core/abstractions/Image/ImageMaterialImpl.d.ts +0 -8
- package/dist/core/abstractions/Image/component.vue.d.ts +0 -75
- package/dist/core/abstractions/Lensflare/LensflareImpl.d.ts +0 -23
- package/dist/core/abstractions/Lensflare/RandUtils.d.ts +0 -68
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +0 -60
- package/dist/core/abstractions/Lensflare/constants.d.ts +0 -20
- package/dist/core/abstractions/Lensflare/index.d.ts +0 -36
- package/dist/core/abstractions/Levioso.vue.d.ts +0 -48
- package/dist/core/abstractions/MarchingCubes/MarchingCube.vue.d.ts +0 -22
- package/dist/core/abstractions/MarchingCubes/MarchingCubes.vue.d.ts +0 -35
- package/dist/core/abstractions/MarchingCubes/MarchingPlane.vue.d.ts +0 -20
- package/dist/core/abstractions/MarchingCubes/const.d.ts +0 -2
- package/dist/core/abstractions/Mask/component.vue.d.ts +0 -50
- package/dist/core/abstractions/Mask/useMask.d.ts +0 -9
- package/dist/core/abstractions/MouseParallax.vue.d.ts +0 -51
- package/dist/core/abstractions/Outline/OutlineMaterialImpl.d.ts +0 -4
- package/dist/core/abstractions/Outline/component.vue.d.ts +0 -44
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +0 -42
- package/dist/core/abstractions/Reflector.vue.d.ts +0 -88
- package/dist/core/abstractions/ScreenSizer.vue.d.ts +0 -53
- package/dist/core/abstractions/ScreenSpace.vue.d.ts +0 -42
- package/dist/core/abstractions/Text3D.vue.d.ts +0 -164
- package/dist/core/abstractions/index.d.ts +0 -28
- package/dist/core/abstractions/useAnimations.d.ts +0 -19
- package/dist/core/abstractions/useFBO/component.vue.d.ts +0 -9
- package/dist/core/abstractions/useFBO/index.d.ts +0 -17
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +0 -38
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +0 -1412
- package/dist/core/controls/CameraControls.vue.d.ts +0 -306
- package/dist/core/controls/Helper/component.vue.d.ts +0 -16
- package/dist/core/controls/Helper/useHelper.d.ts +0 -10
- package/dist/core/controls/KeyboardControls.vue.d.ts +0 -58
- package/dist/core/controls/MapControls.vue.d.ts +0 -260
- package/dist/core/controls/OrbitControls.vue.d.ts +0 -285
- package/dist/core/controls/PointerLockControls.vue.d.ts +0 -51
- package/dist/core/controls/ScrollControls.vue.d.ts +0 -96
- package/dist/core/controls/TransformControls.vue.d.ts +0 -44
- package/dist/core/controls/index.d.ts +0 -9
- package/dist/core/index.d.ts +0 -7
- package/dist/core/loaders/index.d.ts +0 -12
- package/dist/core/loaders/useFBX/component.vue.d.ts +0 -38
- package/dist/core/loaders/useFBX/index.d.ts +0 -32
- package/dist/core/loaders/useGLTF/component.vue.d.ts +0 -61
- package/dist/core/loaders/useGLTF/index.d.ts +0 -43
- package/dist/core/loaders/useProgress.d.ts +0 -6
- package/dist/core/loaders/useSVG/component.vue.d.ts +0 -101
- package/dist/core/loaders/useSVG/index.d.ts +0 -65
- package/dist/core/loaders/useTexture/component.vue.d.ts +0 -5134
- package/dist/core/loaders/useTexture/index.d.ts +0 -3
- package/dist/core/loaders/useTextures/index.d.ts +0 -13
- package/dist/core/loaders/useVideoTexture.d.ts +0 -28
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +0 -16
- package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +0 -41
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +0 -35
- package/dist/core/materials/holographicMaterial/material.d.ts +0 -27
- package/dist/core/materials/index.d.ts +0 -8
- package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +0 -6
- package/dist/core/materials/meshDiscardMaterial/material.d.ts +0 -4
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +0 -6
- package/dist/core/materials/meshGlassMaterial/material.d.ts +0 -37
- package/dist/core/materials/meshReflectionMaterial/BlurPass.d.ts +0 -23
- package/dist/core/materials/meshReflectionMaterial/ConvolutionMaterial.d.ts +0 -7
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +0 -113
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +0 -47
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +0 -13
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +0 -21
- package/dist/core/materials/pointMaterial/component.vue.d.ts +0 -8
- package/dist/core/materials/pointMaterial/material.d.ts +0 -4
- package/dist/core/misc/BakeShadows.d.ts +0 -1
- package/dist/core/misc/LOD.vue.d.ts +0 -52
- package/dist/core/misc/Stats.d.ts +0 -13
- package/dist/core/misc/StatsGl.d.ts +0 -10
- package/dist/core/misc/html/HTML.vue.d.ts +0 -82
- package/dist/core/misc/html/utils.d.ts +0 -17
- package/dist/core/misc/index.d.ts +0 -8
- package/dist/core/misc/useGLTFExporter.d.ts +0 -12
- package/dist/core/misc/useIntersect.d.ts +0 -9
- package/dist/core/shapes/Box.vue.d.ts +0 -61
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +0 -30
- package/dist/core/shapes/Circle.vue.d.ts +0 -60
- package/dist/core/shapes/Cone.vue.d.ts +0 -60
- package/dist/core/shapes/CubicBezierLine.vue.d.ts +0 -49
- package/dist/core/shapes/Cylinder.vue.d.ts +0 -60
- package/dist/core/shapes/Dodecahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Icosahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Line2.vue.d.ts +0 -32
- package/dist/core/shapes/Octahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Plane.vue.d.ts +0 -60
- package/dist/core/shapes/QuadraticBezierLine.vue.d.ts +0 -48
- package/dist/core/shapes/Ring.vue.d.ts +0 -60
- package/dist/core/shapes/RoundedBox.vue.d.ts +0 -61
- package/dist/core/shapes/ScreenQuad.vue.d.ts +0 -38
- package/dist/core/shapes/Sphere.vue.d.ts +0 -61
- package/dist/core/shapes/Superformula.vue.d.ts +0 -79
- package/dist/core/shapes/Tetrahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Torus.vue.d.ts +0 -60
- package/dist/core/shapes/TorusKnot.vue.d.ts +0 -60
- package/dist/core/shapes/Tube.vue.d.ts +0 -60
- package/dist/core/shapes/index.d.ts +0 -22
- package/dist/core/staging/AccumulativeShadows/ProgressiveLightMap.d.ts +0 -35
- package/dist/core/staging/AccumulativeShadows/SoftShadowMaterial.d.ts +0 -10
- package/dist/core/staging/AccumulativeShadows/component.vue.d.ts +0 -115
- package/dist/core/staging/Align.vue.d.ts +0 -117
- package/dist/core/staging/Backdrop.vue.d.ts +0 -63
- package/dist/core/staging/Bounds/Bounds.d.ts +0 -73
- package/dist/core/staging/Bounds/component.vue.d.ts +0 -60
- package/dist/core/staging/CircleShadow.vue.d.ts +0 -27
- package/dist/core/staging/ContactShadows.vue.d.ts +0 -124
- package/dist/core/staging/Fit.vue.d.ts +0 -96
- package/dist/core/staging/Grid.vue.d.ts +0 -61
- package/dist/core/staging/Ocean.vue.d.ts +0 -133
- package/dist/core/staging/Precipitation.vue.d.ts +0 -144
- package/dist/core/staging/RandomizedLights/RandomizedLights.d.ts +0 -29
- package/dist/core/staging/RandomizedLights/component.vue.d.ts +0 -43
- package/dist/core/staging/Sky.vue.d.ts +0 -46
- package/dist/core/staging/Smoke.vue.d.ts +0 -97
- package/dist/core/staging/SoftShadows.vue.d.ts +0 -14
- package/dist/core/staging/Sparkles/ShaderData.d.ts +0 -37
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +0 -42
- package/dist/core/staging/Sparkles/component.vue.d.ts +0 -168
- package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +0 -2
- package/dist/core/staging/Stage.vue.d.ts +0 -677
- package/dist/core/staging/Stars.vue.d.ts +0 -88
- package/dist/core/staging/index.d.ts +0 -20
- package/dist/core/staging/useEnvironment/EnvironmentScene.d.ts +0 -8
- package/dist/core/staging/useEnvironment/component.vue.d.ts +0 -38
- package/dist/core/staging/useEnvironment/const.d.ts +0 -116
- package/dist/core/staging/useEnvironment/index.d.ts +0 -23
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +0 -37
- package/dist/index.d.ts +0 -2
- package/dist/utils/Gradient.d.ts +0 -10
- package/dist/utils/calculateScaleFactor.d.ts +0 -7
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/easing.d.ts +0 -5
- package/dist/utils/index.d.ts +0 -22
- package/dist/utils/shaderMaterial.d.ts +0 -6
- package/dist/utils/types.d.ts +0 -3
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
export interface StarsProps {
|
|
2
|
-
/**
|
|
3
|
-
* The size of the stars.
|
|
4
|
-
*
|
|
5
|
-
* @type {number}
|
|
6
|
-
* @memberof StarsProps
|
|
7
|
-
* @default 0.1
|
|
8
|
-
*/
|
|
9
|
-
size?: number;
|
|
10
|
-
/**
|
|
11
|
-
* keep the same size regardless distance.
|
|
12
|
-
*
|
|
13
|
-
* @type {boolean}
|
|
14
|
-
* @memberof StarsProps
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
sizeAttenuation?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* show transparency on the stars texture.
|
|
20
|
-
*
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof StarsProps
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
transparent?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* enables the WebGL to know when not to render the pixel.
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof StarsProps
|
|
31
|
-
* @default 0.01
|
|
32
|
-
*/
|
|
33
|
-
alphaTest?: number;
|
|
34
|
-
/**
|
|
35
|
-
* number of stars.
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof StarsProps
|
|
39
|
-
* @default 5000
|
|
40
|
-
*/
|
|
41
|
-
count?: number;
|
|
42
|
-
/**
|
|
43
|
-
* depth of star's shape.
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof StarsProps
|
|
47
|
-
* @default 50
|
|
48
|
-
*/
|
|
49
|
-
depth?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Radius of star's shape.
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof StarsProps
|
|
55
|
-
* @default 100
|
|
56
|
-
*/
|
|
57
|
-
radius?: number;
|
|
58
|
-
/**
|
|
59
|
-
* texture of the stars.
|
|
60
|
-
*
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof StarsProps
|
|
63
|
-
* @default null
|
|
64
|
-
*/
|
|
65
|
-
alphaMap?: null;
|
|
66
|
-
}
|
|
67
|
-
declare const _default: import('vue').DefineComponent<StarsProps, {
|
|
68
|
-
instance: import('vue').ShallowRef<any, any>;
|
|
69
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StarsProps> & Readonly<{}>, {
|
|
70
|
-
alphaTest: number;
|
|
71
|
-
depth: number;
|
|
72
|
-
count: number;
|
|
73
|
-
radius: number;
|
|
74
|
-
transparent: boolean;
|
|
75
|
-
alphaMap: null;
|
|
76
|
-
size: number;
|
|
77
|
-
sizeAttenuation: boolean;
|
|
78
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
79
|
-
starsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Points<import('three').BufferGeometry<import('three').NormalOrGLBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Points<import('three').BufferGeometry<import('three').NormalOrGLBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Points<import('three').BufferGeometry<import('three').NormalOrGLBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Points>, "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, {
|
|
80
|
-
P: {};
|
|
81
|
-
B: {};
|
|
82
|
-
D: {};
|
|
83
|
-
C: {};
|
|
84
|
-
M: {};
|
|
85
|
-
Defaults: {};
|
|
86
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Points<import('three').BufferGeometry<import('three').NormalOrGLBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Points<import('three').BufferGeometry<import('three').NormalOrGLBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Points<import('three').BufferGeometry<import('three').NormalOrGLBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Points>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
87
|
-
}, any>;
|
|
88
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as AccumulativeShadows } from './AccumulativeShadows/component.vue';
|
|
2
|
-
import { default as Align } from './Align.vue';
|
|
3
|
-
import { default as Backdrop } from './Backdrop.vue';
|
|
4
|
-
import { default as Bounds } from './Bounds/component.vue';
|
|
5
|
-
import { default as ContactShadows } from './ContactShadows.vue';
|
|
6
|
-
import { default as Fit } from './Fit.vue';
|
|
7
|
-
import { default as Grid } from './Grid.vue';
|
|
8
|
-
import { default as Ocean } from './Ocean.vue';
|
|
9
|
-
import { default as Precipitation } from './Precipitation.vue';
|
|
10
|
-
import { default as CircleShadow } from './CircleShadow.vue';
|
|
11
|
-
import { default as RandomizedLights } from './RandomizedLights/component.vue';
|
|
12
|
-
import { default as Sky } from './Sky.vue';
|
|
13
|
-
import { default as Smoke } from './Smoke.vue';
|
|
14
|
-
import { default as SoftShadows } from './SoftShadows.vue';
|
|
15
|
-
import { default as Sparkles } from './Sparkles/component.vue';
|
|
16
|
-
import { default as Stage } from './Stage.vue';
|
|
17
|
-
import { default as Stars } from './Stars.vue';
|
|
18
|
-
import { default as Environment } from './useEnvironment/component.vue';
|
|
19
|
-
import { default as Lightformer } from './useEnvironment/lightformer/index.vue';
|
|
20
|
-
export { AccumulativeShadows, Align, Backdrop, Bounds, CircleShadow, ContactShadows, Environment, Fit, Grid, Lightformer, Ocean, Precipitation, RandomizedLights, Sky, Smoke, SoftShadows, Sparkles, Stage, Stars, };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CubeTexture, Texture } from 'three';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
import { EnvironmentOptions } from './const';
|
|
4
|
-
declare function __VLS_template(): {
|
|
5
|
-
attrs: Partial<{}>;
|
|
6
|
-
slots: {
|
|
7
|
-
default?(_: {}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {
|
|
10
|
-
environmentScene: unknown;
|
|
11
|
-
};
|
|
12
|
-
rootEl: any;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<EnvironmentOptions, {
|
|
16
|
-
texture: Ref<Texture | CubeTexture | null, Texture | CubeTexture | null>;
|
|
17
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EnvironmentOptions> & Readonly<{}>, {
|
|
18
|
-
path: string;
|
|
19
|
-
backgroundIntensity: number;
|
|
20
|
-
background: boolean | string;
|
|
21
|
-
environmentIntensity: number;
|
|
22
|
-
near: number;
|
|
23
|
-
far: number;
|
|
24
|
-
blur: number;
|
|
25
|
-
resolution: number;
|
|
26
|
-
frames: number;
|
|
27
|
-
preset: import('./const').EnvironmentPresetsType;
|
|
28
|
-
files: string | string[];
|
|
29
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
|
-
environmentScene: unknown;
|
|
31
|
-
}, any>;
|
|
32
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
-
export default _default;
|
|
34
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
-
new (): {
|
|
36
|
-
$slots: S;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { VectorFlexibleParams } from '@tresjs/core';
|
|
2
|
-
export interface EnvironmentOptions {
|
|
3
|
-
/**
|
|
4
|
-
* If true, the environment will be set as the scene's background.
|
|
5
|
-
*
|
|
6
|
-
* @type {boolean}
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
|
-
background?: boolean | string;
|
|
10
|
-
/**
|
|
11
|
-
* The blur radius of the environment.
|
|
12
|
-
*
|
|
13
|
-
* @type {number}
|
|
14
|
-
* @default 0
|
|
15
|
-
*/
|
|
16
|
-
blur?: number;
|
|
17
|
-
/**
|
|
18
|
-
* The files to load. If a string is provided, it will be loaded as an equirectangular texture.
|
|
19
|
-
* If an array is provided, it will be loaded as a cube texture.
|
|
20
|
-
*
|
|
21
|
-
* @type {(string | string[])}
|
|
22
|
-
*/
|
|
23
|
-
files?: string | string[];
|
|
24
|
-
/**
|
|
25
|
-
* The path to the files.
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @default '/'
|
|
29
|
-
*/
|
|
30
|
-
path?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The preset to use. If provided, the files and path props will be ignored.
|
|
33
|
-
*
|
|
34
|
-
* @type {EnvironmentPresetsType}
|
|
35
|
-
*/
|
|
36
|
-
preset?: EnvironmentPresetsType;
|
|
37
|
-
/**
|
|
38
|
-
* The resolution of the WebGLCubeRenderTarget.
|
|
39
|
-
*
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @default 256
|
|
42
|
-
*/
|
|
43
|
-
resolution?: number;
|
|
44
|
-
/**
|
|
45
|
-
* The near of the CubeCamera.
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @default 1
|
|
49
|
-
*/
|
|
50
|
-
near?: number;
|
|
51
|
-
/**
|
|
52
|
-
* The far of the CubeCamera.
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @default 1000
|
|
56
|
-
*/
|
|
57
|
-
far?: number;
|
|
58
|
-
/**
|
|
59
|
-
* The frames of the cubeCamera.update.
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @default Infinity
|
|
63
|
-
*/
|
|
64
|
-
frames?: number;
|
|
65
|
-
/**
|
|
66
|
-
* The intensity of the background.
|
|
67
|
-
*
|
|
68
|
-
* @type {number}
|
|
69
|
-
* @default 1
|
|
70
|
-
*/
|
|
71
|
-
backgroundIntensity?: number;
|
|
72
|
-
/**
|
|
73
|
-
* The rotation of the background.
|
|
74
|
-
*
|
|
75
|
-
* @type {VectorFlexibleParams}
|
|
76
|
-
* @default [0, 0, 0]
|
|
77
|
-
*/
|
|
78
|
-
backgroundRotation?: VectorFlexibleParams;
|
|
79
|
-
/**
|
|
80
|
-
* The intensity of the environment.
|
|
81
|
-
*
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @default 1
|
|
84
|
-
*/
|
|
85
|
-
environmentIntensity?: number;
|
|
86
|
-
/**
|
|
87
|
-
* The rotation of the environment.
|
|
88
|
-
*
|
|
89
|
-
* @type {VectorFlexibleParams}
|
|
90
|
-
* @default [0, 0, 0]
|
|
91
|
-
*/
|
|
92
|
-
environmentRotation?: VectorFlexibleParams;
|
|
93
|
-
/**
|
|
94
|
-
* If true, the environment rotation will be synced with the background rotation.
|
|
95
|
-
* This means when backgroundRotation changes, environmentRotation will be updated to match.
|
|
96
|
-
*
|
|
97
|
-
* @type {boolean}
|
|
98
|
-
* @default false
|
|
99
|
-
*/
|
|
100
|
-
syncMaterials?: boolean;
|
|
101
|
-
}
|
|
102
|
-
export declare const environmentPresets: {
|
|
103
|
-
sunset: string;
|
|
104
|
-
studio: string;
|
|
105
|
-
city: string;
|
|
106
|
-
umbrellas: string;
|
|
107
|
-
night: string;
|
|
108
|
-
forest: string;
|
|
109
|
-
snow: string;
|
|
110
|
-
dawn: string;
|
|
111
|
-
hangar: string;
|
|
112
|
-
urban: string;
|
|
113
|
-
modern: string;
|
|
114
|
-
shangai: string;
|
|
115
|
-
};
|
|
116
|
-
export type EnvironmentPresetsType = keyof typeof environmentPresets;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CubeTexture, Texture, WebGLCubeRenderTarget } from 'three';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
import { EnvironmentOptions } from './const';
|
|
4
|
-
/**
|
|
5
|
-
* Component that loads an environment map and sets it as the scene's background and environment.
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
|
-
* @param {Partial<EnvironmentOptions>} options - The options for the environment map
|
|
9
|
-
* files = ['/px.png', '/nx.png', '/py.png', '/ny.png', '/pz.png', '/nz.png'],
|
|
10
|
-
* blur = 0,
|
|
11
|
-
* background = false,
|
|
12
|
-
* path = undefined,
|
|
13
|
-
* preset = undefined,
|
|
14
|
-
* colorSpace = 'srgb',
|
|
15
|
-
* backgroundIntensity = 1,
|
|
16
|
-
* environmentIntensity = 1,
|
|
17
|
-
* backgroundRotation = [0, 0, 0],
|
|
18
|
-
* environmentRotation = [0, 0, 0],
|
|
19
|
-
* syncMaterials = false,
|
|
20
|
-
* @param {Ref<WebGLCubeRenderTarget | null>} fbo - The framebuffer object
|
|
21
|
-
* @return {Promise<Ref<Texture | CubeTexture | null>>} The loaded texture
|
|
22
|
-
*/
|
|
23
|
-
export declare function useEnvironment(options: Partial<EnvironmentOptions>, fbo: Ref<WebGLCubeRenderTarget | null>): Promise<Ref<Texture | CubeTexture | null>>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { MeshBasicMaterial, Texture } from 'three';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
args?: any[];
|
|
4
|
-
form?: 'circle' | 'ring' | 'rect' | any;
|
|
5
|
-
toneMapped?: boolean;
|
|
6
|
-
map?: Texture;
|
|
7
|
-
intensity?: number;
|
|
8
|
-
color?: any;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
-
mesh: import('vue').Ref<any, any>;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
map: Texture;
|
|
14
|
-
color: any;
|
|
15
|
-
args: any[];
|
|
16
|
-
intensity: number;
|
|
17
|
-
toneMapped: boolean;
|
|
18
|
-
form: "circle" | "ring" | "rect" | any;
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
-
mesh: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
21
|
-
P: {};
|
|
22
|
-
B: {};
|
|
23
|
-
D: {};
|
|
24
|
-
C: {};
|
|
25
|
-
M: {};
|
|
26
|
-
Defaults: {};
|
|
27
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
28
|
-
material: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<MeshBasicMaterial, import('@tresjs/core').WithMathProps<MeshBasicMaterial> & import('@tresjs/core').VueProps>>, Omit<import('@tresjs/core').InstanceProps<MeshBasicMaterial, typeof MeshBasicMaterial>, "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, {
|
|
29
|
-
P: {};
|
|
30
|
-
B: {};
|
|
31
|
-
D: {};
|
|
32
|
-
C: {};
|
|
33
|
-
M: {};
|
|
34
|
-
Defaults: {};
|
|
35
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<MeshBasicMaterial, import('@tresjs/core').WithMathProps<MeshBasicMaterial> & import('@tresjs/core').VueProps>>, Omit<import('@tresjs/core').InstanceProps<MeshBasicMaterial, typeof MeshBasicMaterial>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
36
|
-
}, any>;
|
|
37
|
-
export default _default;
|
package/dist/index.d.ts
DELETED
package/dist/utils/Gradient.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Color } from 'three';
|
|
2
|
-
import { TresColor, VectorFlexibleParams } from '@tresjs/core';
|
|
3
|
-
export type Gradient<T> = T | T[] | NormalizedGradient<T>;
|
|
4
|
-
export type NormalizedGradient<T> = [number, T][];
|
|
5
|
-
export type GradientTresColor = Gradient<TresColor>;
|
|
6
|
-
export type GradientScalar = Gradient<number>;
|
|
7
|
-
export type GradientVectorFlexibleParams = Gradient<VectorFlexibleParams>;
|
|
8
|
-
export declare function normalizeColorGradient(gradient: GradientTresColor): NormalizedGradient<Color>;
|
|
9
|
-
export declare function normalizeFlexibleVector3Gradient(gradient: GradientVectorFlexibleParams): NormalizedGradient<number[]>;
|
|
10
|
-
export declare function normalizeScalarGradient(gradient: GradientScalar): NormalizedGradient<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version: number;
|
package/dist/utils/easing.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function linear(x: number): number;
|
|
2
|
-
export declare function easeInCubic(x: number): number;
|
|
3
|
-
export declare function easeInOutCubic(x: number): number;
|
|
4
|
-
export declare function easeInQuart(x: number): number;
|
|
5
|
-
export declare function easeOutBounce(x: number): number;
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from 'three';
|
|
2
|
-
/**
|
|
3
|
-
* Update the function signature to explicitly specify the type of the props parameter
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @template T
|
|
7
|
-
* @template K
|
|
8
|
-
* @param {T} obj
|
|
9
|
-
* @param {K[]} props
|
|
10
|
-
* @return {*} {Pick<T, K>}
|
|
11
|
-
*/
|
|
12
|
-
export declare function pick<T extends object, K extends keyof T>(obj: T, props: K[]): Pick<T, K>;
|
|
13
|
-
/**
|
|
14
|
-
* Check if the object has a setter for the given property
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @param {*} obj
|
|
18
|
-
* @param {string} prop
|
|
19
|
-
* @return {*} {boolean}
|
|
20
|
-
*/
|
|
21
|
-
export declare function hasSetter(obj: any, prop: string): boolean;
|
|
22
|
-
export declare function extractBindingPosition(binding: any): Vector3;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Color, CubeTexture, Matrix3, Matrix4, Quaternion, Texture, Vector2, Vector3, Vector4, ShaderMaterial } from 'three';
|
|
2
|
-
export declare function shaderMaterial(uniforms: {
|
|
3
|
-
[name: string]: CubeTexture | Texture | Int32Array | Float32Array | Matrix4 | Matrix3 | Quaternion | Vector4 | Vector3 | Vector2 | Color | number | boolean | Array<any> | null;
|
|
4
|
-
}, vertexShader: string, fragmentShader: string, onInit?: (material?: ShaderMaterial) => void): typeof ShaderMaterial & {
|
|
5
|
-
key: string;
|
|
6
|
-
};
|
package/dist/utils/types.d.ts
DELETED