@tresjs/cientos 3.4.1 → 3.5.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/GlobalAudio.d.ts +50 -0
- package/dist/core/abstractions/index.d.ts +4 -1
- package/dist/core/abstractions/useFBO/component.vue.d.ts +37 -0
- package/dist/core/abstractions/useFBO/index.d.ts +10 -0
- package/dist/core/controls/CameraControls.vue.d.ts +5 -1
- package/dist/core/controls/OrbitControls.vue.d.ts +8823 -1
- package/dist/core/controls/PointerLockControls.vue.d.ts +3 -1
- package/dist/core/controls/ScrollControls.vue.d.ts +3 -1
- package/dist/core/controls/TransformControls.vue.d.ts +7 -1
- package/dist/core/directives/index.d.ts +2 -1
- package/dist/core/directives/vDistanceTo.d.ts +4 -0
- package/dist/core/directives/vLog.d.ts +1 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +8 -8
- package/dist/core/misc/Stats.d.ts +13 -1
- package/dist/core/misc/html/HTML.vue.d.ts +140 -0
- package/dist/core/misc/html/utils.d.ts +18 -0
- package/dist/core/misc/index.d.ts +2 -1
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +112 -0
- package/dist/core/shapes/Line2.vue.d.ts +120 -0
- package/dist/core/shapes/index.d.ts +3 -1
- package/dist/core/staging/index.d.ts +1 -1
- package/dist/core/staging/useEnvironment/const.d.ts +51 -0
- package/dist/core/staging/useEnvironment/index.d.ts +1 -15
- package/dist/trescientos.js +5107 -3854
- package/dist/trescientos.umd.cjs +432 -20
- package/dist/utils/index.d.ts +2 -0
- package/package.json +26 -19
- package/dist/core/staging/useEnvironment/component.d.ts +0 -4
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface AudioProps {
|
|
2
|
+
/**
|
|
3
|
+
* Path to your audio file.
|
|
4
|
+
* @type {string}
|
|
5
|
+
* @memberof AudioProps
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
src: string;
|
|
9
|
+
/**
|
|
10
|
+
* Id of the DOM element that trigger the play/pause state.
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @memberof AudioProps
|
|
13
|
+
* @default renderer.domElement
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
playTrigger?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Id of the DOM element that trigger the stop state.
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof AudioProps
|
|
21
|
+
* @default
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
stopTrigger?: string;
|
|
25
|
+
/**
|
|
26
|
+
* If the audio must be replayed when ends.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof AudioProps
|
|
29
|
+
* @default false
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
loop?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Volume of the audio.
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof AudioProps
|
|
37
|
+
* @default 0.5
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
volume?: number;
|
|
41
|
+
/**
|
|
42
|
+
* PlaybackRate of the audio.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof AudioProps
|
|
45
|
+
* @default 1
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
playbackRate?: number;
|
|
49
|
+
}
|
|
50
|
+
export declare const GlobalAudio: import("vue").DefineComponent<AudioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<AudioProps>, {}, {}>;
|
|
@@ -2,6 +2,9 @@ import Text3D from './Text3D.vue';
|
|
|
2
2
|
import { useAnimations } from './useAnimations';
|
|
3
3
|
import Levioso from './Levioso.vue';
|
|
4
4
|
import MouseParallax from './MouseParallax.vue';
|
|
5
|
+
import { GlobalAudio } from './GlobalAudio';
|
|
5
6
|
import Lensflare from './Lensflare/component.vue';
|
|
7
|
+
import Fbo from './useFBO/component.vue';
|
|
8
|
+
export * from './useFBO/';
|
|
6
9
|
export * from '../staging/useEnvironment';
|
|
7
|
-
export { Text3D, useAnimations, MouseParallax, Levioso, Lensflare, };
|
|
10
|
+
export { Text3D, useAnimations, MouseParallax, Levioso, Lensflare, GlobalAudio, Fbo, };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
width: {
|
|
3
|
+
type: import("vue").PropType<number>;
|
|
4
|
+
};
|
|
5
|
+
height: {
|
|
6
|
+
type: import("vue").PropType<number>;
|
|
7
|
+
};
|
|
8
|
+
settings: {
|
|
9
|
+
type: import("vue").PropType<import("three").WebGLRenderTargetOptions>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
depth: {
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
value: import("vue").Ref<import("three").WebGLRenderTarget<import("three").Texture> | null>;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
width: {
|
|
20
|
+
type: import("vue").PropType<number>;
|
|
21
|
+
};
|
|
22
|
+
height: {
|
|
23
|
+
type: import("vue").PropType<number>;
|
|
24
|
+
};
|
|
25
|
+
settings: {
|
|
26
|
+
type: import("vue").PropType<import("three").WebGLRenderTargetOptions>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
depth: {
|
|
30
|
+
type: import("vue").PropType<boolean>;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
settings: import("three").WebGLRenderTargetOptions;
|
|
35
|
+
depth: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WebGLRenderTargetOptions } from 'three';
|
|
2
|
+
import { WebGLRenderTarget } from 'three';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
export interface FboOptions {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
depth?: boolean;
|
|
8
|
+
settings?: WebGLRenderTargetOptions;
|
|
9
|
+
}
|
|
10
|
+
export declare function useFBO(options: FboOptions): Ref<WebGLRenderTarget<import("three").Texture> | null>;
|
|
@@ -9870,7 +9870,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9870
9870
|
removeAllEventListeners: (type?: string | undefined) => void;
|
|
9871
9871
|
dispatchEvent: (event: import("camera-controls/dist/EventDispatcher").DispatcherEvent) => void;
|
|
9872
9872
|
} | null>;
|
|
9873
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
9873
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9874
|
+
change: (...args: any[]) => void;
|
|
9875
|
+
start: (...args: any[]) => void;
|
|
9876
|
+
end: (...args: any[]) => void;
|
|
9877
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9874
9878
|
camera: {
|
|
9875
9879
|
type: import("vue").PropType<PerspectiveCamera | OrthographicCamera>;
|
|
9876
9880
|
};
|