@tresjs/cientos 4.3.1 → 5.0.0-next.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 (101) hide show
  1. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +14 -4
  2. package/dist/core/abstractions/Billboard.vue.d.ts +24 -6
  3. package/dist/core/abstractions/CubeCamera/component.vue.d.ts +14 -4
  4. package/dist/core/abstractions/Edges.vue.d.ts +14 -4
  5. package/dist/core/abstractions/GradientTexture.vue.d.ts +14 -1
  6. package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +3 -1
  7. package/dist/core/abstractions/Image/component.vue.d.ts +3 -9
  8. package/dist/core/abstractions/Lensflare/LensflareImpl.d.ts +23 -0
  9. package/dist/core/abstractions/Lensflare/component.vue.d.ts +12 -3
  10. package/dist/core/abstractions/Levioso.vue.d.ts +22 -16
  11. package/dist/core/abstractions/MarchingCubes/MarchingCube.vue.d.ts +22 -0
  12. package/dist/core/abstractions/MarchingCubes/MarchingCubes.vue.d.ts +35 -0
  13. package/dist/core/abstractions/MarchingCubes/MarchingPlane.vue.d.ts +20 -0
  14. package/dist/core/abstractions/MarchingCubes/const.d.ts +2 -0
  15. package/dist/core/abstractions/Mask/component.vue.d.ts +14 -4
  16. package/dist/core/abstractions/MouseParallax.vue.d.ts +11 -1
  17. package/dist/core/abstractions/Outline/component.vue.d.ts +11 -1
  18. package/dist/core/abstractions/PositionalAudio.vue.d.ts +11 -2
  19. package/dist/core/abstractions/Reflector.vue.d.ts +5 -2
  20. package/dist/core/abstractions/ScreenSizer.vue.d.ts +24 -6
  21. package/dist/core/abstractions/ScreenSpace.vue.d.ts +14 -4
  22. package/dist/core/abstractions/Text3D.vue.d.ts +2 -17
  23. package/dist/core/abstractions/index.d.ts +4 -1
  24. package/dist/core/abstractions/useAnimations.d.ts +4 -4
  25. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +14 -4
  26. package/dist/core/controls/CameraControls.vue.d.ts +4 -2
  27. package/dist/core/controls/Helper/component.vue.d.ts +17 -0
  28. package/dist/core/controls/Helper/useHelper.d.ts +9 -0
  29. package/dist/core/controls/MapControls.vue.d.ts +3 -1
  30. package/dist/core/controls/OrbitControls.vue.d.ts +3 -1
  31. package/dist/core/controls/PointerLockControls.vue.d.ts +3 -1
  32. package/dist/core/controls/ScrollControls.vue.d.ts +23 -18
  33. package/dist/core/controls/TransformControls.vue.d.ts +3 -1
  34. package/dist/core/controls/index.d.ts +2 -1
  35. package/dist/core/loaders/SVG/component.vue.d.ts +10 -1
  36. package/dist/core/loaders/index.d.ts +4 -1
  37. package/dist/core/loaders/useGLTF/component.vue.d.ts +3 -10
  38. package/dist/core/loaders/useGLTF/index.d.ts +38 -27
  39. package/dist/core/loaders/useTexture/component.vue.d.ts +5077 -0
  40. package/dist/core/loaders/useTexture/index.d.ts +3 -0
  41. package/dist/core/loaders/useTextures/index.d.ts +13 -0
  42. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -1
  43. package/dist/core/materials/holographicMaterial/index.vue.d.ts +7 -16
  44. package/dist/core/materials/index.d.ts +2 -1
  45. package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +3 -1
  46. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -1
  47. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +4 -2
  48. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +7 -7
  49. package/dist/core/materials/pointMaterial/component.vue.d.ts +8 -0
  50. package/dist/core/materials/pointMaterial/material.d.ts +4 -0
  51. package/dist/core/misc/LOD.vue.d.ts +52 -0
  52. package/dist/core/misc/html/HTML.vue.d.ts +25 -7
  53. package/dist/core/misc/index.d.ts +3 -1
  54. package/dist/core/misc/useIntersect.d.ts +9 -0
  55. package/dist/core/shapes/Box.vue.d.ts +14 -4
  56. package/dist/core/shapes/Circle.vue.d.ts +15 -5
  57. package/dist/core/shapes/Cone.vue.d.ts +14 -4
  58. package/dist/core/shapes/CubicBezierLine.vue.d.ts +49 -0
  59. package/dist/core/shapes/Cylinder.vue.d.ts +14 -4
  60. package/dist/core/shapes/Dodecahedron.vue.d.ts +14 -4
  61. package/dist/core/shapes/Icosahedron.vue.d.ts +14 -4
  62. package/dist/core/shapes/Octahedron.vue.d.ts +14 -4
  63. package/dist/core/shapes/Plane.vue.d.ts +15 -5
  64. package/dist/core/shapes/QuadraticBezierLine.vue.d.ts +48 -0
  65. package/dist/core/shapes/Ring.vue.d.ts +14 -4
  66. package/dist/core/shapes/RoundedBox.vue.d.ts +14 -4
  67. package/dist/core/shapes/ScreenQuad.vue.d.ts +38 -0
  68. package/dist/core/shapes/Sphere.vue.d.ts +14 -4
  69. package/dist/core/shapes/Superformula.vue.d.ts +14 -4
  70. package/dist/core/shapes/Tetrahedron.vue.d.ts +14 -4
  71. package/dist/core/shapes/Torus.vue.d.ts +14 -4
  72. package/dist/core/shapes/TorusKnot.vue.d.ts +14 -4
  73. package/dist/core/shapes/Tube.vue.d.ts +14 -4
  74. package/dist/core/shapes/index.d.ts +4 -1
  75. package/dist/core/staging/AccumulativeShadows/ProgressiveLightMap.d.ts +35 -0
  76. package/dist/core/staging/AccumulativeShadows/SoftShadowMaterial.d.ts +10 -0
  77. package/dist/core/staging/AccumulativeShadows/component.vue.d.ts +115 -0
  78. package/dist/core/staging/Align.vue.d.ts +42 -12
  79. package/dist/core/staging/Backdrop.vue.d.ts +23 -5
  80. package/dist/core/staging/Bounds/Bounds.d.ts +73 -0
  81. package/dist/core/staging/Bounds/component.vue.d.ts +60 -0
  82. package/dist/core/staging/CircleShadow.vue.d.ts +27 -0
  83. package/dist/core/staging/Fit.vue.d.ts +35 -9
  84. package/dist/core/staging/Grid.vue.d.ts +11 -2
  85. package/dist/core/staging/Ocean.vue.d.ts +6 -3
  86. package/dist/core/staging/Precipitation.vue.d.ts +18 -1
  87. package/dist/core/staging/RandomizedLights/RandomizedLights.d.ts +29 -0
  88. package/dist/core/staging/RandomizedLights/component.vue.d.ts +43 -0
  89. package/dist/core/staging/Smoke.vue.d.ts +18 -1
  90. package/dist/core/staging/Stage.vue.d.ts +677 -0
  91. package/dist/core/staging/Stars.vue.d.ts +11 -2
  92. package/dist/core/staging/index.d.ts +6 -1
  93. package/dist/core/staging/useEnvironment/component.vue.d.ts +7 -4
  94. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +24 -13
  95. package/dist/trescientos.js +15333 -9636
  96. package/package.json +24 -24
  97. package/dist/composables/useLogger.d.ts +0 -8
  98. package/dist/core/loaders/useFBX/component.vue.d.ts +0 -45
  99. package/dist/core/staging/Sky.vue.d.ts +0 -46
  100. package/dist/core/staging/Sparkles/component.vue.d.ts +0 -168
  101. package/dist/trescientos.umd.cjs +0 -1721
@@ -0,0 +1,3 @@
1
+ import { Texture } from 'three';
2
+ import { MaybeRef } from 'vue';
3
+ export declare function useTexture(path: MaybeRef<string>): import('@tresjs/core').UseLoaderReturn<Texture, false>;
@@ -0,0 +1,13 @@
1
+ import { Texture } from 'three';
2
+ import { MaybeRef } from 'vue';
3
+ /**
4
+ * Composable that loads multiple textures at once
5
+ *
6
+ * @param paths - Array of paths to texture files
7
+ * @returns Object containing textures, loading state, and error state
8
+ */
9
+ export declare function useTextures(paths: MaybeRef<string[]>): {
10
+ textures: import('vue').ComputedRef<Texture[]>;
11
+ isLoading: import('vue').ComputedRef<boolean>;
12
+ error: import('vue').ComputedRef<Error[] | null>;
13
+ };
@@ -10,5 +10,7 @@ interface CustomShaderMaterialProps {
10
10
  }
11
11
  declare const _default: import('vue').DefineComponent<CustomShaderMaterialProps, {
12
12
  instance: import('vue').ShallowRef<null, null>;
13
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CustomShaderMaterialProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CustomShaderMaterialProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
+ customShaderMaterialClass: unknown;
15
+ }, any>;
14
16
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { Side } from 'three';
3
3
  import { default as HolographicMaterial } from './HolographicMaterialParameters';
4
- declare const _default: import('vue').DefineComponent<{
4
+ type __VLS_Props = {
5
5
  fresnelAmount?: number;
6
6
  fresnelOpacity?: number;
7
7
  blinkFresnelOnly?: boolean;
@@ -13,22 +13,11 @@ declare const _default: import('vue').DefineComponent<{
13
13
  hologramOpacity?: number;
14
14
  hologramColor?: TresColor;
15
15
  side?: Side;
16
- }, {
16
+ };
17
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
17
18
  root: import('vue').ShallowRef<any, any>;
18
19
  constructor: typeof HolographicMaterial;
19
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
20
- fresnelAmount?: number;
21
- fresnelOpacity?: number;
22
- blinkFresnelOnly?: boolean;
23
- enableBlinking?: boolean;
24
- enableAdditive?: boolean;
25
- hologramBrightness?: number;
26
- scanlineSize?: number;
27
- signalSpeed?: number;
28
- hologramOpacity?: number;
29
- hologramColor?: TresColor;
30
- side?: Side;
31
- }> & Readonly<{}>, {
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
32
21
  side: Side;
33
22
  fresnelOpacity: number;
34
23
  fresnelAmount: number;
@@ -40,5 +29,7 @@ declare const _default: import('vue').DefineComponent<{
40
29
  blinkFresnelOnly: boolean;
41
30
  hologramOpacity: number;
42
31
  enableAdditive: boolean;
43
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
+ MeshHolographicMaterialClass: unknown;
34
+ }, any>;
44
35
  export default _default;
@@ -4,4 +4,5 @@ import { default as MeshDiscardMaterial } from './meshDiscardMaterial/index.vue'
4
4
  import { default as MeshGlassMaterial } from './meshGlassMaterial/index.vue';
5
5
  import { default as MeshReflectionMaterial } from './meshReflectionMaterial/index.vue';
6
6
  import { default as MeshWobbleMaterial } from './meshWobbleMaterial/index.vue';
7
- export { CustomShaderMaterial, HolographicMaterial, MeshDiscardMaterial, MeshGlassMaterial, MeshReflectionMaterial, MeshWobbleMaterial };
7
+ import { default as PointMaterial } from './pointMaterial/component.vue';
8
+ export { CustomShaderMaterial, HolographicMaterial, MeshDiscardMaterial, MeshGlassMaterial, MeshReflectionMaterial, MeshWobbleMaterial, PointMaterial, };
@@ -1,4 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {
2
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>;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
4
+ meshDiscardMaterialRef: unknown;
5
+ }, any>;
4
6
  export default _default;
@@ -1,4 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {
2
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>;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
4
+ MeshGlassMaterialClass: unknown;
5
+ }, any>;
4
6
  export default _default;
@@ -72,6 +72,7 @@ declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProp
72
72
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MeshReflectionMaterialProps> & Readonly<{}>, {
73
73
  color: TresColor;
74
74
  fog: boolean;
75
+ mix: number;
75
76
  lightMapIntensity: number;
76
77
  aoMapIntensity: number;
77
78
  envMapRotation: Euler;
@@ -92,7 +93,6 @@ declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProp
92
93
  roughnessMap: Texture | null;
93
94
  envMapIntensity: number;
94
95
  resolution: number;
95
- mix: number;
96
96
  sharpMix: number;
97
97
  sharpDepthScale: number;
98
98
  sharpDepthBias: number;
@@ -107,5 +107,7 @@ declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProp
107
107
  blurSize: [number, number] | number;
108
108
  distortion: number;
109
109
  reflectorOffset: number;
110
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
110
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
111
+ materialRef: unknown;
112
+ }, any>;
111
113
  export default _default;
@@ -1,13 +1,13 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ type __VLS_Props = {
2
2
  speed?: number;
3
3
  factor?: number;
4
- }, {
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
5
6
  instance: import('vue').ShallowRef<any, any>;
6
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
- speed?: number;
8
- factor?: number;
9
- }> & Readonly<{}>, {
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
8
  speed: number;
11
9
  factor: number;
12
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
11
+ materialRef: unknown;
12
+ }, any>;
13
13
  export default _default;
@@ -0,0 +1,8 @@
1
+ import { PointMaterial as PointMaterialImpl } from './material';
2
+ type __VLS_Props = {
3
+ sizeAttenuation?: boolean;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
6
+ instance: import('vue').ShallowRef<PointMaterialImpl, PointMaterialImpl>;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { PointsMaterial as PointsMaterialImpl, PointsMaterialParameters } from 'three';
2
+ export declare class PointMaterial extends PointsMaterialImpl {
3
+ constructor(props: PointsMaterialParameters);
4
+ }
@@ -0,0 +1,52 @@
1
+ import { LOD } from 'three';
2
+ interface LODProps {
3
+ /**
4
+ * The distances at which to display each level of detail.
5
+ * There should be one `levels` value for each `LOD` child.
6
+ */
7
+ levels: number[];
8
+ /**
9
+ * Threshold used to avoid flickering at LOD boundaries, as a fraction of distance
10
+ * @default 0.0
11
+ */
12
+ hysteresis?: number;
13
+ }
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {
20
+ lodRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LOD<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<import('three').Object3DEventMap>, typeof LOD>, "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<LOD<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<import('three').Object3DEventMap>, typeof LOD>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
28
+ };
29
+ rootEl: any;
30
+ };
31
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
32
+ declare const __VLS_component: import('vue').DefineComponent<LODProps, {
33
+ instance: import('vue').ShallowRef<LOD<import('three').Object3DEventMap>, LOD<import('three').Object3DEventMap>>;
34
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LODProps> & Readonly<{}>, {
35
+ hysteresis: number;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
37
+ lodRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LOD<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<import('three').Object3DEventMap>, typeof LOD>, "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, {
38
+ P: {};
39
+ B: {};
40
+ D: {};
41
+ C: {};
42
+ M: {};
43
+ Defaults: {};
44
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<LOD<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<LOD<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<LOD<import('three').Object3DEventMap>, typeof LOD>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
45
+ }, any>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
+ export default _default;
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -18,26 +18,27 @@ export interface HTMLProps {
18
18
  }
19
19
  type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
20
20
  declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
21
22
  slots: Readonly<Record<string, any>> & Record<string, any>;
22
23
  refs: {
23
- 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, {
24
+ 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
24
25
  P: {};
25
26
  B: {};
26
27
  D: {};
27
28
  C: {};
28
29
  M: {};
29
30
  Defaults: {};
30
- }, 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;
31
- meshRef: 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, {
31
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
32
+ meshRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
32
33
  P: {};
33
34
  B: {};
34
35
  D: {};
35
36
  C: {};
36
37
  M: {};
37
38
  Defaults: {};
38
- }, 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;
39
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
39
40
  };
40
- attrs: Partial<{}>;
41
+ rootEl: any;
41
42
  };
42
43
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
43
44
  declare const __VLS_component: import('vue').DefineComponent<HTMLProps, {
@@ -49,12 +50,29 @@ declare const __VLS_component: import('vue').DefineComponent<HTMLProps, {
49
50
  }>, {
50
51
  sprite: boolean;
51
52
  geometry: any;
53
+ pointerEvents: PointerEventsProperties;
52
54
  transform: boolean;
53
55
  as: string;
54
56
  eps: number;
55
- pointerEvents: PointerEventsProperties;
56
57
  zIndexRange: Array<number>;
57
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
58
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
59
+ 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
60
+ P: {};
61
+ B: {};
62
+ D: {};
63
+ C: {};
64
+ M: {};
65
+ Defaults: {};
66
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
67
+ meshRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
68
+ P: {};
69
+ B: {};
70
+ D: {};
71
+ C: {};
72
+ M: {};
73
+ Defaults: {};
74
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
75
+ }, any>;
58
76
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
77
  export default _default;
60
78
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,8 @@
1
1
  import { BakeShadows } from './BakeShadows';
2
+ import { default as LOD } from './LOD.vue';
2
3
  import { default as Html } from './html/HTML.vue';
3
4
  import { Stats } from './Stats';
4
5
  import { StatsGl } from './StatsGl';
5
6
  import { useGLTFExporter } from './useGLTFExporter';
6
- export { BakeShadows, Html, Stats, StatsGl, useGLTFExporter };
7
+ import { useIntersect } from './useIntersect';
8
+ export { BakeShadows, Html, LOD, Stats, StatsGl, useGLTFExporter, useIntersect, };
@@ -0,0 +1,9 @@
1
+ import { Object3D } from 'three';
2
+ import { Ref } from 'vue';
3
+ type UseIntersectCallback = (isIntersected: boolean) => void;
4
+ export declare function useIntersect<T extends Object3D>(onChange?: Ref<UseIntersectCallback> | UseIntersectCallback): {
5
+ ref: import('vue').ShallowRef<T | undefined, T | undefined>;
6
+ intersect: import('vue').ShallowRef<boolean, boolean>;
7
+ off: () => void;
8
+ };
9
+ export {};
@@ -20,20 +20,21 @@ export interface BoxProps {
20
20
  color?: TresColor;
21
21
  }
22
22
  declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
23
24
  slots: {
24
25
  default?(_: {}): any;
25
26
  };
26
27
  refs: {
27
- boxRef: 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, {
28
+ boxRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
28
29
  P: {};
29
30
  B: {};
30
31
  D: {};
31
32
  C: {};
32
33
  M: {};
33
34
  Defaults: {};
34
- }, 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;
35
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
35
36
  };
36
- attrs: Partial<{}>;
37
+ rootEl: any;
37
38
  };
38
39
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
40
  declare const __VLS_component: import('vue').DefineComponent<BoxProps, {
@@ -41,7 +42,16 @@ declare const __VLS_component: import('vue').DefineComponent<BoxProps, {
41
42
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BoxProps> & Readonly<{}>, {
42
43
  color: TresColor;
43
44
  args: ConstructorParameters<typeof BoxGeometry>;
44
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
46
+ boxRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
47
+ P: {};
48
+ B: {};
49
+ D: {};
50
+ C: {};
51
+ M: {};
52
+ Defaults: {};
53
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
54
+ }, any>;
45
55
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
56
  export default _default;
47
57
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -4,7 +4,7 @@ export interface CircleProps {
4
4
  /**
5
5
  * The radius, segment, thetaStart, thetaLength of the circle.
6
6
  * @default [1, 32, 0, Math.PI * 2]
7
- * @type {number[]}
7
+ * @type {any[]}
8
8
  * @memberof CircleProps
9
9
  * @see https://threejs.org/docs/#api/en/geometries/CircleGeometry
10
10
  */
@@ -19,20 +19,21 @@ export interface CircleProps {
19
19
  color?: TresColor;
20
20
  }
21
21
  declare function __VLS_template(): {
22
+ attrs: Partial<{}>;
22
23
  slots: {
23
24
  default?(_: {}): any;
24
25
  };
25
26
  refs: {
26
- circleRef: 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, {
27
+ circleRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
27
28
  P: {};
28
29
  B: {};
29
30
  D: {};
30
31
  C: {};
31
32
  M: {};
32
33
  Defaults: {};
33
- }, 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;
34
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
34
35
  };
35
- attrs: Partial<{}>;
36
+ rootEl: any;
36
37
  };
37
38
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
39
  declare const __VLS_component: import('vue').DefineComponent<CircleProps, {
@@ -40,7 +41,16 @@ declare const __VLS_component: import('vue').DefineComponent<CircleProps, {
40
41
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleProps> & Readonly<{}>, {
41
42
  color: TresColor;
42
43
  args: ConstructorParameters<typeof CircleGeometry>;
43
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
45
+ circleRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
46
+ P: {};
47
+ B: {};
48
+ D: {};
49
+ C: {};
50
+ M: {};
51
+ Defaults: {};
52
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
53
+ }, any>;
44
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
55
  export default _default;
46
56
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -19,20 +19,21 @@ export interface ConeProps {
19
19
  color?: TresColor;
20
20
  }
21
21
  declare function __VLS_template(): {
22
+ attrs: Partial<{}>;
22
23
  slots: {
23
24
  default?(_: {}): any;
24
25
  };
25
26
  refs: {
26
- coneRef: 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, {
27
+ coneRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
27
28
  P: {};
28
29
  B: {};
29
30
  D: {};
30
31
  C: {};
31
32
  M: {};
32
33
  Defaults: {};
33
- }, 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;
34
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
34
35
  };
35
- attrs: Partial<{}>;
36
+ rootEl: any;
36
37
  };
37
38
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
39
  declare const __VLS_component: import('vue').DefineComponent<ConeProps, {
@@ -40,7 +41,16 @@ declare const __VLS_component: import('vue').DefineComponent<ConeProps, {
40
41
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConeProps> & Readonly<{}>, {
41
42
  color: TresColor;
42
43
  args: ConstructorParameters<typeof ConeGeometry>;
43
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
45
+ coneRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
46
+ P: {};
47
+ B: {};
48
+ D: {};
49
+ C: {};
50
+ M: {};
51
+ Defaults: {};
52
+ }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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;
53
+ }, any>;
44
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
55
  export default _default;
46
56
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,49 @@
1
+ import { Vector3 } from 'three';
2
+ interface CubicBezierLineProps {
3
+ start: Vector3 | [number, number, number];
4
+ end: Vector3 | [number, number, number];
5
+ midA: Vector3 | [number, number, number];
6
+ midB: Vector3 | [number, number, number];
7
+ segments?: number;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<CubicBezierLineProps, {
10
+ instance: import('vue').ShallowRef<any, any>;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CubicBezierLineProps> & Readonly<{}>, {
12
+ segments: number;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
+ lineRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Line2.vue').LineProps> & Readonly<{}>, {
15
+ instance: import('vue').ShallowRef<any, any>;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
17
+ color: import('@tresjs/core').TresColor;
18
+ alphaToCoverage: boolean;
19
+ vertexColors: import('@tresjs/core').TresColor[] | null;
20
+ dashSize: number;
21
+ gapSize: number;
22
+ lineWidth: number;
23
+ worldUnits: boolean;
24
+ dashed: boolean;
25
+ dashScale: number;
26
+ dashOffset: number;
27
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
28
+ P: {};
29
+ B: {};
30
+ D: {};
31
+ C: {};
32
+ M: {};
33
+ Defaults: {};
34
+ }, Readonly<import('./Line2.vue').LineProps> & Readonly<{}>, {
35
+ instance: import('vue').ShallowRef<any, any>;
36
+ }, {}, {}, {}, {
37
+ color: import('@tresjs/core').TresColor;
38
+ alphaToCoverage: boolean;
39
+ vertexColors: import('@tresjs/core').TresColor[] | null;
40
+ dashSize: number;
41
+ gapSize: number;
42
+ lineWidth: number;
43
+ worldUnits: boolean;
44
+ dashed: boolean;
45
+ dashScale: number;
46
+ dashOffset: number;
47
+ }> | null;
48
+ }, any>;
49
+ export default _default;