@tresjs/cientos 1.6.0 → 1.8.0

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 (36) hide show
  1. package/dist/composables/useLogger.d.ts +8 -0
  2. package/dist/core/Box.vue.d.ts +9 -7
  3. package/dist/core/Circle.vue.d.ts +9 -7
  4. package/dist/core/Cone.vue.d.ts +9 -7
  5. package/dist/core/Dodecahedron.vue.d.ts +9 -7
  6. package/dist/core/Icosahedron.vue.d.ts +9 -7
  7. package/dist/core/Octahedron.vue.d.ts +9 -7
  8. package/dist/core/OrbitControls.vue.d.ts +14 -21
  9. package/dist/core/Plane.vue.d.ts +9 -7
  10. package/dist/core/Ring.vue.d.ts +9 -7
  11. package/dist/core/Sphere.vue.d.ts +9 -7
  12. package/dist/core/Tetrahedron.vue.d.ts +9 -7
  13. package/dist/core/Text3D.vue.d.ts +50 -53
  14. package/dist/core/Torus.vue.d.ts +9 -7
  15. package/dist/core/TorusKnot.vue.d.ts +9 -7
  16. package/dist/core/TransformControls.vue.d.ts +28 -60
  17. package/dist/core/Tube.vue.d.ts +12 -8
  18. package/dist/core/useAnimations.d.ts +9 -0
  19. package/dist/core/useCientos.d.ts +8 -0
  20. package/dist/core/useEnvironment/component.d.ts +36 -0
  21. package/dist/core/useEnvironment/const.d.ts +44 -0
  22. package/dist/core/useEnvironment/index.d.ts +17 -0
  23. package/dist/core/useFBX/index.d.ts +7 -0
  24. package/dist/core/useGLTF/component.d.ts +24 -0
  25. package/dist/core/useGLTF/index.d.ts +25 -2
  26. package/dist/core/usePamCameraMouse/component.d.ts +26 -0
  27. package/dist/core/usePamCameraMouse/index.d.ts +2 -0
  28. package/dist/core/useTweakPane/index.d.ts +1 -1
  29. package/dist/index.d.ts +5 -2
  30. package/dist/trescientos.js +5613 -4729
  31. package/dist/trescientos.umd.cjs +12 -8
  32. package/dist/utils/index.d.ts +18 -0
  33. package/dist/vite-env.d.ts +3 -0
  34. package/package.json +12 -12
  35. package/dist/env.d.ts +0 -20
  36. package/dist/types/index.d.ts +0 -5
@@ -1,2 +1,20 @@
1
+ /**
2
+ * Update the function signature to explicitly specify the type of the props parameter
3
+ *
4
+ * @export
5
+ * @template T
6
+ * @template K
7
+ * @param {T} obj
8
+ * @param {K[]} props
9
+ * @return {*} {Pick<T, K>}
10
+ */
1
11
  export declare function pick<T extends object, K extends keyof T>(obj: T, props: K[]): Pick<T, K>;
12
+ /**
13
+ * Check if the object has a setter for the given property
14
+ *
15
+ * @export
16
+ * @param {*} obj
17
+ * @param {string} prop
18
+ * @return {*} {boolean}
19
+ */
2
20
  export declare function hasSetter(obj: any, prop: string): boolean;
@@ -0,0 +1,3 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.glsl' {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tresjs/cientos",
3
3
  "description": "Collection of useful helpers and fully functional, ready-made abstractions for Tres",
4
- "version": "1.6.0",
4
+ "version": "1.8.0",
5
5
  "type": "module",
6
6
  "author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
7
7
  "files": [
@@ -30,26 +30,26 @@
30
30
  "threejs-vue"
31
31
  ],
32
32
  "peerDependencies": {
33
- "@tresjs/core": "^1.4.0",
33
+ "@tresjs/core": "^1.8.0",
34
34
  "three": "latest",
35
- "vue": "^3.2.45"
35
+ "vue": "^3.2.47"
36
36
  },
37
37
  "devDependencies": {
38
- "@tweakpane/plugin-essentials": "^0.1.7",
38
+ "@tweakpane/plugin-essentials": "^0.1.8",
39
39
  "@vitejs/plugin-vue": "^4.0.0",
40
- "kolorist": "^1.6.0",
41
- "pathe": "^1.0.0",
40
+ "kolorist": "^1.7.0",
41
+ "pathe": "^1.1.0",
42
42
  "rollup-plugin-analyzer": "^4.0.0",
43
43
  "rollup-plugin-visualizer": "^5.9.0",
44
- "tweakpane": "^3.1.2",
45
- "typescript": "^4.9.4",
46
- "vite": "^4.0.4",
44
+ "tweakpane": "^3.1.4",
45
+ "typescript": "^4.9.5",
46
+ "vite": "^4.1.2",
47
47
  "vite-plugin-banner": "^0.7.0",
48
- "vite-plugin-dts": "^1.7.1"
48
+ "vite-plugin-dts": "2.0.0-beta.1"
49
49
  },
50
50
  "dependencies": {
51
- "@tresjs/core": "^1.5.1",
52
- "three-stdlib": "^2.21.5"
51
+ "@tresjs/core": "^1.8.0",
52
+ "three-stdlib": "^2.21.8"
53
53
  },
54
54
  "scripts": {
55
55
  "dev": "vite",
package/dist/env.d.ts DELETED
@@ -1,20 +0,0 @@
1
- /// <reference types="vite/client" />
2
- declare module '*.vue' {
3
- import type { DefineComponent } from 'vue'
4
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
5
- const component: DefineComponent<{}, {}, any>
6
- export default component
7
- }
8
-
9
- declare module '*.glsl' {}
10
-
11
- declare global {
12
- // Define the window interface, with type annotations for the properties and methods of the window object
13
- interface Window {
14
- // Define the location property, with a type of Location
15
- __TRES__: {
16
- app: App
17
- version: string
18
- }
19
- }
20
- }
@@ -1,5 +0,0 @@
1
- import { Object3D } from 'three';
2
- export interface TresObject extends Object3D {
3
- geometry: THREE.BufferGeometry;
4
- material: THREE.Material;
5
- }