angular-three-soba 2.0.0-beta.2 → 2.0.0-beta.21

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 (321) hide show
  1. package/abstractions/billboard/billboard.d.ts +11 -7
  2. package/abstractions/detailed/detailed.d.ts +26 -0
  3. package/abstractions/edges/edges.d.ts +24 -12
  4. package/abstractions/grid/grid.d.ts +50 -0
  5. package/abstractions/index.d.ts +2 -7
  6. package/abstractions/text/text.d.ts +10 -5
  7. package/abstractions/text-3d/text-3d.d.ts +51 -41
  8. package/cameras/camera/camera-content.d.ts +1 -1
  9. package/cameras/camera/camera.d.ts +16 -13
  10. package/cameras/cube-camera/cube-camera.d.ts +50 -23
  11. package/cameras/index.d.ts +0 -1
  12. package/cameras/orthographic-camera/orthographic-camera.d.ts +29 -18
  13. package/cameras/perspective-camera/perspective-camera.d.ts +10 -1
  14. package/controls/orbit-controls/orbit-controls.d.ts +31 -12
  15. package/esm2022/abstractions/billboard/billboard.mjs +36 -33
  16. package/esm2022/abstractions/detailed/detailed.mjs +64 -0
  17. package/esm2022/abstractions/edges/edges.mjs +58 -63
  18. package/esm2022/abstractions/grid/grid.mjs +180 -0
  19. package/esm2022/abstractions/index.mjs +3 -8
  20. package/esm2022/abstractions/text/text.mjs +123 -124
  21. package/esm2022/abstractions/text-3d/text-3d.mjs +120 -115
  22. package/esm2022/cameras/camera/camera-content.mjs +6 -6
  23. package/esm2022/cameras/camera/camera.mjs +48 -42
  24. package/esm2022/cameras/cube-camera/cube-camera.mjs +129 -99
  25. package/esm2022/cameras/index.mjs +1 -2
  26. package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +78 -75
  27. package/esm2022/cameras/perspective-camera/perspective-camera.mjs +25 -26
  28. package/esm2022/controls/orbit-controls/orbit-controls.mjs +105 -85
  29. package/esm2022/gizmos/angular-three-soba-gizmos.mjs +5 -0
  30. package/esm2022/gizmos/gizmo-helper/gizmo-helper.mjs +197 -0
  31. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/constants.mjs +31 -0
  32. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +93 -0
  33. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +150 -0
  34. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.mjs +66 -0
  35. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +71 -0
  36. package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +195 -0
  37. package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +272 -0
  38. package/esm2022/gizmos/index.mjs +4 -0
  39. package/esm2022/loaders/gltf-loader/gltf-loader.mjs +3 -6
  40. package/esm2022/loaders/loader/loader.mjs +92 -87
  41. package/esm2022/loaders/progress/progress.mjs +29 -29
  42. package/esm2022/loaders/texture-loader/texture-loader.mjs +4 -4
  43. package/esm2022/materials/index.mjs +2 -1
  44. package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +60 -51
  45. package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +239 -255
  46. package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +102 -99
  47. package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +167 -146
  48. package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +44 -42
  49. package/esm2022/materials/point-material/point-material.mjs +50 -0
  50. package/esm2022/misc/animations/animations.mjs +36 -32
  51. package/esm2022/misc/bake-shadows/bake-shadows.mjs +13 -13
  52. package/esm2022/misc/caustics/caustics.mjs +387 -0
  53. package/esm2022/misc/decal/decal.mjs +187 -0
  54. package/esm2022/misc/depth-buffer/depth-buffer.mjs +33 -35
  55. package/esm2022/misc/example/example.mjs +160 -0
  56. package/esm2022/misc/fbo/fbo.mjs +35 -35
  57. package/esm2022/misc/html/html-wrapper.mjs +478 -0
  58. package/esm2022/misc/html/html.mjs +304 -0
  59. package/esm2022/misc/index.mjs +10 -1
  60. package/esm2022/misc/sampler/sampler.mjs +142 -0
  61. package/esm2022/misc/shadow/shadow.mjs +111 -0
  62. package/esm2022/misc/stats-gl/stats-gl.mjs +61 -0
  63. package/esm2022/misc/trail/trail.mjs +209 -0
  64. package/esm2022/misc/trail-texture/inject-trail-texture.mjs +17 -0
  65. package/esm2022/misc/trail-texture/trail-texture.mjs +106 -0
  66. package/esm2022/modifiers/angular-three-soba-modifiers.mjs +5 -0
  67. package/esm2022/modifiers/curve-modifier/curve-modifier.mjs +64 -0
  68. package/esm2022/modifiers/index.mjs +2 -0
  69. package/esm2022/performances/adaptive-dpr/adaptive-dpr.mjs +44 -0
  70. package/esm2022/performances/adaptive-events/adaptive-events.mjs +27 -0
  71. package/esm2022/performances/angular-three-soba-performances.mjs +5 -0
  72. package/esm2022/performances/index.mjs +8 -0
  73. package/esm2022/performances/instances/instances.mjs +220 -0
  74. package/esm2022/performances/instances/position-mesh.mjs +52 -0
  75. package/esm2022/performances/points/points-input.mjs +64 -0
  76. package/esm2022/performances/points/points.mjs +326 -0
  77. package/esm2022/performances/points/position-point.mjs +54 -0
  78. package/esm2022/performances/segments/segment-object.mjs +9 -0
  79. package/esm2022/performances/segments/segments.mjs +182 -0
  80. package/esm2022/shaders/blur-pass/blur-pass.mjs +2 -2
  81. package/esm2022/shaders/caustics/caustics-material.mjs +130 -0
  82. package/esm2022/shaders/caustics/caustics-projection-material.mjs +31 -0
  83. package/esm2022/shaders/convolution-material/convolution-material.mjs +1 -1
  84. package/esm2022/shaders/discard-material/discard-material.mjs +1 -1
  85. package/esm2022/shaders/grid-material/grid-material.mjs +77 -0
  86. package/esm2022/shaders/index.mjs +6 -3
  87. package/esm2022/shaders/mesh-distort-material/mesh-distort-material.mjs +42 -41
  88. package/esm2022/shaders/mesh-reflector-material/mesh-reflector-material.mjs +2 -2
  89. package/esm2022/shaders/mesh-refraction-material/mesh-refraction-material.mjs +2 -2
  90. package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +4 -4
  91. package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +1 -1
  92. package/esm2022/shaders/shader-material/shader-material.mjs +1 -1
  93. package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +17 -25
  94. package/esm2022/shaders/sparkles-material/sparkles-material.mjs +32 -46
  95. package/esm2022/shaders/spot-light-material/spot-light-material.mjs +7 -7
  96. package/esm2022/shaders/star-field-material/star-field-material.mjs +3 -2
  97. package/esm2022/shaders/wireframe-material/wireframe-material.mjs +247 -0
  98. package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +160 -176
  99. package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +1 -1
  100. package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +126 -128
  101. package/esm2022/staging/backdrop/backdrop.mjs +77 -0
  102. package/esm2022/staging/bb-anchor/bb-anchor.mjs +69 -0
  103. package/esm2022/staging/bounds/bounds.mjs +144 -143
  104. package/esm2022/staging/camera-shake/camera-shake.mjs +86 -80
  105. package/esm2022/staging/center/center.mjs +129 -112
  106. package/esm2022/staging/cloud/cloud.mjs +118 -124
  107. package/esm2022/staging/contact-shadows/contact-shadows.mjs +131 -134
  108. package/esm2022/staging/environment/assets.mjs +12 -12
  109. package/esm2022/staging/environment/environment-cube.mjs +28 -30
  110. package/esm2022/staging/environment/environment-ground.mjs +17 -19
  111. package/esm2022/staging/environment/environment-input.mjs +98 -85
  112. package/esm2022/staging/environment/environment-map.mjs +33 -33
  113. package/esm2022/staging/environment/environment-portal.mjs +75 -97
  114. package/esm2022/staging/environment/environment.mjs +34 -51
  115. package/esm2022/staging/environment/utils.mjs +37 -15
  116. package/esm2022/staging/float/float.mjs +70 -58
  117. package/esm2022/staging/index.mjs +7 -3
  118. package/esm2022/staging/matcap-texture/matcap-texture.mjs +64 -0
  119. package/esm2022/staging/normal-texture/normal-texture.mjs +53 -0
  120. package/esm2022/staging/sky/sky.mjs +85 -80
  121. package/esm2022/staging/sparkles/sparkles.mjs +108 -105
  122. package/esm2022/staging/spot-light/shadow-mesh-input.mjs +63 -0
  123. package/esm2022/staging/spot-light/shadow-mesh.mjs +266 -0
  124. package/esm2022/staging/spot-light/spot-light-input.mjs +67 -58
  125. package/esm2022/staging/spot-light/spot-light.mjs +51 -64
  126. package/esm2022/staging/spot-light/volumetric-mesh.mjs +67 -70
  127. package/esm2022/staging/stage/stage.mjs +305 -290
  128. package/esm2022/staging/stars/stars.mjs +101 -102
  129. package/esm2022/staging/wireframe/wireframe-input.mjs +191 -0
  130. package/esm2022/staging/wireframe/wireframe.mjs +228 -0
  131. package/esm2022/utils/angular-three-soba-utils.mjs +5 -0
  132. package/esm2022/utils/content/content.mjs +15 -0
  133. package/esm2022/utils/index.mjs +2 -0
  134. package/fesm2022/angular-three-soba-abstractions.mjs +514 -1947
  135. package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
  136. package/fesm2022/angular-three-soba-cameras.mjs +302 -259
  137. package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
  138. package/fesm2022/angular-three-soba-controls.mjs +104 -83
  139. package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
  140. package/fesm2022/angular-three-soba-gizmos.mjs +1043 -0
  141. package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -0
  142. package/fesm2022/angular-three-soba-loaders.mjs +121 -117
  143. package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
  144. package/fesm2022/angular-three-soba-materials.mjs +662 -592
  145. package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
  146. package/fesm2022/angular-three-soba-misc.mjs +2214 -105
  147. package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
  148. package/fesm2022/angular-three-soba-modifiers.mjs +71 -0
  149. package/fesm2022/angular-three-soba-modifiers.mjs.map +1 -0
  150. package/fesm2022/angular-three-soba-performances.mjs +956 -0
  151. package/fesm2022/angular-three-soba-performances.mjs.map +1 -0
  152. package/fesm2022/angular-three-soba-shaders.mjs +549 -252
  153. package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
  154. package/fesm2022/angular-three-soba-staging.mjs +2899 -2563
  155. package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
  156. package/fesm2022/angular-three-soba-utils.mjs +22 -0
  157. package/fesm2022/angular-three-soba-utils.mjs.map +1 -0
  158. package/gizmos/README.md +3 -0
  159. package/gizmos/gizmo-helper/gizmo-helper.d.ts +69 -0
  160. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +22 -0
  161. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +29 -0
  162. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.d.ts +33 -0
  163. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +10 -0
  164. package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +40 -0
  165. package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +30 -0
  166. package/gizmos/index.d.ts +3 -0
  167. package/loaders/gltf-loader/gltf-loader.d.ts +4 -3
  168. package/loaders/loader/loader.d.ts +19 -17
  169. package/loaders/progress/progress.d.ts +1 -1
  170. package/loaders/texture-loader/texture-loader.d.ts +2 -2
  171. package/materials/index.d.ts +1 -0
  172. package/materials/mesh-distort-material/mesh-distort-material.d.ts +25 -15
  173. package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +74 -56
  174. package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +33 -21
  175. package/materials/mesh-transmission-material/mesh-transmission-material.d.ts +55 -39
  176. package/materials/mesh-wobble-material/mesh-wobble-material.d.ts +19 -10
  177. package/materials/point-material/point-material.d.ts +24 -0
  178. package/metadata.json +1 -0
  179. package/misc/animations/animations.d.ts +6 -4
  180. package/misc/caustics/caustics.d.ts +87 -0
  181. package/misc/decal/decal.d.ts +49 -0
  182. package/misc/depth-buffer/depth-buffer.d.ts +2 -2
  183. package/misc/example/example.d.ts +81 -0
  184. package/misc/fbo/fbo.d.ts +2 -2
  185. package/misc/html/html-wrapper.d.ts +559 -0
  186. package/misc/html/html.d.ts +214 -0
  187. package/misc/index.d.ts +9 -0
  188. package/misc/sampler/sampler.d.ts +67 -0
  189. package/misc/shadow/shadow.d.ts +37 -0
  190. package/misc/stats-gl/stats-gl.d.ts +24 -0
  191. package/misc/trail/trail.d.ts +57 -0
  192. package/misc/trail-texture/inject-trail-texture.d.ts +9 -0
  193. package/misc/trail-texture/trail-texture.d.ts +50 -0
  194. package/modifiers/README.md +3 -0
  195. package/modifiers/curve-modifier/curve-modifier.d.ts +23 -0
  196. package/modifiers/index.d.ts +1 -0
  197. package/package.json +31 -16
  198. package/performances/README.md +3 -0
  199. package/performances/adaptive-dpr/adaptive-dpr.d.ts +14 -0
  200. package/{performance/adaptive → performances/adaptive-events}/adaptive-events.d.ts +3 -0
  201. package/performances/index.d.ts +7 -0
  202. package/performances/instances/instances.d.ts +79 -0
  203. package/{performance → performances}/instances/position-mesh.d.ts +1 -1
  204. package/performances/points/points-input.d.ts +32 -0
  205. package/performances/points/points.d.ts +92 -0
  206. package/performances/points/position-point.d.ts +11 -0
  207. package/performances/segments/segment-object.d.ts +7 -0
  208. package/performances/segments/segments.d.ts +124 -0
  209. package/shaders/grid-material/grid-material.d.ts +37 -0
  210. package/shaders/index.d.ts +5 -2
  211. package/shaders/mesh-distort-material/mesh-distort-material.d.ts +147 -2
  212. package/shaders/mesh-transmission-material/mesh-transmission-material.d.ts +1 -1
  213. package/shaders/shader-material/shader-material.d.ts +2 -2
  214. package/shaders/soft-shadow-material/soft-shadow-material.d.ts +10 -1
  215. package/shaders/sparkles-material/sparkles-material.d.ts +15 -1
  216. package/shaders/spot-light-material/spot-light-material.d.ts +11 -2
  217. package/shaders/star-field-material/star-field-material.d.ts +11 -1
  218. package/shaders/wireframe-material/wireframe-material.d.ts +58 -0
  219. package/staging/accumulative-shadows/accumulative-shadows.d.ts +89 -39
  220. package/staging/accumulative-shadows/randomized-lights.d.ts +40 -27
  221. package/staging/backdrop/backdrop.d.ts +30 -0
  222. package/staging/bb-anchor/bb-anchor.d.ts +27 -0
  223. package/staging/bounds/bounds.d.ts +100 -24
  224. package/staging/camera-shake/camera-shake.d.ts +30 -19
  225. package/staging/center/center.d.ts +43 -35
  226. package/staging/cloud/cloud.d.ts +26 -23
  227. package/staging/contact-shadows/contact-shadows.d.ts +41 -28
  228. package/staging/environment/assets.d.ts +9 -9
  229. package/staging/environment/environment-cube.d.ts +9 -5
  230. package/staging/environment/environment-ground.d.ts +7 -7
  231. package/staging/environment/environment-input.d.ts +37 -37
  232. package/staging/environment/environment-map.d.ts +10 -5
  233. package/staging/environment/environment-portal.d.ts +10 -5
  234. package/staging/environment/environment.d.ts +0 -4
  235. package/staging/environment/utils.d.ts +2 -2
  236. package/staging/float/float.d.ts +14 -10
  237. package/staging/index.d.ts +6 -2
  238. package/staging/matcap-texture/matcap-texture.d.ts +13 -0
  239. package/staging/normal-texture/normal-texture.d.ts +16 -0
  240. package/staging/sky/sky.d.ts +28 -21
  241. package/staging/sparkles/sparkles.d.ts +36 -22
  242. package/staging/spot-light/shadow-mesh-input.d.ts +29 -0
  243. package/staging/spot-light/shadow-mesh.d.ts +37 -0
  244. package/staging/spot-light/spot-light-input.d.ts +25 -25
  245. package/staging/spot-light/spot-light.d.ts +31 -15
  246. package/staging/spot-light/volumetric-mesh.d.ts +15 -9
  247. package/staging/stage/stage.d.ts +89 -65
  248. package/staging/stars/stars.d.ts +28 -17
  249. package/staging/wireframe/wireframe-input.d.ts +65 -0
  250. package/staging/wireframe/wireframe.d.ts +28 -0
  251. package/utils/README.md +3 -0
  252. package/utils/content/content.d.ts +8 -0
  253. package/utils/index.d.ts +1 -0
  254. package/web-types.json +1 -0
  255. package/abstractions/catmull-rom-line/catmull-rom-line.d.ts +0 -25
  256. package/abstractions/cubic-bezier-line/cubic-bezier-line.d.ts +0 -25
  257. package/abstractions/gizmo-helper/gizmo-helper.d.ts +0 -34
  258. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -22
  259. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -30
  260. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +0 -32
  261. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +0 -14
  262. package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +0 -47
  263. package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +0 -40
  264. package/abstractions/line/line-input.d.ts +0 -42
  265. package/abstractions/line/line.d.ts +0 -35
  266. package/abstractions/quadratic-bezier-line/quadratic-bezier-line.d.ts +0 -23
  267. package/esm2022/abstractions/catmull-rom-line/catmull-rom-line.mjs +0 -131
  268. package/esm2022/abstractions/cubic-bezier-line/cubic-bezier-line.mjs +0 -113
  269. package/esm2022/abstractions/gizmo-helper/gizmo-helper.mjs +0 -210
  270. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
  271. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -95
  272. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -155
  273. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +0 -62
  274. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -80
  275. package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -206
  276. package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -273
  277. package/esm2022/abstractions/line/line-input.mjs +0 -113
  278. package/esm2022/abstractions/line/line.mjs +0 -165
  279. package/esm2022/abstractions/quadratic-bezier-line/quadratic-bezier-line.mjs +0 -128
  280. package/esm2022/performance/adaptive/adaptive-dpr.mjs +0 -46
  281. package/esm2022/performance/adaptive/adaptive-events.mjs +0 -31
  282. package/esm2022/performance/angular-three-soba-performance.mjs +0 -5
  283. package/esm2022/performance/detailed/detailed.mjs +0 -61
  284. package/esm2022/performance/index.mjs +0 -7
  285. package/esm2022/performance/instances/instance.mjs +0 -48
  286. package/esm2022/performance/instances/instances.mjs +0 -189
  287. package/esm2022/performance/instances/position-mesh.mjs +0 -52
  288. package/esm2022/performance/stats/stats.mjs +0 -79
  289. package/esm2022/shaders/caustics-material/caustics-material.mjs +0 -128
  290. package/esm2022/shaders/caustics-material/caustics-projection-material.mjs +0 -33
  291. package/esm2022/staging/caustics/caustisc.mjs +0 -384
  292. package/esm2022/staging/spot-light/spot-light-shadow-mesh-input.mjs +0 -57
  293. package/esm2022/staging/spot-light/spot-light-shadow-mesh.mjs +0 -256
  294. package/fesm2022/angular-three-soba-performance.mjs +0 -487
  295. package/fesm2022/angular-three-soba-performance.mjs.map +0 -1
  296. package/performance/README.md +0 -3
  297. package/performance/adaptive/adaptive-dpr.d.ts +0 -8
  298. package/performance/detailed/detailed.d.ts +0 -20
  299. package/performance/index.d.ts +0 -6
  300. package/performance/instances/instance.d.ts +0 -9
  301. package/performance/instances/instances.d.ts +0 -35
  302. package/performance/stats/stats.d.ts +0 -18
  303. package/plugin/generators.json +0 -19
  304. package/plugin/libs/plugin/README.md +0 -11
  305. package/plugin/package.json +0 -9
  306. package/plugin/src/generators/init/compat.d.ts +0 -2
  307. package/plugin/src/generators/init/compat.js +0 -6
  308. package/plugin/src/generators/init/compat.js.map +0 -1
  309. package/plugin/src/generators/init/init.d.ts +0 -4
  310. package/plugin/src/generators/init/init.js +0 -22
  311. package/plugin/src/generators/init/init.js.map +0 -1
  312. package/plugin/src/generators/init/schema.json +0 -6
  313. package/plugin/src/index.d.ts +0 -1
  314. package/plugin/src/index.js +0 -6
  315. package/plugin/src/index.js.map +0 -1
  316. package/staging/caustics/caustisc.d.ts +0 -70
  317. package/staging/spot-light/spot-light-shadow-mesh-input.d.ts +0 -29
  318. package/staging/spot-light/spot-light-shadow-mesh.d.ts +0 -38
  319. /package/{abstractions → gizmos}/gizmo-helper/gizmo-viewcube/constants.d.ts +0 -0
  320. /package/shaders/{caustics-material → caustics}/caustics-material.d.ts +0 -0
  321. /package/shaders/{caustics-material → caustics}/caustics-projection-material.d.ts +0 -0
@@ -0,0 +1,87 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { type NgtGroup } from 'angular-three';
3
+ import * as THREE from 'three';
4
+ import * as i0 from "@angular/core";
5
+ export type NgtsCausticsState = {
6
+ /** How many frames it will render, set it to Infinity for runtime, default: 1 */
7
+ frames: number;
8
+ /** Enables visual cues to help you stage your scene, default: false */
9
+ debug: boolean;
10
+ /** Will display caustics only and skip the models, default: false */
11
+ causticsOnly: boolean;
12
+ /** Will include back faces and enable the backsideIOR prop, default: false */
13
+ backside: boolean;
14
+ /** The IOR refraction index, default: 1.1 */
15
+ ior: number;
16
+ /** The IOR refraction index for back faces (only available when backside is enabled), default: 1.1 */
17
+ backsideIOR: number;
18
+ /** The texel size, default: 0.3125 */
19
+ worldRadius: number;
20
+ /** Intensity of the prjected caustics, default: 0.05 */
21
+ intensity: number;
22
+ /** Caustics color, default: white */
23
+ color: THREE.ColorRepresentation;
24
+ /** Buffer resolution, default: 2048 */
25
+ resolution: number;
26
+ /** Camera position, it will point towards the contents bounds center, default: [5, 5, 5] */
27
+ lightSource: [x: number, y: number, z: number] | ElementRef<THREE.Object3D>;
28
+ };
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ /**
32
+ * @extends ngt-group
33
+ */
34
+ 'ngts-caustics': NgtsCausticsState & NgtGroup;
35
+ }
36
+ }
37
+ export declare class NgtsCaustics {
38
+ CustomBlending: 5;
39
+ OneFactor: 201;
40
+ SrcAlphaFactor: 204;
41
+ Math: Math;
42
+ private inputs;
43
+ causticsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
44
+ /** How many frames it will render, set it to Infinity for runtime, default: 1 */
45
+ set _frames(frames: number);
46
+ /** Enables visual cues to help you stage your scene, default: false */
47
+ set _debug(debug: boolean);
48
+ /** Will display caustics only and skip the models, default: false */
49
+ set _causticsOnly(causticsOnly: boolean);
50
+ /** Will include back faces and enable the backsideIOR prop, default: false */
51
+ set _backside(backside: boolean);
52
+ /** The IOR refraction index, default: 1.1 */
53
+ set _ior(ior: number);
54
+ /** The IOR refraction index for back faces (only available when backside is enabled), default: 1.1 */
55
+ set _backsideIOR(backsideIOR: number);
56
+ /** The texel size, default: 0.3125 */
57
+ set _worldRadius(worldRadius: number);
58
+ /** Intensity of the prjected caustics, default: 0.05 */
59
+ set _intensity(intensity: number);
60
+ /** Caustics color, default: white */
61
+ set _color(color: THREE.ColorRepresentation);
62
+ /** Buffer resolution, default: 2048 */
63
+ set _resolution(resolution: number);
64
+ /** Camera position, it will point towards the contents bounds center, default: [5, 5, 5] */
65
+ set _lightSource(lightSource: [x: number, y: number, z: number] | ElementRef<THREE.Object3D>);
66
+ private resolution;
67
+ private normalTargetSettings;
68
+ private causticsTargetSettings;
69
+ private normalTargetFbo;
70
+ private normalTargetBFbo;
71
+ causticsTargetFbo: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
72
+ causticsTargetBFbo: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
73
+ private store;
74
+ color: import("@angular/core").Signal<THREE.ColorRepresentation>;
75
+ debug: import("@angular/core").Signal<boolean>;
76
+ planeRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
77
+ sceneRef: import("angular-three").NgtInjectedRef<THREE.Scene>;
78
+ cameraRef: import("angular-three").NgtInjectedRef<THREE.OrthographicCamera>;
79
+ private sceneChildren;
80
+ private planeChildren;
81
+ private causticsChildren;
82
+ constructor();
83
+ private updateWorldMatrix;
84
+ private setBeforeRender;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCaustics, never>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCaustics, "ngts-caustics", never, { "causticsRef": { "alias": "causticsRef"; "required": false; }; "_frames": { "alias": "frames"; "required": false; }; "_debug": { "alias": "debug"; "required": false; }; "_causticsOnly": { "alias": "causticsOnly"; "required": false; }; "_backside": { "alias": "backside"; "required": false; }; "_ior": { "alias": "ior"; "required": false; }; "_backsideIOR": { "alias": "backsideIOR"; "required": false; }; "_worldRadius": { "alias": "worldRadius"; "required": false; }; "_intensity": { "alias": "intensity"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_resolution": { "alias": "resolution"; "required": false; }; "_lightSource": { "alias": "lightSource"; "required": false; }; }, {}, never, ["*"], true, never>;
87
+ }
@@ -0,0 +1,49 @@
1
+ import { type NgtEuler, type NgtMesh, type NgtRef, type NgtVector3 } from 'angular-three';
2
+ import * as THREE from 'three';
3
+ import * as i0 from "@angular/core";
4
+ export type NgtsDecalState = {
5
+ debug: boolean;
6
+ mesh?: NgtRef<THREE.Mesh>;
7
+ position: NgtVector3;
8
+ rotation: NgtEuler | number;
9
+ scale: NgtVector3;
10
+ map?: THREE.Texture;
11
+ polygonOffsetFactor: number;
12
+ depthTest: boolean;
13
+ };
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ /**
17
+ * @extends ngt-mesh
18
+ */
19
+ 'ngts-decal': NgtsDecalState & NgtMesh;
20
+ }
21
+ }
22
+ export declare class NgtsDecal {
23
+ private inputs;
24
+ decalRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
25
+ set _debug(debug: boolean);
26
+ set _mesh(mesh: NgtRef<THREE.Mesh>);
27
+ set _position(position: NgtVector3);
28
+ set _rotation(rotation: NgtEuler | number);
29
+ set _scale(scale: NgtVector3);
30
+ set _map(map: THREE.Texture);
31
+ set _polygonOffsetFactor(polygonOffsetFactor: number);
32
+ set _depthTest(depthTest: boolean);
33
+ private mesh;
34
+ private __position;
35
+ private __rotation;
36
+ private __scale;
37
+ private position;
38
+ private rotation;
39
+ private scale;
40
+ helperRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
41
+ debug: import("@angular/core").Signal<boolean>;
42
+ depthTest: import("@angular/core").Signal<boolean>;
43
+ polygonOffsetFactor: import("@angular/core").Signal<number>;
44
+ map: import("@angular/core").Signal<THREE.Texture | undefined>;
45
+ constructor();
46
+ private processDecal;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsDecal, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsDecal, "ngts-decal", never, { "decalRef": { "alias": "decalRef"; "required": false; }; "_debug": { "alias": "debug"; "required": false; }; "_mesh": { "alias": "mesh"; "required": false; }; "_position": { "alias": "position"; "required": false; }; "_rotation": { "alias": "rotation"; "required": false; }; "_scale": { "alias": "scale"; "required": false; }; "_map": { "alias": "map"; "required": false; }; "_polygonOffsetFactor": { "alias": "polygonOffsetFactor"; "required": false; }; "_depthTest": { "alias": "depthTest"; "required": false; }; }, {}, never, ["*"], true, never>;
49
+ }
@@ -1,4 +1,4 @@
1
- import { Injector } from '@angular/core';
1
+ import { type Injector } from '@angular/core';
2
2
  import * as THREE from 'three';
3
3
  export interface NgtsDepthBufferParams {
4
4
  size: number;
@@ -6,4 +6,4 @@ export interface NgtsDepthBufferParams {
6
6
  }
7
7
  export declare function injectNgtsDepthBuffer(paramsFactory?: () => Partial<NgtsDepthBufferParams>, { injector }?: {
8
8
  injector?: Injector;
9
- }): import("@angular/core").Signal<THREE.DepthTexture>;
9
+ }): import("angular-three").NgtInjectedRef<THREE.DepthTexture | null>;
@@ -0,0 +1,81 @@
1
+ import { Group } from 'three';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * define states of a component. usually acts for inputs signalStore
5
+ */
6
+ export type NgtsExampleState = {
7
+ font: string;
8
+ color: THREE.ColorRepresentation;
9
+ debug: boolean;
10
+ bevelSize: number;
11
+ };
12
+ /**
13
+ * We can setup public API for this soba component with createInjectionToken + forwardRef
14
+ * the `example.api` is **usually** a computed property in the component class
15
+ *
16
+ * @see Bounds for example
17
+ */
18
+ export declare const injectNgtsExampleApi: {
19
+ (): import("@angular/core").Signal<{
20
+ bevelSize: number;
21
+ increment: () => void;
22
+ decrement: () => void;
23
+ }>;
24
+ (injectOptions: import("@angular/core").InjectOptions & {
25
+ optional?: false | undefined;
26
+ }): import("@angular/core").Signal<{
27
+ bevelSize: number;
28
+ increment: () => void;
29
+ decrement: () => void;
30
+ }>;
31
+ (injectOptions: import("@angular/core").InjectOptions): import("@angular/core").Signal<{
32
+ bevelSize: number;
33
+ increment: () => void;
34
+ decrement: () => void;
35
+ }> | null;
36
+ }, provideNgtsExampleApi: (value?: import("@angular/core").Signal<{
37
+ bevelSize: number;
38
+ increment: () => void;
39
+ decrement: () => void;
40
+ }> | undefined) => import("@angular/core").Provider;
41
+ export declare class NgtsExample {
42
+ /**
43
+ * use signalStore to store inputs with default inputs
44
+ */
45
+ private inputs;
46
+ /**
47
+ * a soba component usually has a Input for the component ref and this Input always has a default value with injectNgtRef
48
+ */
49
+ exampleRef: import("angular-three").NgtInjectedRef<Group>;
50
+ /**
51
+ * setup Input for the Inputs state. Use alias to have an easier time to setup computed
52
+ *
53
+ * @example: this way "private font" and "set _font" won't conflict
54
+ * private font = this.inputs.select('font');
55
+ */
56
+ set _font(font: string);
57
+ set _color(color: THREE.ColorRepresentation);
58
+ set _debug(debug: boolean);
59
+ set _bevelSize(bevelSize: number);
60
+ /**
61
+ * exposes signals from inputs
62
+ */
63
+ bevelSize: import("@angular/core").Signal<number>;
64
+ font: import("@angular/core").Signal<string>;
65
+ debug: import("@angular/core").Signal<boolean>;
66
+ color: import("@angular/core").Signal<import("three").ColorRepresentation>;
67
+ /**
68
+ * can have internal state
69
+ */
70
+ count: import("@angular/core").WritableSignal<number>;
71
+ /**
72
+ * Expose the public API for this soba component
73
+ */
74
+ api: import("@angular/core").Signal<{
75
+ bevelSize: number;
76
+ increment: () => void;
77
+ decrement: () => void;
78
+ }>;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsExample, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsExample, "ngts-example", never, { "exampleRef": { "alias": "exampleRef"; "required": false; }; "_font": { "alias": "font"; "required": true; }; "_color": { "alias": "color"; "required": false; }; "_debug": { "alias": "debug"; "required": false; }; "_bevelSize": { "alias": "bevelSize"; "required": false; }; }, {}, never, ["*"], true, never>;
81
+ }
package/misc/fbo/fbo.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Injector } from '@angular/core';
1
+ import { type Injector } from '@angular/core';
2
2
  import * as THREE from 'three';
3
3
  interface FBOSettings extends THREE.WebGLRenderTargetOptions {
4
4
  /** Defines the count of MSAA samples. Can only be used with WebGL 2. Default: 0 */
@@ -13,5 +13,5 @@ export interface NgtsFBOParams {
13
13
  }
14
14
  export declare function injectNgtsFBO(fboParams: () => NgtsFBOParams, { injector }?: {
15
15
  injector?: Injector;
16
- }): import("@angular/core").Signal<THREE.WebGLRenderTarget>;
16
+ }): import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
17
17
  export {};