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
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { type NgtGroup } from 'angular-three';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
export type NgtsCenteredEvent = {
|
|
6
|
+
/** The next parent above <Center> */
|
|
7
|
+
parent: THREE.Object3D;
|
|
8
|
+
/** The outmost container group of the <Center> component */
|
|
9
|
+
container: THREE.Object3D;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
depth: number;
|
|
13
|
+
boundingBox: THREE.Box3;
|
|
14
|
+
boundingSphere: THREE.Sphere;
|
|
15
|
+
center: THREE.Vector3;
|
|
16
|
+
verticalAlignment: number;
|
|
17
|
+
horizontalAlignment: number;
|
|
18
|
+
depthAlignment: number;
|
|
19
|
+
};
|
|
5
20
|
export type NgtsCenterState = {
|
|
6
21
|
top?: boolean;
|
|
7
22
|
right?: boolean;
|
|
@@ -18,45 +33,38 @@ export type NgtsCenterState = {
|
|
|
18
33
|
/** Disable z-axis centering */
|
|
19
34
|
disableZ?: boolean;
|
|
20
35
|
/** See https://threejs.org/docs/index.html?q=box3#api/en/math/Box3.setFromObject */
|
|
21
|
-
precise
|
|
36
|
+
precise?: boolean;
|
|
37
|
+
/** Optional cacheKey to keep the component from recalculating on every render */
|
|
38
|
+
cacheKey?: any;
|
|
22
39
|
};
|
|
23
40
|
declare global {
|
|
24
41
|
interface HTMLElementTagNameMap {
|
|
42
|
+
/**
|
|
43
|
+
* @extends ngt-group
|
|
44
|
+
*/
|
|
25
45
|
'ngts-center': NgtsCenterState & NgtGroup;
|
|
26
46
|
}
|
|
27
47
|
}
|
|
28
|
-
export declare class NgtsCenter
|
|
29
|
-
|
|
30
|
-
centerRef: import("angular-three").NgtInjectedRef<Group>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
set
|
|
34
|
-
set
|
|
35
|
-
set
|
|
36
|
-
set
|
|
37
|
-
set
|
|
38
|
-
set
|
|
39
|
-
set
|
|
40
|
-
set
|
|
41
|
-
set
|
|
42
|
-
set
|
|
43
|
-
set
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
parent: THREE.Object3D;
|
|
47
|
-
/** The outmost container group of the <Center> component */
|
|
48
|
-
container: THREE.Object3D;
|
|
49
|
-
width: number;
|
|
50
|
-
height: number;
|
|
51
|
-
depth: number;
|
|
52
|
-
boundingBox: THREE.Box3;
|
|
53
|
-
boundingSphere: THREE.Sphere;
|
|
54
|
-
center: THREE.Vector3;
|
|
55
|
-
verticalAlignment: number;
|
|
56
|
-
horizontalAlignment: number;
|
|
57
|
-
depthAlignment: number;
|
|
58
|
-
}>;
|
|
48
|
+
export declare class NgtsCenter {
|
|
49
|
+
private inputs;
|
|
50
|
+
centerRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
51
|
+
outerRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
52
|
+
innerRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
53
|
+
set _top(top: boolean);
|
|
54
|
+
set _right(right: boolean);
|
|
55
|
+
set _bottom(bottom: boolean);
|
|
56
|
+
set _left(left: boolean);
|
|
57
|
+
set _front(front: boolean);
|
|
58
|
+
set _back(back: boolean);
|
|
59
|
+
set _disableX(disableX: boolean);
|
|
60
|
+
set _disableY(disableY: boolean);
|
|
61
|
+
set _disableZ(disableZ: boolean);
|
|
62
|
+
set _disable(disable: boolean);
|
|
63
|
+
set _precise(precise: boolean);
|
|
64
|
+
set _cacheKey(cacheKey: any);
|
|
65
|
+
centered: EventEmitter<NgtsCenteredEvent>;
|
|
59
66
|
constructor();
|
|
67
|
+
private setPosition;
|
|
60
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCenter, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCenter, "ngts-center", never, { "centerRef": { "alias": "centerRef"; "required": false; }; "
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCenter, "ngts-center", never, { "centerRef": { "alias": "centerRef"; "required": false; }; "_top": { "alias": "top"; "required": false; }; "_right": { "alias": "right"; "required": false; }; "_bottom": { "alias": "bottom"; "required": false; }; "_left": { "alias": "left"; "required": false; }; "_front": { "alias": "front"; "required": false; }; "_back": { "alias": "back"; "required": false; }; "_disableX": { "alias": "disableX"; "required": false; }; "_disableY": { "alias": "disableY"; "required": false; }; "_disableZ": { "alias": "disableZ"; "required": false; }; "_disable": { "alias": "disable"; "required": false; }; "_precise": { "alias": "precise"; "required": false; }; "_cacheKey": { "alias": "cacheKey"; "required": false; }; }, { "centered": "centered"; }, never, ["*"], true, never>;
|
|
62
70
|
}
|
package/staging/cloud/cloud.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NgtBeforeRenderEvent, type NgtGroup } from 'angular-three';
|
|
2
2
|
import { Group } from 'three';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
4
|
+
export type NgtsCloudState = {
|
|
5
5
|
opacity: number;
|
|
6
6
|
speed: number;
|
|
7
7
|
width: number;
|
|
@@ -10,39 +10,42 @@ export interface NgtsCloudState {
|
|
|
10
10
|
texture: string;
|
|
11
11
|
color: THREE.ColorRepresentation;
|
|
12
12
|
depthTest: boolean;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare global {
|
|
15
15
|
interface HTMLElementTagNameMap {
|
|
16
|
+
/**
|
|
17
|
+
* @extends ngt-group
|
|
18
|
+
*/
|
|
16
19
|
'ngts-cloud': NgtsCloudState & NgtGroup;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
|
-
export declare class NgtsCloud
|
|
20
|
-
|
|
22
|
+
export declare class NgtsCloud {
|
|
23
|
+
private inputs;
|
|
21
24
|
groupRef: import("angular-three").NgtInjectedRef<Group>;
|
|
22
|
-
set
|
|
23
|
-
set
|
|
24
|
-
set
|
|
25
|
-
set
|
|
26
|
-
set
|
|
27
|
-
set
|
|
28
|
-
set
|
|
29
|
-
set
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
set _opacity(opacity: number);
|
|
26
|
+
set _speed(speed: number);
|
|
27
|
+
set _width(width: number);
|
|
28
|
+
set _depth(depth: number);
|
|
29
|
+
set _segments(segments: number);
|
|
30
|
+
set _texture(texture: string);
|
|
31
|
+
set _color(color: THREE.ColorRepresentation);
|
|
32
|
+
set _depthTest(depthTest: boolean);
|
|
33
|
+
private width;
|
|
34
|
+
private speed;
|
|
35
|
+
segments: import("@angular/core").Signal<number>;
|
|
36
|
+
depth: import("@angular/core").Signal<number>;
|
|
37
|
+
depthTest: import("@angular/core").Signal<boolean>;
|
|
38
|
+
opacity: import("@angular/core").Signal<number>;
|
|
39
|
+
color: import("@angular/core").Signal<import("three").ColorRepresentation>;
|
|
40
|
+
texture: import("@angular/core").Signal<import("three").Texture | null>;
|
|
41
|
+
clouds: import("@angular/core").Signal<{
|
|
38
42
|
x: number;
|
|
39
43
|
y: number;
|
|
40
44
|
scale: number;
|
|
41
45
|
density: number;
|
|
42
46
|
rotation: number;
|
|
43
47
|
}[]>;
|
|
44
|
-
constructor();
|
|
45
48
|
onBeforeRender({ state, object }: NgtBeforeRenderEvent<Group>): void;
|
|
46
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCloud, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCloud, "ngts-cloud", never, { "groupRef": { "alias": "groupRef"; "required": false; }; "
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCloud, "ngts-cloud", never, { "groupRef": { "alias": "groupRef"; "required": false; }; "_opacity": { "alias": "opacity"; "required": false; }; "_speed": { "alias": "speed"; "required": false; }; "_width": { "alias": "width"; "required": false; }; "_depth": { "alias": "depth"; "required": false; }; "_segments": { "alias": "segments"; "required": false; }; "_texture": { "alias": "texture"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_depthTest": { "alias": "depthTest"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
51
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
export
|
|
4
|
+
export type NgtsContactShadowsState = {
|
|
5
5
|
opacity: number;
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
@@ -14,44 +14,57 @@ export interface NgtsContactShadowsState {
|
|
|
14
14
|
color: THREE.ColorRepresentation;
|
|
15
15
|
depthWrite: boolean;
|
|
16
16
|
renderOrder: number;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
+
/**
|
|
21
|
+
* @extends ngt-group
|
|
22
|
+
*/
|
|
20
23
|
'ngts-contact-shadows': NgtsContactShadowsState & NgtGroup;
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
|
-
export declare class NgtsContactShadows
|
|
24
|
-
|
|
26
|
+
export declare class NgtsContactShadows {
|
|
27
|
+
private inputs;
|
|
25
28
|
contactShadowsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
26
|
-
set
|
|
27
|
-
set
|
|
28
|
-
set
|
|
29
|
-
set
|
|
30
|
-
set
|
|
31
|
-
set
|
|
32
|
-
set
|
|
33
|
-
set
|
|
34
|
-
set
|
|
35
|
-
set
|
|
36
|
-
set
|
|
37
|
-
set
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
set _opacity(opacity: number);
|
|
30
|
+
set _width(width: number);
|
|
31
|
+
set _height(height: number);
|
|
32
|
+
set _blur(blur: number);
|
|
33
|
+
set _far(far: number);
|
|
34
|
+
set _smooth(smooth: boolean);
|
|
35
|
+
set _resolution(resolution: number);
|
|
36
|
+
set _frames(frames: number);
|
|
37
|
+
set _scale(scale: number | [x: number, y: number]);
|
|
38
|
+
set _color(color: THREE.ColorRepresentation);
|
|
39
|
+
set _depthWrite(depthWrite: boolean);
|
|
40
|
+
set _renderOrder(renderOrder: number);
|
|
41
|
+
Math: Math;
|
|
42
|
+
private store;
|
|
43
|
+
shadowCameraRef: import("angular-three").NgtInjectedRef<THREE.OrthographicCamera>;
|
|
44
|
+
private scale;
|
|
45
|
+
private width;
|
|
46
|
+
private height;
|
|
47
|
+
private far;
|
|
48
|
+
private resolution;
|
|
49
|
+
private color;
|
|
50
|
+
private scaledWidth;
|
|
51
|
+
private scaledHeight;
|
|
52
|
+
renderOrder: import("@angular/core").Signal<number>;
|
|
53
|
+
opacity: import("@angular/core").Signal<number>;
|
|
54
|
+
depthWrite: import("@angular/core").Signal<boolean>;
|
|
55
|
+
cameraArgs: import("@angular/core").Signal<number[]>;
|
|
56
|
+
contactShadows: import("@angular/core").Signal<{
|
|
57
|
+
renderTarget: THREE.WebGLRenderTarget<THREE.Texture>;
|
|
47
58
|
planeGeometry: THREE.PlaneGeometry;
|
|
48
59
|
depthMaterial: THREE.MeshDepthMaterial;
|
|
49
60
|
blurPlane: THREE.Mesh<THREE.PlaneGeometry, THREE.Material | THREE.Material[]>;
|
|
50
61
|
horizontalBlurMaterial: THREE.ShaderMaterial;
|
|
51
62
|
verticalBlurMaterial: THREE.ShaderMaterial;
|
|
52
|
-
renderTargetBlur: THREE.WebGLRenderTarget
|
|
63
|
+
renderTargetBlur: THREE.WebGLRenderTarget<THREE.Texture>;
|
|
53
64
|
}>;
|
|
54
65
|
constructor();
|
|
66
|
+
private beforeRender;
|
|
67
|
+
private blurShadows;
|
|
55
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsContactShadows, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsContactShadows, "ngts-contact-shadows", never, { "contactShadowsRef": { "alias": "contactShadowsRef"; "required": false; }; "
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsContactShadows, "ngts-contact-shadows", never, { "contactShadowsRef": { "alias": "contactShadowsRef"; "required": false; }; "_opacity": { "alias": "opacity"; "required": false; }; "_width": { "alias": "width"; "required": false; }; "_height": { "alias": "height"; "required": false; }; "_blur": { "alias": "blur"; "required": false; }; "_far": { "alias": "far"; "required": false; }; "_smooth": { "alias": "smooth"; "required": false; }; "_resolution": { "alias": "resolution"; "required": false; }; "_frames": { "alias": "frames"; "required": false; }; "_scale": { "alias": "scale"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_depthWrite": { "alias": "depthWrite"; "required": false; }; "_renderOrder": { "alias": "renderOrder"; "required": false; }; }, {}, never, never, true, never>;
|
|
57
70
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
sunset: string;
|
|
3
|
-
dawn: string;
|
|
4
|
-
night: string;
|
|
5
|
-
warehouse: string;
|
|
6
|
-
forest: string;
|
|
1
|
+
export declare const ENVIRONMENT_PRESETS: {
|
|
7
2
|
apartment: string;
|
|
8
|
-
studio: string;
|
|
9
3
|
city: string;
|
|
10
|
-
|
|
4
|
+
dawn: string;
|
|
5
|
+
forest: string;
|
|
11
6
|
lobby: string;
|
|
7
|
+
night: string;
|
|
8
|
+
park: string;
|
|
9
|
+
studio: string;
|
|
10
|
+
sunset: string;
|
|
11
|
+
warehouse: string;
|
|
12
12
|
};
|
|
13
|
-
export type NgtsEnvironmentPresetsType = keyof typeof
|
|
13
|
+
export type NgtsEnvironmentPresetsType = keyof typeof ENVIRONMENT_PRESETS;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { NgtsEnvironmentInput } from './environment-input';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NgtsEnvironmentCube {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
environmentInput: NgtsEnvironmentInput;
|
|
5
|
+
private inputs;
|
|
6
|
+
set _background(background: boolean);
|
|
7
|
+
private store;
|
|
8
|
+
private scene;
|
|
9
|
+
private background;
|
|
10
|
+
private textureRef;
|
|
8
11
|
constructor();
|
|
12
|
+
private setEnvProps;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentCube, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentCube, "ngts-environment-cube", never, { "
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentCube, "ngts-environment-cube", never, { "_background": { "alias": "background"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
15
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { NgtsEnvironmentInput } from './environment-input';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NgtsEnvironmentGround {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
environmentInput: NgtsEnvironmentInput;
|
|
5
|
+
private defaultTexture;
|
|
6
|
+
texture: import("@angular/core").Signal<import("three").Texture>;
|
|
7
|
+
groundArgs: import("@angular/core").Signal<import("three").Texture[]>;
|
|
8
|
+
height: import("@angular/core").Signal<any>;
|
|
9
|
+
radius: import("@angular/core").Signal<any>;
|
|
10
|
+
scale: import("@angular/core").Signal<any>;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentGround, never>;
|
|
12
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsEnvironmentGround, "ngts-environment-ground", never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -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) => 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: "
|
|
62
|
+
preset: "apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | undefined;
|
|
63
63
|
extensions: ((loader: Loader) => 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
|
-
|
|
19
|
+
export declare class NgtsFloat {
|
|
20
|
+
private inputs;
|
|
18
21
|
floatRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
19
|
-
set
|
|
20
|
-
set
|
|
21
|
-
set
|
|
22
|
-
set
|
|
23
|
-
set
|
|
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
|
+
};
|