@tresjs/cientos 3.9.0 → 4.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 (77) hide show
  1. package/dist/composables/useOnDemandInvalidation.d.ts +3 -0
  2. package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +38 -0
  3. package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +10 -0
  4. package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +2 -0
  5. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +130 -0
  6. package/dist/core/abstractions/Lensflare/component.vue.d.ts +4 -4
  7. package/dist/core/abstractions/Levioso.vue.d.ts +15 -13
  8. package/dist/core/abstractions/MouseParallax.vue.d.ts +6 -6
  9. package/dist/core/abstractions/Reflector.vue.d.ts +9 -7
  10. package/dist/core/abstractions/Text3D.vue.d.ts +7 -5
  11. package/dist/core/abstractions/index.d.ts +2 -1
  12. package/dist/core/abstractions/useFBO/component.vue.d.ts +2 -2
  13. package/dist/core/abstractions/useFBO/index.d.ts +2 -2
  14. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +6 -4
  15. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +161 -133
  16. package/dist/core/controls/CameraControls.vue.d.ts +1593 -1473
  17. package/dist/core/controls/KeyboardControls.vue.d.ts +39 -85
  18. package/dist/core/controls/MapControls.vue.d.ts +9495 -2
  19. package/dist/core/controls/OrbitControls.vue.d.ts +1366 -1262
  20. package/dist/core/controls/PointerLockControls.vue.d.ts +1 -1
  21. package/dist/core/controls/ScrollControls.vue.d.ts +19 -15
  22. package/dist/core/controls/TransformControls.vue.d.ts +6 -2
  23. package/dist/core/index.d.ts +0 -1
  24. package/dist/core/loaders/SVG/component.vue.d.ts +2 -2
  25. package/dist/core/loaders/useFBX/component.vue.d.ts +5 -5
  26. package/dist/core/loaders/useGLTF/component.vue.d.ts +9 -9
  27. package/dist/core/loaders/useGLTF/index.d.ts +41 -0
  28. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +4 -2
  29. package/dist/core/materials/holographicMaterial/index.vue.d.ts +22 -22
  30. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
  31. package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +6 -5
  32. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +170 -40
  33. package/dist/core/materials/meshReflectionMaterial/material.d.ts +31 -34
  34. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +7 -5
  35. package/dist/core/misc/html/HTML.vue.d.ts +8 -4
  36. package/dist/core/misc/index.d.ts +1 -2
  37. package/dist/core/shapes/Box.vue.d.ts +9 -7
  38. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +3 -1
  39. package/dist/core/shapes/Circle.vue.d.ts +9 -7
  40. package/dist/core/shapes/Cone.vue.d.ts +9 -7
  41. package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
  42. package/dist/core/shapes/Dodecahedron.vue.d.ts +9 -7
  43. package/dist/core/shapes/Icosahedron.vue.d.ts +9 -7
  44. package/dist/core/shapes/Line2.vue.d.ts +4 -2
  45. package/dist/core/shapes/Octahedron.vue.d.ts +9 -7
  46. package/dist/core/shapes/Plane.vue.d.ts +9 -7
  47. package/dist/core/shapes/Ring.vue.d.ts +9 -7
  48. package/dist/core/shapes/RoundedBox.vue.d.ts +9 -7
  49. package/dist/core/shapes/Sphere.vue.d.ts +9 -7
  50. package/dist/core/shapes/Superformula.vue.d.ts +8 -6
  51. package/dist/core/shapes/Tetrahedron.vue.d.ts +9 -7
  52. package/dist/core/shapes/Torus.vue.d.ts +9 -7
  53. package/dist/core/shapes/TorusKnot.vue.d.ts +9 -7
  54. package/dist/core/shapes/Tube.vue.d.ts +10 -8
  55. package/dist/core/shapes/index.d.ts +2 -1
  56. package/dist/core/staging/Backdrop.vue.d.ts +9 -5
  57. package/dist/core/staging/ContactShadows.vue.d.ts +173 -0
  58. package/dist/core/staging/Fit.vue.d.ts +9 -6
  59. package/dist/core/staging/Ocean.vue.d.ts +11 -9
  60. package/dist/core/staging/Precipitation.vue.d.ts +6 -4
  61. package/dist/core/staging/Sky.vue.d.ts +2 -2
  62. package/dist/core/staging/Smoke.vue.d.ts +3 -3
  63. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +3 -3
  64. package/dist/core/staging/Sparkles/component.vue.d.ts +10 -8
  65. package/dist/core/staging/Stars.vue.d.ts +4 -4
  66. package/dist/core/staging/useEnvironment/component.vue.d.ts +8 -6
  67. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +11 -11
  68. package/dist/trescientos.js +6517 -6177
  69. package/dist/trescientos.umd.cjs +455 -440
  70. package/package.json +20 -24
  71. package/dist/core/directives/index.d.ts +0 -6
  72. package/dist/core/directives/vAlwaysLookAt.d.ts +0 -5
  73. package/dist/core/directives/vDistanceTo.d.ts +0 -4
  74. package/dist/core/directives/vLightHelper.d.ts +0 -7
  75. package/dist/core/directives/vLog.d.ts +0 -3
  76. package/dist/core/misc/useTweakPane/index.d.ts +0 -11
  77. /package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tresjs/cientos",
3
3
  "type": "module",
4
- "version": "3.9.0",
4
+ "version": "4.0.0-next.1",
5
5
  "packageManager": "pnpm@8.10.2",
6
6
  "description": "Collection of useful helpers and fully functional, ready-made abstractions for Tres",
7
7
  "author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
@@ -55,46 +55,42 @@
55
55
  "peerDependencies": {
56
56
  "@tresjs/core": ">=3.2",
57
57
  "three": ">=0.133",
58
- "tweakpane": ">=3.0.0",
59
58
  "vue": ">=3.3"
60
59
  },
61
60
  "dependencies": {
62
- "@tresjs/core": "3.9.0",
63
- "@vueuse/core": "^10.9.0",
64
- "camera-controls": "^2.8.3",
65
- "stats-gl": "^2.2.8",
61
+ "@vueuse/core": "^10.11.0",
62
+ "camera-controls": "^2.8.5",
63
+ "stats-gl": "^2.0.1",
66
64
  "stats.js": "^0.17.0",
67
65
  "three-custom-shader-material": "^5.4.0",
68
- "three-stdlib": "^2.29.11"
66
+ "three-stdlib": "^2.30.4"
69
67
  },
70
68
  "devDependencies": {
71
69
  "@release-it/conventional-changelog": "^8.0.1",
72
- "@tresjs/core": "^3.2.1",
73
- "@tresjs/eslint-config": "^1.0.0",
74
- "@tweakpane/core": "^1.1.9",
75
- "@types/node": "^20.12.10",
76
- "@types/three": "^0.164.0",
77
- "@typescript-eslint/eslint-plugin": "^7.8.0",
78
- "@typescript-eslint/parser": "^7.8.0",
79
- "@vitejs/plugin-vue": "^5.0.4",
80
- "eslint": "^9.1.1",
81
- "eslint-plugin-vue": "^9.25.0",
70
+ "@tresjs/core": "4.2.1",
71
+ "@tresjs/eslint-config": "^1.1.0",
72
+ "@types/node": "^20.14.11",
73
+ "@types/three": "^0.166.0",
74
+ "@typescript-eslint/eslint-plugin": "^7.16.1",
75
+ "@typescript-eslint/parser": "^7.16.1",
76
+ "@vitejs/plugin-vue": "^5.0.5",
77
+ "eslint": "^9.7.0",
78
+ "eslint-plugin-vue": "^9.27.0",
82
79
  "gsap": "^3.12.5",
83
80
  "husky": "^9.0.11",
84
81
  "kolorist": "^1.8.0",
85
82
  "pathe": "^1.1.2",
86
- "release-it": "^17.2.1",
83
+ "release-it": "^17.6.0",
87
84
  "rollup-plugin-analyzer": "^4.0.0",
88
85
  "rollup-plugin-visualizer": "^5.12.0",
89
- "three": "^0.164.1",
90
- "tweakpane": "^3.1.10",
91
- "typescript": "^5.4.5",
92
- "unocss": "^0.59.4",
93
- "vite": "^5.2.11",
86
+ "three": "^0.166.1",
87
+ "typescript": "^5.5.3",
88
+ "unocss": "^0.61.5",
89
+ "vite": "^5.3.4",
94
90
  "vite-plugin-banner": "^0.7.1",
95
91
  "vite-plugin-dts": "3.9.1",
96
92
  "vite-plugin-glsl": "^1.3.0",
97
93
  "vite-svg-loader": "^5.1.0",
98
- "vitepress": "1.1.4"
94
+ "vitepress": "1.3.1"
99
95
  }
100
96
  }
@@ -1,6 +0,0 @@
1
- import { vLog } from './vLog';
2
- import { vLightHelper } from './vLightHelper';
3
- import { vAlwaysLookAt } from './vAlwaysLookAt';
4
- import { vDistanceTo } from './vDistanceTo';
5
-
6
- export { vLog, vLightHelper, vAlwaysLookAt, vDistanceTo };
@@ -1,5 +0,0 @@
1
- import { Object3D } from 'three';
2
-
3
- export declare const vAlwaysLookAt: {
4
- updated: (el: Object3D, binding: any) => void;
5
- };
@@ -1,4 +0,0 @@
1
- export declare const vDistanceTo: {
2
- updated: (el: any, binding: any) => void;
3
- unmounted: (el: any) => void;
4
- };
@@ -1,7 +0,0 @@
1
- import { Light } from 'three';
2
-
3
- export declare const vLightHelper: {
4
- mounted: (el: Light) => void;
5
- updated: (el: any) => void;
6
- unmounted: (el: any) => void;
7
- };
@@ -1,3 +0,0 @@
1
- export declare const vLog: {
2
- mounted: (el: any, binding: any) => void;
3
- };
@@ -1,11 +0,0 @@
1
- import { Pane } from 'tweakpane';
2
-
3
- type TweakPane = Pane & {
4
- addBlade: (blade: any) => void;
5
- addInput: (blade: any) => void;
6
- };
7
- export declare const useTweakPane: (selector?: string) => {
8
- pane: TweakPane;
9
- disposeTweakPane: () => void;
10
- };
11
- export {};