@tresjs/cientos 1.7.0 → 2.0.0-alpha.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.
- package/README.md +44 -0
- package/dist/core/Box.vue.d.ts +20 -1
- package/dist/core/Circle.vue.d.ts +19 -1
- package/dist/core/Cone.vue.d.ts +24 -6
- package/dist/core/Dodecahedron.vue.d.ts +19 -1
- package/dist/core/Icosahedron.vue.d.ts +19 -1
- package/dist/core/Octahedron.vue.d.ts +19 -1
- package/dist/core/OrbitControls.vue.d.ts +44 -0
- package/dist/core/Plane.vue.d.ts +19 -1
- package/dist/core/Ring.vue.d.ts +19 -1
- package/dist/core/Sphere.vue.d.ts +20 -1
- package/dist/core/Tetrahedron.vue.d.ts +19 -1
- package/dist/core/Text3D.vue.d.ts +93 -2
- package/dist/core/Torus.vue.d.ts +19 -1
- package/dist/core/TorusKnot.vue.d.ts +19 -1
- package/dist/core/Tube.vue.d.ts +21 -3
- package/dist/core/useAnimations.d.ts +9 -0
- package/dist/core/useCientos.d.ts +6 -0
- package/dist/core/useEnvironment/component.d.ts +2 -36
- package/dist/core/useEnvironment/const.d.ts +34 -0
- package/dist/core/useEnvironment/index.d.ts +14 -0
- package/dist/core/useFBX/component.d.ts +11 -11
- package/dist/core/useFBX/index.d.ts +7 -0
- package/dist/core/useGLTF/component.d.ts +33 -11
- package/dist/core/useGLTF/index.d.ts +23 -0
- package/dist/core/usePamCameraMouse/component.d.ts +19 -0
- package/dist/core/usePamCameraMouse/index.d.ts +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/trescientos.js +3539 -3420
- package/dist/trescientos.umd.cjs +10 -10
- package/dist/utils/index.d.ts +18 -0
- package/package.json +26 -17
- package/dist/vite-env.d.ts +0 -3
package/dist/utils/index.d.ts
CHANGED
|
@@ -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;
|
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": "
|
|
4
|
+
"version": "2.0.0-alpha.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
7
7
|
"files": [
|
|
@@ -29,33 +29,42 @@
|
|
|
29
29
|
"three",
|
|
30
30
|
"threejs-vue"
|
|
31
31
|
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"dev": "vite",
|
|
34
|
+
"build": "vite build",
|
|
35
|
+
"preview": "vite preview",
|
|
36
|
+
"release": "release-it",
|
|
37
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue",
|
|
38
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
39
|
+
},
|
|
32
40
|
"peerDependencies": {
|
|
33
|
-
"@tresjs/core": "
|
|
41
|
+
"@tresjs/core": "2.0.0-alpha.0",
|
|
34
42
|
"three": "latest",
|
|
35
43
|
"vue": "^3.2.47"
|
|
36
44
|
},
|
|
37
45
|
"devDependencies": {
|
|
46
|
+
"@alvarosabu/prettier-config": "^1.3.0",
|
|
47
|
+
"@release-it/conventional-changelog": "^5.1.1",
|
|
38
48
|
"@tweakpane/plugin-essentials": "^0.1.8",
|
|
39
|
-
"@
|
|
49
|
+
"@types/three": "^0.149.0",
|
|
50
|
+
"@vitejs/plugin-vue": "^4.1.0",
|
|
40
51
|
"kolorist": "^1.7.0",
|
|
41
52
|
"pathe": "^1.1.0",
|
|
53
|
+
"prettier": "^2.8.4",
|
|
54
|
+
"release-it": "^15.9.1",
|
|
42
55
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
43
56
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
44
|
-
"tweakpane": "^3.1.
|
|
45
|
-
"typescript": "^
|
|
46
|
-
"vite": "^4.
|
|
57
|
+
"tweakpane": "^3.1.7",
|
|
58
|
+
"typescript": "^5.0.2",
|
|
59
|
+
"vite": "^4.2.0",
|
|
47
60
|
"vite-plugin-banner": "^0.7.0",
|
|
48
|
-
"vite-plugin-dts": "2.
|
|
61
|
+
"vite-plugin-dts": "2.1.0"
|
|
49
62
|
},
|
|
50
63
|
"dependencies": {
|
|
51
|
-
"@tresjs/core": "
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"build": "vite build",
|
|
57
|
-
"preview": "vite preview",
|
|
58
|
-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue",
|
|
59
|
-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
64
|
+
"@tresjs/core": "2.0.0-alpha.0",
|
|
65
|
+
"@vueuse/core": "^9.13.0",
|
|
66
|
+
"three": "^0.150.1",
|
|
67
|
+
"three-stdlib": "^2.21.8",
|
|
68
|
+
"vue": "^3.2.47"
|
|
60
69
|
}
|
|
61
|
-
}
|
|
70
|
+
}
|
package/dist/vite-env.d.ts
DELETED