@tresjs/cientos 2.0.0-rc.1 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  ![repository-banner.png](/public/repo-banner.png)
2
2
 
3
3
  <p align="center">
4
- <a href="https://www.npmjs.com/package/@tresjs/cientos"><img src="https://img.shields.io/npm/v/@tresjs/cientos/beta?color=%2382DBCA" alt="npm package"></a>
5
- <a href="https://discord.gg/tfY9aSNT"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
4
+ <a href="https://www.npmjs.com/package/@tresjs/cientos"><img src="https://img.shields.io/npm/v/@tresjs/cientos/next?color=%2382DBCA" alt="npm package"></a>
5
+ <a href="https://discord.gg/UCr96AQmWn"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
6
6
  </p>
7
7
  <br/>
8
8
 
@@ -0,0 +1,25 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ export interface FBXModelProps {
3
+ /**
4
+ * Path to the FBX file.
5
+ *
6
+ * @type {string}
7
+ * @memberof FBXModelProps
8
+ * @required
9
+ */
10
+ path: string;
11
+ }
12
+ declare const _sfc_main: import("vue").DefineComponent<{
13
+ path: {
14
+ type: __PropType<string>;
15
+ required: true;
16
+ };
17
+ }, {
18
+ value: import("vue").Ref<any>;
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ path: {
21
+ type: __PropType<string>;
22
+ required: true;
23
+ };
24
+ }>>, {}>;
25
+ export default _sfc_main;
@@ -0,0 +1,70 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ export interface GLTFModelProps {
3
+ /**
4
+ *
5
+ * The path to the GLTF file.
6
+ *
7
+ * @type {string}
8
+ * @required
9
+ * @memberof GLTFModelProps
10
+ *
11
+ **/
12
+ path: string;
13
+ /**
14
+ *
15
+ * Whether to use Draco compression.
16
+ *
17
+ * @type {boolean}
18
+ * @default false
19
+ * @memberof GLTFModelProps
20
+ *
21
+ **/
22
+ draco?: boolean;
23
+ /**
24
+ *
25
+ * The path to the Draco decoder.
26
+ *
27
+ * @type {string}
28
+ * @default 'https://www.gstatic.com/draco/versioned/decoders/1.4.1/'
29
+ * @memberof GLTFModelProps
30
+ *
31
+ **/
32
+ decoderPath?: string;
33
+ }
34
+ declare const _sfc_main: import("vue").DefineComponent<{
35
+ path: {
36
+ type: __PropType<string>;
37
+ required: true;
38
+ };
39
+ draco: {
40
+ type: __PropType<boolean | undefined>;
41
+ required: false;
42
+ default: boolean;
43
+ };
44
+ decoderPath: {
45
+ type: __PropType<string | undefined>;
46
+ required: false;
47
+ default: string;
48
+ };
49
+ }, {
50
+ value: import("vue").Ref<any>;
51
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
52
+ path: {
53
+ type: __PropType<string>;
54
+ required: true;
55
+ };
56
+ draco: {
57
+ type: __PropType<boolean | undefined>;
58
+ required: false;
59
+ default: boolean;
60
+ };
61
+ decoderPath: {
62
+ type: __PropType<string | undefined>;
63
+ required: false;
64
+ default: string;
65
+ };
66
+ }>>, {
67
+ draco: boolean | undefined;
68
+ decoderPath: string | undefined;
69
+ }>;
70
+ export default _sfc_main;
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ import TransformControls from './core/controls/TransformControls.vue';
5
5
  import { PamCameraMouse } from './core/usePamCameraMouse/component';
6
6
  import { useTweakPane } from './core/useTweakPane';
7
7
  import { useAnimations } from './core/useAnimations';
8
- import { GLTFModel } from './core/useGLTF/component';
9
- import { FBXModel } from './core/useFBX/component';
8
+ import GLTFModel from './core/useGLTF/component.vue';
9
+ import FBXModel from './core/useFBX/component.vue';
10
10
  import Stars from './core/Stars.vue';
11
11
  import Text3D from './core/Text3D.vue';
12
12
  import Plane from './core/Plane.vue';