angular-three-soba 1.14.1 → 2.0.0-beta.11

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 (426) hide show
  1. package/README.md +2 -2
  2. package/abstractions/billboard/billboard.d.ts +28 -0
  3. package/abstractions/detailed/detailed.d.ts +26 -0
  4. package/abstractions/edges/edges.d.ts +34 -0
  5. package/abstractions/grid/grid.d.ts +50 -0
  6. package/abstractions/index.d.ts +6 -11
  7. package/abstractions/text/text.d.ts +82 -0
  8. package/abstractions/text-3d/text-3d.d.ts +81 -0
  9. package/cameras/{lib/camera → camera}/camera-content.d.ts +2 -2
  10. package/cameras/camera/camera.d.ts +26 -0
  11. package/cameras/cube-camera/cube-camera.d.ts +69 -0
  12. package/cameras/index.d.ts +4 -4
  13. package/cameras/orthographic-camera/orthographic-camera.d.ts +37 -0
  14. package/cameras/{lib/perspective-camera → perspective-camera}/perspective-camera.d.ts +10 -1
  15. package/controls/index.d.ts +1 -1
  16. package/controls/orbit-controls/orbit-controls.d.ts +54 -0
  17. package/esm2022/abstractions/angular-three-soba-abstractions.mjs +1 -1
  18. package/esm2022/abstractions/billboard/billboard.mjs +74 -0
  19. package/esm2022/abstractions/detailed/detailed.mjs +64 -0
  20. package/esm2022/abstractions/edges/edges.mjs +88 -0
  21. package/esm2022/abstractions/grid/grid.mjs +180 -0
  22. package/esm2022/abstractions/index.mjs +7 -12
  23. package/esm2022/abstractions/text/text.mjs +274 -0
  24. package/esm2022/abstractions/text-3d/text-3d.mjs +165 -0
  25. package/esm2022/angular-three-soba.mjs +1 -1
  26. package/esm2022/cameras/angular-three-soba-cameras.mjs +1 -1
  27. package/esm2022/cameras/camera/camera-content.mjs +20 -0
  28. package/esm2022/cameras/camera/camera.mjs +77 -0
  29. package/esm2022/cameras/cube-camera/cube-camera.mjs +161 -0
  30. package/esm2022/cameras/index.mjs +5 -5
  31. package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +102 -0
  32. package/esm2022/cameras/perspective-camera/perspective-camera.mjs +46 -0
  33. package/esm2022/controls/angular-three-soba-controls.mjs +1 -1
  34. package/esm2022/controls/index.mjs +2 -2
  35. package/esm2022/controls/orbit-controls/orbit-controls.mjs +181 -0
  36. package/esm2022/index.mjs +1 -1
  37. package/esm2022/loaders/angular-three-soba-loaders.mjs +1 -1
  38. package/esm2022/loaders/gltf-loader/gltf-loader.mjs +30 -0
  39. package/esm2022/loaders/index.mjs +5 -6
  40. package/esm2022/loaders/loader/loader.mjs +138 -0
  41. package/esm2022/loaders/progress/progress.mjs +45 -0
  42. package/esm2022/loaders/texture-loader/texture-loader.mjs +28 -0
  43. package/esm2022/materials/angular-three-soba-materials.mjs +1 -1
  44. package/esm2022/materials/index.mjs +7 -6
  45. package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +82 -0
  46. package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +367 -0
  47. package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +171 -0
  48. package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +278 -0
  49. package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +68 -0
  50. package/esm2022/materials/point-material/point-material.mjs +46 -0
  51. package/esm2022/misc/angular-three-soba-misc.mjs +1 -1
  52. package/esm2022/misc/animations/animations.mjs +59 -0
  53. package/esm2022/misc/bake-shadows/bake-shadows.mjs +24 -0
  54. package/esm2022/misc/caustics/caustics.mjs +387 -0
  55. package/esm2022/misc/decal/decal.mjs +187 -0
  56. package/esm2022/misc/depth-buffer/depth-buffer.mjs +44 -0
  57. package/esm2022/misc/example/example.mjs +160 -0
  58. package/esm2022/misc/fbo/fbo.mjs +47 -0
  59. package/esm2022/misc/html/html-wrapper.mjs +478 -0
  60. package/esm2022/misc/html/html.mjs +304 -0
  61. package/esm2022/misc/index.mjs +14 -5
  62. package/esm2022/misc/sampler/sampler.mjs +142 -0
  63. package/esm2022/misc/shadow/shadow.mjs +111 -0
  64. package/esm2022/misc/stats-gl/stats-gl.mjs +61 -0
  65. package/esm2022/misc/trail/trail.mjs +209 -0
  66. package/esm2022/misc/trail-texture/inject-trail-texture.mjs +17 -0
  67. package/esm2022/misc/trail-texture/trail-texture.mjs +106 -0
  68. package/esm2022/modifiers/angular-three-soba-modifiers.mjs +5 -0
  69. package/esm2022/modifiers/curve-modifier/curve-modifier.mjs +64 -0
  70. package/esm2022/modifiers/index.mjs +2 -0
  71. package/esm2022/performances/adaptive-dpr/adaptive-dpr.mjs +44 -0
  72. package/esm2022/performances/adaptive-events/adaptive-events.mjs +27 -0
  73. package/esm2022/performances/angular-three-soba-performances.mjs +5 -0
  74. package/esm2022/performances/index.mjs +6 -0
  75. package/esm2022/performances/points/points-input.mjs +64 -0
  76. package/esm2022/performances/points/points.mjs +329 -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/angular-three-soba-shaders.mjs +1 -1
  81. package/esm2022/shaders/blur-pass/blur-pass.mjs +61 -0
  82. package/esm2022/shaders/caustics/caustics-material.mjs +130 -0
  83. package/esm2022/shaders/caustics/caustics-projection-material.mjs +31 -0
  84. package/esm2022/shaders/convolution-material/convolution-material.mjs +94 -0
  85. package/esm2022/shaders/discard-material/discard-material.mjs +3 -0
  86. package/esm2022/shaders/grid-material/grid-material.mjs +77 -0
  87. package/esm2022/shaders/index.mjs +18 -15
  88. package/esm2022/shaders/mesh-distort-material/mesh-distort-material.mjs +56 -0
  89. package/esm2022/shaders/mesh-reflector-material/mesh-reflector-material.mjs +223 -0
  90. package/esm2022/shaders/mesh-refraction-material/mesh-refraction-material.mjs +170 -0
  91. package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +268 -0
  92. package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +37 -0
  93. package/esm2022/shaders/shader-material/shader-material.mjs +34 -0
  94. package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +25 -0
  95. package/esm2022/shaders/sparkles-material/sparkles-material.mjs +33 -0
  96. package/esm2022/shaders/spot-light-material/spot-light-material.mjs +86 -0
  97. package/esm2022/shaders/star-field-material/star-field-material.mjs +33 -0
  98. package/esm2022/shaders/wireframe-material/wireframe-material.mjs +247 -0
  99. package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +267 -0
  100. package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +108 -0
  101. package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +206 -0
  102. package/esm2022/staging/angular-three-soba-staging.mjs +1 -1
  103. package/esm2022/staging/backdrop/backdrop.mjs +77 -0
  104. package/esm2022/staging/bb-anchor/bb-anchor.mjs +69 -0
  105. package/esm2022/staging/bounds/bounds.mjs +308 -0
  106. package/esm2022/staging/camera-shake/camera-shake.mjs +123 -0
  107. package/esm2022/staging/center/center.mjs +163 -0
  108. package/esm2022/staging/cloud/cloud.mjs +158 -0
  109. package/esm2022/staging/contact-shadows/contact-shadows.mjs +246 -0
  110. package/esm2022/staging/environment/assets.mjs +13 -0
  111. package/esm2022/staging/environment/environment-cube.mjs +47 -0
  112. package/esm2022/staging/environment/environment-ground.mjs +41 -0
  113. package/esm2022/staging/environment/environment-input.mjs +119 -0
  114. package/esm2022/staging/environment/environment-map.mjs +53 -0
  115. package/esm2022/staging/environment/environment-portal.mjs +113 -0
  116. package/esm2022/staging/environment/environment.mjs +61 -0
  117. package/esm2022/staging/environment/utils.mjs +105 -0
  118. package/esm2022/staging/float/float.mjs +94 -0
  119. package/esm2022/staging/index.mjs +22 -18
  120. package/esm2022/staging/matcap-texture/matcap-texture.mjs +64 -0
  121. package/esm2022/staging/normal-texture/normal-texture.mjs +53 -0
  122. package/esm2022/staging/sky/sky.mjs +119 -0
  123. package/esm2022/staging/sparkles/sparkles.mjs +164 -0
  124. package/esm2022/staging/spot-light/shadow-mesh-input.mjs +63 -0
  125. package/esm2022/staging/spot-light/shadow-mesh.mjs +266 -0
  126. package/esm2022/staging/spot-light/spot-light-input.mjs +84 -0
  127. package/esm2022/staging/spot-light/spot-light.mjs +81 -0
  128. package/esm2022/staging/spot-light/volumetric-mesh.mjs +98 -0
  129. package/esm2022/staging/stage/stage.mjs +388 -0
  130. package/esm2022/staging/stars/stars.mjs +147 -0
  131. package/esm2022/staging/wireframe/wireframe-input.mjs +191 -0
  132. package/esm2022/staging/wireframe/wireframe.mjs +224 -0
  133. package/esm2022/utils/angular-three-soba-utils.mjs +5 -0
  134. package/esm2022/utils/content/content.mjs +15 -0
  135. package/esm2022/utils/index.mjs +2 -0
  136. package/fesm2022/angular-three-soba-abstractions.mjs +668 -1882
  137. package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
  138. package/fesm2022/angular-three-soba-cameras.mjs +279 -232
  139. package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
  140. package/fesm2022/angular-three-soba-controls.mjs +104 -69
  141. package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
  142. package/fesm2022/angular-three-soba-loaders.mjs +177 -164
  143. package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
  144. package/fesm2022/angular-three-soba-materials.mjs +630 -482
  145. package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
  146. package/fesm2022/angular-three-soba-misc.mjs +2248 -122
  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 +697 -0
  151. package/fesm2022/angular-three-soba-performances.mjs.map +1 -0
  152. package/fesm2022/angular-three-soba-shaders.mjs +554 -209
  153. package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
  154. package/fesm2022/angular-three-soba-staging.mjs +3230 -2852
  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/fesm2022/angular-three-soba.mjs.map +1 -1
  159. package/loaders/gltf-loader/gltf-loader.d.ts +10 -0
  160. package/loaders/index.d.ts +4 -5
  161. package/loaders/loader/loader.d.ts +33 -0
  162. package/loaders/progress/progress.d.ts +9 -0
  163. package/loaders/texture-loader/texture-loader.d.ts +7 -0
  164. package/materials/index.d.ts +6 -5
  165. package/materials/mesh-distort-material/mesh-distort-material.d.ts +40 -0
  166. package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +99 -0
  167. package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +62 -0
  168. package/materials/mesh-transmission-material/mesh-transmission-material.d.ts +107 -0
  169. package/materials/mesh-wobble-material/mesh-wobble-material.d.ts +29 -0
  170. package/materials/point-material/point-material.d.ts +24 -0
  171. package/metadata.json +1 -0
  172. package/misc/animations/animations.d.ts +15 -0
  173. package/misc/{lib/bake-shadows → bake-shadows}/bake-shadows.d.ts +2 -5
  174. package/misc/caustics/caustics.d.ts +87 -0
  175. package/misc/decal/decal.d.ts +49 -0
  176. package/misc/depth-buffer/depth-buffer.d.ts +9 -0
  177. package/misc/example/example.d.ts +81 -0
  178. package/misc/{lib/fbo → fbo}/fbo.d.ts +4 -2
  179. package/misc/html/html-wrapper.d.ts +559 -0
  180. package/misc/html/html.d.ts +214 -0
  181. package/misc/index.d.ts +13 -4
  182. package/misc/sampler/sampler.d.ts +67 -0
  183. package/misc/shadow/shadow.d.ts +37 -0
  184. package/misc/stats-gl/stats-gl.d.ts +24 -0
  185. package/misc/trail/trail.d.ts +57 -0
  186. package/misc/trail-texture/inject-trail-texture.d.ts +9 -0
  187. package/misc/trail-texture/trail-texture.d.ts +50 -0
  188. package/modifiers/README.md +3 -0
  189. package/modifiers/curve-modifier/curve-modifier.d.ts +23 -0
  190. package/modifiers/index.d.ts +1 -0
  191. package/package.json +43 -32
  192. package/performances/README.md +3 -0
  193. package/performances/adaptive-dpr/adaptive-dpr.d.ts +14 -0
  194. package/{performance/lib/adaptive → performances/adaptive-events}/adaptive-events.d.ts +5 -6
  195. package/performances/index.d.ts +5 -0
  196. package/performances/points/points-input.d.ts +32 -0
  197. package/performances/points/points.d.ts +92 -0
  198. package/performances/points/position-point.d.ts +11 -0
  199. package/performances/segments/segment-object.d.ts +7 -0
  200. package/performances/segments/segments.d.ts +124 -0
  201. package/shaders/{lib/blur-pass → blur-pass}/blur-pass.d.ts +2 -2
  202. package/shaders/grid-material/grid-material.d.ts +37 -0
  203. package/shaders/index.d.ts +17 -14
  204. package/shaders/{lib/mesh-distort-material → mesh-distort-material}/mesh-distort-material.d.ts +147 -2
  205. package/shaders/{lib/mesh-transmission-material → mesh-transmission-material}/mesh-transmission-material.d.ts +1 -1
  206. package/shaders/{lib/mesh-wobble-material → mesh-wobble-material}/mesh-wobble-material.d.ts +1 -0
  207. package/shaders/{lib/shader-material → shader-material}/shader-material.d.ts +2 -2
  208. package/shaders/soft-shadow-material/soft-shadow-material.d.ts +19 -0
  209. package/shaders/sparkles-material/sparkles-material.d.ts +17 -0
  210. package/shaders/spot-light-material/spot-light-material.d.ts +13 -0
  211. package/shaders/star-field-material/star-field-material.d.ts +13 -0
  212. package/shaders/wireframe-material/wireframe-material.d.ts +58 -0
  213. package/staging/accumulative-shadows/accumulative-shadows.d.ts +146 -0
  214. package/staging/{lib/accumulative-shadows → accumulative-shadows}/progressive-light-map.d.ts +2 -2
  215. package/staging/accumulative-shadows/randomized-lights.d.ts +90 -0
  216. package/staging/backdrop/backdrop.d.ts +30 -0
  217. package/staging/bb-anchor/bb-anchor.d.ts +27 -0
  218. package/staging/bounds/bounds.d.ts +134 -0
  219. package/staging/camera-shake/camera-shake.d.ts +43 -0
  220. package/staging/center/center.d.ts +70 -0
  221. package/staging/cloud/cloud.d.ts +51 -0
  222. package/staging/contact-shadows/contact-shadows.d.ts +70 -0
  223. package/staging/{lib/environment → environment}/assets.d.ts +9 -9
  224. package/staging/environment/environment-cube.d.ts +15 -0
  225. package/staging/environment/environment-ground.d.ts +13 -0
  226. package/staging/environment/environment-input.d.ts +68 -0
  227. package/staging/environment/environment-map.d.ts +16 -0
  228. package/staging/environment/environment-portal.d.ts +18 -0
  229. package/staging/{lib/environment → environment}/environment.d.ts +2 -6
  230. package/staging/environment/utils.d.ts +7 -0
  231. package/staging/float/float.d.ts +31 -0
  232. package/staging/index.d.ts +21 -17
  233. package/staging/matcap-texture/matcap-texture.d.ts +13 -0
  234. package/staging/normal-texture/normal-texture.d.ts +16 -0
  235. package/staging/sky/sky.d.ts +48 -0
  236. package/staging/sparkles/sparkles.d.ts +63 -0
  237. package/staging/spot-light/shadow-mesh-input.d.ts +29 -0
  238. package/staging/spot-light/shadow-mesh.d.ts +37 -0
  239. package/staging/spot-light/spot-light-input.d.ts +38 -0
  240. package/staging/spot-light/spot-light.d.ts +39 -0
  241. package/staging/spot-light/volumetric-mesh.d.ts +24 -0
  242. package/staging/stage/stage.d.ts +130 -0
  243. package/staging/stars/stars.d.ts +45 -0
  244. package/staging/wireframe/wireframe-input.d.ts +65 -0
  245. package/staging/wireframe/wireframe.d.ts +28 -0
  246. package/utils/README.md +3 -0
  247. package/utils/content/content.d.ts +8 -0
  248. package/utils/index.d.ts +1 -0
  249. package/web-types.json +1 -0
  250. package/abstractions/lib/billboard/billboard.d.ts +0 -14
  251. package/abstractions/lib/catmull-rom-line/catmull-rom-line.d.ts +0 -15
  252. package/abstractions/lib/cubic-bezier-line/cubic-bezier-line.d.ts +0 -15
  253. package/abstractions/lib/edges/edges.d.ts +0 -18
  254. package/abstractions/lib/gizmo-helper/gizmo-helper.d.ts +0 -41
  255. package/abstractions/lib/gizmo-helper/gizmo-viewcube/constants.d.ts +0 -12
  256. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -16
  257. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -24
  258. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +0 -14
  259. package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +0 -15
  260. package/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +0 -28
  261. package/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +0 -21
  262. package/abstractions/lib/line/line-input.d.ts +0 -19
  263. package/abstractions/lib/line/line.d.ts +0 -21
  264. package/abstractions/lib/quadratic-bezier-line/quadratic-bezier-line.d.ts +0 -19
  265. package/abstractions/lib/text/text.d.ts +0 -21
  266. package/abstractions/lib/text-3d/text-3d.d.ts +0 -39
  267. package/assets/default-spot-light-shadow.glsl +0 -10
  268. package/cameras/lib/camera/camera.d.ts +0 -19
  269. package/cameras/lib/cube-camera/cube-camera.d.ts +0 -27
  270. package/cameras/lib/orthographic-camera/orthographic-camera.d.ts +0 -17
  271. package/controls/lib/orbit-controls/orbit-controls.d.ts +0 -27
  272. package/esm2022/abstractions/lib/billboard/billboard.mjs +0 -74
  273. package/esm2022/abstractions/lib/catmull-rom-line/catmull-rom-line.mjs +0 -120
  274. package/esm2022/abstractions/lib/cubic-bezier-line/cubic-bezier-line.mjs +0 -99
  275. package/esm2022/abstractions/lib/edges/edges.mjs +0 -96
  276. package/esm2022/abstractions/lib/gizmo-helper/gizmo-helper.mjs +0 -213
  277. package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
  278. package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -92
  279. package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -184
  280. package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +0 -46
  281. package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -134
  282. package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -195
  283. package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -267
  284. package/esm2022/abstractions/lib/line/line-input.mjs +0 -76
  285. package/esm2022/abstractions/lib/line/line.mjs +0 -133
  286. package/esm2022/abstractions/lib/quadratic-bezier-line/quadratic-bezier-line.mjs +0 -128
  287. package/esm2022/abstractions/lib/text/text.mjs +0 -115
  288. package/esm2022/abstractions/lib/text-3d/text-3d.mjs +0 -145
  289. package/esm2022/cameras/lib/camera/camera-content.mjs +0 -21
  290. package/esm2022/cameras/lib/camera/camera.mjs +0 -75
  291. package/esm2022/cameras/lib/cube-camera/cube-camera.mjs +0 -131
  292. package/esm2022/cameras/lib/orthographic-camera/orthographic-camera.mjs +0 -93
  293. package/esm2022/cameras/lib/perspective-camera/perspective-camera.mjs +0 -47
  294. package/esm2022/controls/lib/orbit-controls/orbit-controls.mjs +0 -147
  295. package/esm2022/loaders/lib/cube-texture-loader/cube-texture-loader.mjs +0 -10
  296. package/esm2022/loaders/lib/gltf-loader/gltf-loader.mjs +0 -32
  297. package/esm2022/loaders/lib/loader/loader.mjs +0 -134
  298. package/esm2022/loaders/lib/progress/progress.mjs +0 -39
  299. package/esm2022/loaders/lib/texture-loader/texture-loader.mjs +0 -19
  300. package/esm2022/materials/lib/mesh-distort-material/mesh-distort-material.mjs +0 -75
  301. package/esm2022/materials/lib/mesh-reflector-material/mesh-reflector-material.mjs +0 -328
  302. package/esm2022/materials/lib/mesh-refraction-material/mesh-refraction-material.mjs +0 -158
  303. package/esm2022/materials/lib/mesh-transmission-material/mesh-transmission-material.mjs +0 -238
  304. package/esm2022/materials/lib/mesh-wobble-material/mesh-wobble-material.mjs +0 -68
  305. package/esm2022/misc/lib/animations/animations.mjs +0 -52
  306. package/esm2022/misc/lib/bake-shadows/bake-shadows.mjs +0 -26
  307. package/esm2022/misc/lib/depth-buffer/depth-buffer.mjs +0 -39
  308. package/esm2022/misc/lib/fbo/fbo.mjs +0 -39
  309. package/esm2022/performance/angular-three-soba-performance.mjs +0 -5
  310. package/esm2022/performance/index.mjs +0 -5
  311. package/esm2022/performance/lib/adaptive/adaptive-dpr.mjs +0 -47
  312. package/esm2022/performance/lib/adaptive/adaptive-events.mjs +0 -37
  313. package/esm2022/performance/lib/detailed/detailed.mjs +0 -54
  314. package/esm2022/performance/lib/stats/stats.mjs +0 -80
  315. package/esm2022/shaders/lib/blur-pass/blur-pass.mjs +0 -61
  316. package/esm2022/shaders/lib/caustics-material/caustics-material.mjs +0 -128
  317. package/esm2022/shaders/lib/caustics-projection-material/caustics-projection-material.mjs +0 -33
  318. package/esm2022/shaders/lib/convolution-material/convolution-material.mjs +0 -94
  319. package/esm2022/shaders/lib/discard-material/discard-material.mjs +0 -3
  320. package/esm2022/shaders/lib/mesh-distort-material/mesh-distort-material.mjs +0 -55
  321. package/esm2022/shaders/lib/mesh-reflector-material/mesh-reflector-material.mjs +0 -223
  322. package/esm2022/shaders/lib/mesh-refraction-material/mesh-refraction-material.mjs +0 -169
  323. package/esm2022/shaders/lib/mesh-transmission-material/mesh-transmission-material.mjs +0 -268
  324. package/esm2022/shaders/lib/mesh-wobble-material/mesh-wobble-material.mjs +0 -37
  325. package/esm2022/shaders/lib/shader-material/shader-material.mjs +0 -34
  326. package/esm2022/shaders/lib/soft-shadow-material/soft-shadow-material.mjs +0 -33
  327. package/esm2022/shaders/lib/spot-light-material/spot-light-material.mjs +0 -86
  328. package/esm2022/shaders/lib/star-field-material/star-field-material.mjs +0 -32
  329. package/esm2022/staging/lib/accumulative-shadows/accumulative-shadows.mjs +0 -249
  330. package/esm2022/staging/lib/accumulative-shadows/progressive-light-map.mjs +0 -108
  331. package/esm2022/staging/lib/accumulative-shadows/randomized-lights.mjs +0 -201
  332. package/esm2022/staging/lib/bounds/bounds.mjs +0 -284
  333. package/esm2022/staging/lib/camera-shake/camera-shake.mjs +0 -122
  334. package/esm2022/staging/lib/caustics/caustics.mjs +0 -364
  335. package/esm2022/staging/lib/center/center.mjs +0 -143
  336. package/esm2022/staging/lib/cloud/cloud.mjs +0 -160
  337. package/esm2022/staging/lib/contact-shadows/contact-shadows.mjs +0 -228
  338. package/esm2022/staging/lib/environment/assets.mjs +0 -13
  339. package/esm2022/staging/lib/environment/environment-cube.mjs +0 -41
  340. package/esm2022/staging/lib/environment/environment-ground.mjs +0 -67
  341. package/esm2022/staging/lib/environment/environment-inputs.mjs +0 -87
  342. package/esm2022/staging/lib/environment/environment-map.mjs +0 -39
  343. package/esm2022/staging/lib/environment/environment-portal.mjs +0 -111
  344. package/esm2022/staging/lib/environment/environment.mjs +0 -165
  345. package/esm2022/staging/lib/environment/utils.mjs +0 -70
  346. package/esm2022/staging/lib/float/float.mjs +0 -77
  347. package/esm2022/staging/lib/sky/sky.mjs +0 -109
  348. package/esm2022/staging/lib/sparkles/sparkles.mjs +0 -210
  349. package/esm2022/staging/lib/spot-light/common.mjs +0 -42
  350. package/esm2022/staging/lib/spot-light/shadow-mesh-input.mjs +0 -51
  351. package/esm2022/staging/lib/spot-light/spot-light-input.mjs +0 -62
  352. package/esm2022/staging/lib/spot-light/spot-light-shadow-no-shader.mjs +0 -74
  353. package/esm2022/staging/lib/spot-light/spot-light-shadow-shader.mjs +0 -126
  354. package/esm2022/staging/lib/spot-light/spot-light-shadow.mjs +0 -63
  355. package/esm2022/staging/lib/spot-light/spot-light.mjs +0 -117
  356. package/esm2022/staging/lib/spot-light/volumetric-mesh.mjs +0 -86
  357. package/esm2022/staging/lib/stage/stage.mjs +0 -368
  358. package/esm2022/staging/lib/stars/stars.mjs +0 -140
  359. package/fesm2022/angular-three-soba-performance.mjs +0 -210
  360. package/fesm2022/angular-three-soba-performance.mjs.map +0 -1
  361. package/loaders/lib/cube-texture-loader/cube-texture-loader.d.ts +0 -3
  362. package/loaders/lib/gltf-loader/gltf-loader.d.ts +0 -8
  363. package/loaders/lib/loader/loader.d.ts +0 -26
  364. package/loaders/lib/progress/progress.d.ts +0 -16
  365. package/loaders/lib/texture-loader/texture-loader.d.ts +0 -5
  366. package/materials/lib/mesh-distort-material/mesh-distort-material.d.ts +0 -24
  367. package/materials/lib/mesh-reflector-material/mesh-reflector-material.d.ts +0 -41
  368. package/materials/lib/mesh-refraction-material/mesh-refraction-material.d.ts +0 -28
  369. package/materials/lib/mesh-transmission-material/mesh-transmission-material.d.ts +0 -46
  370. package/materials/lib/mesh-wobble-material/mesh-wobble-material.d.ts +0 -14
  371. package/misc/lib/animations/animations.d.ts +0 -13
  372. package/misc/lib/depth-buffer/depth-buffer.d.ts +0 -7
  373. package/performance/README.md +0 -3
  374. package/performance/index.d.ts +0 -4
  375. package/performance/lib/adaptive/adaptive-dpr.d.ts +0 -11
  376. package/performance/lib/detailed/detailed.d.ts +0 -13
  377. package/performance/lib/stats/stats.d.ts +0 -15
  378. package/plugin/README.md +0 -11
  379. package/plugin/generators.json +0 -19
  380. package/plugin/package.json +0 -9
  381. package/plugin/src/generators/init/compat.d.ts +0 -2
  382. package/plugin/src/generators/init/compat.js +0 -6
  383. package/plugin/src/generators/init/compat.js.map +0 -1
  384. package/plugin/src/generators/init/init.d.ts +0 -4
  385. package/plugin/src/generators/init/init.js +0 -22
  386. package/plugin/src/generators/init/init.js.map +0 -1
  387. package/plugin/src/generators/init/schema.json +0 -6
  388. package/plugin/src/index.d.ts +0 -1
  389. package/plugin/src/index.js +0 -6
  390. package/plugin/src/index.js.map +0 -1
  391. package/shaders/lib/soft-shadow-material/soft-shadow-material.d.ts +0 -10
  392. package/shaders/lib/spot-light-material/spot-light-material.d.ts +0 -4
  393. package/shaders/lib/star-field-material/star-field-material.d.ts +0 -3
  394. package/staging/lib/accumulative-shadows/accumulative-shadows.d.ts +0 -58
  395. package/staging/lib/accumulative-shadows/randomized-lights.d.ts +0 -42
  396. package/staging/lib/bounds/bounds.d.ts +0 -48
  397. package/staging/lib/camera-shake/camera-shake.d.ts +0 -28
  398. package/staging/lib/caustics/caustics.d.ts +0 -47
  399. package/staging/lib/center/center.d.ts +0 -40
  400. package/staging/lib/cloud/cloud.d.ts +0 -23
  401. package/staging/lib/contact-shadows/contact-shadows.d.ts +0 -29
  402. package/staging/lib/environment/environment-cube.d.ts +0 -11
  403. package/staging/lib/environment/environment-ground.d.ts +0 -9
  404. package/staging/lib/environment/environment-inputs.d.ts +0 -28
  405. package/staging/lib/environment/environment-map.d.ts +0 -10
  406. package/staging/lib/environment/environment-portal.d.ts +0 -15
  407. package/staging/lib/environment/utils.d.ts +0 -8
  408. package/staging/lib/float/float.d.ts +0 -16
  409. package/staging/lib/sky/sky.d.ts +0 -20
  410. package/staging/lib/sparkles/sparkles.d.ts +0 -29
  411. package/staging/lib/spot-light/common.d.ts +0 -3
  412. package/staging/lib/spot-light/shadow-mesh-input.d.ts +0 -14
  413. package/staging/lib/spot-light/spot-light-input.d.ts +0 -16
  414. package/staging/lib/spot-light/spot-light-shadow-no-shader.d.ts +0 -14
  415. package/staging/lib/spot-light/spot-light-shadow-shader.d.ts +0 -25
  416. package/staging/lib/spot-light/spot-light-shadow.d.ts +0 -6
  417. package/staging/lib/spot-light/spot-light.d.ts +0 -17
  418. package/staging/lib/spot-light/volumetric-mesh.d.ts +0 -15
  419. package/staging/lib/stage/stage.d.ts +0 -87
  420. package/staging/lib/stars/stars.d.ts +0 -20
  421. /package/shaders/{lib/caustics-material → caustics}/caustics-material.d.ts +0 -0
  422. /package/shaders/{lib/caustics-projection-material → caustics}/caustics-projection-material.d.ts +0 -0
  423. /package/shaders/{lib/convolution-material → convolution-material}/convolution-material.d.ts +0 -0
  424. /package/shaders/{lib/discard-material → discard-material}/discard-material.d.ts +0 -0
  425. /package/shaders/{lib/mesh-reflector-material → mesh-reflector-material}/mesh-reflector-material.d.ts +0 -0
  426. /package/shaders/{lib/mesh-refraction-material → mesh-refraction-material}/mesh-refraction-material.d.ts +0 -0
@@ -0,0 +1,16 @@
1
+ import { type Injector, type Signal } from '@angular/core';
2
+ import * as THREE from 'three';
3
+ export type NgtsNormalTextureState = {
4
+ id: string | number;
5
+ repeat: number[];
6
+ anisotropy: number;
7
+ offset: number[];
8
+ onLoad?: (texture: THREE.Texture | THREE.Texture[]) => void;
9
+ };
10
+ export declare function injectNgtsNormalTexture(normalTextureState: () => Partial<NgtsNormalTextureState>, { injector }?: {
11
+ injector?: Injector;
12
+ }): {
13
+ texture: Signal<THREE.Texture | null>;
14
+ numTot: () => number;
15
+ url: () => string;
16
+ };
@@ -0,0 +1,48 @@
1
+ import { type NgtMesh } from 'angular-three';
2
+ import * as THREE from 'three';
3
+ import { Sky } from 'three-stdlib';
4
+ import * as i0 from "@angular/core";
5
+ export interface NgtsSkyState {
6
+ distance: number;
7
+ sunPosition: THREE.Vector3 | Parameters<THREE.Vector3['set']>;
8
+ inclination: number;
9
+ azimuth: number;
10
+ mieCoefficient: number;
11
+ mieDirectionalG: number;
12
+ rayleigh: number;
13
+ turbidity: number;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ /**
18
+ * @extends three-stdlib|Sky
19
+ * @extends ngt-mesh
20
+ */
21
+ 'ngts-sky': NgtsSkyState & Sky & NgtMesh;
22
+ }
23
+ }
24
+ export declare class NgtsSky {
25
+ private inputs;
26
+ skyRef: import("angular-three").NgtInjectedRef<Sky>;
27
+ set _distance(distance: number);
28
+ set _sunPosition(sunPosition: THREE.Vector3 | Parameters<THREE.Vector3['set']>);
29
+ set _inclination(inclination: number);
30
+ set _azimuth(azimuth: number);
31
+ set _mieCoefficient(mieCoefficient: number);
32
+ set _mieDirectionalG(mieDirectionalG: number);
33
+ set _rayleigh(rayleigh: number);
34
+ set _turbidity(turbidity: number);
35
+ private inclination;
36
+ private azimuth;
37
+ private sunPos;
38
+ private distance;
39
+ sunPosition: import("@angular/core").Signal<THREE.Vector3 | [x: number, y: number, z: number]>;
40
+ scale: import("@angular/core").Signal<THREE.Vector3>;
41
+ mieCoefficient: import("@angular/core").Signal<number>;
42
+ mieDirectionalG: import("@angular/core").Signal<number>;
43
+ rayleigh: import("@angular/core").Signal<number>;
44
+ turbidity: import("@angular/core").Signal<number>;
45
+ sky: Sky;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSky, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSky, "ngts-sky", never, { "skyRef": { "alias": "skyRef"; "required": false; }; "_distance": { "alias": "distance"; "required": false; }; "_sunPosition": { "alias": "sunPosition"; "required": false; }; "_inclination": { "alias": "inclination"; "required": false; }; "_azimuth": { "alias": "azimuth"; "required": false; }; "_mieCoefficient": { "alias": "mieCoefficient"; "required": false; }; "_mieDirectionalG": { "alias": "mieDirectionalG"; "required": false; }; "_rayleigh": { "alias": "rayleigh"; "required": false; }; "_turbidity": { "alias": "turbidity"; "required": false; }; }, {}, never, ["*"], true, never>;
48
+ }
@@ -0,0 +1,63 @@
1
+ import { Signal } from '@angular/core';
2
+ import { type NgtPoints } from 'angular-three';
3
+ import * as THREE from 'three';
4
+ import * as i0 from "@angular/core";
5
+ export type NgtsSparklesState = {
6
+ /** Number of particles (default: 100) */
7
+ count: number;
8
+ /** Speed of particles (default: 1) */
9
+ speed: number | Float32Array;
10
+ /** Opacity of particles (default: 1) */
11
+ opacity: number | Float32Array;
12
+ /** Color of particles (default: 100) */
13
+ color?: THREE.ColorRepresentation | Float32Array;
14
+ /** Size of particles (default: randomized between 0 and 1) */
15
+ size?: number | Float32Array;
16
+ /** The space the particles occupy (default: 1) */
17
+ scale: number | [number, number, number] | THREE.Vector3;
18
+ /** Movement factor (default: 1) */
19
+ noise: number | [number, number, number] | THREE.Vector3 | Float32Array;
20
+ };
21
+ declare global {
22
+ interface HTMLElementTagNameMap {
23
+ /**
24
+ * @extends ngt-points
25
+ */
26
+ 'ngts-sparkles': NgtsSparklesState & NgtPoints;
27
+ }
28
+ }
29
+ export declare class NgtsSparkles {
30
+ private inputs;
31
+ sparklesRef: import("angular-three").NgtInjectedRef<THREE.Points<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
32
+ /** Number of particles (default: 100) */
33
+ set _count(count: number);
34
+ /** Speed of particles (default: 1) */
35
+ set _speed(speed: number | Float32Array);
36
+ /** Opacity of particles (default: 1) */
37
+ set _opacity(opacity: number | Float32Array);
38
+ /** Color of particles (default: 100) */
39
+ set _color(color: THREE.ColorRepresentation | Float32Array);
40
+ /** Size of particles (default: randomized between 0 and 1) */
41
+ set _size(size: number | Float32Array);
42
+ /** The space the particles occupy (default: 1) */
43
+ set _scale(scale: number | [number, number, number] | THREE.Vector3);
44
+ /** Movement factor (default: 1) */
45
+ set _noise(noise: number | [number, number, number] | THREE.Vector3 | Float32Array);
46
+ private store;
47
+ dpr: Signal<number>;
48
+ private scale;
49
+ private count;
50
+ private color;
51
+ positions: Signal<Float32Array>;
52
+ sizes: Signal<Float32Array>;
53
+ opacities: Signal<Float32Array>;
54
+ speeds: Signal<Float32Array>;
55
+ noises: Signal<Float32Array>;
56
+ colors: Signal<Float32Array>;
57
+ key: Signal<string>;
58
+ constructor();
59
+ private beforeRender;
60
+ private getComputed;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSparkles, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSparkles, "ngts-sparkles", never, { "sparklesRef": { "alias": "sparklesRef"; "required": false; }; "_count": { "alias": "count"; "required": false; }; "_speed": { "alias": "speed"; "required": false; }; "_opacity": { "alias": "opacity"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_size": { "alias": "size"; "required": false; }; "_scale": { "alias": "scale"; "required": false; }; "_noise": { "alias": "noise"; "required": false; }; }, {}, never, never, true, never>;
63
+ }
@@ -0,0 +1,29 @@
1
+ import * as i0 from "@angular/core";
2
+ export type NgtsSpotLightShadowMeshInputState = {
3
+ distance: number;
4
+ alphaTest: number;
5
+ scale: number;
6
+ map: THREE.Texture;
7
+ shader: string;
8
+ width: number;
9
+ height: number;
10
+ };
11
+ export declare abstract class NgtsSpotLightShadowMeshInput {
12
+ inputs: import("angular-three").NgtSignalStore<NgtsSpotLightShadowMeshInputState>;
13
+ set _distance(distance: number);
14
+ set _alphaTest(alphaTest: number);
15
+ set _scale(scale: number);
16
+ set _map(map: THREE.Texture);
17
+ set _shader(shader: string);
18
+ set _width(width: number);
19
+ set _height(height: number);
20
+ distance: import("@angular/core").Signal<number>;
21
+ alphaTest: import("@angular/core").Signal<number>;
22
+ scale: import("@angular/core").Signal<number>;
23
+ map: import("@angular/core").Signal<import("three").Texture>;
24
+ shader: import("@angular/core").Signal<string>;
25
+ width: import("@angular/core").Signal<number>;
26
+ height: import("@angular/core").Signal<number>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshInput, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsSpotLightShadowMeshInput, never, never, { "_distance": { "alias": "distance"; "required": false; }; "_alphaTest": { "alias": "alphaTest"; "required": false; }; "_scale": { "alias": "scale"; "required": false; }; "_map": { "alias": "map"; "required": false; }; "_shader": { "alias": "shader"; "required": false; }; "_width": { "alias": "width"; "required": false; }; "_height": { "alias": "height"; "required": false; }; }, {}, never, never, false, never>;
29
+ }
@@ -0,0 +1,37 @@
1
+ import { type NgtInjectedRef } from 'angular-three';
2
+ import * as THREE from 'three';
3
+ import { NgtsSpotLightShadowMeshInput, type NgtsSpotLightShadowMeshInputState } from './shadow-mesh-input';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NgtsSpotLightShadowMeshNoShader {
6
+ shadowMeshInput: NgtsSpotLightShadowMeshInput;
7
+ meshRef: NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
8
+ DoubleSide: 2;
9
+ private spotLightApi;
10
+ debug: import("@angular/core").Signal<boolean>;
11
+ constructor();
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshNoShader, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowMeshNoShader, "ngts-spot-light-shadow-mesh-no-shader", never, {}, {}, never, ["*"], true, never>;
14
+ }
15
+ export declare class NgtsSpotLightShadowMeshShader {
16
+ shadowMeshInput: NgtsSpotLightShadowMeshInput;
17
+ meshRef: NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
18
+ DoubleSide: 2;
19
+ RepeatWrapping: 1000;
20
+ private spotLightApi;
21
+ debug: import("@angular/core").Signal<boolean>;
22
+ renderTarget: import("@angular/core").Signal<THREE.WebGLRenderTarget<THREE.Texture>>;
23
+ private uniforms;
24
+ private fsQuad;
25
+ constructor();
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshShader, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowMeshShader, "ngts-spot-light-shadow-mesh-shader", never, {}, {}, never, ["*"], true, never>;
28
+ }
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'ngts-spot-light-shadow': NgtsSpotLightShadowMeshInputState;
32
+ }
33
+ }
34
+ export declare class NgtsSpotLightShadow extends NgtsSpotLightShadowMeshInput {
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadow, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadow, "ngts-spot-light-shadow", never, {}, {}, never, never, true, never>;
37
+ }
@@ -0,0 +1,38 @@
1
+ import * as i0 from "@angular/core";
2
+ export type NgtsSpotLightInputState = {
3
+ depthBuffer?: THREE.DepthTexture;
4
+ angle: number;
5
+ distance: number;
6
+ attenuation: number;
7
+ anglePower: number;
8
+ radiusTop: number;
9
+ radiusBottom: number;
10
+ opacity: number;
11
+ color: string | number;
12
+ debug: boolean;
13
+ };
14
+ export declare abstract class NgtsSpotLightInput {
15
+ inputs: import("angular-three").NgtSignalStore<NgtsSpotLightInputState>;
16
+ set _depthBuffer(depthBuffer: THREE.DepthTexture);
17
+ set _angle(angle: number);
18
+ set _distance(distance: number);
19
+ set _attenuation(attenuation: number);
20
+ set _anglePower(anglePower: number);
21
+ set _radiusTop(radiusTop: number);
22
+ set _radiusBottom(radiusBottom: number);
23
+ set _opacity(opacity: number);
24
+ set _color(color: string | number);
25
+ set _debug(debug: boolean);
26
+ debug: import("@angular/core").Signal<boolean>;
27
+ color: import("@angular/core").Signal<string | number>;
28
+ opacity: import("@angular/core").Signal<number>;
29
+ radiusBottom: import("@angular/core").Signal<number>;
30
+ radiusTop: import("@angular/core").Signal<number>;
31
+ anglePower: import("@angular/core").Signal<number>;
32
+ attenuation: import("@angular/core").Signal<number>;
33
+ distance: import("@angular/core").Signal<number>;
34
+ angle: import("@angular/core").Signal<number>;
35
+ depthBuffer: import("@angular/core").Signal<import("three").DepthTexture | undefined>;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightInput, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsSpotLightInput, never, never, { "_depthBuffer": { "alias": "depthBuffer"; "required": false; }; "_angle": { "alias": "angle"; "required": false; }; "_distance": { "alias": "distance"; "required": false; }; "_attenuation": { "alias": "attenuation"; "required": false; }; "_anglePower": { "alias": "anglePower"; "required": false; }; "_radiusTop": { "alias": "radiusTop"; "required": false; }; "_radiusBottom": { "alias": "radiusBottom"; "required": false; }; "_opacity": { "alias": "opacity"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_debug": { "alias": "debug"; "required": false; }; }, {}, never, never, false, never>;
38
+ }
@@ -0,0 +1,39 @@
1
+ import { NgtSpotLight } from 'angular-three';
2
+ import { SpotLight } from 'three';
3
+ import { NgtsSpotLightInput, type NgtsSpotLightInputState } from './spot-light-input';
4
+ import * as i0 from "@angular/core";
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ /**
8
+ * @extends ngt-spot-light
9
+ */
10
+ 'ngts-spot-light': NgtsSpotLightInputState & NgtSpotLight;
11
+ }
12
+ }
13
+ export declare const injectNgtsSpotLightApi: {
14
+ (): {
15
+ spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
16
+ debug: import("@angular/core").Signal<boolean>;
17
+ };
18
+ (injectOptions: import("@angular/core").InjectOptions & {
19
+ optional?: false | undefined;
20
+ }): {
21
+ spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
22
+ debug: import("@angular/core").Signal<boolean>;
23
+ };
24
+ (injectOptions: import("@angular/core").InjectOptions): {
25
+ spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
26
+ debug: import("@angular/core").Signal<boolean>;
27
+ } | null;
28
+ }, provideNgtsSpotLightApi: (value?: {
29
+ spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
30
+ debug: import("@angular/core").Signal<boolean>;
31
+ } | undefined) => import("@angular/core").Provider;
32
+ export declare class NgtsSpotLight extends NgtsSpotLightInput {
33
+ spotLightRef: import("angular-three").NgtInjectedRef<SpotLight>;
34
+ volumetric: import("@angular/core").WritableSignal<boolean>;
35
+ set _volumetric(volumetric: boolean);
36
+ constructor();
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLight, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLight, "ngts-spot-light", never, { "spotLightRef": { "alias": "spotLightRef"; "required": false; }; "_volumetric": { "alias": "volumetric"; "required": false; }; }, {}, never, ["*"], true, never>;
39
+ }
@@ -0,0 +1,24 @@
1
+ import { SpotLightMaterial } from 'angular-three-soba/shaders';
2
+ import * as THREE from 'three';
3
+ import { NgtsSpotLightInput } from './spot-light-input';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NgtsVolumetricMesh {
6
+ spotLightInput: NgtsSpotLightInput;
7
+ mesh: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
8
+ material: SpotLightMaterial;
9
+ nullRaycast: () => null;
10
+ private vec;
11
+ private store;
12
+ private size;
13
+ private dpr;
14
+ private radiusTop;
15
+ private radiusBottom;
16
+ near: import("@angular/core").Signal<number>;
17
+ far: import("@angular/core").Signal<number>;
18
+ resolution: import("@angular/core").Signal<number[]>;
19
+ geometry: import("@angular/core").Signal<THREE.CylinderGeometry>;
20
+ constructor();
21
+ private beforeRender;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsVolumetricMesh, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsVolumetricMesh, "ngts-volumetric-mesh", never, {}, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,130 @@
1
+ import { EventEmitter, type OnChanges } from '@angular/core';
2
+ import { type NgtsAccumulativeShadowsState } from '../accumulative-shadows/accumulative-shadows';
3
+ import { type NgtsRandomizedLightsState } from '../accumulative-shadows/randomized-lights';
4
+ import { type NgtsCenterState, type NgtsCenteredEvent } from '../center/center';
5
+ import { type NgtsContactShadowsState } from '../contact-shadows/contact-shadows';
6
+ import { NgtsEnvironmentPresetsType } from '../environment/assets';
7
+ import { type NgtsEnvironmentInputState } from '../environment/environment-input';
8
+ import * as i0 from "@angular/core";
9
+ type NgtsStageShadowsState = Partial<NgtsAccumulativeShadowsState> & Partial<NgtsRandomizedLightsState> & Partial<NgtsContactShadowsState> & {
10
+ type: 'contact' | 'accumulative';
11
+ /** Shadow plane offset, default: 0 */
12
+ offset?: number;
13
+ /** Shadow bias, default: -0.0001 */
14
+ bias?: number;
15
+ /** Shadow normal bias, default: 0 */
16
+ normalBias?: number;
17
+ /** Shadow map size, default: 1024 */
18
+ size?: number;
19
+ };
20
+ export type NgtsStageState = {
21
+ /** Lighting setup, default: "rembrandt" */
22
+ preset: 'rembrandt' | 'portrait' | 'upfront' | 'soft' | {
23
+ main: [x: number, y: number, z: number];
24
+ fill: [x: number, y: number, z: number];
25
+ };
26
+ /** Controls the ground shadows, default: "contact" */
27
+ shadows: boolean | 'contact' | 'accumulative' | NgtsStageShadowsState;
28
+ /** Optionally wraps and thereby centers the models using <Bounds>, can also be a margin, default: true */
29
+ adjustCamera: boolean | number;
30
+ /** The default environment, default: "city" */
31
+ environment: NgtsEnvironmentPresetsType | Partial<NgtsEnvironmentInputState>;
32
+ /** The lighting intensity, default: 0.5 */
33
+ intensity: number;
34
+ /** To adjust centering, default: undefined */
35
+ center?: Partial<NgtsCenterState>;
36
+ };
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ 'ngts-stage': NgtsStageState;
40
+ }
41
+ }
42
+ export declare class NgtsStageRefit implements OnChanges {
43
+ boundsApi: import("@angular/core").Signal<{
44
+ getSize: () => {
45
+ box: import("three").Box3;
46
+ size: import("three").Vector3;
47
+ center: import("three").Vector3;
48
+ distance: number;
49
+ };
50
+ refresh(object?: import("three").Object3D<import("three").Event> | import("three").Box3 | undefined): any;
51
+ clip(): any;
52
+ to({ position, target }: {
53
+ position: [number, number, number];
54
+ target?: [number, number, number] | undefined;
55
+ }): any;
56
+ fit(): any;
57
+ }>;
58
+ radius: number;
59
+ adjustCamera: boolean | number;
60
+ ngOnChanges(): void;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsStageRefit, never>;
62
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsStageRefit, "ngts-stage-refit", never, { "radius": { "alias": "radius"; "required": false; }; "adjustCamera": { "alias": "adjustCamera"; "required": false; }; }, {}, never, never, true, never>;
63
+ }
64
+ export declare class NgtsStage {
65
+ Number: NumberConstructor;
66
+ private inputs;
67
+ set _preset(preset: NgtsStageState['preset']);
68
+ set _shadows(shadows: NgtsStageState['shadows']);
69
+ set _adjustCamera(adjustCamera: NgtsStageState['adjustCamera']);
70
+ set _environment(environment: NgtsStageState['environment']);
71
+ set _intensity(intensity: NgtsStageState['intensity']);
72
+ set _center(center: NgtsStageState['center']);
73
+ centered: EventEmitter<NgtsCenteredEvent>;
74
+ private preset;
75
+ private environment;
76
+ boundingState: import("angular-three").NgtSignalStore<{
77
+ radius: number;
78
+ width: number;
79
+ height: number;
80
+ depth: number;
81
+ }>;
82
+ config: import("@angular/core").Signal<{
83
+ main: number[];
84
+ fill: number[];
85
+ }>;
86
+ shadows: import("@angular/core").Signal<boolean | "contact" | "accumulative" | NgtsStageShadowsState>;
87
+ intensity: import("@angular/core").Signal<number>;
88
+ adjustCamera: import("@angular/core").Signal<number | boolean>;
89
+ center: import("@angular/core").Signal<Partial<NgtsCenterState> | undefined>;
90
+ shadowsState: import("@angular/core").Signal<{
91
+ frames?: number | undefined;
92
+ blend?: number | undefined;
93
+ limit?: number | undefined;
94
+ scale?: number | (number & [x: number, y: number]) | undefined;
95
+ temporal?: boolean | undefined;
96
+ opacity?: number | undefined;
97
+ alphaTest?: number | undefined;
98
+ color?: (string & import("three").ColorRepresentation) | undefined;
99
+ colorBlend?: number | undefined;
100
+ resolution?: number | undefined;
101
+ toneMapped?: boolean | undefined;
102
+ position?: [x: number, y: number, z: number] | undefined;
103
+ radius?: number | undefined;
104
+ amount?: number | undefined;
105
+ intensity?: number | undefined;
106
+ ambient?: number | undefined;
107
+ castShadow?: boolean | undefined;
108
+ mapSize?: number | undefined;
109
+ near?: number | undefined;
110
+ far?: number | undefined;
111
+ width?: number | undefined;
112
+ height?: number | undefined;
113
+ blur?: number | undefined;
114
+ smooth?: boolean | undefined;
115
+ depthWrite?: boolean | undefined;
116
+ renderOrder?: number | undefined;
117
+ type: "contact" | "accumulative";
118
+ contactShadow: boolean;
119
+ accumulativeShadow: boolean;
120
+ shadowBias: number;
121
+ normalBias: number;
122
+ shadowSize: number;
123
+ shadowOffset: number;
124
+ }>;
125
+ environmentState: import("@angular/core").Signal<Partial<NgtsEnvironmentInputState> | null>;
126
+ onCentered($event: NgtsCenteredEvent): void;
127
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsStage, never>;
128
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsStage, "ngts-stage", never, { "_preset": { "alias": "preset"; "required": false; }; "_shadows": { "alias": "shadows"; "required": false; }; "_adjustCamera": { "alias": "adjustCamera"; "required": false; }; "_environment": { "alias": "environment"; "required": false; }; "_intensity": { "alias": "intensity"; "required": false; }; "_center": { "alias": "center"; "required": false; }; }, { "centered": "centered"; }, never, ["*"], true, never>;
129
+ }
130
+ export {};
@@ -0,0 +1,45 @@
1
+ import { NgtBeforeRenderEvent } from 'angular-three';
2
+ import { StarFieldMaterial } from 'angular-three-soba/shaders';
3
+ import * as THREE from 'three';
4
+ import * as i0 from "@angular/core";
5
+ export type NgtsStarsState = {
6
+ radius: number;
7
+ depth: number;
8
+ count: number;
9
+ factor: number;
10
+ saturation: number;
11
+ fade: boolean;
12
+ speed: number;
13
+ };
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ 'ngts-stars': NgtsStarsState;
17
+ }
18
+ }
19
+ export declare class NgtsStars {
20
+ private inputs;
21
+ AdditiveBlending: 2;
22
+ material: THREE.ShaderMaterial;
23
+ starsRef: import("angular-three").NgtInjectedRef<THREE.Points<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
24
+ set _radius(radius: number);
25
+ set _depth(depth: number);
26
+ set _count(count: number);
27
+ set _factor(factor: number);
28
+ set _saturation(saturation: number);
29
+ set starsFade(fade: boolean);
30
+ set _speed(speed: number);
31
+ private count;
32
+ private depth;
33
+ private factor;
34
+ private radius;
35
+ private saturation;
36
+ fade: import("@angular/core").Signal<boolean>;
37
+ attributes: import("@angular/core").Signal<{
38
+ positions: Float32Array;
39
+ colors: Float32Array;
40
+ sizes: Float32Array;
41
+ }>;
42
+ onBeforeRender({ object, state }: NgtBeforeRenderEvent<InstanceType<typeof StarFieldMaterial>>): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsStars, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsStars, "ngts-stars", never, { "starsRef": { "alias": "starsRef"; "required": false; }; "_radius": { "alias": "radius"; "required": false; }; "_depth": { "alias": "depth"; "required": false; }; "_count": { "alias": "count"; "required": false; }; "_factor": { "alias": "factor"; "required": false; }; "_saturation": { "alias": "saturation"; "required": false; }; "starsFade": { "alias": "fade"; "required": false; }; "_speed": { "alias": "speed"; "required": false; }; }, {}, never, never, true, never>;
45
+ }
@@ -0,0 +1,65 @@
1
+ import { type NgtRef } from 'angular-three';
2
+ import { WireframeMaterialState } from 'angular-three-soba/shaders';
3
+ import * as THREE from 'three';
4
+ import * as i0 from "@angular/core";
5
+ export type NgtsWireframeState = {
6
+ geometry?: NgtRef<THREE.BufferGeometry>;
7
+ simplify: boolean;
8
+ } & Required<WireframeMaterialState>;
9
+ export declare abstract class NgtsWireframeInput {
10
+ inputs: import("angular-three").NgtSignalStore<NgtsWireframeState>;
11
+ set _geometry(geometry: NgtRef<THREE.BufferGeometry>);
12
+ set _simplify(simplify: boolean);
13
+ set _fillOpacity(fillOpacity: number);
14
+ set _fillMix(fillMix: number);
15
+ set _strokeOpacity(strokeOpacity: number);
16
+ set _thickness(thickness: number);
17
+ set _colorBackfaces(colorBackfaces: boolean);
18
+ set _dashInvert(dashInvert: boolean);
19
+ set _dash(dash: boolean);
20
+ set _dashRepeats(dashRepeats: number);
21
+ set _dashLength(dashLength: number);
22
+ set _squeeze(squeeze: boolean);
23
+ set _squeezeMin(squeezeMin: number);
24
+ set _squeezeMax(squeezeMax: number);
25
+ set _stroke(stroke: THREE.ColorRepresentation);
26
+ set _backfaceStroke(backfaceStroke: THREE.ColorRepresentation);
27
+ set _fill(fill: THREE.ColorRepresentation);
28
+ simplify: import("@angular/core").Signal<boolean>;
29
+ geometry: import("@angular/core").Signal<NgtRef<THREE.BufferGeometry<THREE.NormalBufferAttributes>> | undefined>;
30
+ customGeometry: import("@angular/core").Signal<THREE.BufferGeometry<THREE.NormalBufferAttributes> | undefined>;
31
+ strokeOpacity: import("@angular/core").Signal<number>;
32
+ fillOpacity: import("@angular/core").Signal<number>;
33
+ fillMix: import("@angular/core").Signal<number>;
34
+ thickness: import("@angular/core").Signal<number>;
35
+ colorBackfaces: import("@angular/core").Signal<boolean>;
36
+ dashInvert: import("@angular/core").Signal<boolean>;
37
+ dash: import("@angular/core").Signal<boolean>;
38
+ dashRepeats: import("@angular/core").Signal<number>;
39
+ dashLength: import("@angular/core").Signal<number>;
40
+ squeeze: import("@angular/core").Signal<boolean>;
41
+ squeezeMin: import("@angular/core").Signal<number>;
42
+ squeezeMax: import("@angular/core").Signal<number>;
43
+ stroke: import("@angular/core").Signal<THREE.ColorRepresentation>;
44
+ backfaceStroke: import("@angular/core").Signal<THREE.ColorRepresentation>;
45
+ fill: import("@angular/core").Signal<THREE.ColorRepresentation>;
46
+ materialState: import("@angular/core").Signal<{
47
+ strokeOpacity: number;
48
+ fillOpacity: number;
49
+ fillMix: number;
50
+ thickness: number;
51
+ colorBackfaces: boolean;
52
+ dashInvert: boolean;
53
+ dash: boolean;
54
+ dashRepeats: number;
55
+ dashLength: number;
56
+ squeeze: boolean;
57
+ squeezeMin: number;
58
+ squeezeMax: number;
59
+ stroke: THREE.ColorRepresentation;
60
+ backfaceStroke: THREE.ColorRepresentation;
61
+ fill: THREE.ColorRepresentation;
62
+ }>;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsWireframeInput, never>;
64
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsWireframeInput, never, never, { "_geometry": { "alias": "geometry"; "required": false; }; "_simplify": { "alias": "simplify"; "required": false; }; "_fillOpacity": { "alias": "fillOpacity"; "required": false; }; "_fillMix": { "alias": "fillMix"; "required": false; }; "_strokeOpacity": { "alias": "strokeOpacity"; "required": false; }; "_thickness": { "alias": "thickness"; "required": false; }; "_colorBackfaces": { "alias": "colorBackfaces"; "required": false; }; "_dashInvert": { "alias": "dashInvert"; "required": false; }; "_dash": { "alias": "dash"; "required": false; }; "_dashRepeats": { "alias": "dashRepeats"; "required": false; }; "_dashLength": { "alias": "dashLength"; "required": false; }; "_squeeze": { "alias": "squeeze"; "required": false; }; "_squeezeMin": { "alias": "squeezeMin"; "required": false; }; "_squeezeMax": { "alias": "squeezeMax"; "required": false; }; "_stroke": { "alias": "stroke"; "required": false; }; "_backfaceStroke": { "alias": "backfaceStroke"; "required": false; }; "_fill": { "alias": "fill"; "required": false; }; }, {}, never, never, false, never>;
65
+ }
@@ -0,0 +1,28 @@
1
+ import * as THREE from 'three';
2
+ import { NgtsWireframeInput, NgtsWireframeState } from './wireframe-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NgtsWireframeWithoutCustomGeometry {
5
+ objectRef: import("angular-three").NgtInjectedRef<THREE.Object3D<THREE.Event>>;
6
+ private wireframeInput;
7
+ private uniforms;
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsWireframeWithoutCustomGeometry, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsWireframeWithoutCustomGeometry, "ngts-wireframe-without-custom-geometry", never, {}, {}, never, never, true, never>;
11
+ }
12
+ export declare class NgtsWireframeWithCustomGeometry {
13
+ DoubleSide: 2;
14
+ wireframeInput: NgtsWireframeInput;
15
+ drawnGeometry: import("@angular/core").WritableSignal<THREE.BufferGeometry<THREE.NormalBufferAttributes>>;
16
+ constructor();
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsWireframeWithCustomGeometry, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsWireframeWithCustomGeometry, "ngts-wireframe-with-custom-geometry", never, {}, {}, never, never, true, never>;
19
+ }
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ 'ngts-wireframe': NgtsWireframeState;
23
+ }
24
+ }
25
+ export declare class NgtsWireframe extends NgtsWireframeInput {
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsWireframe, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgtsWireframe, "ngts-wireframe", never, {}, {}, never, never, true, never>;
28
+ }
@@ -0,0 +1,3 @@
1
+ # angular-three-soba/utils
2
+
3
+ Secondary entry point of `angular-three-soba`. It can be used by importing from `angular-three-soba/utils`.
@@ -0,0 +1,8 @@
1
+ import { Injector, TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NgtsSobaContent {
4
+ injector: Injector;
5
+ template: TemplateRef<any>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSobaContent, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsSobaContent, "ng-template[ngtsSobaContent]", ["sobaContent"], {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './content/content';