angular-three-soba 2.0.0-beta.2 → 2.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstractions/billboard/billboard.d.ts +11 -7
- package/abstractions/detailed/detailed.d.ts +26 -0
- package/abstractions/edges/edges.d.ts +24 -12
- package/abstractions/grid/grid.d.ts +50 -0
- package/abstractions/index.d.ts +2 -7
- package/abstractions/text/text.d.ts +10 -5
- 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 +50 -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 +31 -12
- 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 +180 -0
- package/esm2022/abstractions/index.mjs +3 -8
- package/esm2022/abstractions/text/text.mjs +123 -124
- 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 +129 -99
- 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 +105 -85
- package/esm2022/gizmos/angular-three-soba-gizmos.mjs +5 -0
- package/esm2022/gizmos/gizmo-helper/gizmo-helper.mjs +197 -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 +150 -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 +3 -6
- package/esm2022/loaders/loader/loader.mjs +92 -87
- package/esm2022/loaders/progress/progress.mjs +29 -29
- package/esm2022/loaders/texture-loader/texture-loader.mjs +4 -4
- 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 +102 -99
- package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +167 -146
- 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 +36 -32
- 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 +33 -35
- package/esm2022/misc/example/example.mjs +160 -0
- package/esm2022/misc/fbo/fbo.mjs +35 -35
- package/esm2022/misc/html/html-wrapper.mjs +478 -0
- package/esm2022/misc/html/html.mjs +304 -0
- package/esm2022/misc/index.mjs +10 -1
- package/esm2022/misc/sampler/sampler.mjs +142 -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 +209 -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 +220 -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 +326 -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 +182 -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 +31 -0
- package/esm2022/shaders/convolution-material/convolution-material.mjs +1 -1
- package/esm2022/shaders/discard-material/discard-material.mjs +1 -1
- package/esm2022/shaders/grid-material/grid-material.mjs +77 -0
- package/esm2022/shaders/index.mjs +6 -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 +2 -2
- package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +4 -4
- package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +1 -1
- package/esm2022/shaders/shader-material/shader-material.mjs +1 -1
- package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +17 -25
- package/esm2022/shaders/sparkles-material/sparkles-material.mjs +32 -46
- package/esm2022/shaders/spot-light-material/spot-light-material.mjs +7 -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 +160 -176
- package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +1 -1
- package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +126 -128
- package/esm2022/staging/backdrop/backdrop.mjs +77 -0
- package/esm2022/staging/bb-anchor/bb-anchor.mjs +69 -0
- package/esm2022/staging/bounds/bounds.mjs +144 -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 -134
- 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 +37 -15
- 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 +266 -0
- package/esm2022/staging/spot-light/spot-light-input.mjs +67 -58
- package/esm2022/staging/spot-light/spot-light.mjs +51 -64
- 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/content/content.mjs +15 -0
- package/esm2022/utils/index.mjs +2 -0
- package/fesm2022/angular-three-soba-abstractions.mjs +514 -1947
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +302 -259
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +104 -83
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-gizmos.mjs +1043 -0
- package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -0
- package/fesm2022/angular-three-soba-loaders.mjs +121 -117
- package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +662 -592
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2022/angular-three-soba-misc.mjs +2214 -105
- 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 +956 -0
- package/fesm2022/angular-three-soba-performances.mjs.map +1 -0
- package/fesm2022/angular-three-soba-shaders.mjs +549 -252
- package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +2899 -2563
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2022/angular-three-soba-utils.mjs +22 -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 +69 -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 +4 -3
- package/loaders/loader/loader.d.ts +19 -17
- package/loaders/progress/progress.d.ts +1 -1
- package/loaders/texture-loader/texture-loader.d.ts +2 -2
- 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 +81 -0
- package/misc/fbo/fbo.d.ts +2 -2
- package/misc/html/html-wrapper.d.ts +559 -0
- package/misc/html/html.d.ts +214 -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 +31 -16
- 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 +79 -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 +92 -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 +124 -0
- package/shaders/grid-material/grid-material.d.ts +37 -0
- package/shaders/index.d.ts +5 -2
- package/shaders/mesh-distort-material/mesh-distort-material.d.ts +147 -2
- 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 +15 -1
- package/shaders/spot-light-material/spot-light-material.d.ts +11 -2
- package/shaders/star-field-material/star-field-material.d.ts +11 -1
- package/shaders/wireframe-material/wireframe-material.d.ts +58 -0
- package/staging/accumulative-shadows/accumulative-shadows.d.ts +89 -39
- package/staging/accumulative-shadows/randomized-lights.d.ts +40 -27
- package/staging/backdrop/backdrop.d.ts +30 -0
- package/staging/bb-anchor/bb-anchor.d.ts +27 -0
- package/staging/bounds/bounds.d.ts +100 -24
- package/staging/camera-shake/camera-shake.d.ts +30 -19
- package/staging/center/center.d.ts +43 -35
- package/staging/cloud/cloud.d.ts +26 -23
- package/staging/contact-shadows/contact-shadows.d.ts +41 -28
- 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 +37 -37
- 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 +14 -10
- 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 +31 -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/content/content.d.ts +8 -0
- package/utils/index.d.ts +1 -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 -4
- package/plugin/src/generators/init/init.js +0 -22
- 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
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[]>>;
|
|
8
|
+
DoubleSide: 2;
|
|
9
|
+
private spotLightApi;
|
|
10
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
11
|
+
constructor();
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshNoShader, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowMeshNoShader, "ngts-spot-light-shadow-mesh-no-shader", never, {}, {}, never, ["*"], true, never>;
|
|
14
|
+
}
|
|
15
|
+
export declare class NgtsSpotLightShadowMeshShader {
|
|
16
|
+
shadowMeshInput: NgtsSpotLightShadowMeshInput;
|
|
17
|
+
meshRef: NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
18
|
+
DoubleSide: 2;
|
|
19
|
+
RepeatWrapping: 1000;
|
|
20
|
+
private spotLightApi;
|
|
21
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
22
|
+
renderTarget: import("@angular/core").Signal<THREE.WebGLRenderTarget<THREE.Texture>>;
|
|
23
|
+
private uniforms;
|
|
24
|
+
private fsQuad;
|
|
25
|
+
constructor();
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshShader, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowMeshShader, "ngts-spot-light-shadow-mesh-shader", never, {}, {}, never, ["*"], true, never>;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'ngts-spot-light-shadow': NgtsSpotLightShadowMeshInputState;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export declare class NgtsSpotLightShadow extends NgtsSpotLightShadowMeshInput {
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadow, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadow, "ngts-spot-light-shadow", never, {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
@@ -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,39 @@
|
|
|
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
|
+
spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
22
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
23
|
+
};
|
|
24
|
+
(injectOptions: import("@angular/core").InjectOptions): {
|
|
25
|
+
spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
26
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
27
|
+
} | null;
|
|
28
|
+
}, provideNgtsSpotLightApi: (value?: {
|
|
29
|
+
spotLight: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
30
|
+
debug: import("@angular/core").Signal<boolean>;
|
|
31
|
+
} | undefined) => import("@angular/core").Provider;
|
|
16
32
|
export declare class NgtsSpotLight extends NgtsSpotLightInput {
|
|
17
|
-
spotLightRef: NgtInjectedRef<SpotLight>;
|
|
18
|
-
|
|
19
|
-
|
|
33
|
+
spotLightRef: import("angular-three").NgtInjectedRef<SpotLight>;
|
|
34
|
+
volumetric: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
set _volumetric(volumetric: boolean);
|
|
20
36
|
constructor();
|
|
21
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLight, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLight, "ngts-spot-light", never, { "spotLightRef": { "alias": "spotLightRef"; "required": false; }; "
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLight, "ngts-spot-light", never, { "spotLightRef": { "alias": "spotLightRef"; "required": false; }; "_volumetric": { "alias": "volumetric"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
23
39
|
}
|
|
@@ -3,16 +3,22 @@ import * as THREE from 'three';
|
|
|
3
3
|
import { NgtsSpotLightInput } from './spot-light-input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NgtsVolumetricMesh {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
spotLightInput: NgtsSpotLightInput;
|
|
7
|
+
mesh: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
8
|
+
material: SpotLightMaterial;
|
|
9
|
+
nullRaycast: () => null;
|
|
10
|
+
private vec;
|
|
11
|
+
private store;
|
|
12
|
+
private size;
|
|
13
|
+
private dpr;
|
|
14
|
+
private radiusTop;
|
|
15
|
+
private radiusBottom;
|
|
16
|
+
near: import("@angular/core").Signal<number>;
|
|
17
|
+
far: import("@angular/core").Signal<number>;
|
|
18
|
+
resolution: import("@angular/core").Signal<number[]>;
|
|
19
|
+
geometry: import("@angular/core").Signal<THREE.CylinderGeometry>;
|
|
15
20
|
constructor();
|
|
21
|
+
private beforeRender;
|
|
16
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsVolumetricMesh, never>;
|
|
17
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsVolumetricMesh, "ngts-volumetric-mesh", never, {}, {}, never, never, true, never>;
|
|
18
24
|
}
|
package/staging/stage/stage.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { NgtsEnvironmentInput } from '../environment/environment-input';
|
|
1
|
+
import { EventEmitter, type OnChanges } from '@angular/core';
|
|
2
|
+
import { type NgtsAccumulativeShadowsState } from '../accumulative-shadows/accumulative-shadows';
|
|
3
|
+
import { type NgtsRandomizedLightsState } from '../accumulative-shadows/randomized-lights';
|
|
4
|
+
import { type NgtsCenterState, type NgtsCenteredEvent } from '../center/center';
|
|
5
|
+
import { type NgtsContactShadowsState } from '../contact-shadows/contact-shadows';
|
|
6
|
+
import type { NgtsEnvironmentPresetsType } from '../environment/assets';
|
|
7
|
+
import { type NgtsEnvironmentInputState } from '../environment/environment-input';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
|
-
type
|
|
9
|
+
type NgtsStageShadowsState = Partial<NgtsAccumulativeShadowsState> & Partial<NgtsRandomizedLightsState> & Partial<NgtsContactShadowsState> & {
|
|
11
10
|
type: 'contact' | 'accumulative';
|
|
12
11
|
/** Shadow plane offset, default: 0 */
|
|
13
12
|
offset?: number;
|
|
@@ -18,89 +17,114 @@ type NgtsStageShadows = Partial<NgtsAccumulativeShadows> & Partial<NgtsRandomize
|
|
|
18
17
|
/** Shadow map size, default: 1024 */
|
|
19
18
|
size?: number;
|
|
20
19
|
};
|
|
21
|
-
|
|
20
|
+
export type NgtsStageState = {
|
|
22
21
|
/** Lighting setup, default: "rembrandt" */
|
|
23
22
|
preset: 'rembrandt' | 'portrait' | 'upfront' | 'soft' | {
|
|
24
23
|
main: [x: number, y: number, z: number];
|
|
25
24
|
fill: [x: number, y: number, z: number];
|
|
26
25
|
};
|
|
27
26
|
/** Controls the ground shadows, default: "contact" */
|
|
28
|
-
shadows: boolean | 'contact' | 'accumulative' |
|
|
27
|
+
shadows: boolean | 'contact' | 'accumulative' | NgtsStageShadowsState;
|
|
29
28
|
/** Optionally wraps and thereby centers the models using <Bounds>, can also be a margin, default: true */
|
|
30
29
|
adjustCamera: boolean | number;
|
|
31
30
|
/** The default environment, default: "city" */
|
|
32
|
-
environment: NgtsEnvironmentPresetsType | Partial<
|
|
31
|
+
environment: NgtsEnvironmentPresetsType | Partial<NgtsEnvironmentInputState>;
|
|
33
32
|
/** The lighting intensity, default: 0.5 */
|
|
34
33
|
intensity: number;
|
|
35
34
|
/** To adjust centering, default: undefined */
|
|
36
|
-
center?: Partial<
|
|
35
|
+
center?: Partial<NgtsCenterState>;
|
|
36
|
+
};
|
|
37
|
+
declare global {
|
|
38
|
+
interface HTMLElementTagNameMap {
|
|
39
|
+
'ngts-stage': NgtsStageState;
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
export declare class NgtsStageRefit implements OnChanges {
|
|
39
|
-
|
|
43
|
+
boundsApi: import("@angular/core").Signal<{
|
|
44
|
+
getSize: () => {
|
|
45
|
+
box: import("three").Box3;
|
|
46
|
+
size: import("three").Vector3;
|
|
47
|
+
center: import("three").Vector3;
|
|
48
|
+
distance: number;
|
|
49
|
+
};
|
|
50
|
+
refresh(object?: import("three").Object3D<import("three").Event> | import("three").Box3 | undefined): any;
|
|
51
|
+
clip(): any;
|
|
52
|
+
to({ position, target }: {
|
|
53
|
+
position: [number, number, number];
|
|
54
|
+
target?: [number, number, number] | undefined;
|
|
55
|
+
}): any;
|
|
56
|
+
fit(): any;
|
|
57
|
+
}>;
|
|
40
58
|
radius: number;
|
|
41
|
-
adjustCamera: boolean;
|
|
59
|
+
adjustCamera: boolean | number;
|
|
42
60
|
ngOnChanges(): void;
|
|
43
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsStageRefit, never>;
|
|
44
62
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsStageRefit, "ngts-stage-refit", never, { "radius": { "alias": "radius"; "required": false; }; "adjustCamera": { "alias": "adjustCamera"; "required": false; }; }, {}, never, never, true, never>;
|
|
45
63
|
}
|
|
46
|
-
export declare class NgtsStage
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
set
|
|
50
|
-
set
|
|
51
|
-
set
|
|
52
|
-
set
|
|
53
|
-
set
|
|
54
|
-
set
|
|
55
|
-
centered: EventEmitter<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
width: number;
|
|
60
|
-
height: number;
|
|
61
|
-
depth: number;
|
|
62
|
-
boundingBox: import("three").Box3;
|
|
63
|
-
boundingSphere: import("three").Sphere;
|
|
64
|
-
center: import("three").Vector3;
|
|
65
|
-
verticalAlignment: number;
|
|
66
|
-
horizontalAlignment: number;
|
|
67
|
-
depthAlignment: number;
|
|
68
|
-
}>;
|
|
69
|
-
readonly boundingState: import("@angular/core").WritableSignal<{
|
|
64
|
+
export declare class NgtsStage {
|
|
65
|
+
Number: NumberConstructor;
|
|
66
|
+
private inputs;
|
|
67
|
+
set _preset(preset: NgtsStageState['preset']);
|
|
68
|
+
set _shadows(shadows: NgtsStageState['shadows']);
|
|
69
|
+
set _adjustCamera(adjustCamera: NgtsStageState['adjustCamera']);
|
|
70
|
+
set _environment(environment: NgtsStageState['environment']);
|
|
71
|
+
set _intensity(intensity: NgtsStageState['intensity']);
|
|
72
|
+
set _center(center: NgtsStageState['center']);
|
|
73
|
+
centered: EventEmitter<NgtsCenteredEvent>;
|
|
74
|
+
private preset;
|
|
75
|
+
private environment;
|
|
76
|
+
boundingState: import("angular-three").NgtSignalStore<{
|
|
70
77
|
radius: number;
|
|
71
78
|
width: number;
|
|
72
79
|
height: number;
|
|
73
80
|
depth: number;
|
|
74
81
|
}>;
|
|
75
|
-
|
|
76
|
-
readonly stageIntensity: import("@angular/core").Signal<number>;
|
|
77
|
-
readonly stageAdjustCamera: import("@angular/core").Signal<number | boolean>;
|
|
78
|
-
readonly stageCenter: import("@angular/core").Signal<Partial<NgtsCenter> | undefined>;
|
|
79
|
-
readonly config: import("@angular/core").Signal<{
|
|
82
|
+
config: import("@angular/core").Signal<{
|
|
80
83
|
main: number[];
|
|
81
84
|
fill: number[];
|
|
82
85
|
}>;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
86
|
+
shadows: import("@angular/core").Signal<boolean | "contact" | "accumulative" | NgtsStageShadowsState>;
|
|
87
|
+
intensity: import("@angular/core").Signal<number>;
|
|
88
|
+
adjustCamera: import("@angular/core").Signal<number | boolean>;
|
|
89
|
+
center: import("@angular/core").Signal<Partial<NgtsCenterState> | undefined>;
|
|
90
|
+
shadowsState: import("@angular/core").Signal<{
|
|
91
|
+
frames?: number | undefined;
|
|
92
|
+
blend?: number | undefined;
|
|
93
|
+
limit?: number | undefined;
|
|
94
|
+
scale?: number | (number & [x: number, y: number]) | undefined;
|
|
95
|
+
temporal?: boolean | undefined;
|
|
96
|
+
opacity?: number | undefined;
|
|
97
|
+
alphaTest?: number | undefined;
|
|
98
|
+
color?: (string & import("three").ColorRepresentation) | undefined;
|
|
99
|
+
colorBlend?: number | undefined;
|
|
100
|
+
resolution?: number | undefined;
|
|
101
|
+
toneMapped?: boolean | undefined;
|
|
102
|
+
position?: [x: number, y: number, z: number] | undefined;
|
|
103
|
+
radius?: number | undefined;
|
|
104
|
+
amount?: number | undefined;
|
|
105
|
+
intensity?: number | undefined;
|
|
106
|
+
ambient?: number | undefined;
|
|
107
|
+
castShadow?: boolean | undefined;
|
|
108
|
+
mapSize?: number | undefined;
|
|
109
|
+
near?: number | undefined;
|
|
110
|
+
far?: number | undefined;
|
|
111
|
+
width?: number | undefined;
|
|
112
|
+
height?: number | undefined;
|
|
113
|
+
blur?: number | undefined;
|
|
114
|
+
smooth?: boolean | undefined;
|
|
115
|
+
depthWrite?: boolean | undefined;
|
|
116
|
+
renderOrder?: number | undefined;
|
|
117
|
+
type: "contact" | "accumulative";
|
|
118
|
+
contactShadow: boolean;
|
|
119
|
+
accumulativeShadow: boolean;
|
|
120
|
+
shadowBias: number;
|
|
121
|
+
normalBias: number;
|
|
122
|
+
shadowSize: number;
|
|
123
|
+
shadowOffset: number;
|
|
124
|
+
}>;
|
|
125
|
+
environmentState: import("@angular/core").Signal<Partial<NgtsEnvironmentInputState> | null>;
|
|
126
|
+
onCentered($event: NgtsCenteredEvent): void;
|
|
103
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsStage, never>;
|
|
104
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsStage, "ngts-stage", never, { "
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsStage, "ngts-stage", never, { "_preset": { "alias": "preset"; "required": false; }; "_shadows": { "alias": "shadows"; "required": false; }; "_adjustCamera": { "alias": "adjustCamera"; "required": false; }; "_environment": { "alias": "environment"; "required": false; }; "_intensity": { "alias": "intensity"; "required": false; }; "_center": { "alias": "center"; "required": false; }; }, { "centered": "centered"; }, never, ["*"], true, never>;
|
|
105
129
|
}
|
|
106
130
|
export {};
|