angular-three-soba 2.0.0-beta.4 → 2.0.0-beta.41

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 (323) hide show
  1. package/abstractions/billboard/billboard.d.ts +12 -8
  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 +42 -51
  5. package/abstractions/index.d.ts +1 -7
  6. package/abstractions/text/text.d.ts +10 -4
  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 +49 -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 +34 -15
  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 +140 -110
  19. package/esm2022/abstractions/index.mjs +2 -8
  20. package/esm2022/abstractions/text/text.mjs +123 -122
  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 +120 -100
  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 +109 -85
  29. package/esm2022/gizmos/angular-three-soba-gizmos.mjs +5 -0
  30. package/esm2022/gizmos/gizmo-helper/gizmo-helper.mjs +198 -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 +151 -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 +14 -9
  40. package/esm2022/loaders/loader/loader.mjs +92 -87
  41. package/esm2022/loaders/progress/progress.mjs +31 -30
  42. package/esm2022/loaders/texture-loader/texture-loader.mjs +20 -15
  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 +99 -97
  47. package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +164 -144
  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 +28 -23
  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 +41 -37
  55. package/esm2022/misc/example/example.mjs +161 -0
  56. package/esm2022/misc/fbo/fbo.mjs +42 -36
  57. package/esm2022/misc/html/html-wrapper.mjs +478 -0
  58. package/esm2022/misc/html/html.mjs +305 -0
  59. package/esm2022/misc/index.mjs +10 -1
  60. package/esm2022/misc/sampler/sampler.mjs +132 -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 +204 -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 +221 -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 +327 -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 +183 -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 +32 -0
  83. package/esm2022/shaders/convolution-material/convolution-material.mjs +3 -2
  84. package/esm2022/shaders/discard-material/discard-material.mjs +1 -1
  85. package/esm2022/shaders/grid-material/grid-material.mjs +30 -14
  86. package/esm2022/shaders/index.mjs +5 -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 +3 -2
  90. package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +7 -4
  91. package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +1 -1
  92. package/esm2022/shaders/shader-material/shader-material.mjs +3 -5
  93. package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +18 -25
  94. package/esm2022/shaders/sparkles-material/sparkles-material.mjs +32 -46
  95. package/esm2022/shaders/spot-light-material/spot-light-material.mjs +8 -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 +161 -176
  99. package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +8 -8
  100. package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +129 -129
  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 +145 -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 -136
  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 +40 -17
  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 +267 -0
  124. package/esm2022/staging/spot-light/spot-light-input.mjs +67 -58
  125. package/esm2022/staging/spot-light/spot-light.mjs +51 -63
  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/constants.mjs +3 -0
  133. package/esm2022/utils/content/content.mjs +15 -0
  134. package/esm2022/utils/index.mjs +3 -0
  135. package/fesm2022/angular-three-soba-abstractions.mjs +504 -2079
  136. package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
  137. package/fesm2022/angular-three-soba-cameras.mjs +293 -260
  138. package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
  139. package/fesm2022/angular-three-soba-controls.mjs +108 -83
  140. package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
  141. package/fesm2022/angular-three-soba-gizmos.mjs +1045 -0
  142. package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -0
  143. package/fesm2022/angular-three-soba-loaders.mjs +148 -132
  144. package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
  145. package/fesm2022/angular-three-soba-materials.mjs +656 -588
  146. package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
  147. package/fesm2022/angular-three-soba-misc.mjs +2202 -99
  148. package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
  149. package/fesm2022/angular-three-soba-modifiers.mjs +71 -0
  150. package/fesm2022/angular-three-soba-modifiers.mjs.map +1 -0
  151. package/fesm2022/angular-three-soba-performances.mjs +957 -0
  152. package/fesm2022/angular-three-soba-performances.mjs.map +1 -0
  153. package/fesm2022/angular-three-soba-shaders.mjs +508 -269
  154. package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
  155. package/fesm2022/angular-three-soba-staging.mjs +2910 -2573
  156. package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
  157. package/fesm2022/angular-three-soba-utils.mjs +25 -0
  158. package/fesm2022/angular-three-soba-utils.mjs.map +1 -0
  159. package/gizmos/README.md +3 -0
  160. package/gizmos/gizmo-helper/gizmo-helper.d.ts +73 -0
  161. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +22 -0
  162. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +29 -0
  163. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.d.ts +33 -0
  164. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +10 -0
  165. package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +40 -0
  166. package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +30 -0
  167. package/gizmos/index.d.ts +3 -0
  168. package/loaders/gltf-loader/gltf-loader.d.ts +15 -4
  169. package/loaders/loader/loader.d.ts +19 -17
  170. package/loaders/progress/progress.d.ts +1 -1
  171. package/loaders/texture-loader/texture-loader.d.ts +8 -3
  172. package/materials/index.d.ts +1 -0
  173. package/materials/mesh-distort-material/mesh-distort-material.d.ts +25 -15
  174. package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +74 -56
  175. package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +33 -21
  176. package/materials/mesh-transmission-material/mesh-transmission-material.d.ts +55 -39
  177. package/materials/mesh-wobble-material/mesh-wobble-material.d.ts +19 -10
  178. package/materials/point-material/point-material.d.ts +24 -0
  179. package/metadata.json +1 -0
  180. package/misc/animations/animations.d.ts +6 -4
  181. package/misc/caustics/caustics.d.ts +87 -0
  182. package/misc/decal/decal.d.ts +49 -0
  183. package/misc/depth-buffer/depth-buffer.d.ts +2 -2
  184. package/misc/example/example.d.ts +85 -0
  185. package/misc/fbo/fbo.d.ts +2 -2
  186. package/misc/html/html-wrapper.d.ts +559 -0
  187. package/misc/html/html.d.ts +218 -0
  188. package/misc/index.d.ts +9 -0
  189. package/misc/sampler/sampler.d.ts +67 -0
  190. package/misc/shadow/shadow.d.ts +37 -0
  191. package/misc/stats-gl/stats-gl.d.ts +24 -0
  192. package/misc/trail/trail.d.ts +57 -0
  193. package/misc/trail-texture/inject-trail-texture.d.ts +9 -0
  194. package/misc/trail-texture/trail-texture.d.ts +50 -0
  195. package/modifiers/README.md +3 -0
  196. package/modifiers/curve-modifier/curve-modifier.d.ts +23 -0
  197. package/modifiers/index.d.ts +1 -0
  198. package/package.json +42 -24
  199. package/performances/README.md +3 -0
  200. package/performances/adaptive-dpr/adaptive-dpr.d.ts +14 -0
  201. package/{performance/adaptive → performances/adaptive-events}/adaptive-events.d.ts +3 -0
  202. package/performances/index.d.ts +7 -0
  203. package/performances/instances/instances.d.ts +83 -0
  204. package/{performance → performances}/instances/position-mesh.d.ts +1 -1
  205. package/performances/points/points-input.d.ts +32 -0
  206. package/performances/points/points.d.ts +96 -0
  207. package/performances/points/position-point.d.ts +11 -0
  208. package/performances/segments/segment-object.d.ts +7 -0
  209. package/performances/segments/segments.d.ts +128 -0
  210. package/shaders/grid-material/grid-material.d.ts +33 -0
  211. package/shaders/index.d.ts +4 -2
  212. package/shaders/mesh-distort-material/mesh-distort-material.d.ts +173 -6
  213. package/shaders/mesh-transmission-material/mesh-transmission-material.d.ts +1 -1
  214. package/shaders/shader-material/shader-material.d.ts +2 -2
  215. package/shaders/soft-shadow-material/soft-shadow-material.d.ts +10 -1
  216. package/shaders/sparkles-material/sparkles-material.d.ts +13 -0
  217. package/shaders/spot-light-material/spot-light-material.d.ts +11 -2
  218. package/shaders/star-field-material/star-field-material.d.ts +9 -0
  219. package/shaders/wireframe-material/wireframe-material.d.ts +58 -0
  220. package/staging/accumulative-shadows/accumulative-shadows.d.ts +93 -39
  221. package/staging/accumulative-shadows/randomized-lights.d.ts +41 -28
  222. package/staging/backdrop/backdrop.d.ts +30 -0
  223. package/staging/bb-anchor/bb-anchor.d.ts +27 -0
  224. package/staging/bounds/bounds.d.ts +105 -25
  225. package/staging/camera-shake/camera-shake.d.ts +30 -19
  226. package/staging/center/center.d.ts +43 -35
  227. package/staging/cloud/cloud.d.ts +27 -24
  228. package/staging/contact-shadows/contact-shadows.d.ts +43 -30
  229. package/staging/environment/assets.d.ts +9 -9
  230. package/staging/environment/environment-cube.d.ts +9 -5
  231. package/staging/environment/environment-ground.d.ts +7 -7
  232. package/staging/environment/environment-input.d.ts +38 -38
  233. package/staging/environment/environment-map.d.ts +10 -5
  234. package/staging/environment/environment-portal.d.ts +10 -5
  235. package/staging/environment/environment.d.ts +0 -4
  236. package/staging/environment/utils.d.ts +2 -2
  237. package/staging/float/float.d.ts +15 -11
  238. package/staging/index.d.ts +6 -2
  239. package/staging/matcap-texture/matcap-texture.d.ts +13 -0
  240. package/staging/normal-texture/normal-texture.d.ts +16 -0
  241. package/staging/sky/sky.d.ts +28 -21
  242. package/staging/sparkles/sparkles.d.ts +36 -22
  243. package/staging/spot-light/shadow-mesh-input.d.ts +29 -0
  244. package/staging/spot-light/shadow-mesh.d.ts +37 -0
  245. package/staging/spot-light/spot-light-input.d.ts +25 -25
  246. package/staging/spot-light/spot-light.d.ts +35 -15
  247. package/staging/spot-light/volumetric-mesh.d.ts +15 -9
  248. package/staging/stage/stage.d.ts +89 -65
  249. package/staging/stars/stars.d.ts +28 -17
  250. package/staging/wireframe/wireframe-input.d.ts +65 -0
  251. package/staging/wireframe/wireframe.d.ts +28 -0
  252. package/utils/README.md +3 -0
  253. package/utils/constants.d.ts +1 -0
  254. package/utils/content/content.d.ts +8 -0
  255. package/utils/index.d.ts +2 -0
  256. package/web-types.json +1 -0
  257. package/abstractions/catmull-rom-line/catmull-rom-line.d.ts +0 -25
  258. package/abstractions/cubic-bezier-line/cubic-bezier-line.d.ts +0 -25
  259. package/abstractions/gizmo-helper/gizmo-helper.d.ts +0 -34
  260. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -22
  261. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -30
  262. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +0 -32
  263. package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +0 -14
  264. package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +0 -47
  265. package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +0 -40
  266. package/abstractions/line/line-input.d.ts +0 -42
  267. package/abstractions/line/line.d.ts +0 -35
  268. package/abstractions/quadratic-bezier-line/quadratic-bezier-line.d.ts +0 -23
  269. package/esm2022/abstractions/catmull-rom-line/catmull-rom-line.mjs +0 -131
  270. package/esm2022/abstractions/cubic-bezier-line/cubic-bezier-line.mjs +0 -113
  271. package/esm2022/abstractions/gizmo-helper/gizmo-helper.mjs +0 -210
  272. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
  273. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -95
  274. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -155
  275. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +0 -62
  276. package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -80
  277. package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -206
  278. package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -273
  279. package/esm2022/abstractions/line/line-input.mjs +0 -113
  280. package/esm2022/abstractions/line/line.mjs +0 -165
  281. package/esm2022/abstractions/quadratic-bezier-line/quadratic-bezier-line.mjs +0 -128
  282. package/esm2022/performance/adaptive/adaptive-dpr.mjs +0 -46
  283. package/esm2022/performance/adaptive/adaptive-events.mjs +0 -31
  284. package/esm2022/performance/angular-three-soba-performance.mjs +0 -5
  285. package/esm2022/performance/detailed/detailed.mjs +0 -61
  286. package/esm2022/performance/index.mjs +0 -7
  287. package/esm2022/performance/instances/instance.mjs +0 -48
  288. package/esm2022/performance/instances/instances.mjs +0 -189
  289. package/esm2022/performance/instances/position-mesh.mjs +0 -52
  290. package/esm2022/performance/stats/stats.mjs +0 -79
  291. package/esm2022/shaders/caustics-material/caustics-material.mjs +0 -128
  292. package/esm2022/shaders/caustics-material/caustics-projection-material.mjs +0 -33
  293. package/esm2022/staging/caustics/caustisc.mjs +0 -384
  294. package/esm2022/staging/spot-light/spot-light-shadow-mesh-input.mjs +0 -57
  295. package/esm2022/staging/spot-light/spot-light-shadow-mesh.mjs +0 -256
  296. package/fesm2022/angular-three-soba-performance.mjs +0 -487
  297. package/fesm2022/angular-three-soba-performance.mjs.map +0 -1
  298. package/performance/README.md +0 -3
  299. package/performance/adaptive/adaptive-dpr.d.ts +0 -8
  300. package/performance/detailed/detailed.d.ts +0 -20
  301. package/performance/index.d.ts +0 -6
  302. package/performance/instances/instance.d.ts +0 -9
  303. package/performance/instances/instances.d.ts +0 -35
  304. package/performance/stats/stats.d.ts +0 -18
  305. package/plugin/generators.json +0 -19
  306. package/plugin/libs/plugin/README.md +0 -11
  307. package/plugin/package.json +0 -9
  308. package/plugin/src/generators/init/compat.d.ts +0 -2
  309. package/plugin/src/generators/init/compat.js +0 -6
  310. package/plugin/src/generators/init/compat.js.map +0 -1
  311. package/plugin/src/generators/init/init.d.ts +0 -7
  312. package/plugin/src/generators/init/init.js +0 -28
  313. package/plugin/src/generators/init/init.js.map +0 -1
  314. package/plugin/src/generators/init/schema.json +0 -6
  315. package/plugin/src/index.d.ts +0 -1
  316. package/plugin/src/index.js +0 -6
  317. package/plugin/src/index.js.map +0 -1
  318. package/staging/caustics/caustisc.d.ts +0 -70
  319. package/staging/spot-light/spot-light-shadow-mesh-input.d.ts +0 -29
  320. package/staging/spot-light/spot-light-shadow-mesh.d.ts +0 -38
  321. /package/{abstractions → gizmos}/gizmo-helper/gizmo-viewcube/constants.d.ts +0 -0
  322. /package/shaders/{caustics-material → caustics}/caustics-material.d.ts +0 -0
  323. /package/shaders/{caustics-material → caustics}/caustics-projection-material.d.ts +0 -0
@@ -1,76 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, effect, Directive, Input, TemplateRef, computed, Component, CUSTOM_ELEMENTS_SCHEMA, ViewChild, ContentChild } from '@angular/core';
3
- import { NgtSignalStore, injectNgtRef, NgtStore, requestAnimationInInjectionContext, extend, injectBeforeRender, NgtArgs } from 'angular-three';
4
- import { injectNgtsFBO } from 'angular-three-soba/misc';
5
- import { NgIf, NgTemplateOutlet } from '@angular/common';
2
+ import { inject, TemplateRef, Directive, Input, runInInjectionContext, computed, effect, untracked, Component, CUSTOM_ELEMENTS_SCHEMA, ContentChild } from '@angular/core';
6
3
  import * as THREE from 'three';
7
- import { Group, CubeCamera, OrthographicCamera, PerspectiveCamera } from 'three';
8
-
9
- class NgtsCamera extends NgtSignalStore {
10
- set makeDefault(makeDefault) {
11
- this.set({ makeDefault });
12
- }
13
- set manual(manual) {
14
- this.set({ manual });
15
- }
16
- set frames(frames) {
17
- this.set({ frames });
18
- }
19
- set resolution(resolution) {
20
- this.set({ resolution });
21
- }
22
- set envMap(envMap) {
23
- this.set({ envMap });
24
- }
25
- #resolution;
26
- constructor() {
27
- super({ resolution: 256, frames: Infinity, makeDefault: false, manual: false });
28
- this.cameraRef = injectNgtRef();
29
- this.store = inject(NgtStore);
30
- this.#resolution = this.select('resolution');
31
- this.fboRef = injectNgtsFBO(() => ({ width: this.#resolution() }));
32
- requestAnimationInInjectionContext(() => {
33
- this.#setDefaultCamera();
34
- this.#updateProjectionMatrix();
35
- });
36
- }
37
- #setDefaultCamera() {
38
- const makeDefault = this.select('makeDefault');
39
- effect((onCleanup) => {
40
- const camera = this.cameraRef.nativeElement;
41
- if (camera && makeDefault()) {
42
- const { camera: oldCamera } = this.store.get();
43
- this.store.set({ camera });
44
- onCleanup(() => this.store.set({ camera: oldCamera }));
45
- }
46
- }, { allowSignalWrites: true });
47
- }
48
- #updateProjectionMatrix() {
49
- const manual = this.select('manual');
50
- effect(() => {
51
- const camera = this.cameraRef.nativeElement;
52
- if (!manual() && camera)
53
- camera.updateProjectionMatrix();
54
- });
55
- }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsCamera, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
57
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgtsCamera, inputs: { makeDefault: "makeDefault", manual: "manual", frames: "frames", resolution: "resolution", envMap: "envMap", cameraRef: "cameraRef" }, usesInheritance: true, ngImport: i0 }); }
58
- }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsCamera, decorators: [{
60
- type: Directive
61
- }], ctorParameters: function () { return []; }, propDecorators: { makeDefault: [{
62
- type: Input
63
- }], manual: [{
64
- type: Input
65
- }], frames: [{
66
- type: Input
67
- }], resolution: [{
68
- type: Input
69
- }], envMap: [{
70
- type: Input
71
- }], cameraRef: [{
72
- type: Input
73
- }] } });
4
+ import { Group, OrthographicCamera, PerspectiveCamera } from 'three';
5
+ import { NgTemplateOutlet, NgIf } from '@angular/common';
6
+ import { injectNgtStore, extend, signalStore, injectNgtRef, injectBeforeRender, NgtArgs } from 'angular-three';
7
+ import { assertInjector } from 'ngxtension/assert-injector';
8
+ import { injectNgtsFBO } from 'angular-three-soba/misc';
74
9
 
75
10
  class NgtsCameraContent {
76
11
  constructor() {
@@ -80,261 +15,359 @@ class NgtsCameraContent {
80
15
  static ngTemplateContextGuard(_, ctx) {
81
16
  return true;
82
17
  }
83
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsCameraContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
84
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgtsCameraContent, isStandalone: true, selector: "ng-template[ngtsCameraContent]", inputs: { ngtsCameraContent: "ngtsCameraContent" }, ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCameraContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.3", type: NgtsCameraContent, isStandalone: true, selector: "ng-template[ngtsCameraContent]", inputs: { ngtsCameraContent: "ngtsCameraContent" }, ngImport: i0 }); }
85
20
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsCameraContent, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCameraContent, decorators: [{
87
22
  type: Directive,
88
23
  args: [{ selector: 'ng-template[ngtsCameraContent]', standalone: true }]
89
24
  }], propDecorators: { ngtsCameraContent: [{
90
25
  type: Input
91
26
  }] } });
92
27
 
93
- extend({ Group, CubeCamera });
94
- class NgtsCubeCamera extends NgtSignalStore {
95
- /** Number of frames to render, Infinity */
96
- set frames(frames) {
97
- this.set({ frames });
28
+ const defaultCubeCameraState = {
29
+ resolution: 256,
30
+ near: 0.1,
31
+ far: 1000,
32
+ };
33
+ function injectNgtsCubeCamera(cubeCameraState, { injector } = {}) {
34
+ injector = assertInjector(injectNgtsCubeCamera, injector);
35
+ return runInInjectionContext(injector, () => {
36
+ const state = computed(() => ({ ...defaultCubeCameraState, ...cubeCameraState() }));
37
+ const resolution = computed(() => state().resolution);
38
+ const near = computed(() => state().near);
39
+ const far = computed(() => state().far);
40
+ const store = injectNgtStore();
41
+ const [_gl, _scene] = [store.select('gl'), store.select('scene')];
42
+ const _fbo = computed(() => {
43
+ const renderTarget = new THREE.WebGLCubeRenderTarget(resolution());
44
+ renderTarget.texture.type = THREE.HalfFloatType;
45
+ return renderTarget;
46
+ });
47
+ effect((onCleanup) => {
48
+ const fbo = _fbo();
49
+ onCleanup(() => fbo.dispose());
50
+ });
51
+ const _camera = computed(() => new THREE.CubeCamera(near(), far(), _fbo()));
52
+ let originalFog;
53
+ let originalBackground;
54
+ const update = computed(() => {
55
+ const [scene, gl, camera, { envMap, fog }] = [_scene(), _gl(), _camera(), untracked(state)];
56
+ return () => {
57
+ originalFog = scene.fog;
58
+ originalBackground = scene.background;
59
+ scene.background = envMap || originalBackground;
60
+ scene.fog = fog || originalFog;
61
+ camera.update(gl, scene);
62
+ scene.fog = originalFog;
63
+ scene.background = originalBackground;
64
+ };
65
+ });
66
+ return { fbo: _fbo, camera: _camera, update };
67
+ });
68
+ }
69
+ extend({ Group });
70
+ class NgtsCubeCameraContent {
71
+ static ngTemplateContextGuard(_, ctx) {
72
+ return true;
98
73
  }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCubeCameraContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
75
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.3", type: NgtsCubeCameraContent, isStandalone: true, selector: "ng-template[ngtsCubeCameraContent]", ngImport: i0 }); }
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCubeCameraContent, decorators: [{
78
+ type: Directive,
79
+ args: [{ selector: 'ng-template[ngtsCubeCameraContent]', standalone: true }]
80
+ }] });
81
+ class NgtsCubeCamera {
99
82
  /** Resolution of the FBO, 256 */
100
- set resolution(resolution) {
101
- this.set({ resolution });
83
+ set _resolution(resolution) {
84
+ this.inputs.set({ resolution });
102
85
  }
103
86
  /** Camera near, 0.1 */
104
- set near(near) {
105
- this.set({ near });
87
+ set _near(near) {
88
+ this.inputs.set({ near });
106
89
  }
107
90
  /** Camera far, 1000 */
108
- set far(far) {
109
- this.set({ far });
91
+ set _far(far) {
92
+ this.inputs.set({ far });
110
93
  }
111
94
  /** Custom environment map that is temporarily set as the scenes background */
112
- set envMap(envMap) {
113
- this.set({ envMap });
95
+ set _envMap(envMap) {
96
+ this.inputs.set({ envMap });
114
97
  }
115
98
  /** Custom fog that is temporarily set as the scenes fog */
116
- set fog(fog) {
117
- this.set({ fog });
99
+ set _fog(fog) {
100
+ this.inputs.set({ fog });
118
101
  }
119
- #store;
120
- #resolution;
121
- #near;
122
- #far;
123
102
  constructor() {
124
- super({ frames: Infinity, resolution: 256, near: 0.1, far: 1000 });
103
+ this.inputs = signalStore({ frames: Infinity });
125
104
  this.cameraRef = injectNgtRef();
126
- this.#store = inject(NgtStore);
127
- this.#resolution = this.select('resolution');
128
- this.#near = this.select('near');
129
- this.#far = this.select('far');
130
- this.fbo = computed(() => {
131
- const resolution = this.#resolution();
132
- const fbo = new THREE.WebGLCubeRenderTarget(resolution);
133
- fbo.texture.encoding = this.#store.get('gl').outputEncoding;
134
- fbo.texture.type = THREE.HalfFloatType;
135
- return fbo;
136
- });
137
- this.cameraArgs = computed(() => [this.#near(), this.#far(), this.fbo()]);
105
+ this.cubeCamera = injectNgtsCubeCamera(this.inputs.state);
106
+ this.texture = computed(() => this.cubeCamera.fbo().texture);
107
+ this.beforeRender();
108
+ }
109
+ beforeRender() {
138
110
  let count = 0;
139
- let originalFog;
140
- let originalBackground;
141
- injectBeforeRender(({ scene, gl }) => {
142
- const { frames, envMap, fog } = this.get();
143
- if (envMap &&
144
- this.cameraRef.nativeElement &&
145
- this.groupRef.nativeElement &&
146
- (frames === Infinity || count < frames)) {
147
- this.groupRef.nativeElement.visible = false;
148
- originalFog = scene.fog;
149
- originalBackground = scene.background;
150
- scene.background = envMap || originalBackground;
151
- scene.fog = fog || originalFog;
152
- this.cameraRef.nativeElement.update(gl, scene);
153
- scene.fog = originalFog;
154
- scene.background = originalBackground;
155
- this.groupRef.nativeElement.visible = true;
111
+ injectBeforeRender(() => {
112
+ const camera = this.cameraRef.nativeElement;
113
+ if (!camera)
114
+ return;
115
+ const [update, frames] = [this.cubeCamera.update(), this.inputs.get('frames')];
116
+ if (frames === Infinity || count < frames) {
117
+ camera.visible = false;
118
+ update();
119
+ camera.visible = true;
156
120
  count++;
157
121
  }
158
122
  });
159
123
  }
160
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsCubeCamera, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
161
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgtsCubeCamera, isStandalone: true, selector: "ngts-cube-camera", inputs: { cameraRef: "cameraRef", frames: "frames", resolution: "resolution", near: "near", far: "far", envMap: "envMap", fog: "fog" }, queries: [{ propertyName: "cameraContent", first: true, predicate: NgtsCameraContent, descendants: true }], viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
162
- <ngt-group ngtCompound>
163
- <ngt-cube-camera [ref]="cameraRef" *args="cameraArgs()" />
164
- <ngt-group #group>
165
- <ng-container
166
- *ngIf="cameraContent && cameraContent.ngtsCameraContent && fbo()"
167
- [ngTemplateOutlet]="cameraContent.template"
168
- [ngTemplateOutletContext]="{ fbo: fbo(), group }"
169
- />
170
- </ngt-group>
171
- </ngt-group>
172
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] }); }
124
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCubeCamera, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
125
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsCubeCamera, isStandalone: true, selector: "ngts-cube-camera", inputs: { cameraRef: "cameraRef", _resolution: ["resolution", "_resolution"], _near: ["near", "_near"], _far: ["far", "_far"], _envMap: ["envMap", "_envMap"], _fog: ["fog", "_fog"] }, queries: [{ propertyName: "cameraContent", first: true, predicate: NgtsCubeCameraContent, descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: `
126
+ <ngt-group ngtCompound>
127
+ <ngt-primitive *args="[cubeCamera.camera()]" />
128
+ <ngt-group [ref]="cameraRef">
129
+ <ng-container *ngTemplateOutlet="cameraContent; context: { texture }" />
130
+ </ngt-group>
131
+ </ngt-group>
132
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
173
133
  }
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsCubeCamera, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCubeCamera, decorators: [{
175
135
  type: Component,
176
136
  args: [{
177
137
  selector: 'ngts-cube-camera',
178
138
  standalone: true,
179
139
  template: `
180
- <ngt-group ngtCompound>
181
- <ngt-cube-camera [ref]="cameraRef" *args="cameraArgs()" />
182
- <ngt-group #group>
183
- <ng-container
184
- *ngIf="cameraContent && cameraContent.ngtsCameraContent && fbo()"
185
- [ngTemplateOutlet]="cameraContent.template"
186
- [ngTemplateOutletContext]="{ fbo: fbo(), group }"
187
- />
188
- </ngt-group>
189
- </ngt-group>
190
- `,
191
- imports: [NgIf, NgTemplateOutlet, NgtArgs],
140
+ <ngt-group ngtCompound>
141
+ <ngt-primitive *args="[cubeCamera.camera()]" />
142
+ <ngt-group [ref]="cameraRef">
143
+ <ng-container *ngTemplateOutlet="cameraContent; context: { texture }" />
144
+ </ngt-group>
145
+ </ngt-group>
146
+ `,
147
+ imports: [NgtArgs, NgTemplateOutlet],
192
148
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
193
149
  }]
194
- }], ctorParameters: function () { return []; }, propDecorators: { groupRef: [{
195
- type: ViewChild,
196
- args: ['group', { static: true }]
150
+ }], ctorParameters: function () { return []; }, propDecorators: { cameraRef: [{
151
+ type: Input
197
152
  }], cameraContent: [{
198
153
  type: ContentChild,
199
- args: [NgtsCameraContent]
154
+ args: [NgtsCubeCameraContent, { static: true, read: TemplateRef }]
155
+ }], _resolution: [{
156
+ type: Input,
157
+ args: [{ alias: 'resolution' }]
158
+ }], _near: [{
159
+ type: Input,
160
+ args: [{ alias: 'near' }]
161
+ }], _far: [{
162
+ type: Input,
163
+ args: [{ alias: 'far' }]
164
+ }], _envMap: [{
165
+ type: Input,
166
+ args: [{ alias: 'envMap' }]
167
+ }], _fog: [{
168
+ type: Input,
169
+ args: [{ alias: 'fog' }]
170
+ }] } });
171
+
172
+ class NgtsCamera {
173
+ set _makeDefault(makeDefault) {
174
+ this.inputs.set({ makeDefault });
175
+ }
176
+ set _manual(manual) {
177
+ this.inputs.set({ manual });
178
+ }
179
+ set _frames(frames) {
180
+ this.inputs.set({ frames });
181
+ }
182
+ set _resolution(resolution) {
183
+ this.inputs.set({ resolution });
184
+ }
185
+ set _envMap(envMap) {
186
+ this.inputs.set({ envMap });
187
+ }
188
+ constructor() {
189
+ this.inputs = signalStore({
190
+ resolution: 256,
191
+ frames: Infinity,
192
+ makeDefault: false,
193
+ manual: false,
194
+ });
195
+ this.cameraRef = injectNgtRef();
196
+ this.cameraResolution = this.inputs.select('resolution');
197
+ this.store = injectNgtStore();
198
+ this.fbo = injectNgtsFBO(() => ({ width: this.cameraResolution() }));
199
+ this.setDefaultCamera();
200
+ this.updateProjectionMatrix();
201
+ }
202
+ setDefaultCamera() {
203
+ const makeDefault = this.inputs.select('makeDefault');
204
+ effect((onCleanup) => {
205
+ const camera = this.cameraRef.nativeElement;
206
+ if (camera && makeDefault()) {
207
+ const { camera: oldCamera } = this.store.get();
208
+ this.store.set({ camera });
209
+ onCleanup(() => this.store.set({ camera: oldCamera }));
210
+ }
211
+ });
212
+ }
213
+ updateProjectionMatrix() {
214
+ const manual = this.inputs.select('manual');
215
+ effect(() => {
216
+ const camera = this.cameraRef.nativeElement;
217
+ if (!manual() && camera)
218
+ camera.updateProjectionMatrix();
219
+ });
220
+ }
221
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCamera, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
222
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.3", type: NgtsCamera, inputs: { _makeDefault: ["makeDefault", "_makeDefault"], _manual: ["manual", "_manual"], _frames: ["frames", "_frames"], _resolution: ["resolution", "_resolution"], _envMap: ["envMap", "_envMap"], cameraRef: "cameraRef" }, ngImport: i0 }); }
223
+ }
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCamera, decorators: [{
225
+ type: Directive
226
+ }], ctorParameters: function () { return []; }, propDecorators: { _makeDefault: [{
227
+ type: Input,
228
+ args: [{ alias: 'makeDefault' }]
229
+ }], _manual: [{
230
+ type: Input,
231
+ args: [{ alias: 'manual' }]
232
+ }], _frames: [{
233
+ type: Input,
234
+ args: [{ alias: 'frames' }]
235
+ }], _resolution: [{
236
+ type: Input,
237
+ args: [{ alias: 'resolution' }]
238
+ }], _envMap: [{
239
+ type: Input,
240
+ args: [{ alias: 'envMap' }]
200
241
  }], cameraRef: [{
201
242
  type: Input
202
- }], frames: [{
203
- type: Input
204
- }], resolution: [{
205
- type: Input
206
- }], near: [{
207
- type: Input
208
- }], far: [{
209
- type: Input
210
- }], envMap: [{
211
- type: Input
212
- }], fog: [{
213
- type: Input
214
243
  }] } });
215
244
 
216
245
  extend({ OrthographicCamera, Group });
217
246
  class NgtsOrthographicCamera extends NgtsCamera {
218
- set left(left) {
219
- this.set({ left });
247
+ constructor() {
248
+ super(...arguments);
249
+ this.orthographicInputs = signalStore({
250
+ left: 0,
251
+ right: 0,
252
+ top: 0,
253
+ bottom: 0,
254
+ });
255
+ this.left = this.orthographicInputs.select('left');
256
+ this.right = this.orthographicInputs.select('right');
257
+ this.top = this.orthographicInputs.select('top');
258
+ this.bottom = this.orthographicInputs.select('bottom');
259
+ this.size = this.store.select('size');
260
+ this.cameraLeft = computed(() => this.left() || this.size().width / -2);
261
+ this.cameraRight = computed(() => this.right() || this.size().width / 2);
262
+ this.cameraTop = computed(() => this.top() || this.size().height / 2);
263
+ this.cameraBottom = computed(() => this.bottom() || this.size().height / -2);
220
264
  }
221
- set right(right) {
222
- this.set({ right });
265
+ set _left(left) {
266
+ this.orthographicInputs.set({ left });
223
267
  }
224
- set top(top) {
225
- this.set({ top });
268
+ set _right(right) {
269
+ this.orthographicInputs.set({ right });
226
270
  }
227
- set bottom(bottom) {
228
- this.set({ bottom });
271
+ set _top(top) {
272
+ this.orthographicInputs.set({ top });
229
273
  }
230
- #left;
231
- #right;
232
- #top;
233
- #bottom;
234
- #size;
235
- constructor() {
236
- super();
237
- this.#left = this.select('left');
238
- this.#right = this.select('right');
239
- this.#top = this.select('top');
240
- this.#bottom = this.select('bottom');
241
- this.#size = this.store.select('size');
242
- this.cameraLeft = computed(() => this.#left() || this.#size().width / -2);
243
- this.cameraRight = computed(() => this.#right() || this.#size().width / 2);
244
- this.cameraTop = computed(() => this.#top() || this.#size().height / 2);
245
- this.cameraBottom = computed(() => this.#bottom() || this.#size().height / -2);
246
- this.set({ left: 0, right: 0, top: 0, bottom: 0 });
274
+ set _bottom(bottom) {
275
+ this.orthographicInputs.set({ bottom });
247
276
  }
248
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsOrthographicCamera, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
249
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgtsOrthographicCamera, isStandalone: true, selector: "ngts-orthographic-camera", inputs: { left: "left", right: "right", top: "top", bottom: "bottom" }, queries: [{ propertyName: "cameraContent", first: true, predicate: NgtsCameraContent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
250
- <ngt-orthographic-camera
251
- ngtCompound
252
- [ref]="cameraRef"
253
- [left]="cameraLeft()"
254
- [right]="cameraRight()"
255
- [top]="cameraTop()"
256
- [bottom]="cameraBottom()"
257
- >
258
- <ng-container
259
- *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
260
- [ngTemplateOutlet]="cameraContent.template"
261
- />
262
- </ngt-orthographic-camera>
263
- <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
264
- <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fboRef(), group }" />
265
- </ngt-group>
266
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
277
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsOrthographicCamera, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
278
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsOrthographicCamera, isStandalone: true, selector: "ngts-orthographic-camera", inputs: { _left: ["left", "_left"], _right: ["right", "_right"], _top: ["top", "_top"], _bottom: ["bottom", "_bottom"] }, queries: [{ propertyName: "cameraContent", first: true, predicate: NgtsCameraContent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
279
+ <ngt-orthographic-camera
280
+ ngtCompound
281
+ [ref]="cameraRef"
282
+ [left]="cameraLeft()"
283
+ [right]="cameraRight()"
284
+ [top]="cameraTop()"
285
+ [bottom]="cameraBottom()"
286
+ >
287
+ <ng-container
288
+ *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
289
+ [ngTemplateOutlet]="cameraContent.template"
290
+ />
291
+ </ngt-orthographic-camera>
292
+ <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
293
+ <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fbo(), group }" />
294
+ </ngt-group>
295
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
267
296
  }
268
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsOrthographicCamera, decorators: [{
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsOrthographicCamera, decorators: [{
269
298
  type: Component,
270
299
  args: [{
271
300
  selector: 'ngts-orthographic-camera',
272
301
  standalone: true,
273
302
  template: `
274
- <ngt-orthographic-camera
275
- ngtCompound
276
- [ref]="cameraRef"
277
- [left]="cameraLeft()"
278
- [right]="cameraRight()"
279
- [top]="cameraTop()"
280
- [bottom]="cameraBottom()"
281
- >
282
- <ng-container
283
- *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
284
- [ngTemplateOutlet]="cameraContent.template"
285
- />
286
- </ngt-orthographic-camera>
287
- <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
288
- <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fboRef(), group }" />
289
- </ngt-group>
290
- `,
303
+ <ngt-orthographic-camera
304
+ ngtCompound
305
+ [ref]="cameraRef"
306
+ [left]="cameraLeft()"
307
+ [right]="cameraRight()"
308
+ [top]="cameraTop()"
309
+ [bottom]="cameraBottom()"
310
+ >
311
+ <ng-container
312
+ *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
313
+ [ngTemplateOutlet]="cameraContent.template"
314
+ />
315
+ </ngt-orthographic-camera>
316
+ <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
317
+ <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fbo(), group }" />
318
+ </ngt-group>
319
+ `,
291
320
  imports: [NgIf, NgTemplateOutlet],
292
321
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
293
322
  }]
294
- }], ctorParameters: function () { return []; }, propDecorators: { cameraContent: [{
323
+ }], propDecorators: { cameraContent: [{
295
324
  type: ContentChild,
296
325
  args: [NgtsCameraContent]
297
- }], left: [{
298
- type: Input
299
- }], right: [{
300
- type: Input
301
- }], top: [{
302
- type: Input
303
- }], bottom: [{
304
- type: Input
326
+ }], _left: [{
327
+ type: Input,
328
+ args: [{ alias: 'left' }]
329
+ }], _right: [{
330
+ type: Input,
331
+ args: [{ alias: 'right' }]
332
+ }], _top: [{
333
+ type: Input,
334
+ args: [{ alias: 'top' }]
335
+ }], _bottom: [{
336
+ type: Input,
337
+ args: [{ alias: 'bottom' }]
305
338
  }] } });
306
339
 
307
340
  extend({ PerspectiveCamera, Group });
308
341
  class NgtsPerspectiveCamera extends NgtsCamera {
309
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsPerspectiveCamera, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
310
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgtsPerspectiveCamera, isStandalone: true, selector: "ngts-perspective-camera", queries: [{ propertyName: "cameraContent", first: true, predicate: NgtsCameraContent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
311
- <ngt-perspective-camera [ref]="cameraRef" ngtCompound>
312
- <ng-container
313
- *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
314
- [ngTemplateOutlet]="cameraContent.template"
315
- />
316
- </ngt-perspective-camera>
317
- <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
318
- <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fboRef(), group }" />
319
- </ngt-group>
320
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
342
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsPerspectiveCamera, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
343
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsPerspectiveCamera, isStandalone: true, selector: "ngts-perspective-camera", queries: [{ propertyName: "cameraContent", first: true, predicate: NgtsCameraContent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
344
+ <ngt-perspective-camera [ref]="cameraRef" ngtCompound>
345
+ <ng-container
346
+ *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
347
+ [ngTemplateOutlet]="cameraContent.template"
348
+ />
349
+ </ngt-perspective-camera>
350
+ <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
351
+ <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fbo(), group }" />
352
+ </ngt-group>
353
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
321
354
  }
322
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsPerspectiveCamera, decorators: [{
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsPerspectiveCamera, decorators: [{
323
356
  type: Component,
324
357
  args: [{
325
358
  selector: 'ngts-perspective-camera',
326
359
  standalone: true,
327
360
  template: `
328
- <ngt-perspective-camera [ref]="cameraRef" ngtCompound>
329
- <ng-container
330
- *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
331
- [ngTemplateOutlet]="cameraContent.template"
332
- />
333
- </ngt-perspective-camera>
334
- <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
335
- <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fboRef(), group }" />
336
- </ngt-group>
337
- `,
361
+ <ngt-perspective-camera [ref]="cameraRef" ngtCompound>
362
+ <ng-container
363
+ *ngIf="cameraContent && !cameraContent.ngtsCameraContent"
364
+ [ngTemplateOutlet]="cameraContent.template"
365
+ />
366
+ </ngt-perspective-camera>
367
+ <ngt-group #group *ngIf="cameraContent && cameraContent.ngtsCameraContent">
368
+ <ng-container *ngTemplateOutlet="cameraContent.template; context: { fbo: fbo(), group }" />
369
+ </ngt-group>
370
+ `,
338
371
  imports: [NgIf, NgTemplateOutlet],
339
372
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
340
373
  }]
@@ -347,5 +380,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
347
380
  * Generated bundle index. Do not edit.
348
381
  */
349
382
 
350
- export { NgtsCamera, NgtsCameraContent, NgtsCubeCamera, NgtsOrthographicCamera, NgtsPerspectiveCamera };
383
+ export { NgtsCameraContent, NgtsCubeCamera, NgtsCubeCameraContent, NgtsOrthographicCamera, NgtsPerspectiveCamera, injectNgtsCubeCamera };
351
384
  //# sourceMappingURL=angular-three-soba-cameras.mjs.map