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.
- package/abstractions/billboard/billboard.d.ts +12 -8
- package/abstractions/detailed/detailed.d.ts +26 -0
- package/abstractions/edges/edges.d.ts +24 -12
- package/abstractions/grid/grid.d.ts +42 -51
- package/abstractions/index.d.ts +1 -7
- package/abstractions/text/text.d.ts +10 -4
- package/abstractions/text-3d/text-3d.d.ts +51 -41
- package/cameras/camera/camera-content.d.ts +1 -1
- package/cameras/camera/camera.d.ts +16 -13
- package/cameras/cube-camera/cube-camera.d.ts +49 -23
- package/cameras/index.d.ts +0 -1
- package/cameras/orthographic-camera/orthographic-camera.d.ts +29 -18
- package/cameras/perspective-camera/perspective-camera.d.ts +10 -1
- package/controls/orbit-controls/orbit-controls.d.ts +34 -15
- package/esm2022/abstractions/billboard/billboard.mjs +36 -33
- package/esm2022/abstractions/detailed/detailed.mjs +64 -0
- package/esm2022/abstractions/edges/edges.mjs +58 -63
- package/esm2022/abstractions/grid/grid.mjs +140 -110
- package/esm2022/abstractions/index.mjs +2 -8
- package/esm2022/abstractions/text/text.mjs +123 -122
- package/esm2022/abstractions/text-3d/text-3d.mjs +120 -115
- package/esm2022/cameras/camera/camera-content.mjs +6 -6
- package/esm2022/cameras/camera/camera.mjs +48 -42
- package/esm2022/cameras/cube-camera/cube-camera.mjs +120 -100
- package/esm2022/cameras/index.mjs +1 -2
- package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +78 -75
- package/esm2022/cameras/perspective-camera/perspective-camera.mjs +25 -26
- package/esm2022/controls/orbit-controls/orbit-controls.mjs +109 -85
- package/esm2022/gizmos/angular-three-soba-gizmos.mjs +5 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-helper.mjs +198 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/constants.mjs +31 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +93 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +151 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.mjs +66 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +71 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +195 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +272 -0
- package/esm2022/gizmos/index.mjs +4 -0
- package/esm2022/loaders/gltf-loader/gltf-loader.mjs +14 -9
- package/esm2022/loaders/loader/loader.mjs +92 -87
- package/esm2022/loaders/progress/progress.mjs +31 -30
- package/esm2022/loaders/texture-loader/texture-loader.mjs +20 -15
- package/esm2022/materials/index.mjs +2 -1
- package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +60 -51
- package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +239 -255
- package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +99 -97
- package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +164 -144
- package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +44 -42
- package/esm2022/materials/point-material/point-material.mjs +50 -0
- package/esm2022/misc/animations/animations.mjs +28 -23
- package/esm2022/misc/bake-shadows/bake-shadows.mjs +13 -13
- package/esm2022/misc/caustics/caustics.mjs +387 -0
- package/esm2022/misc/decal/decal.mjs +187 -0
- package/esm2022/misc/depth-buffer/depth-buffer.mjs +41 -37
- package/esm2022/misc/example/example.mjs +161 -0
- package/esm2022/misc/fbo/fbo.mjs +42 -36
- package/esm2022/misc/html/html-wrapper.mjs +478 -0
- package/esm2022/misc/html/html.mjs +305 -0
- package/esm2022/misc/index.mjs +10 -1
- package/esm2022/misc/sampler/sampler.mjs +132 -0
- package/esm2022/misc/shadow/shadow.mjs +111 -0
- package/esm2022/misc/stats-gl/stats-gl.mjs +61 -0
- package/esm2022/misc/trail/trail.mjs +204 -0
- package/esm2022/misc/trail-texture/inject-trail-texture.mjs +17 -0
- package/esm2022/misc/trail-texture/trail-texture.mjs +106 -0
- package/esm2022/modifiers/angular-three-soba-modifiers.mjs +5 -0
- package/esm2022/modifiers/curve-modifier/curve-modifier.mjs +64 -0
- package/esm2022/modifiers/index.mjs +2 -0
- package/esm2022/performances/adaptive-dpr/adaptive-dpr.mjs +44 -0
- package/esm2022/performances/adaptive-events/adaptive-events.mjs +27 -0
- package/esm2022/performances/angular-three-soba-performances.mjs +5 -0
- package/esm2022/performances/index.mjs +8 -0
- package/esm2022/performances/instances/instances.mjs +221 -0
- package/esm2022/performances/instances/position-mesh.mjs +52 -0
- package/esm2022/performances/points/points-input.mjs +64 -0
- package/esm2022/performances/points/points.mjs +327 -0
- package/esm2022/performances/points/position-point.mjs +54 -0
- package/esm2022/performances/segments/segment-object.mjs +9 -0
- package/esm2022/performances/segments/segments.mjs +183 -0
- package/esm2022/shaders/blur-pass/blur-pass.mjs +2 -2
- package/esm2022/shaders/caustics/caustics-material.mjs +130 -0
- package/esm2022/shaders/caustics/caustics-projection-material.mjs +32 -0
- package/esm2022/shaders/convolution-material/convolution-material.mjs +3 -2
- package/esm2022/shaders/discard-material/discard-material.mjs +1 -1
- package/esm2022/shaders/grid-material/grid-material.mjs +30 -14
- package/esm2022/shaders/index.mjs +5 -3
- package/esm2022/shaders/mesh-distort-material/mesh-distort-material.mjs +42 -41
- package/esm2022/shaders/mesh-reflector-material/mesh-reflector-material.mjs +2 -2
- package/esm2022/shaders/mesh-refraction-material/mesh-refraction-material.mjs +3 -2
- package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +7 -4
- package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +1 -1
- package/esm2022/shaders/shader-material/shader-material.mjs +3 -5
- package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +18 -25
- package/esm2022/shaders/sparkles-material/sparkles-material.mjs +32 -46
- package/esm2022/shaders/spot-light-material/spot-light-material.mjs +8 -7
- package/esm2022/shaders/star-field-material/star-field-material.mjs +3 -2
- package/esm2022/shaders/wireframe-material/wireframe-material.mjs +247 -0
- package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +161 -176
- package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +8 -8
- package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +129 -129
- package/esm2022/staging/backdrop/backdrop.mjs +77 -0
- package/esm2022/staging/bb-anchor/bb-anchor.mjs +69 -0
- package/esm2022/staging/bounds/bounds.mjs +145 -143
- package/esm2022/staging/camera-shake/camera-shake.mjs +86 -80
- package/esm2022/staging/center/center.mjs +129 -112
- package/esm2022/staging/cloud/cloud.mjs +118 -124
- package/esm2022/staging/contact-shadows/contact-shadows.mjs +131 -136
- package/esm2022/staging/environment/assets.mjs +12 -12
- package/esm2022/staging/environment/environment-cube.mjs +28 -30
- package/esm2022/staging/environment/environment-ground.mjs +17 -19
- package/esm2022/staging/environment/environment-input.mjs +98 -85
- package/esm2022/staging/environment/environment-map.mjs +33 -33
- package/esm2022/staging/environment/environment-portal.mjs +75 -97
- package/esm2022/staging/environment/environment.mjs +34 -51
- package/esm2022/staging/environment/utils.mjs +40 -17
- package/esm2022/staging/float/float.mjs +70 -58
- package/esm2022/staging/index.mjs +7 -3
- package/esm2022/staging/matcap-texture/matcap-texture.mjs +64 -0
- package/esm2022/staging/normal-texture/normal-texture.mjs +53 -0
- package/esm2022/staging/sky/sky.mjs +85 -80
- package/esm2022/staging/sparkles/sparkles.mjs +108 -105
- package/esm2022/staging/spot-light/shadow-mesh-input.mjs +63 -0
- package/esm2022/staging/spot-light/shadow-mesh.mjs +267 -0
- package/esm2022/staging/spot-light/spot-light-input.mjs +67 -58
- package/esm2022/staging/spot-light/spot-light.mjs +51 -63
- package/esm2022/staging/spot-light/volumetric-mesh.mjs +67 -70
- package/esm2022/staging/stage/stage.mjs +305 -290
- package/esm2022/staging/stars/stars.mjs +101 -102
- package/esm2022/staging/wireframe/wireframe-input.mjs +191 -0
- package/esm2022/staging/wireframe/wireframe.mjs +228 -0
- package/esm2022/utils/angular-three-soba-utils.mjs +5 -0
- package/esm2022/utils/constants.mjs +3 -0
- package/esm2022/utils/content/content.mjs +15 -0
- package/esm2022/utils/index.mjs +3 -0
- package/fesm2022/angular-three-soba-abstractions.mjs +504 -2079
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +293 -260
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +108 -83
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-gizmos.mjs +1045 -0
- package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -0
- package/fesm2022/angular-three-soba-loaders.mjs +148 -132
- package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +656 -588
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2022/angular-three-soba-misc.mjs +2202 -99
- package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2022/angular-three-soba-modifiers.mjs +71 -0
- package/fesm2022/angular-three-soba-modifiers.mjs.map +1 -0
- package/fesm2022/angular-three-soba-performances.mjs +957 -0
- package/fesm2022/angular-three-soba-performances.mjs.map +1 -0
- package/fesm2022/angular-three-soba-shaders.mjs +508 -269
- package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +2910 -2573
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2022/angular-three-soba-utils.mjs +25 -0
- package/fesm2022/angular-three-soba-utils.mjs.map +1 -0
- package/gizmos/README.md +3 -0
- package/gizmos/gizmo-helper/gizmo-helper.d.ts +73 -0
- package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +22 -0
- package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +29 -0
- package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.d.ts +33 -0
- package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +10 -0
- package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +40 -0
- package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +30 -0
- package/gizmos/index.d.ts +3 -0
- package/loaders/gltf-loader/gltf-loader.d.ts +15 -4
- package/loaders/loader/loader.d.ts +19 -17
- package/loaders/progress/progress.d.ts +1 -1
- package/loaders/texture-loader/texture-loader.d.ts +8 -3
- package/materials/index.d.ts +1 -0
- package/materials/mesh-distort-material/mesh-distort-material.d.ts +25 -15
- package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +74 -56
- package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +33 -21
- package/materials/mesh-transmission-material/mesh-transmission-material.d.ts +55 -39
- package/materials/mesh-wobble-material/mesh-wobble-material.d.ts +19 -10
- package/materials/point-material/point-material.d.ts +24 -0
- package/metadata.json +1 -0
- package/misc/animations/animations.d.ts +6 -4
- package/misc/caustics/caustics.d.ts +87 -0
- package/misc/decal/decal.d.ts +49 -0
- package/misc/depth-buffer/depth-buffer.d.ts +2 -2
- package/misc/example/example.d.ts +85 -0
- package/misc/fbo/fbo.d.ts +2 -2
- package/misc/html/html-wrapper.d.ts +559 -0
- package/misc/html/html.d.ts +218 -0
- package/misc/index.d.ts +9 -0
- package/misc/sampler/sampler.d.ts +67 -0
- package/misc/shadow/shadow.d.ts +37 -0
- package/misc/stats-gl/stats-gl.d.ts +24 -0
- package/misc/trail/trail.d.ts +57 -0
- package/misc/trail-texture/inject-trail-texture.d.ts +9 -0
- package/misc/trail-texture/trail-texture.d.ts +50 -0
- package/modifiers/README.md +3 -0
- package/modifiers/curve-modifier/curve-modifier.d.ts +23 -0
- package/modifiers/index.d.ts +1 -0
- package/package.json +42 -24
- package/performances/README.md +3 -0
- package/performances/adaptive-dpr/adaptive-dpr.d.ts +14 -0
- package/{performance/adaptive → performances/adaptive-events}/adaptive-events.d.ts +3 -0
- package/performances/index.d.ts +7 -0
- package/performances/instances/instances.d.ts +83 -0
- package/{performance → performances}/instances/position-mesh.d.ts +1 -1
- package/performances/points/points-input.d.ts +32 -0
- package/performances/points/points.d.ts +96 -0
- package/performances/points/position-point.d.ts +11 -0
- package/performances/segments/segment-object.d.ts +7 -0
- package/performances/segments/segments.d.ts +128 -0
- package/shaders/grid-material/grid-material.d.ts +33 -0
- package/shaders/index.d.ts +4 -2
- package/shaders/mesh-distort-material/mesh-distort-material.d.ts +173 -6
- package/shaders/mesh-transmission-material/mesh-transmission-material.d.ts +1 -1
- package/shaders/shader-material/shader-material.d.ts +2 -2
- package/shaders/soft-shadow-material/soft-shadow-material.d.ts +10 -1
- package/shaders/sparkles-material/sparkles-material.d.ts +13 -0
- package/shaders/spot-light-material/spot-light-material.d.ts +11 -2
- package/shaders/star-field-material/star-field-material.d.ts +9 -0
- package/shaders/wireframe-material/wireframe-material.d.ts +58 -0
- package/staging/accumulative-shadows/accumulative-shadows.d.ts +93 -39
- package/staging/accumulative-shadows/randomized-lights.d.ts +41 -28
- package/staging/backdrop/backdrop.d.ts +30 -0
- package/staging/bb-anchor/bb-anchor.d.ts +27 -0
- package/staging/bounds/bounds.d.ts +105 -25
- package/staging/camera-shake/camera-shake.d.ts +30 -19
- package/staging/center/center.d.ts +43 -35
- package/staging/cloud/cloud.d.ts +27 -24
- package/staging/contact-shadows/contact-shadows.d.ts +43 -30
- package/staging/environment/assets.d.ts +9 -9
- package/staging/environment/environment-cube.d.ts +9 -5
- package/staging/environment/environment-ground.d.ts +7 -7
- package/staging/environment/environment-input.d.ts +38 -38
- package/staging/environment/environment-map.d.ts +10 -5
- package/staging/environment/environment-portal.d.ts +10 -5
- package/staging/environment/environment.d.ts +0 -4
- package/staging/environment/utils.d.ts +2 -2
- package/staging/float/float.d.ts +15 -11
- package/staging/index.d.ts +6 -2
- package/staging/matcap-texture/matcap-texture.d.ts +13 -0
- package/staging/normal-texture/normal-texture.d.ts +16 -0
- package/staging/sky/sky.d.ts +28 -21
- package/staging/sparkles/sparkles.d.ts +36 -22
- package/staging/spot-light/shadow-mesh-input.d.ts +29 -0
- package/staging/spot-light/shadow-mesh.d.ts +37 -0
- package/staging/spot-light/spot-light-input.d.ts +25 -25
- package/staging/spot-light/spot-light.d.ts +35 -15
- package/staging/spot-light/volumetric-mesh.d.ts +15 -9
- package/staging/stage/stage.d.ts +89 -65
- package/staging/stars/stars.d.ts +28 -17
- package/staging/wireframe/wireframe-input.d.ts +65 -0
- package/staging/wireframe/wireframe.d.ts +28 -0
- package/utils/README.md +3 -0
- package/utils/constants.d.ts +1 -0
- package/utils/content/content.d.ts +8 -0
- package/utils/index.d.ts +2 -0
- package/web-types.json +1 -0
- package/abstractions/catmull-rom-line/catmull-rom-line.d.ts +0 -25
- package/abstractions/cubic-bezier-line/cubic-bezier-line.d.ts +0 -25
- package/abstractions/gizmo-helper/gizmo-helper.d.ts +0 -34
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -22
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -30
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +0 -32
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +0 -14
- package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +0 -47
- package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +0 -40
- package/abstractions/line/line-input.d.ts +0 -42
- package/abstractions/line/line.d.ts +0 -35
- package/abstractions/quadratic-bezier-line/quadratic-bezier-line.d.ts +0 -23
- package/esm2022/abstractions/catmull-rom-line/catmull-rom-line.mjs +0 -131
- package/esm2022/abstractions/cubic-bezier-line/cubic-bezier-line.mjs +0 -113
- package/esm2022/abstractions/gizmo-helper/gizmo-helper.mjs +0 -210
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -95
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -155
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +0 -62
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -80
- package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -206
- package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -273
- package/esm2022/abstractions/line/line-input.mjs +0 -113
- package/esm2022/abstractions/line/line.mjs +0 -165
- package/esm2022/abstractions/quadratic-bezier-line/quadratic-bezier-line.mjs +0 -128
- package/esm2022/performance/adaptive/adaptive-dpr.mjs +0 -46
- package/esm2022/performance/adaptive/adaptive-events.mjs +0 -31
- package/esm2022/performance/angular-three-soba-performance.mjs +0 -5
- package/esm2022/performance/detailed/detailed.mjs +0 -61
- package/esm2022/performance/index.mjs +0 -7
- package/esm2022/performance/instances/instance.mjs +0 -48
- package/esm2022/performance/instances/instances.mjs +0 -189
- package/esm2022/performance/instances/position-mesh.mjs +0 -52
- package/esm2022/performance/stats/stats.mjs +0 -79
- package/esm2022/shaders/caustics-material/caustics-material.mjs +0 -128
- package/esm2022/shaders/caustics-material/caustics-projection-material.mjs +0 -33
- package/esm2022/staging/caustics/caustisc.mjs +0 -384
- package/esm2022/staging/spot-light/spot-light-shadow-mesh-input.mjs +0 -57
- package/esm2022/staging/spot-light/spot-light-shadow-mesh.mjs +0 -256
- package/fesm2022/angular-three-soba-performance.mjs +0 -487
- package/fesm2022/angular-three-soba-performance.mjs.map +0 -1
- package/performance/README.md +0 -3
- package/performance/adaptive/adaptive-dpr.d.ts +0 -8
- package/performance/detailed/detailed.d.ts +0 -20
- package/performance/index.d.ts +0 -6
- package/performance/instances/instance.d.ts +0 -9
- package/performance/instances/instances.d.ts +0 -35
- package/performance/stats/stats.d.ts +0 -18
- package/plugin/generators.json +0 -19
- package/plugin/libs/plugin/README.md +0 -11
- package/plugin/package.json +0 -9
- package/plugin/src/generators/init/compat.d.ts +0 -2
- package/plugin/src/generators/init/compat.js +0 -6
- package/plugin/src/generators/init/compat.js.map +0 -1
- package/plugin/src/generators/init/init.d.ts +0 -7
- package/plugin/src/generators/init/init.js +0 -28
- package/plugin/src/generators/init/init.js.map +0 -1
- package/plugin/src/generators/init/schema.json +0 -6
- package/plugin/src/index.d.ts +0 -1
- package/plugin/src/index.js +0 -6
- package/plugin/src/index.js.map +0 -1
- package/staging/caustics/caustisc.d.ts +0 -70
- package/staging/spot-light/spot-light-shadow-mesh-input.d.ts +0 -29
- package/staging/spot-light/spot-light-shadow-mesh.d.ts +0 -38
- /package/{abstractions → gizmos}/gizmo-helper/gizmo-viewcube/constants.d.ts +0 -0
- /package/shaders/{caustics-material → caustics}/caustics-material.d.ts +0 -0
- /package/shaders/{caustics-material → caustics}/caustics-projection-material.d.ts +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { NgtsEnvironmentPresetsType } from './assets';
|
|
2
|
+
import type { Loader, Scene, Texture, TextureEncoding } from 'three';
|
|
3
|
+
import type { NgtsEnvironmentPresetsType } from './assets';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export
|
|
5
|
+
export type NgtsEnvironmentInputState = {
|
|
7
6
|
frames?: number;
|
|
8
7
|
near?: number;
|
|
9
8
|
far?: number;
|
|
@@ -22,47 +21,48 @@ export interface NgtsEnvironmentInputState {
|
|
|
22
21
|
scale?: number;
|
|
23
22
|
};
|
|
24
23
|
encoding?: TextureEncoding;
|
|
25
|
-
}
|
|
26
|
-
export declare abstract class NgtsEnvironmentInput
|
|
27
|
-
|
|
28
|
-
set
|
|
29
|
-
set
|
|
30
|
-
set
|
|
31
|
-
set
|
|
32
|
-
set
|
|
33
|
-
set
|
|
34
|
-
set
|
|
35
|
-
set
|
|
36
|
-
set
|
|
37
|
-
set
|
|
38
|
-
set
|
|
39
|
-
set
|
|
40
|
-
set
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
24
|
+
};
|
|
25
|
+
export declare abstract class NgtsEnvironmentInput {
|
|
26
|
+
inputs: import("angular-three").NgtSignalStore<NgtsEnvironmentInputState>;
|
|
27
|
+
set _frames(frames: NgtsEnvironmentInputState['frames']);
|
|
28
|
+
set _near(near: NgtsEnvironmentInputState['near']);
|
|
29
|
+
set _far(far: NgtsEnvironmentInputState['far']);
|
|
30
|
+
set _resolution(resolution: NgtsEnvironmentInputState['resolution']);
|
|
31
|
+
set _background(background: NgtsEnvironmentInputState['background']);
|
|
32
|
+
set _blur(blur: NgtsEnvironmentInputState['blur']);
|
|
33
|
+
set _map(map: NgtsEnvironmentInputState['map']);
|
|
34
|
+
set _files(files: NgtsEnvironmentInputState['files']);
|
|
35
|
+
set _path(path: NgtsEnvironmentInputState['path']);
|
|
36
|
+
set _preset(preset: NgtsEnvironmentInputState['preset']);
|
|
37
|
+
set _scene(scene: NgtsEnvironmentInputState['scene']);
|
|
38
|
+
set _extensions(extensions: NgtsEnvironmentInputState['extensions']);
|
|
39
|
+
set _ground(ground: NgtsEnvironmentInputState['ground']);
|
|
40
|
+
set _encoding(encoding: NgtsEnvironmentInputState['encoding']);
|
|
41
|
+
frames: import("@angular/core").Signal<number | undefined>;
|
|
42
|
+
near: import("@angular/core").Signal<number | undefined>;
|
|
43
|
+
far: import("@angular/core").Signal<number | undefined>;
|
|
44
|
+
resolution: import("@angular/core").Signal<number | undefined>;
|
|
45
|
+
background: import("@angular/core").Signal<boolean | "only" | undefined>;
|
|
46
|
+
blur: import("@angular/core").Signal<number | undefined>;
|
|
47
|
+
map: import("@angular/core").Signal<Texture | undefined>;
|
|
48
|
+
files: import("@angular/core").Signal<string | string[] | undefined>;
|
|
49
|
+
path: import("@angular/core").Signal<string | undefined>;
|
|
50
|
+
preset: import("@angular/core").Signal<"apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | undefined>;
|
|
51
|
+
scene: import("@angular/core").Signal<Scene | ElementRef<Scene> | undefined>;
|
|
52
|
+
extensions: import("@angular/core").Signal<((loader: Loader<unknown, string>) => void) | undefined>;
|
|
53
|
+
ground: import("@angular/core").Signal<boolean | {
|
|
54
54
|
radius?: number | undefined;
|
|
55
55
|
height?: number | undefined;
|
|
56
56
|
scale?: number | undefined;
|
|
57
57
|
} | undefined>;
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
encoding: import("@angular/core").Signal<TextureEncoding | undefined>;
|
|
59
|
+
params: import("@angular/core").Signal<{
|
|
60
60
|
files: string | string[] | undefined;
|
|
61
61
|
path: string | undefined;
|
|
62
|
-
preset: "
|
|
63
|
-
extensions: ((loader: Loader) => void) | undefined;
|
|
62
|
+
preset: "apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | undefined;
|
|
63
|
+
extensions: ((loader: Loader<unknown, string>) => void) | undefined;
|
|
64
64
|
encoding: TextureEncoding | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentInput, never>;
|
|
67
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentInput, never, never, { "
|
|
67
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentInput, never, never, { "_frames": { "alias": "frames"; "required": false; }; "_near": { "alias": "near"; "required": false; }; "_far": { "alias": "far"; "required": false; }; "_resolution": { "alias": "resolution"; "required": false; }; "_background": { "alias": "background"; "required": false; }; "_blur": { "alias": "blur"; "required": false; }; "_map": { "alias": "map"; "required": false; }; "_files": { "alias": "files"; "required": false; }; "_path": { "alias": "path"; "required": false; }; "_preset": { "alias": "preset"; "required": false; }; "_scene": { "alias": "scene"; "required": false; }; "_extensions": { "alias": "extensions"; "required": false; }; "_ground": { "alias": "ground"; "required": false; }; "_encoding": { "alias": "encoding"; "required": false; }; }, {}, never, never, false, never>;
|
|
68
68
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { NgtsEnvironmentInput } from './environment-input';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NgtsEnvironmentMap {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
set
|
|
4
|
+
environmentInput: NgtsEnvironmentInput;
|
|
5
|
+
private store;
|
|
6
|
+
private inputs;
|
|
7
|
+
set _map(map: THREE.Texture);
|
|
8
|
+
set _background(background: boolean);
|
|
8
9
|
constructor();
|
|
10
|
+
private scene;
|
|
11
|
+
private background;
|
|
12
|
+
private map;
|
|
13
|
+
private setEnvProps;
|
|
9
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentMap, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentMap, "ngts-environment-map", never, { "
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentMap, "ngts-environment-map", never, { "_map": { "alias": "map"; "required": false; }; "_background": { "alias": "background"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
16
|
}
|
|
@@ -2,12 +2,17 @@ import * as THREE from 'three';
|
|
|
2
2
|
import { NgtsEnvironmentInput } from './environment-input';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgtsEnvironmentPortal {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
environmentInput: NgtsEnvironmentInput;
|
|
6
|
+
private store;
|
|
7
|
+
private gl;
|
|
8
|
+
private scene;
|
|
9
|
+
virtualSceneRef: import("angular-three").NgtInjectedRef<THREE.Scene>;
|
|
10
|
+
cubeCameraRef: import("angular-three").NgtInjectedRef<THREE.CubeCamera>;
|
|
11
|
+
private fbo;
|
|
12
|
+
cameraArgs: import("@angular/core").Signal<(number | THREE.WebGLCubeRenderTarget)[]>;
|
|
10
13
|
constructor();
|
|
14
|
+
private setEnvProps;
|
|
15
|
+
private beforeRender;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentPortal, never>;
|
|
12
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsEnvironmentPortal, "ngts-environment-portal", never, {}, {}, never, ["*"], true, never>;
|
|
13
18
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { NgtsEnvironmentInput } from './environment-input';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgtsEnvironmentContent {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentContent, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentContent, "ng-template[ngtsEnvironmentContent]", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
8
4
|
export declare class NgtsEnvironment extends NgtsEnvironmentInput {
|
|
9
5
|
content?: TemplateRef<unknown>;
|
|
10
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironment, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef, Injector } from '@angular/core';
|
|
2
2
|
import { CubeTexture } from 'three';
|
|
3
|
-
import { type
|
|
3
|
+
import { type NgtsEnvironmentInputState } from './environment-input';
|
|
4
4
|
export declare function setEnvProps(background: boolean | 'only', scene: THREE.Scene | ElementRef<THREE.Scene> | undefined, defaultScene: THREE.Scene, texture: THREE.Texture, blur?: number): () => void;
|
|
5
|
-
type NgtsInjectEnvironmentParams = Partial<Pick<
|
|
5
|
+
type NgtsInjectEnvironmentParams = Partial<Pick<NgtsEnvironmentInputState, 'files' | 'path' | 'preset' | 'extensions' | 'encoding'>>;
|
|
6
6
|
export declare function injectNgtsEnvironment(paramsFactory: () => Partial<NgtsInjectEnvironmentParams>, injector?: Injector): import("angular-three").NgtInjectedRef<import("three").Texture | CubeTexture>;
|
|
7
7
|
export {};
|
package/staging/float/float.d.ts
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NgtGroup } from 'angular-three';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export type NgtsFloatState = {
|
|
5
5
|
enabled: boolean;
|
|
6
6
|
speed: number;
|
|
7
|
-
floatIntensity: number;
|
|
8
7
|
rotationIntensity: number;
|
|
8
|
+
floatIntensity: number;
|
|
9
9
|
floatingRange: [number?, number?];
|
|
10
10
|
};
|
|
11
11
|
declare global {
|
|
12
12
|
interface HTMLElementTagNameMap {
|
|
13
|
+
/**
|
|
14
|
+
* @extends ngt-group
|
|
15
|
+
*/
|
|
13
16
|
'ngts-float': NgtsFloatState & NgtGroup;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
16
|
-
export declare class NgtsFloat
|
|
17
|
-
|
|
18
|
-
floatRef: import("angular-three").NgtInjectedRef<THREE.Group
|
|
19
|
-
set
|
|
20
|
-
set
|
|
21
|
-
set
|
|
22
|
-
set
|
|
23
|
-
set
|
|
19
|
+
export declare class NgtsFloat {
|
|
20
|
+
private inputs;
|
|
21
|
+
floatRef: import("angular-three").NgtInjectedRef<THREE.Group<THREE.Object3DEventMap>>;
|
|
22
|
+
set _enabled(enabled: boolean);
|
|
23
|
+
set _speed(speed: number);
|
|
24
|
+
set _rotationIntensity(rotationIntensity: number);
|
|
25
|
+
set _floatIntensity(floatIntensity: number);
|
|
26
|
+
set _floatingRange(floatingRange: [number?, number?]);
|
|
24
27
|
constructor();
|
|
28
|
+
private beforeRender;
|
|
25
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsFloat, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsFloat, "ngts-float", never, { "floatRef": { "alias": "floatRef"; "required": false; }; "
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsFloat, "ngts-float", never, { "floatRef": { "alias": "floatRef"; "required": false; }; "_enabled": { "alias": "enabled"; "required": false; }; "_speed": { "alias": "speed"; "required": false; }; "_rotationIntensity": { "alias": "rotationIntensity"; "required": false; }; "_floatIntensity": { "alias": "floatIntensity"; "required": false; }; "_floatingRange": { "alias": "floatingRange"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
27
31
|
}
|
package/staging/index.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
export * from './accumulative-shadows/accumulative-shadows';
|
|
2
2
|
export * from './accumulative-shadows/randomized-lights';
|
|
3
|
+
export * from './backdrop/backdrop';
|
|
4
|
+
export * from './bb-anchor/bb-anchor';
|
|
3
5
|
export * from './bounds/bounds';
|
|
4
6
|
export * from './camera-shake/camera-shake';
|
|
5
|
-
export * from './caustics/caustisc';
|
|
6
7
|
export * from './center/center';
|
|
7
8
|
export * from './cloud/cloud';
|
|
8
9
|
export * from './contact-shadows/contact-shadows';
|
|
9
10
|
export * from './environment/assets';
|
|
10
11
|
export * from './environment/environment';
|
|
11
12
|
export * from './float/float';
|
|
13
|
+
export * from './matcap-texture/matcap-texture';
|
|
14
|
+
export * from './normal-texture/normal-texture';
|
|
12
15
|
export * from './sky/sky';
|
|
13
16
|
export * from './sparkles/sparkles';
|
|
17
|
+
export { NgtsSpotLightShadow } from './spot-light/shadow-mesh';
|
|
14
18
|
export * from './spot-light/spot-light';
|
|
15
|
-
export { NgtsSpotLightShadow } from './spot-light/spot-light-shadow-mesh';
|
|
16
19
|
export * from './stage/stage';
|
|
17
20
|
export * from './stars/stars';
|
|
21
|
+
export * from './wireframe/wireframe';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Injector, type Signal } from '@angular/core';
|
|
2
|
+
export type NgtsMatcapTextureState = {
|
|
3
|
+
id: string | number;
|
|
4
|
+
format: number;
|
|
5
|
+
onLoad?: (texture: THREE.Texture | THREE.Texture[]) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function injectNgtsMatcapTexture(matcapTextureState: () => Partial<NgtsMatcapTextureState>, { injector }?: {
|
|
8
|
+
injector?: Injector;
|
|
9
|
+
}): {
|
|
10
|
+
texture: Signal<import("three").Texture | null>;
|
|
11
|
+
numTot: () => number;
|
|
12
|
+
url: () => string;
|
|
13
|
+
};
|
|
@@ -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
|
+
};
|
package/staging/sky/sky.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NgtMesh } from 'angular-three';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import { Sky } from 'three-stdlib';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -14,28 +14,35 @@ export interface NgtsSkyState {
|
|
|
14
14
|
}
|
|
15
15
|
declare global {
|
|
16
16
|
interface HTMLElementTagNameMap {
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @extends three-stdlib|Sky
|
|
19
|
+
* @extends ngt-mesh
|
|
20
|
+
*/
|
|
21
|
+
'ngts-sky': NgtsSkyState & Sky & NgtMesh;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
|
-
export declare class NgtsSky
|
|
21
|
-
|
|
24
|
+
export declare class NgtsSky {
|
|
25
|
+
private inputs;
|
|
22
26
|
skyRef: import("angular-three").NgtInjectedRef<Sky>;
|
|
23
|
-
set
|
|
24
|
-
set
|
|
25
|
-
set
|
|
26
|
-
set
|
|
27
|
-
set
|
|
28
|
-
set
|
|
29
|
-
set
|
|
30
|
-
set
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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;
|
|
39
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSky, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSky, "ngts-sky", never, { "skyRef": { "alias": "skyRef"; "required": false; }; "
|
|
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>;
|
|
41
48
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { type Signal } from '@angular/core';
|
|
2
|
+
import { type NgtPoints } from 'angular-three';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
5
|
+
export type NgtsSparklesState = {
|
|
6
6
|
/** Number of particles (default: 100) */
|
|
7
7
|
count: number;
|
|
8
8
|
/** Speed of particles (default: 1) */
|
|
@@ -17,33 +17,47 @@ export interface NgtsSparklesState {
|
|
|
17
17
|
scale: number | [number, number, number] | THREE.Vector3;
|
|
18
18
|
/** Movement factor (default: 1) */
|
|
19
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
|
+
}
|
|
20
28
|
}
|
|
21
|
-
export declare class NgtsSparkles
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
export declare class NgtsSparkles {
|
|
30
|
+
private inputs;
|
|
31
|
+
sparklesRef: import("angular-three").NgtInjectedRef<THREE.Points<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
24
32
|
/** Number of particles (default: 100) */
|
|
25
|
-
set
|
|
33
|
+
set _count(count: number);
|
|
26
34
|
/** Speed of particles (default: 1) */
|
|
27
|
-
set
|
|
35
|
+
set _speed(speed: number | Float32Array);
|
|
28
36
|
/** Opacity of particles (default: 1) */
|
|
29
|
-
set
|
|
37
|
+
set _opacity(opacity: number | Float32Array);
|
|
30
38
|
/** Color of particles (default: 100) */
|
|
31
|
-
set
|
|
39
|
+
set _color(color: THREE.ColorRepresentation | Float32Array);
|
|
32
40
|
/** Size of particles (default: randomized between 0 and 1) */
|
|
33
|
-
set
|
|
41
|
+
set _size(size: number | Float32Array);
|
|
34
42
|
/** The space the particles occupy (default: 1) */
|
|
35
|
-
set
|
|
43
|
+
set _scale(scale: number | [number, number, number] | THREE.Vector3);
|
|
36
44
|
/** Movement factor (default: 1) */
|
|
37
|
-
set
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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>;
|
|
46
58
|
constructor();
|
|
59
|
+
private beforeRender;
|
|
60
|
+
private getComputed;
|
|
47
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSparkles, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSparkles, "ngts-sparkles", 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>;
|
|
49
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[], THREE.Object3DEventMap>>;
|
|
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[], THREE.Object3DEventMap>>;
|
|
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
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { NgtSignalStore } from 'angular-three';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
2
|
+
export type NgtsSpotLightInputState = {
|
|
4
3
|
depthBuffer?: THREE.DepthTexture;
|
|
5
4
|
angle: number;
|
|
6
5
|
distance: number;
|
|
@@ -11,28 +10,29 @@ export interface NgtsSpotLightInputState {
|
|
|
11
10
|
opacity: number;
|
|
12
11
|
color: string | number;
|
|
13
12
|
debug: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare abstract class NgtsSpotLightInput
|
|
16
|
-
|
|
17
|
-
set
|
|
18
|
-
set
|
|
19
|
-
set
|
|
20
|
-
set
|
|
21
|
-
set
|
|
22
|
-
set
|
|
23
|
-
set
|
|
24
|
-
set
|
|
25
|
-
set
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightInput, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsSpotLightInput, never, 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
38
|
}
|
|
@@ -1,23 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgtInjectedRef } from 'angular-three';
|
|
1
|
+
import { type NgtSpotLight } from 'angular-three';
|
|
3
2
|
import { SpotLight } from 'three';
|
|
4
|
-
import { NgtsSpotLightInput } from './spot-light-input';
|
|
3
|
+
import { NgtsSpotLightInput, type NgtsSpotLightInputState } from './spot-light-input';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
declare
|
|
7
|
-
interface
|
|
8
|
-
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
/**
|
|
8
|
+
* @extends ngt-spot-light
|
|
9
|
+
*/
|
|
10
|
+
'ngts-spot-light': NgtsSpotLightInputState & NgtSpotLight;
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
injector?: import("@angular/core").Injector | undefined;
|
|
22
|
+
}): {
|
|
23
|
+
spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
24
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
25
|
+
};
|
|
26
|
+
(injectOptions: import("@angular/core").InjectOptions & {
|
|
27
|
+
injector?: import("@angular/core").Injector | undefined;
|
|
28
|
+
}): {
|
|
29
|
+
spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
30
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
31
|
+
} | null;
|
|
32
|
+
}, provideNgtsSpotLightApi: (value?: {
|
|
33
|
+
spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
34
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
35
|
+
} | undefined) => import("@angular/core").Provider;
|
|
16
36
|
export declare class NgtsSpotLight extends NgtsSpotLightInput {
|
|
17
|
-
spotLightRef: NgtInjectedRef<SpotLight>;
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
spotLightRef: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
38
|
+
volumetric: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
+
set _volumetric(volumetric: boolean);
|
|
20
40
|
constructor();
|
|
21
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLight, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLight, "ngts-spot-light", never, { "spotLightRef": { "alias": "spotLightRef"; "required": false; }; "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLight, "ngts-spot-light", never, { "spotLightRef": { "alias": "spotLightRef"; "required": false; }; "_volumetric": { "alias": "volumetric"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
23
43
|
}
|