components.d.ts 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import type { DefineComponent } from 'vue'
  2. import type {
  3. LineBasicMaterialParameters,
  4. LineDashedMaterialParameters,
  5. MeshBasicMaterialParameters,
  6. MeshDepthMaterialParameters,
  7. MeshDistanceMaterialParameters,
  8. MeshLambertMaterialParameters,
  9. MeshMatcapMaterialParameters,
  10. MeshNormalMaterialParameters,
  11. MeshPhongMaterialParameters,
  12. MeshPhysicalMaterialParameters,
  13. MeshStandardMaterialParameters,
  14. MeshToonMaterialParameters,
  15. PointsMaterialParameters,
  16. ShaderMaterialParameters,
  17. ShadowMaterialParameters,
  18. SpriteMaterialParameters,
  19. MaterialParameters,
  20. BoxGeometry,
  21. CapsuleGeometry,
  22. CircleGeometry,
  23. ConeGeometry,
  24. CylinderGeometry,
  25. DodecahedronGeometry,
  26. EdgesGeometry,
  27. IcosahedronGeometry,
  28. LatheGeometry,
  29. OctahedronGeometry,
  30. PlaneGeometry,
  31. PolyhedronGeometry,
  32. RingGeometry,
  33. SphereGeometry,
  34. TetrahedronGeometry,
  35. TorusGeometry,
  36. TorusKnotGeometry,
  37. TubeGeometry,
  38. WireframeGeometry } from 'three'
  39. declare module '@vue/runtime-core' {
  40. export interface GlobalComponents {
  41. TresLineBasicMaterial: DefineComponent<Partial<LineBasicMaterialParameters>>
  42. TresLineDashedMaterial: DefineComponent<Partial<LineDashedMaterialParameters>>
  43. TresMeshBasicMaterial: DefineComponent<Partial<MeshBasicMaterialParameters>>
  44. TresMeshDepthMaterial: DefineComponent<Partial<MeshDepthMaterialParameters>>
  45. TresMeshDistanceMaterial: DefineComponent<Partial<MeshDistanceMaterialParameters>>
  46. TresMeshLambertMaterial: DefineComponent<Partial<MeshLambertMaterialParameters>>
  47. TresMeshMatcapMaterial: DefineComponent<Partial<MeshMatcapMaterialParameters>>
  48. TresMeshNormalMaterial: DefineComponent<Partial<MeshNormalMaterialParameters>>
  49. TresMeshPhongMaterial: DefineComponent<Partial<MeshPhongMaterialParameters>>
  50. TresMeshPhysicalMaterial: DefineComponent<Partial<MeshPhysicalMaterialParameters>>
  51. TresMeshStandardMaterial: DefineComponent<Partial<MeshStandardMaterialParameters>>
  52. TresMeshToonMaterial: DefineComponent<Partial<MeshToonMaterialParameters>>
  53. TresPointsMaterial: DefineComponent<Partial<PointsMaterialParameters>>
  54. TresRawShaderMaterial: DefineComponent<Partial<ShaderMaterialParameters>>
  55. TresShaderMaterial: DefineComponent<Partial<ShaderMaterialParameters>>
  56. TresShadowMaterial: DefineComponent<Partial<ShadowMaterialParameters>>
  57. TresSpriteMaterial: DefineComponent<Partial<SpriteMaterialParameters>>
  58. TresMaterial: DefineComponent<Partial<MaterialParameters>>
  59. TresBoxGeometry: DefineComponent<Partial<BoxGeometry['parameters']>>
  60. TresCapsuleGeometry: DefineComponent<Partial<CapsuleGeometry['parameters']>>
  61. TresCircleGeometry: DefineComponent<Partial<CircleGeometry['parameters']>>
  62. TresConeGeometry: DefineComponent<Partial<ConeGeometry['parameters']>>
  63. TresCylinderGeometry: DefineComponent<Partial<CylinderGeometry['parameters']>>
  64. TresDodecahedronGeometry: DefineComponent<Partial<DodecahedronGeometry['parameters']>>
  65. TresEdgesGeometry: DefineComponent<Partial<EdgesGeometry['parameters']>>
  66. TresIcosahedronGeometry: DefineComponent<Partial<IcosahedronGeometry['parameters']>>
  67. TresLatheGeometry: DefineComponent<Partial<LatheGeometry['parameters']>>
  68. TresOctahedronGeometry: DefineComponent<Partial<OctahedronGeometry['parameters']>>
  69. TresPlaneGeometry: DefineComponent<Partial<PlaneGeometry['parameters']>>
  70. TresPolyhedronGeometry: DefineComponent<Partial<PolyhedronGeometry['parameters']>>
  71. TresRingGeometry: DefineComponent<Partial<RingGeometry['parameters']>>
  72. TresSphereGeometry: DefineComponent<Partial<SphereGeometry['parameters']>>
  73. TresTetrahedronGeometry: DefineComponent<Partial<TetrahedronGeometry['parameters']>>
  74. TresTorusGeometry: DefineComponent<Partial<TorusGeometry['parameters']>>
  75. TresTorusKnotGeometry: DefineComponent<Partial<TorusKnotGeometry['parameters']>>
  76. TresTubeGeometry: DefineComponent<Partial<TubeGeometry['parameters']>>
  77. TresWireframeGeometry: DefineComponent<Partial<WireframeGeometry['parameters']>>
  78. }
  79. }