@tresjs/cientos 4.0.0-rc.2 → 4.0.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.
Files changed (81) hide show
  1. package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +0 -1
  2. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +1 -5
  3. package/dist/core/abstractions/Lensflare/component.vue.d.ts +2 -3
  4. package/dist/core/abstractions/Lensflare/constants.d.ts +0 -1
  5. package/dist/core/abstractions/Lensflare/index.d.ts +0 -1
  6. package/dist/core/abstractions/PositionalAudio.vue.d.ts +0 -1
  7. package/dist/core/abstractions/Reflector.vue.d.ts +0 -1
  8. package/dist/core/abstractions/Text3D.vue.d.ts +1 -121
  9. package/dist/core/abstractions/index.d.ts +0 -1
  10. package/dist/core/abstractions/useAnimations.d.ts +0 -1
  11. package/dist/core/abstractions/useFBO/component.vue.d.ts +0 -1
  12. package/dist/core/abstractions/useFBO/index.d.ts +0 -1
  13. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +0 -1
  14. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +0 -1
  15. package/dist/core/controls/CameraControls.vue.d.ts +356 -765
  16. package/dist/core/controls/KeyboardControls.vue.d.ts +1 -4
  17. package/dist/core/controls/MapControls.vue.d.ts +288 -667
  18. package/dist/core/controls/OrbitControls.vue.d.ts +288 -667
  19. package/dist/core/controls/PointerLockControls.vue.d.ts +2 -4
  20. package/dist/core/controls/TransformControls.vue.d.ts +1 -3
  21. package/dist/core/controls/index.d.ts +0 -1
  22. package/dist/core/loaders/SVG/component.vue.d.ts +0 -1
  23. package/dist/core/loaders/index.d.ts +0 -1
  24. package/dist/core/loaders/useFBX/index.d.ts +0 -1
  25. package/dist/core/loaders/useGLTF/index.d.ts +0 -1
  26. package/dist/core/loaders/useProgress.d.ts +0 -1
  27. package/dist/core/loaders/useVideoTexture.d.ts +0 -1
  28. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +0 -1
  29. package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +2 -2
  30. package/dist/core/materials/holographicMaterial/index.vue.d.ts +0 -1
  31. package/dist/core/materials/index.d.ts +0 -1
  32. package/dist/core/materials/meshGlassMaterial/material.d.ts +0 -1
  33. package/dist/core/materials/meshReflectionMaterial/BlurPass.d.ts +2 -3
  34. package/dist/core/materials/meshReflectionMaterial/ConvolutionMaterial.d.ts +0 -1
  35. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +0 -1
  36. package/dist/core/materials/meshReflectionMaterial/material.d.ts +0 -1
  37. package/dist/core/materials/meshWobbleMaterial/material.d.ts +8 -3
  38. package/dist/core/misc/html/HTML.vue.d.ts +2 -4
  39. package/dist/core/misc/html/utils.d.ts +0 -1
  40. package/dist/core/misc/index.d.ts +0 -1
  41. package/dist/core/misc/useGLTFExporter.d.ts +0 -1
  42. package/dist/core/shapes/Box.vue.d.ts +0 -1
  43. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +0 -1
  44. package/dist/core/shapes/Circle.vue.d.ts +0 -1
  45. package/dist/core/shapes/Cone.vue.d.ts +0 -1
  46. package/dist/core/shapes/Cylinder.vue.d.ts +0 -1
  47. package/dist/core/shapes/Dodecahedron.vue.d.ts +0 -1
  48. package/dist/core/shapes/Icosahedron.vue.d.ts +0 -1
  49. package/dist/core/shapes/Line2.vue.d.ts +0 -1
  50. package/dist/core/shapes/Octahedron.vue.d.ts +0 -1
  51. package/dist/core/shapes/Plane.vue.d.ts +0 -1
  52. package/dist/core/shapes/Ring.vue.d.ts +0 -1
  53. package/dist/core/shapes/RoundedBox.vue.d.ts +0 -1
  54. package/dist/core/shapes/Sphere.vue.d.ts +0 -1
  55. package/dist/core/shapes/Superformula.vue.d.ts +0 -1
  56. package/dist/core/shapes/Tetrahedron.vue.d.ts +0 -1
  57. package/dist/core/shapes/Torus.vue.d.ts +0 -1
  58. package/dist/core/shapes/TorusKnot.vue.d.ts +0 -1
  59. package/dist/core/shapes/Tube.vue.d.ts +0 -1
  60. package/dist/core/shapes/index.d.ts +1 -2
  61. package/dist/core/staging/ContactShadows.vue.d.ts +0 -1
  62. package/dist/core/staging/Fit.vue.d.ts +0 -1
  63. package/dist/core/staging/Ocean.vue.d.ts +0 -1
  64. package/dist/core/staging/Precipitation.vue.d.ts +1 -2
  65. package/dist/core/staging/Sky.vue.d.ts +0 -1
  66. package/dist/core/staging/Smoke.vue.d.ts +0 -1
  67. package/dist/core/staging/Sparkles/ShaderData.d.ts +0 -1
  68. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +0 -1
  69. package/dist/core/staging/Sparkles/component.vue.d.ts +1 -3
  70. package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +0 -1
  71. package/dist/core/staging/index.d.ts +0 -1
  72. package/dist/core/staging/useEnvironment/component.vue.d.ts +2 -3
  73. package/dist/core/staging/useEnvironment/envSence.d.ts +0 -1
  74. package/dist/core/staging/useEnvironment/index.d.ts +1 -2
  75. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +0 -1
  76. package/dist/trescientos.js +2261 -2237
  77. package/dist/trescientos.umd.cjs +57 -57
  78. package/dist/utils/Gradient.d.ts +1 -3
  79. package/dist/utils/index.d.ts +0 -1
  80. package/dist/utils/types.d.ts +0 -1
  81. package/package.json +19 -19
@@ -1,5 +1,5 @@
1
1
  import { Camera } from 'three';
2
-
2
+ import { TresControl } from '@tresjs/core';
3
3
  export interface PointerLockControlsProps {
4
4
  /**
5
5
  * Whether to make this the default controls.
@@ -39,9 +39,7 @@ export interface PointerLockControlsProps {
39
39
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PointerLockControlsProps>, {
40
40
  makeDefault: boolean;
41
41
  }>, {
42
- instance: import('vue').Ref<(import('three').EventDispatcher<{}> & {
43
- enabled: boolean;
44
- }) | null>;
42
+ instance: import('vue').Ref<TresControl | null>;
45
43
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
44
  change: (...args: any[]) => void;
47
45
  isLock: (...args: any[]) => void;
@@ -1,7 +1,5 @@
1
- import { ShallowRef } from 'vue';
2
1
  import { Camera, Object3D } from 'three';
3
2
  import { TransformControls } from 'three-stdlib';
4
-
5
3
  export interface TransformControlsProps {
6
4
  object: Object3D;
7
5
  camera?: Camera;
@@ -27,7 +25,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
27
25
  showY: boolean;
28
26
  showZ: boolean;
29
27
  }>, {
30
- instance: ShallowRef<TransformControls<Camera> | undefined>;
28
+ instance: import('vue').ShallowRef<TransformControls<Camera> | null>;
31
29
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
30
  change: (...args: any[]) => void;
33
31
  dragging: (...args: any[]) => void;
@@ -5,5 +5,4 @@ import { default as PointerLockControls } from './PointerLockControls.vue';
5
5
  import { default as MapControls } from './MapControls.vue';
6
6
  import { default as ScrollControls } from './ScrollControls.vue';
7
7
  import { default as CameraControls, BaseCameraControls } from './CameraControls.vue';
8
-
9
8
  export { OrbitControls, TransformControls, PointerLockControls, MapControls, KeyboardControls, ScrollControls, CameraControls, BaseCameraControls, };
@@ -1,6 +1,5 @@
1
1
  import { TresOptions } from '@tresjs/core';
2
2
  import { MeshBasicMaterialParameters } from 'three';
3
-
4
3
  interface SVGProps {
5
4
  /**
6
5
  *
@@ -3,7 +3,6 @@ import { default as FBXModel } from './useFBX/component.vue';
3
3
  import { default as SVG } from './SVG/component.vue';
4
4
  import { useProgress } from './useProgress';
5
5
  import { useVideoTexture } from './useVideoTexture';
6
-
7
6
  export * from './useGLTF';
8
7
  export * from './useFBX';
9
8
  export { FBXModel, GLTFModel, SVG, useProgress, useVideoTexture };
@@ -1,5 +1,4 @@
1
1
  import { Object3D } from 'three';
2
-
3
2
  /**
4
3
  * Loads an FBX file and returns a THREE.Object3D.
5
4
  *
@@ -1,7 +1,6 @@
1
1
  import { TresLoader, TresObject3D } from '@tresjs/core';
2
2
  import { AnimationClip, Material, Scene } from 'three';
3
3
  import { DRACOLoader, GLTF } from 'three-stdlib';
4
-
5
4
  export interface GLTFLoaderOptions {
6
5
  /**
7
6
  * Whether to use Draco compression.
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  export declare function useProgress(): Promise<{
4
3
  hasFinishLoading: Ref<boolean>;
5
4
  progress: Ref<number>;
@@ -1,5 +1,4 @@
1
1
  import { VideoTexture } from 'three';
2
-
3
2
  interface VideoTextureProps extends HTMLVideoElement {
4
3
  unsuspend?: 'canplay' | 'canplaythrough' | 'loadstart' | 'loadedmetadata';
5
4
  start?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { Fn } from '@vueuse/core';
2
-
3
2
  interface CustomShaderMaterialProps {
4
3
  baseMaterial: Fn;
5
4
  vertexShader?: string;
@@ -1,5 +1,4 @@
1
- import { Color, ShaderMaterial, Blending, Side } from 'three';
2
-
1
+ import { Clock, Color, ShaderMaterial, Blending, Side } from 'three';
3
2
  interface HolographicMaterialParameters {
4
3
  time?: number;
5
4
  fresnelOpacity?: number;
@@ -16,6 +15,7 @@ interface HolographicMaterialParameters {
16
15
  depthTest?: boolean;
17
16
  }
18
17
  declare class HolographicMaterial extends ShaderMaterial {
18
+ clock: Clock;
19
19
  /**
20
20
  * Create a HolographicMaterial.
21
21
  *
@@ -1,7 +1,6 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { Side } from 'three';
3
3
  import { default as HolographicMaterial } from './HolographicMaterialParameters';
4
-
5
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
5
  fresnelAmount?: number;
7
6
  fresnelOpacity?: number;
@@ -3,5 +3,4 @@ import { default as MeshGlassMaterial } from './meshGlassMaterial/index.vue';
3
3
  import { default as CustomShaderMaterial } from './customShaderMaterial/index.vue';
4
4
  import { default as MeshReflectionMaterial } from './meshReflectionMaterial/index.vue';
5
5
  import { default as HolographicMaterial } from './holographicMaterial/index.vue';
6
-
7
6
  export { MeshWobbleMaterial, MeshGlassMaterial, CustomShaderMaterial, MeshReflectionMaterial, HolographicMaterial };
@@ -1,7 +1,6 @@
1
1
  import { MeshStandardMaterialParameters, MeshStandardMaterial } from 'three';
2
2
  import { Vector2 } from 'three/src/math/Vector2.js';
3
3
  import { Color } from 'three/src/math/Color.js';
4
-
5
4
  declare class MeshGlassMaterial extends MeshStandardMaterial {
6
5
  isMeshPhysicalMaterial: boolean;
7
6
  clearcoatMap: null;
@@ -1,6 +1,5 @@
1
- import { Camera, Mesh, Scene, WebGLRenderTarget } from 'three';
1
+ import { WebGLRenderer, Camera, Mesh, Scene, WebGLRenderTarget } from 'three';
2
2
  import { ConvolutionMaterial } from './ConvolutionMaterial';
3
-
4
3
  export interface BlurPassProps {
5
4
  resolution: number;
6
5
  width?: number;
@@ -19,6 +18,6 @@ export declare class BlurPass {
19
18
  readonly screen: Mesh;
20
19
  renderToScreen: boolean;
21
20
  constructor({ resolution, width, height, depthEdge0, depthEdge1, depthScale, depthBias, }: BlurPassProps);
22
- render(renderer: any, inputBuffer: any, outputBuffer: any): void;
21
+ render(renderer: WebGLRenderer, inputBuffer: WebGLRenderTarget, outputBuffer: WebGLRenderTarget): void;
23
22
  dispose(): void;
24
23
  }
@@ -1,5 +1,4 @@
1
1
  import { ShaderMaterial, Vector2 } from 'three';
2
-
3
2
  export declare class ConvolutionMaterial extends ShaderMaterial {
4
3
  readonly kernel: Float32Array;
5
4
  constructor(texelSize?: Vector2);
@@ -1,6 +1,5 @@
1
1
  import { Texture, Color, Euler, Vector2 } from 'three';
2
2
  import { TresColor } from '@tresjs/core';
3
-
4
3
  export interface MeshReflectionMaterialProps {
5
4
  /** Length in pixels of one side of the square reflective textures. */
6
5
  resolution?: number;
@@ -1,5 +1,4 @@
1
1
  import { Matrix4, Texture, MeshStandardMaterial } from 'three';
2
-
3
2
  export declare class MeshReflectionMaterial extends MeshStandardMaterial {
4
3
  private _tDepth;
5
4
  private _distortionMap;
@@ -1,5 +1,4 @@
1
- import { MeshStandardMaterialParameters, Shader, MeshStandardMaterial } from 'three';
2
-
1
+ import { MeshStandardMaterialParameters, MeshStandardMaterial } from 'three';
3
2
  interface Uniform<T> {
4
3
  value: T;
5
4
  }
@@ -7,7 +6,13 @@ export declare class WobbleMaterialImpl extends MeshStandardMaterial {
7
6
  _time: Uniform<number>;
8
7
  _factor: Uniform<number>;
9
8
  constructor(parameters?: MeshStandardMaterialParameters);
10
- onBeforeCompile(shader: Shader): void;
9
+ onBeforeCompile(shader: {
10
+ uniforms: {
11
+ time?: Uniform<number>;
12
+ factor?: Uniform<number>;
13
+ };
14
+ vertexShader: string;
15
+ }): void;
11
16
  get time(): number;
12
17
  set time(v: number);
13
18
  get factor(): number;
@@ -1,8 +1,6 @@
1
- import { Ref } from 'vue';
2
1
  import { PlaneGeometry } from 'three';
3
2
  import { TresObject3D } from '@tresjs/core';
4
3
  import { Mutable } from '@vueuse/core';
5
-
6
4
  export interface HTMLProps {
7
5
  geometry?: any;
8
6
  material?: any;
@@ -17,7 +15,7 @@ export interface HTMLProps {
17
15
  pointerEvents?: PointerEventsProperties;
18
16
  sprite?: boolean;
19
17
  zIndexRange?: Array<number>;
20
- occlude?: Ref<TresObject3D>[] | boolean | 'raycast' | 'blending';
18
+ occlude?: TresObject3D | null | (TresObject3D | null)[] | boolean | 'raycast' | 'blending';
21
19
  }
22
20
  type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
23
21
  declare function __VLS_template(): Readonly<Record<string, any>> & Record<string, any>;
@@ -30,7 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
30
28
  pointerEvents: string;
31
29
  sprite: boolean;
32
30
  }>, {
33
- instance: Ref<TresObject3D | undefined>;
31
+ instance: import('vue').Ref<TresObject3D | undefined>;
34
32
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
33
  onOcclude: (...args: any[]) => void;
36
34
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<HTMLProps>, {
@@ -1,6 +1,5 @@
1
1
  import { TresCamera, TresObject3D } from '@tresjs/core';
2
2
  import { Matrix4, Raycaster, Vector3 } from 'three';
3
-
4
3
  export declare const v1: Vector3;
5
4
  export declare const v2: Vector3;
6
5
  export declare const v3: Vector3;
@@ -3,5 +3,4 @@ import { StatsGl } from './StatsGl';
3
3
  import { BakeShadows } from './BakeShadows';
4
4
  import { default as Html } from './html/HTML.vue';
5
5
  import { useGLTFExporter } from './useGLTFExporter';
6
-
7
6
  export { Html, Stats, StatsGl, BakeShadows, useGLTFExporter };
@@ -1,5 +1,4 @@
1
1
  import { AnimationClip, Object3D } from 'three';
2
-
3
2
  interface gltfExporterOptions {
4
3
  fileName?: string;
5
4
  trs?: boolean;
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { BoxGeometry } from 'three';
3
-
4
3
  export interface BoxProps {
5
4
  /**
6
5
  * The width, height and depth of the box.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { Vector3 } from 'three';
3
-
4
3
  type CurveType = 'centripetal' | 'chordal' | 'catmullrom';
5
4
  type Points = Array<Vector3 | [number, number, number]>;
6
5
  interface CatmullRomCurve3Props {
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { CircleGeometry } from 'three';
3
-
4
3
  export interface CircleProps {
5
4
  /**
6
5
  * The radius, segment, thetaStart, thetaLength of the circle.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { ConeGeometry } from 'three';
3
-
4
3
  export interface ConeProps {
5
4
  /**
6
5
  * The radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength of the cone.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { CylinderGeometry } from 'three';
3
-
4
3
  export interface CylinderProps {
5
4
  /**
6
5
  * The radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength of the cylinder.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { DodecahedronGeometry } from 'three';
3
-
4
3
  export interface DodecahedronProps {
5
4
  /**
6
5
  * The radius and detail of the dodecahedron.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { IcosahedronGeometry } from 'three';
3
-
4
3
  export interface IcosahedronProps {
5
4
  /**
6
5
  * The radius and detail of the icosahedron.
@@ -1,6 +1,5 @@
1
1
  import { Vector2, Vector3 } from 'three';
2
2
  import { TresColor } from '@tresjs/core';
3
-
4
3
  type Points = (Vector3 | Vector2 | [number, number, number] | [number, number] | number)[];
5
4
  type VertexColors = Array<TresColor>;
6
5
  export interface LineProps {
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { OctahedronGeometry } from 'three';
3
-
4
3
  export interface OctahedronProps {
5
4
  /**
6
5
  * The radius and detail of the octahedron.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { PlaneGeometry } from 'three';
3
-
4
3
  export interface PlaneProps {
5
4
  /**
6
5
  * The width and height, widthSegments, heightSegments of the plane.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { RingGeometry } from 'three';
3
-
4
3
  export interface RingProps {
5
4
  /**
6
5
  * The innerRadius, outerRadius, thetaSegments, phiSegments, tethaStart, thetaLength of the ring.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { BoxGeometry } from 'three';
3
-
4
3
  export interface BoxProps {
5
4
  /**
6
5
  * The width, height, depth, segments and radius.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { SphereGeometry } from 'three';
3
-
4
3
  export interface SphereProps {
5
4
  /**
6
5
  * The radius, widthSegments, heightSegments, phiStart phiLength,
@@ -1,5 +1,4 @@
1
1
  import { TresColor } from '@tresjs/core';
2
-
3
2
  export type Float3 = [number, number, number];
4
3
  export interface SuperFormulaProps {
5
4
  /**
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { TetrahedronGeometry } from 'three';
3
-
4
3
  export interface TetrahedronProps {
5
4
  /**
6
5
  * The radius and detail of the tetrahedron.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { TorusGeometry } from 'three';
3
-
4
3
  export interface TorusProps {
5
4
  /**
6
5
  * The radius, tube, radialSegments, tubularSegments, arc of the torus.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { TorusKnotGeometry } from 'three';
3
-
4
3
  export interface TorusKnotProps {
5
4
  /**
6
5
  * The radius, tube, radialSegments, tubularSegments and p, q of the torus knot.
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { TubeGeometry, QuadraticBezierCurve3 } from 'three';
3
-
4
3
  export interface TubeProps {
5
4
  /**
6
5
  * The curve, segments, radius, radialSegments, closed.
@@ -16,5 +16,4 @@ import { default as Tetrahedron } from './Tetrahedron.vue';
16
16
  import { default as Torus } from './Torus.vue';
17
17
  import { default as TorusKnot } from './TorusKnot.vue';
18
18
  import { default as Tube } from './Tube.vue';
19
-
20
- export { Box, CatmullRomCurve3, Circle, Cone, Cylinder, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
19
+ export { Box, CatmullRomCurve3, Circle, Cylinder, Cone, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
@@ -1,6 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { Group } from 'three';
3
-
4
3
  export interface ContactShadowsProps {
5
4
  /**
6
5
  * The opacity of the shadows.
@@ -1,5 +1,4 @@
1
1
  import { Object3D, Box3, Vector3 } from 'three';
2
-
3
2
  export interface Props {
4
3
  /**
5
4
  * If `into` is:
@@ -1,6 +1,5 @@
1
1
  import { TresColor, TresVector3 } from '@tresjs/core';
2
2
  import { Vector3 } from 'three';
3
-
4
3
  export interface OceanProps {
5
4
  /**
6
5
  * The textureWidth of the internal WebGLRenderTarget.
@@ -1,5 +1,4 @@
1
1
  import { TresColor } from '@tresjs/core';
2
-
3
2
  export interface PrecipitationProps {
4
3
  /**
5
4
  * The size of the drops.
@@ -138,7 +137,6 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
138
137
  }>>>, {
139
138
  size: number;
140
139
  color: TresColor;
141
- area: [number, number, number];
142
140
  speed: number;
143
141
  count: number;
144
142
  alphaTest: number;
@@ -146,6 +144,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
146
144
  sizeAttenuation: boolean;
147
145
  transparent: boolean;
148
146
  opacity: number;
147
+ area: [number, number, number];
149
148
  randomness: number;
150
149
  }, {}>;
151
150
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { Vector3 } from 'three';
2
2
  import { Sky as SkyImpl } from 'three-stdlib';
3
-
4
3
  export interface SkyProps {
5
4
  /**
6
5
  * Haziness
@@ -1,5 +1,4 @@
1
1
  import { TresColor } from '@tresjs/core';
2
-
3
2
  export interface SmokeProps {
4
3
  /**
5
4
  * The color of the smoke.
@@ -1,7 +1,6 @@
1
1
  import { DataTexture } from 'three';
2
2
  import { MaybeRef, Ref } from 'vue';
3
3
  import { GradientScalar, GradientTresColor, GradientVectorFlexibleParams } from './../../../utils/Gradient';
4
-
5
4
  export type CanvasGradientRenderer<T> = (g: CanvasGradient, entry: ShaderDataEntry<T>) => void;
6
5
  export declare class ShaderData {
7
6
  private entries;
@@ -1,7 +1,6 @@
1
1
  import { MaybeRef } from 'vue';
2
2
  import { GradientScalar, GradientTresColor, GradientVectorFlexibleParams } from './../../../utils/Gradient';
3
3
  import { CanvasGradientRenderer, ShaderDataEntry, ShaderData } from './ShaderData';
4
-
5
4
  type rgbaSuffixes = ['r', 'rg', 'rgb', 'rgba'];
6
5
  type xyzwSuffixes = ['x', 'xy', 'xyz', 'xyzw'];
7
6
  type ShaderSuffix = (rgbaSuffixes)[number] | (xyzwSuffixes)[number];
@@ -1,8 +1,6 @@
1
1
  import { Blending, BufferGeometry, Texture, Object3D, Points, ShaderMaterial } from 'three';
2
- import { TresColor } from '@tresjs/core';
3
- import { VectorFlexibleParams } from '@tresjs/core/dist/utils/normalize';
2
+ import { TresColor, VectorFlexibleParams } from '@tresjs/core';
4
3
  import { Gradient } from '../../../utils/Gradient';
5
-
6
4
  interface SparkleProps {
7
5
  /**
8
6
  * Texture or image path for individual sparkles
@@ -1,3 +1,2 @@
1
1
  import { DataTexture } from 'three';
2
-
3
2
  export default function useEmptyDataTexture(): DataTexture;
@@ -9,5 +9,4 @@ import { default as Smoke } from './Smoke.vue';
9
9
  import { default as Sparkles } from './Sparkles/component.vue';
10
10
  import { default as Stars } from './Stars.vue';
11
11
  import { default as Ocean } from './Ocean.vue';
12
-
13
12
  export { Backdrop, ContactShadows, Environment, Fit, Precipitation, Sky, Smoke, Sparkles, Stars, Ocean, Lightformer, };
@@ -1,14 +1,13 @@
1
1
  import { Ref } from 'vue';
2
2
  import { CubeTexture, Texture } from 'three';
3
3
  import { EnvironmentOptions } from './const';
4
-
5
4
  declare function __VLS_template(): {
6
5
  default?(_: {}): any;
7
6
  };
8
7
  declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<EnvironmentOptions>, {
9
8
  background: boolean;
10
9
  blur: number;
11
- files: never[];
10
+ files: () => never[];
12
11
  path: string;
13
12
  preset: undefined;
14
13
  resolution: number;
@@ -20,7 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
20
19
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EnvironmentOptions>, {
21
20
  background: boolean;
22
21
  blur: number;
23
- files: never[];
22
+ files: () => never[];
24
23
  path: string;
25
24
  preset: undefined;
26
25
  resolution: number;
@@ -1,5 +1,4 @@
1
1
  import { Object3D, Scene } from 'three';
2
-
3
2
  declare class EnvSence extends Object3D {
4
3
  virtualScene: Scene;
5
4
  constructor();
@@ -1,5 +1,4 @@
1
1
  import { CubeTexture, Texture, WebGLCubeRenderTarget } from 'three';
2
2
  import { Ref } from 'vue';
3
3
  import { EnvironmentOptions } from './const';
4
-
5
- export declare function useEnvironment(options: Partial<EnvironmentOptions>, fbo: Ref<WebGLCubeRenderTarget | undefined>): Promise<Texture | CubeTexture>;
4
+ export declare function useEnvironment(options: Partial<EnvironmentOptions>, fbo: Ref<WebGLCubeRenderTarget | null>): Promise<Ref<Texture | CubeTexture | null>>;
@@ -1,5 +1,4 @@
1
1
  import { Texture, Color } from 'three';
2
-
3
2
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
3
  args?: any[];
5
4
  from?: "circle" | "ring" | "rect" | any;