@vyr/three 0.0.10 → 0.0.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/build/actor/ComposerServiceActor.d.ts +23 -0
- package/build/actor/ComposerServiceActor.js +93 -0
- package/build/actor/ComposerServiceActor.js.map +1 -0
- package/build/actor/GeometryActor.d.ts +7 -0
- package/build/actor/GeometryActor.js +10 -0
- package/build/actor/GeometryActor.js.map +1 -0
- package/build/actor/HTMLConvertActor.d.ts +14 -0
- package/build/actor/HTMLConvertActor.js +52 -0
- package/build/actor/HTMLConvertActor.js.map +1 -0
- package/build/actor/MaterialActor.d.ts +7 -0
- package/build/actor/MaterialActor.js +10 -0
- package/build/actor/MaterialActor.js.map +1 -0
- package/build/actor/NodeActor.d.ts +9 -0
- package/build/actor/NodeActor.js +21 -0
- package/build/actor/NodeActor.js.map +1 -0
- package/build/actor/OrbitControllerActor.d.ts +20 -0
- package/build/actor/OrbitControllerActor.js +103 -0
- package/build/actor/OrbitControllerActor.js.map +1 -0
- package/build/actor/PassActor.d.ts +8 -0
- package/build/actor/PassActor.js +16 -0
- package/build/actor/PassActor.js.map +1 -0
- package/build/actor/SceneServiceActor.d.ts +21 -0
- package/build/actor/SceneServiceActor.js +112 -0
- package/build/actor/SceneServiceActor.js.map +1 -0
- package/build/actor/TextureActor.d.ts +7 -0
- package/build/actor/TextureActor.js +10 -0
- package/build/actor/TextureActor.js.map +1 -0
- package/build/actor/TransformControllerActor.d.ts +10 -0
- package/build/actor/TransformControllerActor.js +19 -0
- package/build/actor/TransformControllerActor.js.map +1 -0
- package/build/actor/index.d.ts +8 -0
- package/build/actor/index.js +11 -0
- package/build/actor/index.js.map +1 -0
- package/build/asset/index.d.ts +1 -0
- package/build/asset/index.js +219 -0
- package/build/asset/index.js.map +1 -0
- package/build/controls/CameraControls.d.ts +647 -0
- package/build/controls/CameraControls.js +2332 -0
- package/build/controls/CameraControls.js.map +1 -0
- package/build/controls/TransformControls.d.ts +72 -0
- package/build/controls/TransformControls.js +1359 -0
- package/build/controls/TransformControls.js.map +1 -0
- package/build/controls/index.d.ts +2 -0
- package/build/controls/index.js +3 -0
- package/build/controls/index.js.map +1 -0
- package/build/descriptor/ComposerServiceDescriptor.d.ts +33 -0
- package/build/descriptor/ComposerServiceDescriptor.js +42 -0
- package/build/descriptor/ComposerServiceDescriptor.js.map +1 -0
- package/build/descriptor/GeoMapDescriptor.d.ts +12 -0
- package/build/descriptor/GeoMapDescriptor.js +22 -0
- package/build/descriptor/GeoMapDescriptor.js.map +1 -0
- package/build/descriptor/HTMLConvertDescriptor.d.ts +6 -0
- package/build/descriptor/HTMLConvertDescriptor.js +10 -0
- package/build/descriptor/HTMLConvertDescriptor.js.map +1 -0
- package/build/descriptor/InstancedMeshDescriptor.d.ts +12 -0
- package/build/descriptor/InstancedMeshDescriptor.js +12 -0
- package/build/descriptor/InstancedMeshDescriptor.js.map +1 -0
- package/build/descriptor/MeshDescriptor.d.ts +8 -0
- package/build/descriptor/MeshDescriptor.js +14 -0
- package/build/descriptor/MeshDescriptor.js.map +1 -0
- package/build/descriptor/ModelDescriptor.d.ts +7 -0
- package/build/descriptor/ModelDescriptor.js +12 -0
- package/build/descriptor/ModelDescriptor.js.map +1 -0
- package/build/descriptor/OrbitControllerDescriptor.d.ts +54 -0
- package/build/descriptor/OrbitControllerDescriptor.js +73 -0
- package/build/descriptor/OrbitControllerDescriptor.js.map +1 -0
- package/build/descriptor/OrthographicCameraDescriptor.d.ts +6 -0
- package/build/descriptor/OrthographicCameraDescriptor.js +10 -0
- package/build/descriptor/OrthographicCameraDescriptor.js.map +1 -0
- package/build/descriptor/ParticleDescriptor.d.ts +55 -0
- package/build/descriptor/ParticleDescriptor.js +85 -0
- package/build/descriptor/ParticleDescriptor.js.map +1 -0
- package/build/descriptor/PassDescriptor.d.ts +16 -0
- package/build/descriptor/PassDescriptor.js +23 -0
- package/build/descriptor/PassDescriptor.js.map +1 -0
- package/build/descriptor/PerspectiveCameraDescriptor.d.ts +7 -0
- package/build/descriptor/PerspectiveCameraDescriptor.js +12 -0
- package/build/descriptor/PerspectiveCameraDescriptor.js.map +1 -0
- package/build/descriptor/PointsDescriptor.d.ts +8 -0
- package/build/descriptor/PointsDescriptor.js +14 -0
- package/build/descriptor/PointsDescriptor.js.map +1 -0
- package/build/descriptor/SceneServiceDescriptor.d.ts +20 -0
- package/build/descriptor/SceneServiceDescriptor.js +35 -0
- package/build/descriptor/SceneServiceDescriptor.js.map +1 -0
- package/build/descriptor/SpriteDescriptor.d.ts +8 -0
- package/build/descriptor/SpriteDescriptor.js +14 -0
- package/build/descriptor/SpriteDescriptor.js.map +1 -0
- package/build/descriptor/TextDescriptor.d.ts +21 -0
- package/build/descriptor/TextDescriptor.js +37 -0
- package/build/descriptor/TextDescriptor.js.map +1 -0
- package/build/descriptor/TransformControllerDescriptor.d.ts +20 -0
- package/build/descriptor/TransformControllerDescriptor.js +22 -0
- package/build/descriptor/TransformControllerDescriptor.js.map +1 -0
- package/build/descriptor/animation/AnimationActionDescriptor.d.ts +27 -0
- package/build/descriptor/animation/AnimationActionDescriptor.js +46 -0
- package/build/descriptor/animation/AnimationActionDescriptor.js.map +1 -0
- package/build/descriptor/geometry/BoxGeometryDescriptor.d.ts +14 -0
- package/build/descriptor/geometry/BoxGeometryDescriptor.js +23 -0
- package/build/descriptor/geometry/BoxGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/BufferGeometryDescriptor.d.ts +8 -0
- package/build/descriptor/geometry/BufferGeometryDescriptor.js +12 -0
- package/build/descriptor/geometry/BufferGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/CircleGeometryDescriptor.d.ts +12 -0
- package/build/descriptor/geometry/CircleGeometryDescriptor.js +19 -0
- package/build/descriptor/geometry/CircleGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/CylinderGeometryDescriptor.d.ts +16 -0
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js +27 -0
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.d.ts +18 -0
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js +33 -0
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/GeometryDescriptor.d.ts +5 -0
- package/build/descriptor/geometry/GeometryDescriptor.js +7 -0
- package/build/descriptor/geometry/GeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/PlaneGeometryDescriptor.d.ts +12 -0
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js +19 -0
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/RingGeometryDescriptor.d.ts +14 -0
- package/build/descriptor/geometry/RingGeometryDescriptor.js +23 -0
- package/build/descriptor/geometry/RingGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/SphereGeometryDescriptor.d.ts +14 -0
- package/build/descriptor/geometry/SphereGeometryDescriptor.js +24 -0
- package/build/descriptor/geometry/SphereGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.d.ts +8 -0
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js +12 -0
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/TubeGeometryDescriptor.d.ts +13 -0
- package/build/descriptor/geometry/TubeGeometryDescriptor.js +23 -0
- package/build/descriptor/geometry/TubeGeometryDescriptor.js.map +1 -0
- package/build/descriptor/helper/AxesHelperDescriptor.d.ts +5 -0
- package/build/descriptor/helper/AxesHelperDescriptor.js +7 -0
- package/build/descriptor/helper/AxesHelperDescriptor.js.map +1 -0
- package/build/descriptor/index.d.ts +43 -0
- package/build/descriptor/index.js +46 -0
- package/build/descriptor/index.js.map +1 -0
- package/build/descriptor/light/AmbientLightDescriptor.d.ts +5 -0
- package/build/descriptor/light/AmbientLightDescriptor.js +7 -0
- package/build/descriptor/light/AmbientLightDescriptor.js.map +1 -0
- package/build/descriptor/light/DirectionalLightDescriptor.d.ts +20 -0
- package/build/descriptor/light/DirectionalLightDescriptor.js +21 -0
- package/build/descriptor/light/DirectionalLightDescriptor.js.map +1 -0
- package/build/descriptor/light/HemisphereLightDescriptor.d.ts +8 -0
- package/build/descriptor/light/HemisphereLightDescriptor.js +12 -0
- package/build/descriptor/light/HemisphereLightDescriptor.js.map +1 -0
- package/build/descriptor/light/LightDescriptor.d.ts +8 -0
- package/build/descriptor/light/LightDescriptor.js +14 -0
- package/build/descriptor/light/LightDescriptor.js.map +1 -0
- package/build/descriptor/light/PointLightDescriptor.d.ts +15 -0
- package/build/descriptor/light/PointLightDescriptor.js +21 -0
- package/build/descriptor/light/PointLightDescriptor.js.map +1 -0
- package/build/descriptor/light/RectAreaLightDescriptor.d.ts +10 -0
- package/build/descriptor/light/RectAreaLightDescriptor.js +16 -0
- package/build/descriptor/light/RectAreaLightDescriptor.js.map +1 -0
- package/build/descriptor/light/SpotLightDescriptor.d.ts +18 -0
- package/build/descriptor/light/SpotLightDescriptor.js +27 -0
- package/build/descriptor/light/SpotLightDescriptor.js.map +1 -0
- package/build/descriptor/material/MaterialDescriptor.d.ts +54 -0
- package/build/descriptor/material/MaterialDescriptor.js +73 -0
- package/build/descriptor/material/MaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/MeshBasicMaterialDescriptor.d.ts +35 -0
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js +51 -0
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/MeshPhongMaterialDescriptor.d.ts +65 -0
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js +98 -0
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/MeshStandardMaterialDescriptor.d.ts +63 -0
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js +95 -0
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/PointsMaterialDescriptor.d.ts +19 -0
- package/build/descriptor/material/PointsMaterialDescriptor.js +29 -0
- package/build/descriptor/material/PointsMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/ShaderMaterialDescriptor.d.ts +24 -0
- package/build/descriptor/material/ShaderMaterialDescriptor.js +26 -0
- package/build/descriptor/material/ShaderMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/ShadowMaterialDescriptor.d.ts +11 -0
- package/build/descriptor/material/ShadowMaterialDescriptor.js +17 -0
- package/build/descriptor/material/ShadowMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/SpriteMaterialDescriptor.d.ts +19 -0
- package/build/descriptor/material/SpriteMaterialDescriptor.js +29 -0
- package/build/descriptor/material/SpriteMaterialDescriptor.js.map +1 -0
- package/build/descriptor/texture/TextureDescriptor.d.ts +80 -0
- package/build/descriptor/texture/TextureDescriptor.js +103 -0
- package/build/descriptor/texture/TextureDescriptor.js.map +1 -0
- package/build/index.d.ts +9 -0
- package/build/index.js +10 -0
- package/build/index.js.map +1 -0
- package/build/interpreter/ComposerServiceInterpreter.d.ts +0 -0
- package/build/interpreter/ComposerServiceInterpreter.js +22 -0
- package/build/interpreter/ComposerServiceInterpreter.js.map +1 -0
- package/build/interpreter/GeoMapInterpreter.d.ts +36 -0
- package/build/interpreter/GeoMapInterpreter.js +216 -0
- package/build/interpreter/GeoMapInterpreter.js.map +1 -0
- package/build/interpreter/HTMLConvertInterpreter.d.ts +12 -0
- package/build/interpreter/HTMLConvertInterpreter.js +25 -0
- package/build/interpreter/HTMLConvertInterpreter.js.map +1 -0
- package/build/interpreter/InstancedMeshInterpreter.d.ts +19 -0
- package/build/interpreter/InstancedMeshInterpreter.js +67 -0
- package/build/interpreter/InstancedMeshInterpreter.js.map +1 -0
- package/build/interpreter/MeshInterpreter.d.ts +9 -0
- package/build/interpreter/MeshInterpreter.js +21 -0
- package/build/interpreter/MeshInterpreter.js.map +1 -0
- package/build/interpreter/ModelInterpreter.d.ts +16 -0
- package/build/interpreter/ModelInterpreter.js +52 -0
- package/build/interpreter/ModelInterpreter.js.map +1 -0
- package/build/interpreter/NodeInterpreter.d.ts +18 -0
- package/build/interpreter/NodeInterpreter.js +53 -0
- package/build/interpreter/NodeInterpreter.js.map +1 -0
- package/build/interpreter/OrbitControllerInterpreter.d.ts +13 -0
- package/build/interpreter/OrbitControllerInterpreter.js +38 -0
- package/build/interpreter/OrbitControllerInterpreter.js.map +1 -0
- package/build/interpreter/OrthographicCameraInterpreter.d.ts +8 -0
- package/build/interpreter/OrthographicCameraInterpreter.js +9 -0
- package/build/interpreter/OrthographicCameraInterpreter.js.map +1 -0
- package/build/interpreter/ParticleInterpreter.d.ts +24 -0
- package/build/interpreter/ParticleInterpreter.js +180 -0
- package/build/interpreter/ParticleInterpreter.js.map +1 -0
- package/build/interpreter/PassInterpreter.d.ts +0 -0
- package/build/interpreter/PassInterpreter.js +36 -0
- package/build/interpreter/PassInterpreter.js.map +1 -0
- package/build/interpreter/PerspectiveCameraInterpreter.d.ts +13 -0
- package/build/interpreter/PerspectiveCameraInterpreter.js +26 -0
- package/build/interpreter/PerspectiveCameraInterpreter.js.map +1 -0
- package/build/interpreter/PointsInterpreter.d.ts +17 -0
- package/build/interpreter/PointsInterpreter.js +54 -0
- package/build/interpreter/PointsInterpreter.js.map +1 -0
- package/build/interpreter/SceneServiceInterpreter.d.ts +27 -0
- package/build/interpreter/SceneServiceInterpreter.js +95 -0
- package/build/interpreter/SceneServiceInterpreter.js.map +1 -0
- package/build/interpreter/ServiceSchedulerInterpreter.d.ts +9 -0
- package/build/interpreter/ServiceSchedulerInterpreter.js +19 -0
- package/build/interpreter/ServiceSchedulerInterpreter.js.map +1 -0
- package/build/interpreter/SpriteInterpreter.d.ts +14 -0
- package/build/interpreter/SpriteInterpreter.js +38 -0
- package/build/interpreter/SpriteInterpreter.js.map +1 -0
- package/build/interpreter/TextInterpreter.d.ts +16 -0
- package/build/interpreter/TextInterpreter.js +68 -0
- package/build/interpreter/TextInterpreter.js.map +1 -0
- package/build/interpreter/TransformControllerInterpreter.d.ts +12 -0
- package/build/interpreter/TransformControllerInterpreter.js +36 -0
- package/build/interpreter/TransformControllerInterpreter.js.map +1 -0
- package/build/interpreter/animation/AnimationActionInterpreter.d.ts +13 -0
- package/build/interpreter/animation/AnimationActionInterpreter.js +57 -0
- package/build/interpreter/animation/AnimationActionInterpreter.js.map +1 -0
- package/build/interpreter/geometry/BoxGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/BoxGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/BoxGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/BufferGeometryInterpreter.d.ts +13 -0
- package/build/interpreter/geometry/BufferGeometryInterpreter.js +43 -0
- package/build/interpreter/geometry/BufferGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/CircleGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/CircleGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/CircleGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/CylinderGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.d.ts +13 -0
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js +48 -0
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/PlaneGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/RingGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/RingGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/RingGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/SphereGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/SphereGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/SphereGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.d.ts +16 -0
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/TubeGeometryInterpreter.d.ts +13 -0
- package/build/interpreter/geometry/TubeGeometryInterpreter.js +36 -0
- package/build/interpreter/geometry/TubeGeometryInterpreter.js.map +1 -0
- package/build/interpreter/helper/AxesHelperInterpreter.d.ts +12 -0
- package/build/interpreter/helper/AxesHelperInterpreter.js +32 -0
- package/build/interpreter/helper/AxesHelperInterpreter.js.map +1 -0
- package/build/interpreter/index.d.ts +43 -0
- package/build/interpreter/index.js +46 -0
- package/build/interpreter/index.js.map +1 -0
- package/build/interpreter/light/AmbientLightInterpreter.d.ts +13 -0
- package/build/interpreter/light/AmbientLightInterpreter.js +24 -0
- package/build/interpreter/light/AmbientLightInterpreter.js.map +1 -0
- package/build/interpreter/light/DirectionalLightInterpreter.d.ts +16 -0
- package/build/interpreter/light/DirectionalLightInterpreter.js +75 -0
- package/build/interpreter/light/DirectionalLightInterpreter.js.map +1 -0
- package/build/interpreter/light/HemisphereLightInterpreter.d.ts +13 -0
- package/build/interpreter/light/HemisphereLightInterpreter.js +25 -0
- package/build/interpreter/light/HemisphereLightInterpreter.js.map +1 -0
- package/build/interpreter/light/PointLightInterpreter.d.ts +14 -0
- package/build/interpreter/light/PointLightInterpreter.js +37 -0
- package/build/interpreter/light/PointLightInterpreter.js.map +1 -0
- package/build/interpreter/light/RectAreaLightInterpreter.d.ts +13 -0
- package/build/interpreter/light/RectAreaLightInterpreter.js +27 -0
- package/build/interpreter/light/RectAreaLightInterpreter.js.map +1 -0
- package/build/interpreter/light/SpotLightInterpreter.d.ts +15 -0
- package/build/interpreter/light/SpotLightInterpreter.js +63 -0
- package/build/interpreter/light/SpotLightInterpreter.js.map +1 -0
- package/build/interpreter/material/MaterialInterpreter.d.ts +9 -0
- package/build/interpreter/material/MaterialInterpreter.js +28 -0
- package/build/interpreter/material/MaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/MeshBasicMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js +37 -0
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/MeshPhongMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js +56 -0
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/MeshStandardMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js +52 -0
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/PointsMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/PointsMaterialInterpreter.js +30 -0
- package/build/interpreter/material/PointsMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/ShaderMaterialInterpreter.d.ts +14 -0
- package/build/interpreter/material/ShaderMaterialInterpreter.js +46 -0
- package/build/interpreter/material/ShaderMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/ShadowMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/ShadowMaterialInterpreter.js +25 -0
- package/build/interpreter/material/ShadowMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/SpriteMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/SpriteMaterialInterpreter.js +30 -0
- package/build/interpreter/material/SpriteMaterialInterpreter.js.map +1 -0
- package/build/interpreter/texture/TextureInterpreter.d.ts +13 -0
- package/build/interpreter/texture/TextureInterpreter.js +54 -0
- package/build/interpreter/texture/TextureInterpreter.js.map +1 -0
- package/build/locale/Language.d.ts +3 -0
- package/build/locale/Language.js +6 -0
- package/build/locale/Language.js.map +1 -0
- package/build/locale/LanguageProvider.d.ts +6 -0
- package/build/locale/LanguageProvider.js +7 -0
- package/build/locale/LanguageProvider.js.map +1 -0
- package/build/locale/index.d.ts +2 -0
- package/build/locale/index.js +3 -0
- package/build/locale/index.js.map +1 -0
- package/build/preset/execute/GeoMap/drilldown.d.ts +16 -0
- package/build/preset/execute/GeoMap/drilldown.js +45 -0
- package/build/preset/execute/GeoMap/drilldown.js.map +1 -0
- package/build/preset/execute/GeoMap/index.d.ts +1 -0
- package/build/preset/execute/GeoMap/index.js +2 -0
- package/build/preset/execute/GeoMap/index.js.map +1 -0
- package/build/preset/execute/index.d.ts +1 -0
- package/build/preset/execute/index.js +2 -0
- package/build/preset/execute/index.js.map +1 -0
- package/build/preset/index.d.ts +3 -0
- package/build/preset/index.js +4 -0
- package/build/preset/index.js.map +1 -0
- package/build/preset/interaction/GeoMap/drilldown.d.ts +5 -0
- package/build/preset/interaction/GeoMap/drilldown.js +19 -0
- package/build/preset/interaction/GeoMap/drilldown.js.map +1 -0
- package/build/preset/interaction/GeoMap/index.d.ts +1 -0
- package/build/preset/interaction/GeoMap/index.js +2 -0
- package/build/preset/interaction/GeoMap/index.js.map +1 -0
- package/build/preset/interaction/index.d.ts +1 -0
- package/build/preset/interaction/index.js +2 -0
- package/build/preset/interaction/index.js.map +1 -0
- package/build/utils/dispose/index.d.ts +3 -0
- package/build/utils/dispose/index.js +22 -0
- package/build/utils/dispose/index.js.map +1 -0
- package/build/utils/geometry/index.d.ts +19 -0
- package/build/utils/geometry/index.js +61 -0
- package/build/utils/geometry/index.js.map +1 -0
- package/build/utils/index.d.ts +7 -0
- package/build/utils/index.js +8 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/material/index.d.ts +7 -0
- package/build/utils/material/index.js +46 -0
- package/build/utils/material/index.js.map +1 -0
- package/build/utils/pickup/index.d.ts +5 -0
- package/build/utils/pickup/index.js +14 -0
- package/build/utils/pickup/index.js.map +1 -0
- package/build/utils/random/index.d.ts +2 -0
- package/build/utils/random/index.js +5 -0
- package/build/utils/random/index.js.map +1 -0
- package/build/utils/text/index.d.ts +98 -0
- package/build/utils/text/index.js +379 -0
- package/build/utils/text/index.js.map +1 -0
- package/build/utils/texture/index.d.ts +4 -0
- package/build/utils/texture/index.js +17 -0
- package/build/utils/texture/index.js.map +1 -0
- package/package.json +27 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BufferGeometry, SphereGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { SphereGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
class SphereGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = SphereGeometryDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setAttribute(actor, descriptor) {
|
|
12
|
+
const source = new SphereGeometry(descriptor.radius, descriptor.widthSegments, descriptor.heightSegments, descriptor.phiStart, descriptor.phiLength, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
|
+
actor.object.copy(source);
|
|
14
|
+
source.dispose();
|
|
15
|
+
}
|
|
16
|
+
update(descriptor) {
|
|
17
|
+
super.update(descriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
this.setAttribute(actor, descriptor);
|
|
20
|
+
}
|
|
21
|
+
free(descriptor) {
|
|
22
|
+
const actor = this.getActor(descriptor);
|
|
23
|
+
actor.object.dispose();
|
|
24
|
+
super.free(descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
Interpreter.register(SphereGeometryInterpreter);
|
|
28
|
+
export { SphereGeometryInterpreter };
|
|
29
|
+
//# sourceMappingURL=SphereGeometryInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SphereGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/SphereGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAA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,CAAC,yBAAyB,CAAC,CAAA;AAE/C,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExtrudeGeometry, Vector3 } from "three";
|
|
2
|
+
import { SurfaceGeometryDescriptor } from "../../descriptor";
|
|
3
|
+
import { GeometryActor } from "../../actor";
|
|
4
|
+
import { ExtrudeGeometryInterpreter } from "./ExtrudeGeometryInterpreter";
|
|
5
|
+
declare class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
/**
|
|
8
|
+
* 经纬度转V3
|
|
9
|
+
* @param lng 经度
|
|
10
|
+
* @param lat 纬度
|
|
11
|
+
* @param radius 半径
|
|
12
|
+
*/
|
|
13
|
+
static lnglatToV3(lng: number, lat: number, radius: number): Vector3;
|
|
14
|
+
setAttribute(actor: GeometryActor<ExtrudeGeometry>, descriptor: SurfaceGeometryDescriptor): void;
|
|
15
|
+
}
|
|
16
|
+
export { SurfaceGeometryInterpreter };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Spherical, Vector3 } from "three";
|
|
2
|
+
import { SurfaceGeometryDescriptor } from "../../descriptor";
|
|
3
|
+
import { ExtrudeGeometryInterpreter } from "./ExtrudeGeometryInterpreter";
|
|
4
|
+
class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
5
|
+
static type = SurfaceGeometryDescriptor.type;
|
|
6
|
+
/**
|
|
7
|
+
* 经纬度转V3
|
|
8
|
+
* @param lng 经度
|
|
9
|
+
* @param lat 纬度
|
|
10
|
+
* @param radius 半径
|
|
11
|
+
*/
|
|
12
|
+
static lnglatToV3(lng, lat, radius) {
|
|
13
|
+
const theta = (90 + lng) * (Math.PI / 180);
|
|
14
|
+
const phi = (90 - lat) * (Math.PI / 180);
|
|
15
|
+
return new Vector3().setFromSpherical(new Spherical(radius, phi, theta));
|
|
16
|
+
}
|
|
17
|
+
setAttribute(actor, descriptor) {
|
|
18
|
+
super.setAttribute(actor, descriptor);
|
|
19
|
+
const position = actor.object.getAttribute('position');
|
|
20
|
+
for (let i = 0; i < position.count; i++) {
|
|
21
|
+
const v = SurfaceGeometryInterpreter.lnglatToV3(position.getX(i), position.getY(i), position.getZ(i) + descriptor.radius);
|
|
22
|
+
position.setXYZ(i, v.x, v.y, v.z);
|
|
23
|
+
}
|
|
24
|
+
actor.object.computeVertexNormals();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
ExtrudeGeometryInterpreter.register(SurfaceGeometryInterpreter);
|
|
28
|
+
export { SurfaceGeometryInterpreter };
|
|
29
|
+
//# sourceMappingURL=SurfaceGeometryInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurfaceGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/SurfaceGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,0BAA2B,SAAQ,0BAA0B;IAC/D,MAAM,CAAC,IAAI,GAAG,yBAAyB,CAAC,IAAI,CAAA;IAC5C;;;;;MAKE;IACF,MAAM,CAAC,UAAU,CAAC,GAAW,EAAE,GAAW,EAAE,MAAc;QACtD,MAAM,KAAK,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAA;QAE1C,MAAM,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAA;QAExC,OAAO,IAAI,OAAO,EAAE,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAA;IAC5E,CAAC;IAED,YAAY,CAAC,KAAqC,EAAE,UAAqC;QACrF,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;QACrC,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;QACtD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,GAAG,0BAA0B,CAAC,UAAU,CAC3C,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAChB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAChB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,MAAM,CACvC,CAAA;YACD,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;QACrC,CAAC;QACD,KAAK,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAA;IACvC,CAAC;;AAEL,0BAA0B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAE/D,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BufferGeometry, CatmullRomCurve3, TubeGeometry } from "three";
|
|
2
|
+
import { Interpreter, JsonAsset } from "@vyr/engine";
|
|
3
|
+
import { TubeGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class TubeGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: TubeGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
createPath(line: JsonAsset, descriptor: TubeGeometryDescriptor): CatmullRomCurve3;
|
|
9
|
+
setAttribute(actor: GeometryActor<TubeGeometry>, descriptor: TubeGeometryDescriptor): void;
|
|
10
|
+
update(descriptor: TubeGeometryDescriptor): void;
|
|
11
|
+
free(descriptor: TubeGeometryDescriptor): void;
|
|
12
|
+
}
|
|
13
|
+
export { TubeGeometryInterpreter };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BufferGeometry, CatmullRomCurve3, TubeGeometry, Vector3, } from "three";
|
|
2
|
+
import { DatasetDescriptor, Interpreter } from "@vyr/engine";
|
|
3
|
+
import { TubeGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
import { geometry } from "../../utils";
|
|
6
|
+
class TubeGeometryInterpreter extends Interpreter {
|
|
7
|
+
static type = TubeGeometryDescriptor.type;
|
|
8
|
+
createActor(descriptor) {
|
|
9
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
10
|
+
return actor;
|
|
11
|
+
}
|
|
12
|
+
createPath(line, descriptor) {
|
|
13
|
+
const points = geometry.getPointsOfLineData(line, descriptor.offset);
|
|
14
|
+
return new CatmullRomCurve3(points, false);
|
|
15
|
+
}
|
|
16
|
+
setAttribute(actor, descriptor) {
|
|
17
|
+
const data = DatasetDescriptor.getCollection(descriptor.track);
|
|
18
|
+
const path = data.length === 0 ? new CatmullRomCurve3([new Vector3(), new Vector3()]) : this.createPath(data, descriptor);
|
|
19
|
+
const source = new TubeGeometry(path, descriptor.tubularSegments, descriptor.radius, descriptor.radialSegments, descriptor.closed);
|
|
20
|
+
actor.object.copy(source);
|
|
21
|
+
source.dispose();
|
|
22
|
+
}
|
|
23
|
+
update(descriptor) {
|
|
24
|
+
super.update(descriptor);
|
|
25
|
+
const actor = this.getActor(descriptor);
|
|
26
|
+
this.setAttribute(actor, descriptor);
|
|
27
|
+
}
|
|
28
|
+
free(descriptor) {
|
|
29
|
+
const actor = this.getActor(descriptor);
|
|
30
|
+
actor.object.dispose();
|
|
31
|
+
super.free(descriptor);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
Interpreter.register(TubeGeometryInterpreter);
|
|
35
|
+
export { TubeGeometryInterpreter };
|
|
36
|
+
//# sourceMappingURL=TubeGeometryInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TubeGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/TubeGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAa,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,uBAAwB,SAAQ,WAAW;IAC7C,MAAM,CAAC,IAAI,GAAG,sBAAsB,CAAC,IAAI,CAAA;IAE/B,WAAW,CAAC,UAAkC;QACpD,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,UAAU,CAAC,IAAe,EAAE,UAAkC;QAC1D,MAAM,MAAM,GAAG,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;QACpE,OAAO,IAAI,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IAC9C,CAAC;IAED,YAAY,CAAC,KAAkC,EAAE,UAAkC;QAC/E,MAAM,IAAI,GAAG,iBAAiB,CAAC,aAAa,CAAW,UAAU,CAAC,KAAK,CAAC,CAAA;QACxE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,IAAI,OAAO,EAAE,EAAE,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;QACzH,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,eAAe,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;QAClI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAkC;QACrC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA8B,UAAU,CAAC,CAAA;QACpE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAkC;QACnC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA8B,UAAU,CAAC,CAAA;QACpE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,WAAW,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7C,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AxesHelper } from 'three';
|
|
2
|
+
import { AxesHelperDescriptor } from "../../descriptor";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { NodeActor } from '../../actor';
|
|
5
|
+
declare class AxesHelperInterpreter extends NodeInterpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: AxesHelperDescriptor): NodeActor<AxesHelper>;
|
|
8
|
+
setAxesHelper(actor: NodeActor<AxesHelper>, descriptor: AxesHelperDescriptor): void;
|
|
9
|
+
update(descriptor: AxesHelperDescriptor): void;
|
|
10
|
+
free(descriptor: AxesHelperDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { AxesHelperInterpreter };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AxesHelper } from 'three';
|
|
2
|
+
import { AxesHelperDescriptor } from "../../descriptor";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { NodeActor } from '../../actor';
|
|
5
|
+
class AxesHelperInterpreter extends NodeInterpreter {
|
|
6
|
+
static type = AxesHelperDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new NodeActor(new AxesHelper());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setAxesHelper(actor, descriptor) {
|
|
12
|
+
const size = 1000000;
|
|
13
|
+
actor.object.scale.set(size, size, size);
|
|
14
|
+
if (Array.isArray(actor.object.material) === false) {
|
|
15
|
+
actor.object.material.depthTest = false;
|
|
16
|
+
actor.object.material.depthWrite = false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
update(descriptor) {
|
|
20
|
+
super.update(descriptor);
|
|
21
|
+
const actor = this.getActor(descriptor);
|
|
22
|
+
this.setAxesHelper(actor, descriptor);
|
|
23
|
+
}
|
|
24
|
+
free(descriptor) {
|
|
25
|
+
const actor = this.getActor(descriptor);
|
|
26
|
+
actor.object.dispose();
|
|
27
|
+
super.free(descriptor);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
NodeInterpreter.register(AxesHelperInterpreter);
|
|
31
|
+
export { AxesHelperInterpreter };
|
|
32
|
+
//# sourceMappingURL=AxesHelperInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxesHelperInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/helper/AxesHelperInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;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Ae,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAA;AAE/C,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from "./geometry/BoxGeometryInterpreter";
|
|
2
|
+
export * from "./geometry/CircleGeometryInterpreter";
|
|
3
|
+
export * from "./geometry/CylinderGeometryInterpreter";
|
|
4
|
+
export * from "./geometry/PlaneGeometryInterpreter";
|
|
5
|
+
export * from "./geometry/RingGeometryInterpreter";
|
|
6
|
+
export * from "./geometry/SphereGeometryInterpreter";
|
|
7
|
+
export * from "./geometry/ExtrudeGeometryInterpreter";
|
|
8
|
+
export * from "./geometry/SurfaceGeometryInterpreter";
|
|
9
|
+
export * from "./geometry/TubeGeometryInterpreter";
|
|
10
|
+
export * from "./geometry/BufferGeometryInterpreter";
|
|
11
|
+
export * from "./material/MaterialInterpreter";
|
|
12
|
+
export * from "./material/MeshBasicMaterialInterpreter";
|
|
13
|
+
export * from "./material/MeshPhongMaterialInterpreter";
|
|
14
|
+
export * from "./material/MeshStandardMaterialInterpreter";
|
|
15
|
+
export * from "./material/PointsMaterialInterpreter";
|
|
16
|
+
export * from "./material/SpriteMaterialInterpreter";
|
|
17
|
+
export * from "./material/ShadowMaterialInterpreter";
|
|
18
|
+
export * from "./material/ShaderMaterialInterpreter";
|
|
19
|
+
export * from './animation/AnimationActionInterpreter';
|
|
20
|
+
export * from "./light/AmbientLightInterpreter";
|
|
21
|
+
export * from "./light/DirectionalLightInterpreter";
|
|
22
|
+
export * from "./light/HemisphereLightInterpreter";
|
|
23
|
+
export * from "./light/PointLightInterpreter";
|
|
24
|
+
export * from "./light/RectAreaLightInterpreter";
|
|
25
|
+
export * from "./light/SpotLightInterpreter";
|
|
26
|
+
export * from "./texture/TextureInterpreter";
|
|
27
|
+
export * from './helper/AxesHelperInterpreter';
|
|
28
|
+
export * from "./ServiceSchedulerInterpreter";
|
|
29
|
+
export * from "./SceneServiceInterpreter";
|
|
30
|
+
export * from "./NodeInterpreter";
|
|
31
|
+
export * from "./MeshInterpreter";
|
|
32
|
+
export * from './InstancedMeshInterpreter';
|
|
33
|
+
export * from './TextInterpreter';
|
|
34
|
+
export * from "./PointsInterpreter";
|
|
35
|
+
export * from './ParticleInterpreter';
|
|
36
|
+
export * from "./SpriteInterpreter";
|
|
37
|
+
export * from './ModelInterpreter';
|
|
38
|
+
export * from './HTMLConvertInterpreter';
|
|
39
|
+
export * from './GeoMapInterpreter';
|
|
40
|
+
export * from "./PerspectiveCameraInterpreter";
|
|
41
|
+
export * from "./OrthographicCameraInterpreter";
|
|
42
|
+
export * from "./OrbitControllerInterpreter";
|
|
43
|
+
export * from "./TransformControllerInterpreter";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * from "./geometry/BoxGeometryInterpreter";
|
|
2
|
+
export * from "./geometry/CircleGeometryInterpreter";
|
|
3
|
+
export * from "./geometry/CylinderGeometryInterpreter";
|
|
4
|
+
export * from "./geometry/PlaneGeometryInterpreter";
|
|
5
|
+
export * from "./geometry/RingGeometryInterpreter";
|
|
6
|
+
export * from "./geometry/SphereGeometryInterpreter";
|
|
7
|
+
export * from "./geometry/ExtrudeGeometryInterpreter";
|
|
8
|
+
export * from "./geometry/SurfaceGeometryInterpreter";
|
|
9
|
+
export * from "./geometry/TubeGeometryInterpreter";
|
|
10
|
+
export * from "./geometry/BufferGeometryInterpreter";
|
|
11
|
+
export * from "./material/MaterialInterpreter";
|
|
12
|
+
export * from "./material/MeshBasicMaterialInterpreter";
|
|
13
|
+
export * from "./material/MeshPhongMaterialInterpreter";
|
|
14
|
+
export * from "./material/MeshStandardMaterialInterpreter";
|
|
15
|
+
export * from "./material/PointsMaterialInterpreter";
|
|
16
|
+
export * from "./material/SpriteMaterialInterpreter";
|
|
17
|
+
export * from "./material/ShadowMaterialInterpreter";
|
|
18
|
+
export * from "./material/ShaderMaterialInterpreter";
|
|
19
|
+
export * from './animation/AnimationActionInterpreter';
|
|
20
|
+
export * from "./light/AmbientLightInterpreter";
|
|
21
|
+
export * from "./light/DirectionalLightInterpreter";
|
|
22
|
+
export * from "./light/HemisphereLightInterpreter";
|
|
23
|
+
export * from "./light/PointLightInterpreter";
|
|
24
|
+
export * from "./light/RectAreaLightInterpreter";
|
|
25
|
+
export * from "./light/SpotLightInterpreter";
|
|
26
|
+
export * from "./texture/TextureInterpreter";
|
|
27
|
+
export * from './helper/AxesHelperInterpreter';
|
|
28
|
+
export * from "./ServiceSchedulerInterpreter";
|
|
29
|
+
export * from "./SceneServiceInterpreter";
|
|
30
|
+
export * from "./NodeInterpreter";
|
|
31
|
+
export * from "./MeshInterpreter";
|
|
32
|
+
export * from './InstancedMeshInterpreter';
|
|
33
|
+
export * from './TextInterpreter';
|
|
34
|
+
export * from "./PointsInterpreter";
|
|
35
|
+
export * from './ParticleInterpreter';
|
|
36
|
+
export * from "./SpriteInterpreter";
|
|
37
|
+
export * from './ModelInterpreter';
|
|
38
|
+
export * from './HTMLConvertInterpreter';
|
|
39
|
+
export * from './GeoMapInterpreter';
|
|
40
|
+
export * from "./PerspectiveCameraInterpreter";
|
|
41
|
+
export * from "./OrthographicCameraInterpreter";
|
|
42
|
+
export * from "./OrbitControllerInterpreter";
|
|
43
|
+
export * from "./TransformControllerInterpreter";
|
|
44
|
+
// export * from './ComposerServiceInterpreter'
|
|
45
|
+
// export * from './PassInterpreter'
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interpreter/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAA;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,+CAA+C;AAC/C,oCAAoC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AmbientLight } from "three";
|
|
2
|
+
import { PickupObject } from "@vyr/engine";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { AmbientLightDescriptor } from "../../descriptor";
|
|
5
|
+
import { NodeActor } from "../../actor";
|
|
6
|
+
declare class AmbientLightInterpreter extends NodeInterpreter {
|
|
7
|
+
static type: string;
|
|
8
|
+
protected createActor(descriptor: AmbientLightDescriptor): NodeActor<AmbientLight>;
|
|
9
|
+
setLight(actor: NodeActor<AmbientLight>, descriptor: AmbientLightDescriptor): void;
|
|
10
|
+
update(descriptor: AmbientLightDescriptor): void;
|
|
11
|
+
pickup(descriptor: AmbientLightDescriptor, result: PickupObject[]): void;
|
|
12
|
+
}
|
|
13
|
+
export { AmbientLightInterpreter };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AmbientLight } from "three";
|
|
2
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
3
|
+
import { AmbientLightDescriptor } from "../../descriptor";
|
|
4
|
+
import { NodeActor } from "../../actor";
|
|
5
|
+
class AmbientLightInterpreter extends NodeInterpreter {
|
|
6
|
+
static type = AmbientLightDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new NodeActor(new AmbientLight());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setLight(actor, descriptor) {
|
|
12
|
+
actor.object.color.set(descriptor.color);
|
|
13
|
+
actor.object.intensity = descriptor.intensity;
|
|
14
|
+
}
|
|
15
|
+
update(descriptor) {
|
|
16
|
+
super.update(descriptor);
|
|
17
|
+
const actor = this.getActor(descriptor);
|
|
18
|
+
this.setLight(actor, descriptor);
|
|
19
|
+
}
|
|
20
|
+
pickup(descriptor, result) { }
|
|
21
|
+
}
|
|
22
|
+
NodeInterpreter.register(AmbientLightInterpreter);
|
|
23
|
+
export { AmbientLightInterpreter };
|
|
24
|
+
//# sourceMappingURL=AmbientLightInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbientLightInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/light/AmbientLightInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,uBAAwB,SAAQ,eAAe;IACjD,MAAM,CAAC,IAAI,GAAG,sBAAsB,CAAC,IAAI,CAAA;IAE/B,WAAW,CAAC,UAAkC;QACpD,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,YAAY,EAAE,CAAC,CAAA;QAC/C,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,QAAQ,CAAC,KAA8B,EAAE,UAAkC;QACvE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QACxC,KAAK,CAAC,MAAM,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAA;IACjD,CAAC;IAED,MAAM,CAAC,UAAkC;QACrC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA0B,UAAU,CAAC,CAAA;QAChE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,UAAkC,EAAE,MAAsB,IAAI,CAAC;;AAE1E,eAAe,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAEjD,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DirectionalLight, Object3D } from "three";
|
|
2
|
+
import { PickupObject } from "@vyr/engine";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { DirectionalLightDescriptor } from "../../descriptor";
|
|
5
|
+
import { NodeActor } from "../../actor";
|
|
6
|
+
declare class DirectionalLightInterpreter extends NodeInterpreter {
|
|
7
|
+
static type: string;
|
|
8
|
+
target: Object3D | null;
|
|
9
|
+
protected createActor(descriptor: DirectionalLightDescriptor): NodeActor<DirectionalLight>;
|
|
10
|
+
setLight(actor: NodeActor<DirectionalLight>, descriptor: DirectionalLightDescriptor): void;
|
|
11
|
+
setTarget(actor: NodeActor<DirectionalLight>, descriptor: DirectionalLightDescriptor): void;
|
|
12
|
+
update(descriptor: DirectionalLightDescriptor): void;
|
|
13
|
+
free(descriptor: DirectionalLightDescriptor): void;
|
|
14
|
+
pickup(descriptor: DirectionalLightDescriptor, result: PickupObject[]): void;
|
|
15
|
+
}
|
|
16
|
+
export { DirectionalLightInterpreter };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { DirectionalLight, Object3D } from "three";
|
|
2
|
+
import { Descriptor } from "@vyr/engine";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { DirectionalLightDescriptor } from "../../descriptor";
|
|
5
|
+
import { NodeActor } from "../../actor";
|
|
6
|
+
class DirectionalLightInterpreter extends NodeInterpreter {
|
|
7
|
+
static type = DirectionalLightDescriptor.type;
|
|
8
|
+
target = null;
|
|
9
|
+
createActor(descriptor) {
|
|
10
|
+
const actor = new NodeActor(new DirectionalLight());
|
|
11
|
+
return actor;
|
|
12
|
+
}
|
|
13
|
+
setLight(actor, descriptor) {
|
|
14
|
+
actor.object.color.set(descriptor.color);
|
|
15
|
+
actor.object.intensity = descriptor.intensity;
|
|
16
|
+
actor.object.shadow.bias = descriptor.bias;
|
|
17
|
+
actor.object.shadow.normalBias = descriptor.normalBias;
|
|
18
|
+
const mapSize = descriptor.mapSize;
|
|
19
|
+
actor.object.shadow.mapSize.set(mapSize.x, mapSize.y);
|
|
20
|
+
if (actor.object.shadow.mapPass) {
|
|
21
|
+
actor.object.shadow.mapPass.setSize(mapSize.x, mapSize.y);
|
|
22
|
+
actor.object.shadow.mapPass.texture.needsUpdate = true;
|
|
23
|
+
}
|
|
24
|
+
if (actor.object.shadow.map) {
|
|
25
|
+
actor.object.shadow.map.setSize(mapSize.x, mapSize.y);
|
|
26
|
+
actor.object.shadow.map.texture.needsUpdate = true;
|
|
27
|
+
}
|
|
28
|
+
const camera = descriptor.camera;
|
|
29
|
+
actor.object.shadow.camera.near = camera.near;
|
|
30
|
+
actor.object.shadow.camera.far = camera.far;
|
|
31
|
+
actor.object.shadow.camera.left = camera.left;
|
|
32
|
+
actor.object.shadow.camera.right = camera.right;
|
|
33
|
+
actor.object.shadow.camera.top = camera.top;
|
|
34
|
+
actor.object.shadow.camera.bottom = camera.bottom;
|
|
35
|
+
actor.object.shadow.camera.updateProjectionMatrix();
|
|
36
|
+
}
|
|
37
|
+
setTarget(actor, descriptor) {
|
|
38
|
+
let targetValue = descriptor.target;
|
|
39
|
+
if (targetValue === '') {
|
|
40
|
+
const target = new Object3D();
|
|
41
|
+
target.position.copy(actor.object.target.position);
|
|
42
|
+
actor.object.target = target;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const target = Descriptor.get(targetValue);
|
|
46
|
+
if (target !== null) {
|
|
47
|
+
const targetActor = this.graphics.getActor(target);
|
|
48
|
+
if (targetActor instanceof NodeActor) {
|
|
49
|
+
actor.object.target = targetActor.object;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
actor.object.target = new Object3D();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
actor.object.target = new Object3D();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
update(descriptor) {
|
|
61
|
+
super.update(descriptor);
|
|
62
|
+
const actor = this.getActor(descriptor);
|
|
63
|
+
this.setLight(actor, descriptor);
|
|
64
|
+
this.setTarget(actor, descriptor);
|
|
65
|
+
}
|
|
66
|
+
free(descriptor) {
|
|
67
|
+
const actor = this.getActor(descriptor);
|
|
68
|
+
actor.object.dispose();
|
|
69
|
+
super.free(descriptor);
|
|
70
|
+
}
|
|
71
|
+
pickup(descriptor, result) { }
|
|
72
|
+
}
|
|
73
|
+
NodeInterpreter.register(DirectionalLightInterpreter);
|
|
74
|
+
export { DirectionalLightInterpreter };
|
|
75
|
+
//# sourceMappingURL=DirectionalLightInterpreter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,CAAA;QACpE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;IAED,MAAM,CAAC,UAAsC,EAAE,MAAsB,IAAI,CAAC;;AAE9E,eAAe,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AAErD,OAAO,EAAE,2BAA2B,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HemisphereLight } from "three";
|
|
2
|
+
import { PickupObject } from "@vyr/engine";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { HemisphereLightDescriptor } from "../../descriptor";
|
|
5
|
+
import { NodeActor } from "../../actor";
|
|
6
|
+
declare class HemisphereLightInterpreter extends NodeInterpreter {
|
|
7
|
+
static type: string;
|
|
8
|
+
protected createActor(descriptor: HemisphereLightDescriptor): NodeActor<HemisphereLight>;
|
|
9
|
+
setLight(actor: NodeActor<HemisphereLight>, descriptor: HemisphereLightDescriptor): void;
|
|
10
|
+
update(descriptor: HemisphereLightDescriptor): void;
|
|
11
|
+
pickup(descriptor: HemisphereLightDescriptor, result: PickupObject[]): void;
|
|
12
|
+
}
|
|
13
|
+
export { HemisphereLightInterpreter };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HemisphereLight } from "three";
|
|
2
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
3
|
+
import { HemisphereLightDescriptor } from "../../descriptor";
|
|
4
|
+
import { NodeActor } from "../../actor";
|
|
5
|
+
class HemisphereLightInterpreter extends NodeInterpreter {
|
|
6
|
+
static type = HemisphereLightDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new NodeActor(new HemisphereLight());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setLight(actor, descriptor) {
|
|
12
|
+
actor.object.color.set(descriptor.color);
|
|
13
|
+
actor.object.intensity = descriptor.intensity;
|
|
14
|
+
actor.object.groundColor.set(descriptor.groundColor);
|
|
15
|
+
}
|
|
16
|
+
update(descriptor) {
|
|
17
|
+
super.update(descriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
this.setLight(actor, descriptor);
|
|
20
|
+
}
|
|
21
|
+
pickup(descriptor, result) { }
|
|
22
|
+
}
|
|
23
|
+
NodeInterpreter.register(HemisphereLightInterpreter);
|
|
24
|
+
export { HemisphereLightInterpreter };
|
|
25
|
+
//# sourceMappingURL=HemisphereLightInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HemisphereLightInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/light/HemisphereLightInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,0BAA2B,SAAQ,eAAe;IACpD,MAAM,CAAC,IAAI,GAAG,yBAAyB,CAAC,IAAI,CAAA;IAElC,WAAW,CAAC,UAAqC;QACvD,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,eAAe,EAAE,CAAC,CAAA;QAClD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,QAAQ,CAAC,KAAiC,EAAE,UAAqC;QAC7E,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QACxC,KAAK,CAAC,MAAM,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAA;QAC7C,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAqC;QACxC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA6B,UAAU,CAAC,CAAA;QACnE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,UAAqC,EAAE,MAAsB,IAAI,CAAC;;AAE7E,eAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAGpD,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PointLight } from "three";
|
|
2
|
+
import { PickupObject } from "@vyr/engine";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { PointLightDescriptor } from "../../descriptor";
|
|
5
|
+
import { NodeActor } from "../../actor";
|
|
6
|
+
declare class PointLightInterpreter extends NodeInterpreter {
|
|
7
|
+
static type: string;
|
|
8
|
+
protected createActor(descriptor: PointLightDescriptor): NodeActor<PointLight>;
|
|
9
|
+
setLight(actor: NodeActor<PointLight>, descriptor: PointLightDescriptor): void;
|
|
10
|
+
update(descriptor: PointLightDescriptor): void;
|
|
11
|
+
free(descriptor: PointLightDescriptor): void;
|
|
12
|
+
pickup(descriptor: PointLightDescriptor, result: PickupObject[]): void;
|
|
13
|
+
}
|
|
14
|
+
export { PointLightInterpreter };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PointLight } from "three";
|
|
2
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
3
|
+
import { PointLightDescriptor } from "../../descriptor";
|
|
4
|
+
import { NodeActor } from "../../actor";
|
|
5
|
+
class PointLightInterpreter extends NodeInterpreter {
|
|
6
|
+
static type = PointLightDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new NodeActor(new PointLight());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setLight(actor, descriptor) {
|
|
12
|
+
actor.object.color.set(descriptor.color);
|
|
13
|
+
actor.object.intensity = descriptor.intensity;
|
|
14
|
+
actor.object.decay = descriptor.decay;
|
|
15
|
+
actor.object.distance = descriptor.distance;
|
|
16
|
+
actor.object.power = descriptor.power;
|
|
17
|
+
const mapSize = descriptor.mapSize;
|
|
18
|
+
const camera = descriptor.camera;
|
|
19
|
+
actor.object.shadow.mapSize.set(mapSize.x, mapSize.y);
|
|
20
|
+
actor.object.shadow.camera.near = camera.near;
|
|
21
|
+
actor.object.shadow.camera.far = camera.far;
|
|
22
|
+
}
|
|
23
|
+
update(descriptor) {
|
|
24
|
+
super.update(descriptor);
|
|
25
|
+
const actor = this.getActor(descriptor);
|
|
26
|
+
this.setLight(actor, descriptor);
|
|
27
|
+
}
|
|
28
|
+
free(descriptor) {
|
|
29
|
+
const actor = this.getActor(descriptor);
|
|
30
|
+
actor.object.dispose();
|
|
31
|
+
super.free(descriptor);
|
|
32
|
+
}
|
|
33
|
+
pickup(descriptor, result) { }
|
|
34
|
+
}
|
|
35
|
+
NodeInterpreter.register(PointLightInterpreter);
|
|
36
|
+
export { PointLightInterpreter };
|
|
37
|
+
//# sourceMappingURL=PointLightInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PointLightInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/light/PointLightInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,qBAAsB,SAAQ,eAAe;IAC/C,MAAM,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAA;IAE7B,WAAW,CAAC,UAAgC;QAClD,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,UAAU,EAAE,CAAC,CAAA;QAC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CAAC,CAAA;IAC1B,CAAC;IAED,MAAM,CAAC,UAAgC,EAAE,MAAsB,IAAI,CAAC;;AAExE,eAAe,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAA;AAG/C,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RectAreaLight } from "three";
|
|
2
|
+
import { PickupObject } from "@vyr/engine";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { RectAreaLightDescriptor } from "../../descriptor";
|
|
5
|
+
import { NodeActor } from "../../actor";
|
|
6
|
+
declare class RectAreaLightInterpreter extends NodeInterpreter {
|
|
7
|
+
static type: string;
|
|
8
|
+
protected createActor(descriptor: RectAreaLightDescriptor): NodeActor<RectAreaLight>;
|
|
9
|
+
setLight(actor: NodeActor<RectAreaLight>, descriptor: RectAreaLightDescriptor): void;
|
|
10
|
+
update(descriptor: RectAreaLightDescriptor): void;
|
|
11
|
+
pickup(descriptor: RectAreaLightDescriptor, result: PickupObject[]): void;
|
|
12
|
+
}
|
|
13
|
+
export { RectAreaLightInterpreter };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RectAreaLight } from "three";
|
|
2
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
3
|
+
import { RectAreaLightDescriptor } from "../../descriptor";
|
|
4
|
+
import { NodeActor } from "../../actor";
|
|
5
|
+
class RectAreaLightInterpreter extends NodeInterpreter {
|
|
6
|
+
static type = RectAreaLightDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new NodeActor(new RectAreaLight());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setLight(actor, descriptor) {
|
|
12
|
+
actor.object.color.set(descriptor.color);
|
|
13
|
+
actor.object.intensity = descriptor.intensity;
|
|
14
|
+
actor.object.width = descriptor.width;
|
|
15
|
+
actor.object.height = descriptor.height;
|
|
16
|
+
actor.object.power = descriptor.power;
|
|
17
|
+
}
|
|
18
|
+
update(descriptor) {
|
|
19
|
+
super.update(descriptor);
|
|
20
|
+
const actor = this.getActor(descriptor);
|
|
21
|
+
this.setLight(actor, descriptor);
|
|
22
|
+
}
|
|
23
|
+
pickup(descriptor, result) { }
|
|
24
|
+
}
|
|
25
|
+
NodeInterpreter.register(RectAreaLightInterpreter);
|
|
26
|
+
export { RectAreaLightInterpreter };
|
|
27
|
+
//# sourceMappingURL=RectAreaLightInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RectAreaLightInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/light/RectAreaLightInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,wBAAyB,SAAQ,eAAe;IAClD,MAAM,CAAC,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAA;IAEhC,WAAW,CAAC,UAAmC;QACrD,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,aAAa,EAAE,CAAC,CAAA;QAChD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,QAAQ,CAAC,KAA+B,EAAE,UAAmC;QACzE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QACxC,KAAK,CAAC,MAAM,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAA;QAC7C,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAA;QACrC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAA;QACvC,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAA;IACzC,CAAC;IAED,MAAM,CAAC,UAAmC;QACtC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA2B,UAAU,CAAC,CAAA;QACjE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,UAAmC,EAAE,MAAsB,IAAI,CAAC;;AAE3E,eAAe,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAA;AAGlD,OAAO,EAAE,wBAAwB,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpotLight } from "three";
|
|
2
|
+
import { PickupObject } from "@vyr/engine";
|
|
3
|
+
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
+
import { SpotLightDescriptor } from "../../descriptor";
|
|
5
|
+
import { NodeActor } from "../../actor";
|
|
6
|
+
declare class SpotLightInterpreter extends NodeInterpreter {
|
|
7
|
+
static type: string;
|
|
8
|
+
protected createActor(descriptor: SpotLightDescriptor): NodeActor<SpotLight>;
|
|
9
|
+
setLight(actor: NodeActor<SpotLight>, descriptor: SpotLightDescriptor): void;
|
|
10
|
+
setTarget(actor: NodeActor<SpotLight>, descriptor: SpotLightDescriptor): void;
|
|
11
|
+
update(descriptor: SpotLightDescriptor): void;
|
|
12
|
+
free(descriptor: SpotLightDescriptor): void;
|
|
13
|
+
pickup(descriptor: SpotLightDescriptor, result: PickupObject[]): void;
|
|
14
|
+
}
|
|
15
|
+
export { SpotLightInterpreter };
|