angular-three-soba 1.14.1 → 2.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/abstractions/billboard/billboard.d.ts +28 -0
- package/abstractions/detailed/detailed.d.ts +26 -0
- package/abstractions/edges/edges.d.ts +34 -0
- package/abstractions/grid/grid.d.ts +50 -0
- package/abstractions/index.d.ts +6 -11
- package/abstractions/text/text.d.ts +82 -0
- package/abstractions/text-3d/text-3d.d.ts +81 -0
- package/cameras/{lib/camera → camera}/camera-content.d.ts +2 -2
- package/cameras/camera/camera.d.ts +26 -0
- package/cameras/cube-camera/cube-camera.d.ts +69 -0
- package/cameras/index.d.ts +4 -4
- package/cameras/orthographic-camera/orthographic-camera.d.ts +37 -0
- package/cameras/{lib/perspective-camera → perspective-camera}/perspective-camera.d.ts +10 -1
- package/controls/index.d.ts +1 -1
- package/controls/orbit-controls/orbit-controls.d.ts +54 -0
- package/esm2022/abstractions/angular-three-soba-abstractions.mjs +1 -1
- package/esm2022/abstractions/billboard/billboard.mjs +74 -0
- package/esm2022/abstractions/detailed/detailed.mjs +64 -0
- package/esm2022/abstractions/edges/edges.mjs +88 -0
- package/esm2022/abstractions/grid/grid.mjs +180 -0
- package/esm2022/abstractions/index.mjs +7 -12
- package/esm2022/abstractions/text/text.mjs +274 -0
- package/esm2022/abstractions/text-3d/text-3d.mjs +165 -0
- package/esm2022/angular-three-soba.mjs +1 -1
- package/esm2022/cameras/angular-three-soba-cameras.mjs +1 -1
- package/esm2022/cameras/camera/camera-content.mjs +20 -0
- package/esm2022/cameras/camera/camera.mjs +77 -0
- package/esm2022/cameras/cube-camera/cube-camera.mjs +161 -0
- package/esm2022/cameras/index.mjs +5 -5
- package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +102 -0
- package/esm2022/cameras/perspective-camera/perspective-camera.mjs +46 -0
- package/esm2022/controls/angular-three-soba-controls.mjs +1 -1
- package/esm2022/controls/index.mjs +2 -2
- package/esm2022/controls/orbit-controls/orbit-controls.mjs +181 -0
- package/esm2022/index.mjs +1 -1
- package/esm2022/loaders/angular-three-soba-loaders.mjs +1 -1
- package/esm2022/loaders/gltf-loader/gltf-loader.mjs +30 -0
- package/esm2022/loaders/index.mjs +5 -6
- package/esm2022/loaders/loader/loader.mjs +138 -0
- package/esm2022/loaders/progress/progress.mjs +45 -0
- package/esm2022/loaders/texture-loader/texture-loader.mjs +28 -0
- package/esm2022/materials/angular-three-soba-materials.mjs +1 -1
- package/esm2022/materials/index.mjs +7 -6
- package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +82 -0
- package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +367 -0
- package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +171 -0
- package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +278 -0
- package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +68 -0
- package/esm2022/materials/point-material/point-material.mjs +46 -0
- package/esm2022/misc/angular-three-soba-misc.mjs +1 -1
- package/esm2022/misc/animations/animations.mjs +59 -0
- package/esm2022/misc/bake-shadows/bake-shadows.mjs +24 -0
- package/esm2022/misc/caustics/caustics.mjs +387 -0
- package/esm2022/misc/decal/decal.mjs +187 -0
- package/esm2022/misc/depth-buffer/depth-buffer.mjs +44 -0
- package/esm2022/misc/example/example.mjs +160 -0
- package/esm2022/misc/fbo/fbo.mjs +47 -0
- package/esm2022/misc/html/html-wrapper.mjs +478 -0
- package/esm2022/misc/html/html.mjs +304 -0
- package/esm2022/misc/index.mjs +14 -5
- 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 +6 -0
- package/esm2022/performances/points/points-input.mjs +64 -0
- package/esm2022/performances/points/points.mjs +329 -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/angular-three-soba-shaders.mjs +1 -1
- package/esm2022/shaders/blur-pass/blur-pass.mjs +61 -0
- 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 +94 -0
- package/esm2022/shaders/discard-material/discard-material.mjs +3 -0
- package/esm2022/shaders/grid-material/grid-material.mjs +77 -0
- package/esm2022/shaders/index.mjs +18 -15
- package/esm2022/shaders/mesh-distort-material/mesh-distort-material.mjs +56 -0
- package/esm2022/shaders/mesh-reflector-material/mesh-reflector-material.mjs +223 -0
- package/esm2022/shaders/mesh-refraction-material/mesh-refraction-material.mjs +170 -0
- package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +268 -0
- package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +37 -0
- package/esm2022/shaders/shader-material/shader-material.mjs +34 -0
- package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +25 -0
- package/esm2022/shaders/sparkles-material/sparkles-material.mjs +33 -0
- package/esm2022/shaders/spot-light-material/spot-light-material.mjs +86 -0
- package/esm2022/shaders/star-field-material/star-field-material.mjs +33 -0
- package/esm2022/shaders/wireframe-material/wireframe-material.mjs +247 -0
- package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +267 -0
- package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +108 -0
- package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +206 -0
- package/esm2022/staging/angular-three-soba-staging.mjs +1 -1
- package/esm2022/staging/backdrop/backdrop.mjs +77 -0
- package/esm2022/staging/bb-anchor/bb-anchor.mjs +69 -0
- package/esm2022/staging/bounds/bounds.mjs +308 -0
- package/esm2022/staging/camera-shake/camera-shake.mjs +123 -0
- package/esm2022/staging/center/center.mjs +163 -0
- package/esm2022/staging/cloud/cloud.mjs +158 -0
- package/esm2022/staging/contact-shadows/contact-shadows.mjs +246 -0
- package/esm2022/staging/environment/assets.mjs +13 -0
- package/esm2022/staging/environment/environment-cube.mjs +47 -0
- package/esm2022/staging/environment/environment-ground.mjs +41 -0
- package/esm2022/staging/environment/environment-input.mjs +119 -0
- package/esm2022/staging/environment/environment-map.mjs +53 -0
- package/esm2022/staging/environment/environment-portal.mjs +113 -0
- package/esm2022/staging/environment/environment.mjs +61 -0
- package/esm2022/staging/environment/utils.mjs +105 -0
- package/esm2022/staging/float/float.mjs +94 -0
- package/esm2022/staging/index.mjs +22 -18
- 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 +119 -0
- package/esm2022/staging/sparkles/sparkles.mjs +164 -0
- 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 +84 -0
- package/esm2022/staging/spot-light/spot-light.mjs +81 -0
- package/esm2022/staging/spot-light/volumetric-mesh.mjs +98 -0
- package/esm2022/staging/stage/stage.mjs +388 -0
- package/esm2022/staging/stars/stars.mjs +147 -0
- package/esm2022/staging/wireframe/wireframe-input.mjs +191 -0
- package/esm2022/staging/wireframe/wireframe.mjs +224 -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 +668 -1882
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +279 -232
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +104 -69
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-loaders.mjs +177 -164
- package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +630 -482
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2022/angular-three-soba-misc.mjs +2248 -122
- 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 +697 -0
- package/fesm2022/angular-three-soba-performances.mjs.map +1 -0
- package/fesm2022/angular-three-soba-shaders.mjs +554 -209
- package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +3230 -2852
- 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/fesm2022/angular-three-soba.mjs.map +1 -1
- package/loaders/gltf-loader/gltf-loader.d.ts +10 -0
- package/loaders/index.d.ts +4 -5
- package/loaders/loader/loader.d.ts +33 -0
- package/loaders/progress/progress.d.ts +9 -0
- package/loaders/texture-loader/texture-loader.d.ts +7 -0
- package/materials/index.d.ts +6 -5
- package/materials/mesh-distort-material/mesh-distort-material.d.ts +40 -0
- package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +99 -0
- package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +62 -0
- package/materials/mesh-transmission-material/mesh-transmission-material.d.ts +107 -0
- package/materials/mesh-wobble-material/mesh-wobble-material.d.ts +29 -0
- package/materials/point-material/point-material.d.ts +24 -0
- package/metadata.json +1 -0
- package/misc/animations/animations.d.ts +15 -0
- package/misc/{lib/bake-shadows → bake-shadows}/bake-shadows.d.ts +2 -5
- package/misc/caustics/caustics.d.ts +87 -0
- package/misc/decal/decal.d.ts +49 -0
- package/misc/depth-buffer/depth-buffer.d.ts +9 -0
- package/misc/example/example.d.ts +81 -0
- package/misc/{lib/fbo → fbo}/fbo.d.ts +4 -2
- package/misc/html/html-wrapper.d.ts +559 -0
- package/misc/html/html.d.ts +214 -0
- package/misc/index.d.ts +13 -4
- 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 +43 -32
- package/performances/README.md +3 -0
- package/performances/adaptive-dpr/adaptive-dpr.d.ts +14 -0
- package/{performance/lib/adaptive → performances/adaptive-events}/adaptive-events.d.ts +5 -6
- package/performances/index.d.ts +5 -0
- 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/{lib/blur-pass → blur-pass}/blur-pass.d.ts +2 -2
- package/shaders/grid-material/grid-material.d.ts +37 -0
- package/shaders/index.d.ts +17 -14
- package/shaders/{lib/mesh-distort-material → mesh-distort-material}/mesh-distort-material.d.ts +147 -2
- package/shaders/{lib/mesh-transmission-material → mesh-transmission-material}/mesh-transmission-material.d.ts +1 -1
- package/shaders/{lib/mesh-wobble-material → mesh-wobble-material}/mesh-wobble-material.d.ts +1 -0
- package/shaders/{lib/shader-material → shader-material}/shader-material.d.ts +2 -2
- package/shaders/soft-shadow-material/soft-shadow-material.d.ts +19 -0
- package/shaders/sparkles-material/sparkles-material.d.ts +17 -0
- package/shaders/spot-light-material/spot-light-material.d.ts +13 -0
- package/shaders/star-field-material/star-field-material.d.ts +13 -0
- package/shaders/wireframe-material/wireframe-material.d.ts +58 -0
- package/staging/accumulative-shadows/accumulative-shadows.d.ts +146 -0
- package/staging/{lib/accumulative-shadows → accumulative-shadows}/progressive-light-map.d.ts +2 -2
- package/staging/accumulative-shadows/randomized-lights.d.ts +90 -0
- package/staging/backdrop/backdrop.d.ts +30 -0
- package/staging/bb-anchor/bb-anchor.d.ts +27 -0
- package/staging/bounds/bounds.d.ts +134 -0
- package/staging/camera-shake/camera-shake.d.ts +43 -0
- package/staging/center/center.d.ts +70 -0
- package/staging/cloud/cloud.d.ts +51 -0
- package/staging/contact-shadows/contact-shadows.d.ts +70 -0
- package/staging/{lib/environment → environment}/assets.d.ts +9 -9
- package/staging/environment/environment-cube.d.ts +15 -0
- package/staging/environment/environment-ground.d.ts +13 -0
- package/staging/environment/environment-input.d.ts +68 -0
- package/staging/environment/environment-map.d.ts +16 -0
- package/staging/environment/environment-portal.d.ts +18 -0
- package/staging/{lib/environment → environment}/environment.d.ts +2 -6
- package/staging/environment/utils.d.ts +7 -0
- package/staging/float/float.d.ts +31 -0
- package/staging/index.d.ts +21 -17
- 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 +48 -0
- package/staging/sparkles/sparkles.d.ts +63 -0
- 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 +38 -0
- package/staging/spot-light/spot-light.d.ts +39 -0
- package/staging/spot-light/volumetric-mesh.d.ts +24 -0
- package/staging/stage/stage.d.ts +130 -0
- package/staging/stars/stars.d.ts +45 -0
- 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/lib/billboard/billboard.d.ts +0 -14
- package/abstractions/lib/catmull-rom-line/catmull-rom-line.d.ts +0 -15
- package/abstractions/lib/cubic-bezier-line/cubic-bezier-line.d.ts +0 -15
- package/abstractions/lib/edges/edges.d.ts +0 -18
- package/abstractions/lib/gizmo-helper/gizmo-helper.d.ts +0 -41
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/constants.d.ts +0 -12
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -16
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -24
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +0 -14
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +0 -15
- package/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +0 -28
- package/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +0 -21
- package/abstractions/lib/line/line-input.d.ts +0 -19
- package/abstractions/lib/line/line.d.ts +0 -21
- package/abstractions/lib/quadratic-bezier-line/quadratic-bezier-line.d.ts +0 -19
- package/abstractions/lib/text/text.d.ts +0 -21
- package/abstractions/lib/text-3d/text-3d.d.ts +0 -39
- package/assets/default-spot-light-shadow.glsl +0 -10
- package/cameras/lib/camera/camera.d.ts +0 -19
- package/cameras/lib/cube-camera/cube-camera.d.ts +0 -27
- package/cameras/lib/orthographic-camera/orthographic-camera.d.ts +0 -17
- package/controls/lib/orbit-controls/orbit-controls.d.ts +0 -27
- package/esm2022/abstractions/lib/billboard/billboard.mjs +0 -74
- package/esm2022/abstractions/lib/catmull-rom-line/catmull-rom-line.mjs +0 -120
- package/esm2022/abstractions/lib/cubic-bezier-line/cubic-bezier-line.mjs +0 -99
- package/esm2022/abstractions/lib/edges/edges.mjs +0 -96
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-helper.mjs +0 -213
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -92
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -184
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +0 -46
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -134
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -195
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -267
- package/esm2022/abstractions/lib/line/line-input.mjs +0 -76
- package/esm2022/abstractions/lib/line/line.mjs +0 -133
- package/esm2022/abstractions/lib/quadratic-bezier-line/quadratic-bezier-line.mjs +0 -128
- package/esm2022/abstractions/lib/text/text.mjs +0 -115
- package/esm2022/abstractions/lib/text-3d/text-3d.mjs +0 -145
- package/esm2022/cameras/lib/camera/camera-content.mjs +0 -21
- package/esm2022/cameras/lib/camera/camera.mjs +0 -75
- package/esm2022/cameras/lib/cube-camera/cube-camera.mjs +0 -131
- package/esm2022/cameras/lib/orthographic-camera/orthographic-camera.mjs +0 -93
- package/esm2022/cameras/lib/perspective-camera/perspective-camera.mjs +0 -47
- package/esm2022/controls/lib/orbit-controls/orbit-controls.mjs +0 -147
- package/esm2022/loaders/lib/cube-texture-loader/cube-texture-loader.mjs +0 -10
- package/esm2022/loaders/lib/gltf-loader/gltf-loader.mjs +0 -32
- package/esm2022/loaders/lib/loader/loader.mjs +0 -134
- package/esm2022/loaders/lib/progress/progress.mjs +0 -39
- package/esm2022/loaders/lib/texture-loader/texture-loader.mjs +0 -19
- package/esm2022/materials/lib/mesh-distort-material/mesh-distort-material.mjs +0 -75
- package/esm2022/materials/lib/mesh-reflector-material/mesh-reflector-material.mjs +0 -328
- package/esm2022/materials/lib/mesh-refraction-material/mesh-refraction-material.mjs +0 -158
- package/esm2022/materials/lib/mesh-transmission-material/mesh-transmission-material.mjs +0 -238
- package/esm2022/materials/lib/mesh-wobble-material/mesh-wobble-material.mjs +0 -68
- package/esm2022/misc/lib/animations/animations.mjs +0 -52
- package/esm2022/misc/lib/bake-shadows/bake-shadows.mjs +0 -26
- package/esm2022/misc/lib/depth-buffer/depth-buffer.mjs +0 -39
- package/esm2022/misc/lib/fbo/fbo.mjs +0 -39
- package/esm2022/performance/angular-three-soba-performance.mjs +0 -5
- package/esm2022/performance/index.mjs +0 -5
- package/esm2022/performance/lib/adaptive/adaptive-dpr.mjs +0 -47
- package/esm2022/performance/lib/adaptive/adaptive-events.mjs +0 -37
- package/esm2022/performance/lib/detailed/detailed.mjs +0 -54
- package/esm2022/performance/lib/stats/stats.mjs +0 -80
- package/esm2022/shaders/lib/blur-pass/blur-pass.mjs +0 -61
- package/esm2022/shaders/lib/caustics-material/caustics-material.mjs +0 -128
- package/esm2022/shaders/lib/caustics-projection-material/caustics-projection-material.mjs +0 -33
- package/esm2022/shaders/lib/convolution-material/convolution-material.mjs +0 -94
- package/esm2022/shaders/lib/discard-material/discard-material.mjs +0 -3
- package/esm2022/shaders/lib/mesh-distort-material/mesh-distort-material.mjs +0 -55
- package/esm2022/shaders/lib/mesh-reflector-material/mesh-reflector-material.mjs +0 -223
- package/esm2022/shaders/lib/mesh-refraction-material/mesh-refraction-material.mjs +0 -169
- package/esm2022/shaders/lib/mesh-transmission-material/mesh-transmission-material.mjs +0 -268
- package/esm2022/shaders/lib/mesh-wobble-material/mesh-wobble-material.mjs +0 -37
- package/esm2022/shaders/lib/shader-material/shader-material.mjs +0 -34
- package/esm2022/shaders/lib/soft-shadow-material/soft-shadow-material.mjs +0 -33
- package/esm2022/shaders/lib/spot-light-material/spot-light-material.mjs +0 -86
- package/esm2022/shaders/lib/star-field-material/star-field-material.mjs +0 -32
- package/esm2022/staging/lib/accumulative-shadows/accumulative-shadows.mjs +0 -249
- package/esm2022/staging/lib/accumulative-shadows/progressive-light-map.mjs +0 -108
- package/esm2022/staging/lib/accumulative-shadows/randomized-lights.mjs +0 -201
- package/esm2022/staging/lib/bounds/bounds.mjs +0 -284
- package/esm2022/staging/lib/camera-shake/camera-shake.mjs +0 -122
- package/esm2022/staging/lib/caustics/caustics.mjs +0 -364
- package/esm2022/staging/lib/center/center.mjs +0 -143
- package/esm2022/staging/lib/cloud/cloud.mjs +0 -160
- package/esm2022/staging/lib/contact-shadows/contact-shadows.mjs +0 -228
- package/esm2022/staging/lib/environment/assets.mjs +0 -13
- package/esm2022/staging/lib/environment/environment-cube.mjs +0 -41
- package/esm2022/staging/lib/environment/environment-ground.mjs +0 -67
- package/esm2022/staging/lib/environment/environment-inputs.mjs +0 -87
- package/esm2022/staging/lib/environment/environment-map.mjs +0 -39
- package/esm2022/staging/lib/environment/environment-portal.mjs +0 -111
- package/esm2022/staging/lib/environment/environment.mjs +0 -165
- package/esm2022/staging/lib/environment/utils.mjs +0 -70
- package/esm2022/staging/lib/float/float.mjs +0 -77
- package/esm2022/staging/lib/sky/sky.mjs +0 -109
- package/esm2022/staging/lib/sparkles/sparkles.mjs +0 -210
- package/esm2022/staging/lib/spot-light/common.mjs +0 -42
- package/esm2022/staging/lib/spot-light/shadow-mesh-input.mjs +0 -51
- package/esm2022/staging/lib/spot-light/spot-light-input.mjs +0 -62
- package/esm2022/staging/lib/spot-light/spot-light-shadow-no-shader.mjs +0 -74
- package/esm2022/staging/lib/spot-light/spot-light-shadow-shader.mjs +0 -126
- package/esm2022/staging/lib/spot-light/spot-light-shadow.mjs +0 -63
- package/esm2022/staging/lib/spot-light/spot-light.mjs +0 -117
- package/esm2022/staging/lib/spot-light/volumetric-mesh.mjs +0 -86
- package/esm2022/staging/lib/stage/stage.mjs +0 -368
- package/esm2022/staging/lib/stars/stars.mjs +0 -140
- package/fesm2022/angular-three-soba-performance.mjs +0 -210
- package/fesm2022/angular-three-soba-performance.mjs.map +0 -1
- package/loaders/lib/cube-texture-loader/cube-texture-loader.d.ts +0 -3
- package/loaders/lib/gltf-loader/gltf-loader.d.ts +0 -8
- package/loaders/lib/loader/loader.d.ts +0 -26
- package/loaders/lib/progress/progress.d.ts +0 -16
- package/loaders/lib/texture-loader/texture-loader.d.ts +0 -5
- package/materials/lib/mesh-distort-material/mesh-distort-material.d.ts +0 -24
- package/materials/lib/mesh-reflector-material/mesh-reflector-material.d.ts +0 -41
- package/materials/lib/mesh-refraction-material/mesh-refraction-material.d.ts +0 -28
- package/materials/lib/mesh-transmission-material/mesh-transmission-material.d.ts +0 -46
- package/materials/lib/mesh-wobble-material/mesh-wobble-material.d.ts +0 -14
- package/misc/lib/animations/animations.d.ts +0 -13
- package/misc/lib/depth-buffer/depth-buffer.d.ts +0 -7
- package/performance/README.md +0 -3
- package/performance/index.d.ts +0 -4
- package/performance/lib/adaptive/adaptive-dpr.d.ts +0 -11
- package/performance/lib/detailed/detailed.d.ts +0 -13
- package/performance/lib/stats/stats.d.ts +0 -15
- package/plugin/README.md +0 -11
- package/plugin/generators.json +0 -19
- 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/shaders/lib/soft-shadow-material/soft-shadow-material.d.ts +0 -10
- package/shaders/lib/spot-light-material/spot-light-material.d.ts +0 -4
- package/shaders/lib/star-field-material/star-field-material.d.ts +0 -3
- package/staging/lib/accumulative-shadows/accumulative-shadows.d.ts +0 -58
- package/staging/lib/accumulative-shadows/randomized-lights.d.ts +0 -42
- package/staging/lib/bounds/bounds.d.ts +0 -48
- package/staging/lib/camera-shake/camera-shake.d.ts +0 -28
- package/staging/lib/caustics/caustics.d.ts +0 -47
- package/staging/lib/center/center.d.ts +0 -40
- package/staging/lib/cloud/cloud.d.ts +0 -23
- package/staging/lib/contact-shadows/contact-shadows.d.ts +0 -29
- package/staging/lib/environment/environment-cube.d.ts +0 -11
- package/staging/lib/environment/environment-ground.d.ts +0 -9
- package/staging/lib/environment/environment-inputs.d.ts +0 -28
- package/staging/lib/environment/environment-map.d.ts +0 -10
- package/staging/lib/environment/environment-portal.d.ts +0 -15
- package/staging/lib/environment/utils.d.ts +0 -8
- package/staging/lib/float/float.d.ts +0 -16
- package/staging/lib/sky/sky.d.ts +0 -20
- package/staging/lib/sparkles/sparkles.d.ts +0 -29
- package/staging/lib/spot-light/common.d.ts +0 -3
- package/staging/lib/spot-light/shadow-mesh-input.d.ts +0 -14
- package/staging/lib/spot-light/spot-light-input.d.ts +0 -16
- package/staging/lib/spot-light/spot-light-shadow-no-shader.d.ts +0 -14
- package/staging/lib/spot-light/spot-light-shadow-shader.d.ts +0 -25
- package/staging/lib/spot-light/spot-light-shadow.d.ts +0 -6
- package/staging/lib/spot-light/spot-light.d.ts +0 -17
- package/staging/lib/spot-light/volumetric-mesh.d.ts +0 -15
- package/staging/lib/stage/stage.d.ts +0 -87
- package/staging/lib/stars/stars.d.ts +0 -20
- /package/shaders/{lib/caustics-material → caustics}/caustics-material.d.ts +0 -0
- /package/shaders/{lib/caustics-projection-material → caustics}/caustics-projection-material.d.ts +0 -0
- /package/shaders/{lib/convolution-material → convolution-material}/convolution-material.d.ts +0 -0
- /package/shaders/{lib/discard-material → discard-material}/discard-material.d.ts +0 -0
- /package/shaders/{lib/mesh-reflector-material → mesh-reflector-material}/mesh-reflector-material.d.ts +0 -0
- /package/shaders/{lib/mesh-refraction-material → mesh-refraction-material}/mesh-refraction-material.d.ts +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { type NgtGroup, type NgtRef, type NgtVector3 } from 'angular-three';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
import { defaultCalculatePosition } from './html-wrapper';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
7
|
+
export type NgtsHtmlState = {
|
|
8
|
+
as: keyof HTMLElementTagNameMap;
|
|
9
|
+
prepend: boolean;
|
|
10
|
+
transform: boolean;
|
|
11
|
+
zIndexRange: Array<number>;
|
|
12
|
+
calculatePosition: typeof defaultCalculatePosition;
|
|
13
|
+
fullscreen: boolean;
|
|
14
|
+
center: boolean;
|
|
15
|
+
sprite: boolean;
|
|
16
|
+
pointerEvents: PointerEventsProperties;
|
|
17
|
+
eps: number;
|
|
18
|
+
scale: NgtVector3;
|
|
19
|
+
content?: TemplateRef<unknown>;
|
|
20
|
+
distanceFactor?: number;
|
|
21
|
+
style?: CSSStyleDeclaration;
|
|
22
|
+
renderedDivClass?: string;
|
|
23
|
+
wrapperClass?: string;
|
|
24
|
+
portal?: NgtRef<HTMLElement>;
|
|
25
|
+
occlude: NgtRef<THREE.Object3D>[] | boolean | 'raycast' | 'blending';
|
|
26
|
+
material?: NgtRef<THREE.Material>;
|
|
27
|
+
geometry?: NgtRef<THREE.BufferGeometry>;
|
|
28
|
+
castShadow: boolean;
|
|
29
|
+
receiveShadow: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare const injectNgtsHtmlInputs: {
|
|
32
|
+
(): {
|
|
33
|
+
zIndexRange: import("@angular/core").Signal<number[]>;
|
|
34
|
+
prepend: import("@angular/core").Signal<boolean>;
|
|
35
|
+
transform: import("@angular/core").Signal<boolean>;
|
|
36
|
+
center: import("@angular/core").Signal<boolean>;
|
|
37
|
+
fullscreen: import("@angular/core").Signal<boolean>;
|
|
38
|
+
calculatePosition: import("@angular/core").Signal<typeof defaultCalculatePosition>;
|
|
39
|
+
wrapperClass: import("@angular/core").Signal<string | undefined>;
|
|
40
|
+
renderedDivClass: import("@angular/core").Signal<string | undefined>;
|
|
41
|
+
style: import("@angular/core").Signal<CSSStyleDeclaration | undefined>;
|
|
42
|
+
pointerEvents: import("@angular/core").Signal<PointerEventsProperties>;
|
|
43
|
+
eps: import("@angular/core").Signal<number>;
|
|
44
|
+
distanceFactor: import("@angular/core").Signal<number | undefined>;
|
|
45
|
+
sprite: import("@angular/core").Signal<boolean>;
|
|
46
|
+
as: import("@angular/core").Signal<keyof HTMLElementTagNameMap>;
|
|
47
|
+
portal: import("@angular/core").Signal<NgtRef<HTMLElement> | undefined>;
|
|
48
|
+
content: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
49
|
+
occlude: import("@angular/core").Signal<boolean | "raycast" | NgtRef<THREE.Object3D<THREE.Event>>[] | "blending">;
|
|
50
|
+
isRayCastOcclusion: import("@angular/core").Signal<boolean>;
|
|
51
|
+
occlusionMeshRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
52
|
+
occluded: EventEmitter<boolean>;
|
|
53
|
+
geometry: import("@angular/core").Signal<NgtRef<THREE.BufferGeometry<THREE.NormalBufferAttributes>> | undefined>;
|
|
54
|
+
scale: import("@angular/core").Signal<NgtVector3>;
|
|
55
|
+
groupRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
56
|
+
state: import("@angular/core").Signal<NgtsHtmlState>;
|
|
57
|
+
};
|
|
58
|
+
(injectOptions: import("@angular/core").InjectOptions & {
|
|
59
|
+
optional?: false | undefined;
|
|
60
|
+
}): {
|
|
61
|
+
zIndexRange: import("@angular/core").Signal<number[]>;
|
|
62
|
+
prepend: import("@angular/core").Signal<boolean>;
|
|
63
|
+
transform: import("@angular/core").Signal<boolean>;
|
|
64
|
+
center: import("@angular/core").Signal<boolean>;
|
|
65
|
+
fullscreen: import("@angular/core").Signal<boolean>;
|
|
66
|
+
calculatePosition: import("@angular/core").Signal<typeof defaultCalculatePosition>;
|
|
67
|
+
wrapperClass: import("@angular/core").Signal<string | undefined>;
|
|
68
|
+
renderedDivClass: import("@angular/core").Signal<string | undefined>;
|
|
69
|
+
style: import("@angular/core").Signal<CSSStyleDeclaration | undefined>;
|
|
70
|
+
pointerEvents: import("@angular/core").Signal<PointerEventsProperties>;
|
|
71
|
+
eps: import("@angular/core").Signal<number>;
|
|
72
|
+
distanceFactor: import("@angular/core").Signal<number | undefined>;
|
|
73
|
+
sprite: import("@angular/core").Signal<boolean>;
|
|
74
|
+
as: import("@angular/core").Signal<keyof HTMLElementTagNameMap>;
|
|
75
|
+
portal: import("@angular/core").Signal<NgtRef<HTMLElement> | undefined>;
|
|
76
|
+
content: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
77
|
+
occlude: import("@angular/core").Signal<boolean | "raycast" | NgtRef<THREE.Object3D<THREE.Event>>[] | "blending">;
|
|
78
|
+
isRayCastOcclusion: import("@angular/core").Signal<boolean>;
|
|
79
|
+
occlusionMeshRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
80
|
+
occluded: EventEmitter<boolean>;
|
|
81
|
+
geometry: import("@angular/core").Signal<NgtRef<THREE.BufferGeometry<THREE.NormalBufferAttributes>> | undefined>;
|
|
82
|
+
scale: import("@angular/core").Signal<NgtVector3>;
|
|
83
|
+
groupRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
84
|
+
state: import("@angular/core").Signal<NgtsHtmlState>;
|
|
85
|
+
};
|
|
86
|
+
(injectOptions: import("@angular/core").InjectOptions): {
|
|
87
|
+
zIndexRange: import("@angular/core").Signal<number[]>;
|
|
88
|
+
prepend: import("@angular/core").Signal<boolean>;
|
|
89
|
+
transform: import("@angular/core").Signal<boolean>;
|
|
90
|
+
center: import("@angular/core").Signal<boolean>;
|
|
91
|
+
fullscreen: import("@angular/core").Signal<boolean>;
|
|
92
|
+
calculatePosition: import("@angular/core").Signal<typeof defaultCalculatePosition>;
|
|
93
|
+
wrapperClass: import("@angular/core").Signal<string | undefined>;
|
|
94
|
+
renderedDivClass: import("@angular/core").Signal<string | undefined>;
|
|
95
|
+
style: import("@angular/core").Signal<CSSStyleDeclaration | undefined>;
|
|
96
|
+
pointerEvents: import("@angular/core").Signal<PointerEventsProperties>;
|
|
97
|
+
eps: import("@angular/core").Signal<number>;
|
|
98
|
+
distanceFactor: import("@angular/core").Signal<number | undefined>;
|
|
99
|
+
sprite: import("@angular/core").Signal<boolean>;
|
|
100
|
+
as: import("@angular/core").Signal<keyof HTMLElementTagNameMap>;
|
|
101
|
+
portal: import("@angular/core").Signal<NgtRef<HTMLElement> | undefined>;
|
|
102
|
+
content: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
103
|
+
occlude: import("@angular/core").Signal<boolean | "raycast" | NgtRef<THREE.Object3D<THREE.Event>>[] | "blending">;
|
|
104
|
+
isRayCastOcclusion: import("@angular/core").Signal<boolean>;
|
|
105
|
+
occlusionMeshRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
106
|
+
occluded: EventEmitter<boolean>;
|
|
107
|
+
geometry: import("@angular/core").Signal<NgtRef<THREE.BufferGeometry<THREE.NormalBufferAttributes>> | undefined>;
|
|
108
|
+
scale: import("@angular/core").Signal<NgtVector3>;
|
|
109
|
+
groupRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
110
|
+
state: import("@angular/core").Signal<NgtsHtmlState>;
|
|
111
|
+
} | null;
|
|
112
|
+
}, provideNgtsHtmlInputs: (value?: {
|
|
113
|
+
zIndexRange: import("@angular/core").Signal<number[]>;
|
|
114
|
+
prepend: import("@angular/core").Signal<boolean>;
|
|
115
|
+
transform: import("@angular/core").Signal<boolean>;
|
|
116
|
+
center: import("@angular/core").Signal<boolean>;
|
|
117
|
+
fullscreen: import("@angular/core").Signal<boolean>;
|
|
118
|
+
calculatePosition: import("@angular/core").Signal<typeof defaultCalculatePosition>;
|
|
119
|
+
wrapperClass: import("@angular/core").Signal<string | undefined>;
|
|
120
|
+
renderedDivClass: import("@angular/core").Signal<string | undefined>;
|
|
121
|
+
style: import("@angular/core").Signal<CSSStyleDeclaration | undefined>;
|
|
122
|
+
pointerEvents: import("@angular/core").Signal<PointerEventsProperties>;
|
|
123
|
+
eps: import("@angular/core").Signal<number>;
|
|
124
|
+
distanceFactor: import("@angular/core").Signal<number | undefined>;
|
|
125
|
+
sprite: import("@angular/core").Signal<boolean>;
|
|
126
|
+
as: import("@angular/core").Signal<keyof HTMLElementTagNameMap>;
|
|
127
|
+
portal: import("@angular/core").Signal<NgtRef<HTMLElement> | undefined>;
|
|
128
|
+
content: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
129
|
+
occlude: import("@angular/core").Signal<boolean | "raycast" | NgtRef<THREE.Object3D<THREE.Event>>[] | "blending">;
|
|
130
|
+
isRayCastOcclusion: import("@angular/core").Signal<boolean>;
|
|
131
|
+
occlusionMeshRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
132
|
+
occluded: EventEmitter<boolean>;
|
|
133
|
+
geometry: import("@angular/core").Signal<NgtRef<THREE.BufferGeometry<THREE.NormalBufferAttributes>> | undefined>;
|
|
134
|
+
scale: import("@angular/core").Signal<NgtVector3>;
|
|
135
|
+
groupRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
136
|
+
state: import("@angular/core").Signal<NgtsHtmlState>;
|
|
137
|
+
} | undefined) => import("@angular/core").Provider;
|
|
138
|
+
declare global {
|
|
139
|
+
interface HTMLElementTagNameMap {
|
|
140
|
+
/**
|
|
141
|
+
* @extends ngt-group
|
|
142
|
+
*/
|
|
143
|
+
'ngts-html': NgtsHtmlState & NgtGroup;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export declare class NgtsHtml {
|
|
147
|
+
DoubleSide: 2;
|
|
148
|
+
inputs: import("angular-three").NgtSignalStore<NgtsHtmlState>;
|
|
149
|
+
set content(content: TemplateRef<unknown>);
|
|
150
|
+
groupRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
151
|
+
set _as(as: keyof HTMLElementTagNameMap);
|
|
152
|
+
set _zIndexRange(zIndexRange: Array<number>);
|
|
153
|
+
set _portal(portal: NgtRef<HTMLElement>);
|
|
154
|
+
set _occlude(occlude: NgtsHtmlState['occlude']);
|
|
155
|
+
set _castShadow(castShadow: NgtsHtmlState['castShadow']);
|
|
156
|
+
set _receiveShadow(receiveShadow: NgtsHtmlState['receiveShadow']);
|
|
157
|
+
set _material(material: NgtsHtmlState['material']);
|
|
158
|
+
set _geometry(geometry: NgtsHtmlState['geometry']);
|
|
159
|
+
set _scale(scale: NgtsHtmlState['scale']);
|
|
160
|
+
set _prepend(prepend: boolean);
|
|
161
|
+
set _transform(transform: boolean);
|
|
162
|
+
set _center(center: boolean);
|
|
163
|
+
set _sprite(sprite: boolean);
|
|
164
|
+
set _fullscreen(fullscreen: boolean);
|
|
165
|
+
set _eps(eps: number);
|
|
166
|
+
set _distanceFactor(distanceFactor: number);
|
|
167
|
+
set _wrapperClass(wrapperClass: string);
|
|
168
|
+
set _renderedDivClass(renderedDivClass: string);
|
|
169
|
+
set _style(style: CSSStyleDeclaration);
|
|
170
|
+
set _pointerEvents(pointerEvents: PointerEventsProperties);
|
|
171
|
+
set _calculatePosition(calculatePosition: NgtsHtmlState['calculatePosition']);
|
|
172
|
+
occluded: EventEmitter<boolean>;
|
|
173
|
+
occlusionMeshRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
174
|
+
private transform;
|
|
175
|
+
isRayCastOcclusion: import("@angular/core").Signal<boolean>;
|
|
176
|
+
occlude: import("@angular/core").Signal<boolean | "raycast" | NgtRef<THREE.Object3D<THREE.Event>>[] | "blending">;
|
|
177
|
+
castShadow: import("@angular/core").Signal<boolean>;
|
|
178
|
+
receiveShadow: import("@angular/core").Signal<boolean>;
|
|
179
|
+
geometry: import("@angular/core").Signal<NgtRef<THREE.BufferGeometry<THREE.NormalBufferAttributes>> | undefined>;
|
|
180
|
+
material: import("@angular/core").Signal<NgtRef<THREE.Material> | undefined>;
|
|
181
|
+
scale: import("@angular/core").Signal<NgtVector3>;
|
|
182
|
+
shaders: import("@angular/core").Signal<{
|
|
183
|
+
vertexShader: string | undefined;
|
|
184
|
+
fragmentShader: string;
|
|
185
|
+
}>;
|
|
186
|
+
state: {
|
|
187
|
+
zIndexRange: import("@angular/core").Signal<number[]>;
|
|
188
|
+
prepend: import("@angular/core").Signal<boolean>;
|
|
189
|
+
transform: import("@angular/core").Signal<boolean>;
|
|
190
|
+
center: import("@angular/core").Signal<boolean>;
|
|
191
|
+
fullscreen: import("@angular/core").Signal<boolean>;
|
|
192
|
+
calculatePosition: import("@angular/core").Signal<typeof defaultCalculatePosition>;
|
|
193
|
+
wrapperClass: import("@angular/core").Signal<string | undefined>;
|
|
194
|
+
renderedDivClass: import("@angular/core").Signal<string | undefined>;
|
|
195
|
+
style: import("@angular/core").Signal<CSSStyleDeclaration | undefined>;
|
|
196
|
+
pointerEvents: import("@angular/core").Signal<PointerEventsProperties>;
|
|
197
|
+
eps: import("@angular/core").Signal<number>;
|
|
198
|
+
distanceFactor: import("@angular/core").Signal<number | undefined>;
|
|
199
|
+
sprite: import("@angular/core").Signal<boolean>;
|
|
200
|
+
as: import("@angular/core").Signal<keyof HTMLElementTagNameMap>;
|
|
201
|
+
portal: import("@angular/core").Signal<NgtRef<HTMLElement> | undefined>;
|
|
202
|
+
content: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
203
|
+
occlude: import("@angular/core").Signal<boolean | "raycast" | NgtRef<THREE.Object3D<THREE.Event>>[] | "blending">;
|
|
204
|
+
isRayCastOcclusion: import("@angular/core").Signal<boolean>;
|
|
205
|
+
occlusionMeshRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
206
|
+
occluded: EventEmitter<boolean>;
|
|
207
|
+
geometry: import("@angular/core").Signal<NgtRef<THREE.BufferGeometry<THREE.NormalBufferAttributes>> | undefined>;
|
|
208
|
+
scale: import("@angular/core").Signal<NgtVector3>;
|
|
209
|
+
groupRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
210
|
+
};
|
|
211
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsHtml, never>;
|
|
212
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsHtml, "ngts-html", never, { "groupRef": { "alias": "groupRef"; "required": false; }; "_as": { "alias": "as"; "required": false; }; "_zIndexRange": { "alias": "zIndexRange"; "required": false; }; "_portal": { "alias": "portal"; "required": false; }; "_occlude": { "alias": "occlude"; "required": false; }; "_castShadow": { "alias": "castShadow"; "required": false; }; "_receiveShadow": { "alias": "receiveShadow"; "required": false; }; "_material": { "alias": "material"; "required": false; }; "_geometry": { "alias": "geometry"; "required": false; }; "_scale": { "alias": "scale"; "required": false; }; "_prepend": { "alias": "prepend"; "required": false; }; "_transform": { "alias": "transform"; "required": false; }; "_center": { "alias": "center"; "required": false; }; "_sprite": { "alias": "sprite"; "required": false; }; "_fullscreen": { "alias": "fullscreen"; "required": false; }; "_eps": { "alias": "eps"; "required": false; }; "_distanceFactor": { "alias": "distanceFactor"; "required": false; }; "_wrapperClass": { "alias": "wrapperClass"; "required": false; }; "_renderedDivClass": { "alias": "renderedDivClass"; "required": false; }; "_style": { "alias": "style"; "required": false; }; "_pointerEvents": { "alias": "pointerEvents"; "required": false; }; "_calculatePosition": { "alias": "calculatePosition"; "required": false; }; }, { "occluded": "occluded"; }, ["content"], never, true, never>;
|
|
213
|
+
}
|
|
214
|
+
export {};
|
package/misc/index.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './animations/animations';
|
|
2
|
+
export * from './bake-shadows/bake-shadows';
|
|
3
|
+
export * from './caustics/caustics';
|
|
4
|
+
export * from './decal/decal';
|
|
5
|
+
export * from './depth-buffer/depth-buffer';
|
|
6
|
+
export * from './example/example';
|
|
7
|
+
export * from './fbo/fbo';
|
|
8
|
+
export * from './html/html';
|
|
9
|
+
export * from './sampler/sampler';
|
|
10
|
+
export * from './shadow/shadow';
|
|
11
|
+
export * from './stats-gl/stats-gl';
|
|
12
|
+
export * from './trail-texture/inject-trail-texture';
|
|
13
|
+
export * from './trail/trail';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { NgtGroup, type NgtRef } from 'angular-three';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
type SamplePayload = {
|
|
6
|
+
/**
|
|
7
|
+
* The position of the sample.
|
|
8
|
+
*/
|
|
9
|
+
position: THREE.Vector3;
|
|
10
|
+
/**
|
|
11
|
+
* The normal of the mesh at the sampled position.
|
|
12
|
+
*/
|
|
13
|
+
normal: THREE.Vector3;
|
|
14
|
+
/**
|
|
15
|
+
* The vertex color of the mesh at the sampled position.
|
|
16
|
+
*/
|
|
17
|
+
color: THREE.Color;
|
|
18
|
+
};
|
|
19
|
+
type TransformPayload = SamplePayload & {
|
|
20
|
+
/**
|
|
21
|
+
* The dummy object used to transform each instance.
|
|
22
|
+
* This object's matrix will be updated after transforming & it will be used
|
|
23
|
+
* to set the instance's matrix.
|
|
24
|
+
*/
|
|
25
|
+
dummy: THREE.Object3D;
|
|
26
|
+
/**
|
|
27
|
+
* The mesh that's initially passed to the sampler.
|
|
28
|
+
* Use this if you need to apply transforms from your mesh to your instances
|
|
29
|
+
* or if you need to grab attributes from the geometry.
|
|
30
|
+
*/
|
|
31
|
+
sampledMesh: THREE.Mesh;
|
|
32
|
+
};
|
|
33
|
+
export type NgtsSurfaceSamplerTransformFn = (payload: TransformPayload, i: number) => void;
|
|
34
|
+
export type NgtsSurfaceSamplerState = {
|
|
35
|
+
count: number;
|
|
36
|
+
mesh: NgtRef<THREE.Mesh>;
|
|
37
|
+
transform?: NgtsSurfaceSamplerTransformFn;
|
|
38
|
+
weight?: string;
|
|
39
|
+
instancedMesh?: NgtRef<THREE.InstancedMesh>;
|
|
40
|
+
};
|
|
41
|
+
export declare function injectNgtsSurfaceSampler(surfaceSamplerState: () => (Partial<Omit<NgtsSurfaceSamplerState, 'mesh'>> & {
|
|
42
|
+
mesh: NgtRef<THREE.Mesh>;
|
|
43
|
+
}) | null, { injector }?: {
|
|
44
|
+
injector?: Injector;
|
|
45
|
+
}): import("@angular/core").Signal<THREE.InstancedBufferAttribute>;
|
|
46
|
+
declare global {
|
|
47
|
+
interface HTMLElementTagNameMap {
|
|
48
|
+
/**
|
|
49
|
+
* @extends ngt-group
|
|
50
|
+
*/
|
|
51
|
+
'ngts-sampler': NgtsSurfaceSamplerState & NgtGroup;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export declare class NgtsSampler {
|
|
55
|
+
private inputs;
|
|
56
|
+
samplerRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
57
|
+
set _count(count: number);
|
|
58
|
+
set _mesh(mesh: NgtRef<THREE.Mesh>);
|
|
59
|
+
set _transform(transform: NgtsSurfaceSamplerTransformFn);
|
|
60
|
+
set _weight(weight: string);
|
|
61
|
+
set _instancedMesh(instancedMesh: NgtRef<THREE.InstancedMesh>);
|
|
62
|
+
private surfaceSamplerState;
|
|
63
|
+
constructor();
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSampler, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSampler, "ngts-sampler", never, { "samplerRef": { "alias": "samplerRef"; "required": false; }; "_count": { "alias": "count"; "required": false; }; "_mesh": { "alias": "mesh"; "required": false; }; "_transform": { "alias": "transform"; "required": false; }; "_weight": { "alias": "weight"; "required": false; }; "_instancedMesh": { "alias": "instancedMesh"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { NgtMesh } from 'angular-three';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type NgtsShadowState = {
|
|
5
|
+
colorStop: number;
|
|
6
|
+
fog: boolean;
|
|
7
|
+
color: THREE.ColorRepresentation;
|
|
8
|
+
opacity: number;
|
|
9
|
+
depthWrite: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
/**
|
|
14
|
+
* @extends ngt-mesh
|
|
15
|
+
*/
|
|
16
|
+
'ngts-shadow': NgtsShadowState & NgtMesh;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare class NgtsShadow {
|
|
20
|
+
Math: Math;
|
|
21
|
+
DoubleSide: 2;
|
|
22
|
+
private inputs;
|
|
23
|
+
shadowRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
24
|
+
set _colorStop(colorStop: number);
|
|
25
|
+
set _fog(fog: boolean);
|
|
26
|
+
set _color(color: THREE.ColorRepresentation);
|
|
27
|
+
set _opacity(opacity: number);
|
|
28
|
+
set _depthWrite(depthWrite: boolean);
|
|
29
|
+
private colorStop;
|
|
30
|
+
private color;
|
|
31
|
+
opacity: import("@angular/core").Signal<number>;
|
|
32
|
+
fog: import("@angular/core").Signal<boolean>;
|
|
33
|
+
depthWrite: import("@angular/core").Signal<boolean>;
|
|
34
|
+
canvas: import("@angular/core").Signal<HTMLCanvasElement>;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsShadow, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsShadow, "ngts-shadow", never, { "shadowRef": { "alias": "shadowRef"; "required": false; }; "_colorStop": { "alias": "colorStop"; "required": false; }; "_fog": { "alias": "fog"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_opacity": { "alias": "opacity"; "required": false; }; "_depthWrite": { "alias": "depthWrite"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NgtRef } from 'angular-three';
|
|
2
|
+
import Stats from 'stats-gl';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type NgtsStatsGLState = {
|
|
5
|
+
parent?: NgtRef<HTMLElement>;
|
|
6
|
+
containerClass?: string;
|
|
7
|
+
config?: ConstructorParameters<typeof Stats>[0];
|
|
8
|
+
};
|
|
9
|
+
export declare class NgtsStatsGL {
|
|
10
|
+
private inputs;
|
|
11
|
+
set _parent(parent: NgtRef<HTMLElement>);
|
|
12
|
+
set _containerClass(containerClass: string);
|
|
13
|
+
set _config(config: NgtsStatsGLState['config']);
|
|
14
|
+
private document;
|
|
15
|
+
private store;
|
|
16
|
+
private gl;
|
|
17
|
+
private config;
|
|
18
|
+
private parent;
|
|
19
|
+
private containerClass;
|
|
20
|
+
private stats;
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsStatsGL, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsStatsGL, "ngts-stats-gl", never, { "_parent": { "alias": "parent"; "required": false; }; "_containerClass": { "alias": "containerClass"; "required": false; }; "_config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type Injector } from '@angular/core';
|
|
2
|
+
import { NgtRef } from 'angular-three';
|
|
3
|
+
import { MeshLineGeometry, MeshLineMaterial } from 'meshline';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type NgtsTrailSettings = {
|
|
7
|
+
width: number;
|
|
8
|
+
length: number;
|
|
9
|
+
decay: number;
|
|
10
|
+
/**
|
|
11
|
+
* Wether to use the target's world or local positions
|
|
12
|
+
*/
|
|
13
|
+
local: boolean;
|
|
14
|
+
stride: number;
|
|
15
|
+
interval: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function injectNgtsTrail(targetFactory: () => NgtRef<THREE.Object3D> | null, settingsFactory: () => Partial<NgtsTrailSettings>, { injector }?: {
|
|
18
|
+
injector?: Injector;
|
|
19
|
+
}): import("angular-three").NgtInjectedRef<Float32Array>;
|
|
20
|
+
export type NgtsTrailState = {
|
|
21
|
+
color: THREE.ColorRepresentation;
|
|
22
|
+
attenuation: (width: number) => number;
|
|
23
|
+
settings: NgtsTrailSettings;
|
|
24
|
+
target?: NgtRef<THREE.Object3D>;
|
|
25
|
+
};
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'ngts-trail': NgtsTrailState;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export declare class NgtsTrail {
|
|
32
|
+
private inputs;
|
|
33
|
+
trailRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
34
|
+
set _color(color: THREE.ColorRepresentation);
|
|
35
|
+
set _attenuation(attenuation: (width: number) => number);
|
|
36
|
+
set _target(target: NgtRef<THREE.Object3D>);
|
|
37
|
+
set _settings(settings: Partial<NgtsTrailSettings>);
|
|
38
|
+
groupRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
39
|
+
private children;
|
|
40
|
+
private store;
|
|
41
|
+
private size;
|
|
42
|
+
private target;
|
|
43
|
+
private settings;
|
|
44
|
+
private width;
|
|
45
|
+
private color;
|
|
46
|
+
private attenuation;
|
|
47
|
+
private anchor;
|
|
48
|
+
private points;
|
|
49
|
+
scene: import("@angular/core").Signal<THREE.Scene>;
|
|
50
|
+
geometry: MeshLineGeometry;
|
|
51
|
+
material: import("@angular/core").Signal<MeshLineMaterial>;
|
|
52
|
+
constructor();
|
|
53
|
+
private setMaterialSize;
|
|
54
|
+
private beforeRender;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsTrail, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsTrail, "ngts-trail", never, { "trailRef": { "alias": "trailRef"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_attenuation": { "alias": "attenuation"; "required": false; }; "_target": { "alias": "target"; "required": false; }; "_settings": { "alias": "settings"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { NgtThreeEvent } from 'angular-three';
|
|
3
|
+
import { type TrailConfig } from './trail-texture';
|
|
4
|
+
export declare function injectNgtsTrailTexture(trailConfigFn: () => Partial<TrailConfig>, { injector }?: {
|
|
5
|
+
injector?: Injector;
|
|
6
|
+
}): {
|
|
7
|
+
texture: import("@angular/core").Signal<import("three").Texture>;
|
|
8
|
+
onMove: (ev: NgtThreeEvent<PointerEvent>) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Texture } from 'three';
|
|
2
|
+
export type Point = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
age: number;
|
|
6
|
+
force: number;
|
|
7
|
+
};
|
|
8
|
+
export type TrailConfig = {
|
|
9
|
+
/** texture size (default: 256x256) */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** Max age (ms) of trail points (default: 750) */
|
|
12
|
+
maxAge?: number;
|
|
13
|
+
/** Trail radius (default: 0.3) */
|
|
14
|
+
radius?: number;
|
|
15
|
+
/** Canvas trail opacity (default: 0.2) */
|
|
16
|
+
intensity?: number;
|
|
17
|
+
/** Add points in between slow pointer events (default: 0) */
|
|
18
|
+
interpolate?: number;
|
|
19
|
+
/** Moving average of pointer force (default: 0) */
|
|
20
|
+
smoothing?: number;
|
|
21
|
+
/** Minimum pointer force (default: 0.3) */
|
|
22
|
+
minForce?: number;
|
|
23
|
+
/** Blend mode (default: 'screen') */
|
|
24
|
+
blend?: CanvasRenderingContext2D['globalCompositeOperation'];
|
|
25
|
+
/** Easing (default: easeCircOut) */
|
|
26
|
+
ease?: (t: number) => number;
|
|
27
|
+
};
|
|
28
|
+
export declare class TrailTexture {
|
|
29
|
+
trail: Point[];
|
|
30
|
+
canvas: HTMLCanvasElement;
|
|
31
|
+
ctx: CanvasRenderingContext2D;
|
|
32
|
+
texture: Texture;
|
|
33
|
+
force: number;
|
|
34
|
+
size: number;
|
|
35
|
+
maxAge: number;
|
|
36
|
+
radius: number;
|
|
37
|
+
intensity: number;
|
|
38
|
+
ease: (t: number) => number;
|
|
39
|
+
minForce: number;
|
|
40
|
+
interpolate: number;
|
|
41
|
+
smoothing: number;
|
|
42
|
+
blend: CanvasRenderingContext2D['globalCompositeOperation'];
|
|
43
|
+
constructor({ size, maxAge, radius, intensity, interpolate, smoothing, minForce, blend, // source-over is canvas default. Others are slower
|
|
44
|
+
ease, }?: TrailConfig);
|
|
45
|
+
initTexture(): void;
|
|
46
|
+
update(delta: number): void;
|
|
47
|
+
clear(): void;
|
|
48
|
+
addTouch(point: Pick<Point, 'x' | 'y'>): void;
|
|
49
|
+
drawTouch(point: Point): void;
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type NgtsCurveModifierState = {
|
|
4
|
+
curve?: THREE.Curve<THREE.Vector3>;
|
|
5
|
+
};
|
|
6
|
+
declare global {
|
|
7
|
+
interface HTMLElementTagNameMap {
|
|
8
|
+
'ngts-curve-modifier': NgtsCurveModifierState;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class NgtsCurveModifier {
|
|
12
|
+
private inputs;
|
|
13
|
+
set _curve(curve: THREE.Curve<THREE.Vector3>);
|
|
14
|
+
private curve;
|
|
15
|
+
sceneRef: import("angular-three").NgtInjectedRef<import("angular-three").NgtInstanceNode<THREE.Scene>>;
|
|
16
|
+
private sceneRefChildren;
|
|
17
|
+
private modifier?;
|
|
18
|
+
modifierObject: import("@angular/core").WritableSignal<THREE.Object3D<THREE.Event> | null>;
|
|
19
|
+
constructor();
|
|
20
|
+
moveAlongCurve(value: number): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCurveModifier, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCurveModifier, "ngts-curve-modifier", never, { "_curve": { "alias": "curve"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './curve-modifier/curve-modifier';
|