@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.
@@ -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, ("change" | "start" | "end")[], "change" | "start" | "end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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
  };