@vyr/three 0.0.33 → 0.0.36
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 +7 -8
- package/build/actor/ComposerServiceActor.js +4 -5
- package/build/actor/ComposerServiceActor.js.map +1 -1
- package/build/actor/GeometryActor.d.ts +1 -2
- package/build/actor/GeometryActor.js +1 -2
- package/build/actor/GeometryActor.js.map +1 -1
- package/build/actor/HTMLConvertActor.d.ts +1 -2
- package/build/actor/HTMLConvertActor.js +7 -8
- package/build/actor/HTMLConvertActor.js.map +1 -1
- package/build/actor/MaterialActor.d.ts +1 -2
- package/build/actor/MaterialActor.js +1 -2
- package/build/actor/MaterialActor.js.map +1 -1
- package/build/actor/NodeActor.d.ts +1 -2
- package/build/actor/NodeActor.js +1 -2
- package/build/actor/NodeActor.js.map +1 -1
- package/build/actor/OrbitControllerActor.d.ts +5 -6
- package/build/actor/OrbitControllerActor.js +14 -18
- package/build/actor/OrbitControllerActor.js.map +1 -1
- package/build/actor/PassActor.d.ts +4 -5
- package/build/actor/PassActor.js +1 -2
- package/build/actor/PassActor.js.map +1 -1
- package/build/actor/{SceneServiceActor.d.ts → Scene3DServiceActor.d.ts} +8 -7
- package/build/actor/{SceneServiceActor.js → Scene3DServiceActor.js} +43 -36
- package/build/actor/Scene3DServiceActor.js.map +1 -0
- package/build/actor/TextureActor.d.ts +1 -2
- package/build/actor/TextureActor.js +1 -2
- package/build/actor/TextureActor.js.map +1 -1
- package/build/actor/TransformControllerActor.d.ts +3 -4
- package/build/actor/TransformControllerActor.js +1 -2
- package/build/actor/TransformControllerActor.js.map +1 -1
- package/build/actor/index.d.ts +1 -1
- package/build/actor/index.js +1 -1
- package/build/actor/index.js.map +1 -1
- package/build/asset/index.js +39 -56
- package/build/asset/index.js.map +1 -1
- package/build/controls/CameraControls.d.ts +2 -2
- package/build/controls/CameraControls.js +1 -2
- package/build/controls/CameraControls.js.map +1 -1
- package/build/controls/TransformControls.d.ts +7 -8
- package/build/controls/TransformControls.js +12 -15
- package/build/controls/TransformControls.js.map +1 -1
- package/build/descriptor/ComposerService.d.ts +60 -0
- package/build/descriptor/ComposerService.js +68 -0
- package/build/descriptor/ComposerService.js.map +1 -0
- package/build/descriptor/GeoMap.d.ts +49 -0
- package/build/descriptor/GeoMap.js +59 -0
- package/build/descriptor/GeoMap.js.map +1 -0
- package/build/descriptor/HTMLConvert.d.ts +13 -0
- package/build/descriptor/HTMLConvert.js +17 -0
- package/build/descriptor/HTMLConvert.js.map +1 -0
- package/build/descriptor/InstancedMesh.d.ts +30 -0
- package/build/descriptor/InstancedMesh.js +24 -0
- package/build/descriptor/InstancedMesh.js.map +1 -0
- package/build/descriptor/Mesh.d.ts +25 -0
- package/build/descriptor/Mesh.js +31 -0
- package/build/descriptor/Mesh.js.map +1 -0
- package/build/descriptor/Model.d.ts +19 -0
- package/build/descriptor/Model.js +24 -0
- package/build/descriptor/Model.js.map +1 -0
- package/build/descriptor/OrbitController.d.ts +156 -0
- package/build/descriptor/OrbitController.js +169 -0
- package/build/descriptor/OrbitController.js.map +1 -0
- package/build/descriptor/OrthographicCamera.d.ts +14 -0
- package/build/descriptor/OrthographicCamera.js +18 -0
- package/build/descriptor/OrthographicCamera.js.map +1 -0
- package/build/descriptor/Particle.d.ts +144 -0
- package/build/descriptor/Particle.js +175 -0
- package/build/descriptor/Particle.js.map +1 -0
- package/build/descriptor/Pass.d.ts +41 -0
- package/build/descriptor/Pass.js +43 -0
- package/build/descriptor/Pass.js.map +1 -0
- package/build/descriptor/PerspectiveCamera.d.ts +20 -0
- package/build/descriptor/PerspectiveCamera.js +25 -0
- package/build/descriptor/PerspectiveCamera.js.map +1 -0
- package/build/descriptor/Points.d.ts +25 -0
- package/build/descriptor/Points.js +31 -0
- package/build/descriptor/Points.js.map +1 -0
- package/build/descriptor/Scene3DService.d.ts +62 -0
- package/build/descriptor/Scene3DService.js +74 -0
- package/build/descriptor/Scene3DService.js.map +1 -0
- package/build/descriptor/Sprite.d.ts +20 -0
- package/build/descriptor/Sprite.js +26 -0
- package/build/descriptor/Sprite.js.map +1 -0
- package/build/descriptor/Text3D.d.ts +34 -0
- package/build/descriptor/Text3D.js +49 -0
- package/build/descriptor/Text3D.js.map +1 -0
- package/build/descriptor/TransformController.d.ts +22 -0
- package/build/descriptor/TransformController.js +31 -0
- package/build/descriptor/TransformController.js.map +1 -0
- package/build/descriptor/animation/AnimationAction.d.ts +63 -0
- package/build/descriptor/animation/AnimationAction.js +81 -0
- package/build/descriptor/animation/AnimationAction.js.map +1 -0
- package/build/descriptor/geometry/BoxGeometry.d.ts +27 -0
- package/build/descriptor/geometry/BoxGeometry.js +36 -0
- package/build/descriptor/geometry/BoxGeometry.js.map +1 -0
- package/build/descriptor/geometry/BufferGeometry.d.ts +17 -0
- package/build/descriptor/geometry/BufferGeometry.js +21 -0
- package/build/descriptor/geometry/BufferGeometry.js.map +1 -0
- package/build/descriptor/geometry/CircleGeometry.d.ts +23 -0
- package/build/descriptor/geometry/CircleGeometry.js +30 -0
- package/build/descriptor/geometry/CircleGeometry.js.map +1 -0
- package/build/descriptor/geometry/CylinderGeometry.d.ts +31 -0
- package/build/descriptor/geometry/CylinderGeometry.js +42 -0
- package/build/descriptor/geometry/CylinderGeometry.js.map +1 -0
- package/build/descriptor/geometry/ExtrudeGeometry.d.ts +37 -0
- package/build/descriptor/geometry/ExtrudeGeometry.js +51 -0
- package/build/descriptor/geometry/ExtrudeGeometry.js.map +1 -0
- package/build/descriptor/geometry/Geometry.d.ts +11 -0
- package/build/descriptor/geometry/Geometry.js +2 -0
- package/build/descriptor/geometry/Geometry.js.map +1 -0
- package/build/descriptor/geometry/PlaneGeometry.d.ts +23 -0
- package/build/descriptor/geometry/PlaneGeometry.js +30 -0
- package/build/descriptor/geometry/PlaneGeometry.js.map +1 -0
- package/build/descriptor/geometry/RingGeometry.d.ts +27 -0
- package/build/descriptor/geometry/RingGeometry.js +36 -0
- package/build/descriptor/geometry/RingGeometry.js.map +1 -0
- package/build/descriptor/geometry/SphereGeometry.d.ts +29 -0
- package/build/descriptor/geometry/SphereGeometry.js +39 -0
- package/build/descriptor/geometry/SphereGeometry.js.map +1 -0
- package/build/descriptor/geometry/SurfaceGeometry.d.ts +15 -0
- package/build/descriptor/geometry/SurfaceGeometry.js +20 -0
- package/build/descriptor/geometry/SurfaceGeometry.js.map +1 -0
- package/build/descriptor/geometry/TubeGeometry.d.ts +27 -0
- package/build/descriptor/geometry/TubeGeometry.js +36 -0
- package/build/descriptor/geometry/TubeGeometry.js.map +1 -0
- package/build/descriptor/helper/AxesHelper.d.ts +11 -0
- package/build/descriptor/helper/AxesHelper.js +13 -0
- package/build/descriptor/helper/AxesHelper.js.map +1 -0
- package/build/descriptor/index.d.ts +45 -43
- package/build/descriptor/index.js +45 -45
- package/build/descriptor/index.js.map +1 -1
- package/build/descriptor/light/AmbientLight.d.ts +19 -0
- package/build/descriptor/light/AmbientLight.js +24 -0
- package/build/descriptor/light/AmbientLight.js.map +1 -0
- package/build/descriptor/light/DirectionalLight.d.ts +49 -0
- package/build/descriptor/light/DirectionalLight.js +39 -0
- package/build/descriptor/light/DirectionalLight.js.map +1 -0
- package/build/descriptor/light/HemisphereLight.d.ts +21 -0
- package/build/descriptor/light/HemisphereLight.js +27 -0
- package/build/descriptor/light/HemisphereLight.js.map +1 -0
- package/build/descriptor/light/Light.d.ts +15 -0
- package/build/descriptor/light/Light.js +2 -0
- package/build/descriptor/light/Light.js.map +1 -0
- package/build/descriptor/light/PointLight.d.ts +32 -0
- package/build/descriptor/light/PointLight.js +39 -0
- package/build/descriptor/light/PointLight.js.map +1 -0
- package/build/descriptor/light/RectAreaLight.d.ts +25 -0
- package/build/descriptor/light/RectAreaLight.js +33 -0
- package/build/descriptor/light/RectAreaLight.js.map +1 -0
- package/build/descriptor/light/SpotLight.d.ts +38 -0
- package/build/descriptor/light/SpotLight.js +48 -0
- package/build/descriptor/light/SpotLight.js.map +1 -0
- package/build/descriptor/material/Material.d.ts +109 -0
- package/build/descriptor/material/Material.js +86 -0
- package/build/descriptor/material/Material.js.map +1 -0
- package/build/descriptor/material/MeshBasicMaterial.d.ts +69 -0
- package/build/descriptor/material/MeshBasicMaterial.js +95 -0
- package/build/descriptor/material/MeshBasicMaterial.js.map +1 -0
- package/build/descriptor/material/MeshPhongMaterial.d.ts +99 -0
- package/build/descriptor/material/MeshPhongMaterial.js +142 -0
- package/build/descriptor/material/MeshPhongMaterial.js.map +1 -0
- package/build/descriptor/material/MeshStandardMaterial.d.ts +97 -0
- package/build/descriptor/material/MeshStandardMaterial.js +139 -0
- package/build/descriptor/material/MeshStandardMaterial.js.map +1 -0
- package/build/descriptor/material/PointsMaterial.d.ts +53 -0
- package/build/descriptor/material/PointsMaterial.js +73 -0
- package/build/descriptor/material/PointsMaterial.js.map +1 -0
- package/build/descriptor/material/ShaderMaterial.d.ts +59 -0
- package/build/descriptor/material/ShaderMaterial.js +61 -0
- package/build/descriptor/material/ShaderMaterial.js.map +1 -0
- package/build/descriptor/material/ShadowMaterial.d.ts +45 -0
- package/build/descriptor/material/ShadowMaterial.js +61 -0
- package/build/descriptor/material/ShadowMaterial.js.map +1 -0
- package/build/descriptor/material/SpriteMaterial.d.ts +53 -0
- package/build/descriptor/material/SpriteMaterial.js +73 -0
- package/build/descriptor/material/SpriteMaterial.js.map +1 -0
- package/build/descriptor/texture/Texture.d.ts +148 -0
- package/build/descriptor/texture/Texture.js +170 -0
- package/build/descriptor/texture/Texture.js.map +1 -0
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/interpreter/ComposerServiceInterpreter.js +3 -3
- package/build/interpreter/ComposerServiceInterpreter.js.map +1 -1
- package/build/interpreter/GeoMapInterpreter.d.ts +14 -15
- package/build/interpreter/GeoMapInterpreter.js +69 -74
- package/build/interpreter/GeoMapInterpreter.js.map +1 -1
- package/build/interpreter/HTMLConvertInterpreter.d.ts +5 -6
- package/build/interpreter/HTMLConvertInterpreter.js +3 -4
- package/build/interpreter/HTMLConvertInterpreter.js.map +1 -1
- package/build/interpreter/InstancedMeshInterpreter.d.ts +11 -12
- package/build/interpreter/InstancedMeshInterpreter.js +15 -16
- package/build/interpreter/InstancedMeshInterpreter.js.map +1 -1
- package/build/interpreter/MeshInterpreter.d.ts +4 -5
- package/build/interpreter/MeshInterpreter.js +5 -6
- package/build/interpreter/MeshInterpreter.js.map +1 -1
- package/build/interpreter/ModelInterpreter.d.ts +6 -7
- package/build/interpreter/ModelInterpreter.js +3 -4
- package/build/interpreter/ModelInterpreter.js.map +1 -1
- package/build/interpreter/NodeInterpreter.d.ts +9 -10
- package/build/interpreter/NodeInterpreter.js +3 -4
- package/build/interpreter/NodeInterpreter.js.map +1 -1
- package/build/interpreter/OrbitControllerInterpreter.d.ts +8 -9
- package/build/interpreter/OrbitControllerInterpreter.js +3 -4
- package/build/interpreter/OrbitControllerInterpreter.js.map +1 -1
- package/build/interpreter/OrthographicCameraInterpreter.d.ts +3 -4
- package/build/interpreter/OrthographicCameraInterpreter.js +3 -4
- package/build/interpreter/OrthographicCameraInterpreter.js.map +1 -1
- package/build/interpreter/ParticleInterpreter.d.ts +5 -6
- package/build/interpreter/ParticleInterpreter.js +8 -9
- package/build/interpreter/ParticleInterpreter.js.map +1 -1
- package/build/interpreter/PerspectiveCameraInterpreter.d.ts +7 -8
- package/build/interpreter/PerspectiveCameraInterpreter.js +5 -6
- package/build/interpreter/PerspectiveCameraInterpreter.js.map +1 -1
- package/build/interpreter/PointsInterpreter.d.ts +7 -8
- package/build/interpreter/PointsInterpreter.js +5 -6
- package/build/interpreter/PointsInterpreter.js.map +1 -1
- package/build/interpreter/Scene3DServiceInterpreter.d.ts +27 -0
- package/build/interpreter/{SceneServiceInterpreter.js → Scene3DServiceInterpreter.js} +16 -17
- package/build/interpreter/Scene3DServiceInterpreter.js.map +1 -0
- package/build/interpreter/SceneInterpreter.d.ts +8 -0
- package/build/interpreter/{ServiceSchedulerInterpreter.js → SceneInterpreter.js} +4 -5
- package/build/interpreter/SceneInterpreter.js.map +1 -0
- package/build/interpreter/SpriteInterpreter.d.ts +6 -7
- package/build/interpreter/SpriteInterpreter.js +5 -6
- package/build/interpreter/SpriteInterpreter.js.map +1 -1
- package/build/interpreter/Text3DInterpreter.d.ts +15 -0
- package/build/interpreter/{TextInterpreter.js → Text3DInterpreter.js} +5 -6
- package/build/interpreter/Text3DInterpreter.js.map +1 -0
- package/build/interpreter/TransformControllerInterpreter.d.ts +7 -8
- package/build/interpreter/TransformControllerInterpreter.js +3 -4
- package/build/interpreter/TransformControllerInterpreter.js.map +1 -1
- package/build/interpreter/animation/AnimationActionInterpreter.d.ts +8 -9
- package/build/interpreter/animation/AnimationActionInterpreter.js +9 -10
- package/build/interpreter/animation/AnimationActionInterpreter.js.map +1 -1
- package/build/interpreter/geometry/BoxGeometryInterpreter.d.ts +7 -8
- package/build/interpreter/geometry/BoxGeometryInterpreter.js +5 -6
- package/build/interpreter/geometry/BoxGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/BufferGeometryInterpreter.d.ts +7 -8
- package/build/interpreter/geometry/BufferGeometryInterpreter.js +8 -9
- package/build/interpreter/geometry/BufferGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/CircleGeometryInterpreter.d.ts +7 -8
- package/build/interpreter/geometry/CircleGeometryInterpreter.js +5 -6
- package/build/interpreter/geometry/CircleGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/CylinderGeometryInterpreter.d.ts +7 -8
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js +5 -6
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.d.ts +8 -9
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js +7 -8
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/PlaneGeometryInterpreter.d.ts +7 -8
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js +5 -6
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/RingGeometryInterpreter.d.ts +7 -8
- package/build/interpreter/geometry/RingGeometryInterpreter.js +5 -6
- package/build/interpreter/geometry/RingGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/SphereGeometryInterpreter.d.ts +7 -8
- package/build/interpreter/geometry/SphereGeometryInterpreter.js +5 -6
- package/build/interpreter/geometry/SphereGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.d.ts +4 -5
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js +3 -4
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js.map +1 -1
- package/build/interpreter/geometry/TubeGeometryInterpreter.d.ts +8 -9
- package/build/interpreter/geometry/TubeGeometryInterpreter.js +7 -8
- package/build/interpreter/geometry/TubeGeometryInterpreter.js.map +1 -1
- package/build/interpreter/helper/AxesHelperInterpreter.d.ts +7 -8
- package/build/interpreter/helper/AxesHelperInterpreter.js +5 -6
- package/build/interpreter/helper/AxesHelperInterpreter.js.map +1 -1
- package/build/interpreter/index.d.ts +3 -3
- package/build/interpreter/index.js +3 -3
- package/build/interpreter/index.js.map +1 -1
- package/build/interpreter/light/AmbientLightInterpreter.d.ts +7 -8
- package/build/interpreter/light/AmbientLightInterpreter.js +6 -7
- package/build/interpreter/light/AmbientLightInterpreter.js.map +1 -1
- package/build/interpreter/light/DirectionalLightInterpreter.d.ts +9 -10
- package/build/interpreter/light/DirectionalLightInterpreter.js +6 -7
- package/build/interpreter/light/DirectionalLightInterpreter.js.map +1 -1
- package/build/interpreter/light/HemisphereLightInterpreter.d.ts +7 -8
- package/build/interpreter/light/HemisphereLightInterpreter.js +7 -8
- package/build/interpreter/light/HemisphereLightInterpreter.js.map +1 -1
- package/build/interpreter/light/PointLightInterpreter.d.ts +8 -9
- package/build/interpreter/light/PointLightInterpreter.js +5 -6
- package/build/interpreter/light/PointLightInterpreter.js.map +1 -1
- package/build/interpreter/light/RectAreaLightInterpreter.d.ts +7 -8
- package/build/interpreter/light/RectAreaLightInterpreter.js +5 -6
- package/build/interpreter/light/RectAreaLightInterpreter.js.map +1 -1
- package/build/interpreter/light/SpotLightInterpreter.d.ts +9 -10
- package/build/interpreter/light/SpotLightInterpreter.js +5 -6
- package/build/interpreter/light/SpotLightInterpreter.js.map +1 -1
- package/build/interpreter/material/MaterialInterpreter.d.ts +5 -7
- package/build/interpreter/material/MaterialInterpreter.js +2 -6
- package/build/interpreter/material/MaterialInterpreter.js.map +1 -1
- package/build/interpreter/material/MeshBasicMaterialInterpreter.d.ts +6 -7
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js +7 -8
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js.map +1 -1
- package/build/interpreter/material/MeshPhongMaterialInterpreter.d.ts +7 -8
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js +8 -9
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js.map +1 -1
- package/build/interpreter/material/MeshStandardMaterialInterpreter.d.ts +7 -8
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js +8 -9
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js.map +1 -1
- package/build/interpreter/material/PointsMaterialInterpreter.d.ts +6 -7
- package/build/interpreter/material/PointsMaterialInterpreter.js +7 -8
- package/build/interpreter/material/PointsMaterialInterpreter.js.map +1 -1
- package/build/interpreter/material/ShaderMaterialInterpreter.d.ts +7 -8
- package/build/interpreter/material/ShaderMaterialInterpreter.js +8 -9
- package/build/interpreter/material/ShaderMaterialInterpreter.js.map +1 -1
- package/build/interpreter/material/ShadowMaterialInterpreter.d.ts +6 -7
- package/build/interpreter/material/ShadowMaterialInterpreter.js +7 -9
- package/build/interpreter/material/ShadowMaterialInterpreter.js.map +1 -1
- package/build/interpreter/material/SpriteMaterialInterpreter.d.ts +6 -7
- package/build/interpreter/material/SpriteMaterialInterpreter.js +7 -10
- package/build/interpreter/material/SpriteMaterialInterpreter.js.map +1 -1
- package/build/interpreter/texture/TextureInterpreter.d.ts +8 -9
- package/build/interpreter/texture/TextureInterpreter.js +5 -6
- package/build/interpreter/texture/TextureInterpreter.js.map +1 -1
- package/build/locale/Language.d.ts +1 -2
- package/build/locale/Language.js +1 -2
- package/build/locale/Language.js.map +1 -1
- package/build/locale/LanguageProvider.d.ts +2 -4
- package/build/locale/LanguageProvider.js +1 -3
- package/build/locale/LanguageProvider.js.map +1 -1
- package/build/utils/dispose/index.d.ts +1 -2
- package/build/utils/dispose/index.js +1 -2
- package/build/utils/dispose/index.js.map +1 -1
- package/build/utils/geometry/index.d.ts +8 -8
- package/build/utils/geometry/index.js +9 -7
- package/build/utils/geometry/index.js.map +1 -1
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/light/index.d.ts +2 -0
- package/build/utils/light/index.js +4 -0
- package/build/utils/light/index.js.map +1 -0
- package/build/utils/material/index.d.ts +7 -6
- package/build/utils/material/index.js +9 -7
- package/build/utils/material/index.js.map +1 -1
- package/build/utils/pickup/index.d.ts +1 -2
- package/build/utils/pickup/index.js +4 -5
- package/build/utils/pickup/index.js.map +1 -1
- package/build/utils/random/index.d.ts +1 -2
- package/build/utils/random/index.js +1 -2
- package/build/utils/random/index.js.map +1 -1
- package/build/utils/text/index.d.ts +2 -2
- package/build/utils/text/index.js +1 -2
- package/build/utils/text/index.js.map +1 -1
- package/build/utils/texture/index.d.ts +1 -2
- package/build/utils/texture/index.js +3 -4
- package/build/utils/texture/index.js.map +1 -1
- package/package.json +1 -1
- package/src/actor/ComposerServiceActor.ts +9 -13
- package/src/actor/GeometryActor.ts +2 -4
- package/src/actor/HTMLConvertActor.ts +8 -10
- package/src/actor/MaterialActor.ts +2 -4
- package/src/actor/NodeActor.ts +23 -25
- package/src/actor/OrbitControllerActor.ts +21 -28
- package/src/actor/PassActor.ts +5 -7
- package/src/actor/{SceneServiceActor.ts → Scene3DServiceActor.ts} +49 -41
- package/src/actor/TextureActor.ts +2 -4
- package/src/actor/TransformControllerActor.ts +3 -5
- package/src/actor/index.ts +1 -1
- package/src/asset/index.ts +38 -53
- package/src/controls/CameraControls.ts +1 -3
- package/src/controls/TransformControls.ts +18 -24
- package/src/descriptor/ComposerService.ts +72 -0
- package/src/descriptor/GeoMap.ts +60 -0
- package/src/descriptor/HTMLConvert.ts +18 -0
- package/src/descriptor/InstancedMesh.ts +38 -0
- package/src/descriptor/Mesh.ts +32 -0
- package/src/descriptor/Model.ts +26 -0
- package/src/descriptor/OrbitController.ts +186 -0
- package/src/descriptor/OrthographicCamera.ts +19 -0
- package/src/descriptor/Particle.ts +177 -0
- package/src/descriptor/Pass.ts +54 -0
- package/src/descriptor/PerspectiveCamera.ts +27 -0
- package/src/descriptor/Points.ts +32 -0
- package/src/descriptor/Scene3DService.ts +80 -0
- package/src/descriptor/Sprite.ts +27 -0
- package/src/descriptor/Text3D.ts +51 -0
- package/src/descriptor/TransformController.ts +33 -0
- package/src/descriptor/animation/AnimationAction.ts +82 -0
- package/src/descriptor/geometry/BoxGeometry.ts +38 -0
- package/src/descriptor/geometry/BufferGeometry.ts +23 -0
- package/src/descriptor/geometry/CircleGeometry.ts +32 -0
- package/src/descriptor/geometry/CylinderGeometry.ts +44 -0
- package/src/descriptor/geometry/ExtrudeGeometry.ts +53 -0
- package/src/descriptor/geometry/Geometry.ts +12 -0
- package/src/descriptor/geometry/PlaneGeometry.ts +32 -0
- package/src/descriptor/geometry/RingGeometry.ts +38 -0
- package/src/descriptor/geometry/SphereGeometry.ts +41 -0
- package/src/descriptor/geometry/SurfaceGeometry.ts +21 -0
- package/src/descriptor/geometry/TubeGeometry.ts +38 -0
- package/src/descriptor/helper/AxesHelper.ts +13 -0
- package/src/descriptor/index.ts +45 -45
- package/src/descriptor/light/AmbientLight.ts +26 -0
- package/src/descriptor/light/DirectionalLight.ts +62 -0
- package/src/descriptor/light/HemisphereLight.ts +29 -0
- package/src/descriptor/light/Light.ts +16 -0
- package/src/descriptor/light/PointLight.ts +41 -0
- package/src/descriptor/light/RectAreaLight.ts +35 -0
- package/src/descriptor/light/SpotLight.ts +50 -0
- package/src/descriptor/material/Material.ts +115 -0
- package/src/descriptor/material/MeshBasicMaterial.ts +96 -0
- package/src/descriptor/material/MeshPhongMaterial.ts +143 -0
- package/src/descriptor/material/MeshStandardMaterial.ts +141 -0
- package/src/descriptor/material/PointsMaterial.ts +74 -0
- package/src/descriptor/material/ShaderMaterial.ts +77 -0
- package/src/descriptor/material/ShadowMaterial.ts +62 -0
- package/src/descriptor/material/SpriteMaterial.ts +74 -0
- package/src/descriptor/texture/Texture.ts +172 -0
- package/src/index.ts +0 -1
- package/src/interpreter/ComposerServiceInterpreter.ts +3 -3
- package/src/interpreter/GeoMapInterpreter.ts +91 -94
- package/src/interpreter/HTMLConvertInterpreter.ts +7 -9
- package/src/interpreter/InstancedMeshInterpreter.ts +22 -24
- package/src/interpreter/MeshInterpreter.ts +22 -24
- package/src/interpreter/ModelInterpreter.ts +8 -10
- package/src/interpreter/NodeInterpreter.ts +11 -13
- package/src/interpreter/OrbitControllerInterpreter.ts +10 -13
- package/src/interpreter/OrthographicCameraInterpreter.ts +5 -8
- package/src/interpreter/ParticleInterpreter.ts +15 -17
- package/src/interpreter/PerspectiveCameraInterpreter.ts +11 -14
- package/src/interpreter/PointsInterpreter.ts +11 -13
- package/src/interpreter/Scene3DServiceInterpreter.ts +118 -0
- package/src/interpreter/{ServiceSchedulerInterpreter.ts → SceneInterpreter.ts} +5 -7
- package/src/interpreter/SpriteInterpreter.ts +10 -12
- package/src/interpreter/{TextInterpreter.ts → Text3DInterpreter.ts} +9 -11
- package/src/interpreter/TransformControllerInterpreter.ts +9 -12
- package/src/interpreter/animation/AnimationActionInterpreter.ts +17 -19
- package/src/interpreter/geometry/BoxGeometryInterpreter.ts +12 -14
- package/src/interpreter/geometry/BufferGeometryInterpreter.ts +15 -17
- package/src/interpreter/geometry/CircleGeometryInterpreter.ts +12 -14
- package/src/interpreter/geometry/CylinderGeometryInterpreter.ts +12 -14
- package/src/interpreter/geometry/ExtrudeGeometryInterpreter.ts +15 -17
- package/src/interpreter/geometry/PlaneGeometryInterpreter.ts +12 -14
- package/src/interpreter/geometry/RingGeometryInterpreter.ts +12 -14
- package/src/interpreter/geometry/SphereGeometryInterpreter.ts +12 -14
- package/src/interpreter/geometry/SurfaceGeometryInterpreter.ts +6 -8
- package/src/interpreter/geometry/TubeGeometryInterpreter.ts +15 -17
- package/src/interpreter/helper/AxesHelperInterpreter.ts +12 -14
- package/src/interpreter/index.ts +3 -3
- package/src/interpreter/light/AmbientLightInterpreter.ts +12 -14
- package/src/interpreter/light/DirectionalLightInterpreter.ts +15 -17
- package/src/interpreter/light/HemisphereLightInterpreter.ts +14 -17
- package/src/interpreter/light/PointLightInterpreter.ts +13 -16
- package/src/interpreter/light/RectAreaLightInterpreter.ts +12 -14
- package/src/interpreter/light/SpotLightInterpreter.ts +14 -17
- package/src/interpreter/material/MaterialInterpreter.ts +7 -12
- package/src/interpreter/material/MeshBasicMaterialInterpreter.ts +12 -14
- package/src/interpreter/material/MeshPhongMaterialInterpreter.ts +13 -15
- package/src/interpreter/material/MeshStandardMaterialInterpreter.ts +13 -15
- package/src/interpreter/material/PointsMaterialInterpreter.ts +12 -14
- package/src/interpreter/material/ShaderMaterialInterpreter.ts +13 -15
- package/src/interpreter/material/ShadowMaterialInterpreter.ts +12 -15
- package/src/interpreter/material/SpriteMaterialInterpreter.ts +12 -16
- package/src/interpreter/texture/TextureInterpreter.ts +11 -13
- package/src/locale/Language.ts +1 -5
- package/src/locale/LanguageProvider.ts +2 -9
- package/src/utils/dispose/index.ts +2 -4
- package/src/utils/geometry/index.ts +9 -14
- package/src/utils/index.ts +2 -1
- package/src/utils/light/index.ts +5 -0
- package/src/utils/material/index.ts +14 -16
- package/src/utils/pickup/index.ts +4 -8
- package/src/utils/random/index.ts +1 -5
- package/src/utils/text/index.ts +1 -5
- package/src/utils/texture/index.ts +4 -6
- package/build/actor/SceneServiceActor.js.map +0 -1
- package/build/descriptor/ComposerServiceDescriptor.d.ts +0 -33
- package/build/descriptor/ComposerServiceDescriptor.js +0 -42
- package/build/descriptor/ComposerServiceDescriptor.js.map +0 -1
- package/build/descriptor/GeoMapDescriptor.d.ts +0 -12
- package/build/descriptor/GeoMapDescriptor.js +0 -22
- package/build/descriptor/GeoMapDescriptor.js.map +0 -1
- package/build/descriptor/HTMLConvertDescriptor.d.ts +0 -6
- package/build/descriptor/HTMLConvertDescriptor.js +0 -10
- package/build/descriptor/HTMLConvertDescriptor.js.map +0 -1
- package/build/descriptor/InstancedMeshDescriptor.d.ts +0 -12
- package/build/descriptor/InstancedMeshDescriptor.js +0 -12
- package/build/descriptor/InstancedMeshDescriptor.js.map +0 -1
- package/build/descriptor/MeshDescriptor.d.ts +0 -8
- package/build/descriptor/MeshDescriptor.js +0 -14
- package/build/descriptor/MeshDescriptor.js.map +0 -1
- package/build/descriptor/ModelDescriptor.d.ts +0 -7
- package/build/descriptor/ModelDescriptor.js +0 -12
- package/build/descriptor/ModelDescriptor.js.map +0 -1
- package/build/descriptor/OrbitControllerDescriptor.d.ts +0 -54
- package/build/descriptor/OrbitControllerDescriptor.js +0 -73
- package/build/descriptor/OrbitControllerDescriptor.js.map +0 -1
- package/build/descriptor/OrthographicCameraDescriptor.d.ts +0 -6
- package/build/descriptor/OrthographicCameraDescriptor.js +0 -10
- package/build/descriptor/OrthographicCameraDescriptor.js.map +0 -1
- package/build/descriptor/ParticleDescriptor.d.ts +0 -55
- package/build/descriptor/ParticleDescriptor.js +0 -85
- package/build/descriptor/ParticleDescriptor.js.map +0 -1
- package/build/descriptor/PassDescriptor.d.ts +0 -16
- package/build/descriptor/PassDescriptor.js +0 -23
- package/build/descriptor/PassDescriptor.js.map +0 -1
- package/build/descriptor/PerspectiveCameraDescriptor.d.ts +0 -7
- package/build/descriptor/PerspectiveCameraDescriptor.js +0 -12
- package/build/descriptor/PerspectiveCameraDescriptor.js.map +0 -1
- package/build/descriptor/PointsDescriptor.d.ts +0 -8
- package/build/descriptor/PointsDescriptor.js +0 -14
- package/build/descriptor/PointsDescriptor.js.map +0 -1
- package/build/descriptor/SceneServiceDescriptor.d.ts +0 -20
- package/build/descriptor/SceneServiceDescriptor.js +0 -35
- package/build/descriptor/SceneServiceDescriptor.js.map +0 -1
- package/build/descriptor/SpriteDescriptor.d.ts +0 -8
- package/build/descriptor/SpriteDescriptor.js +0 -14
- package/build/descriptor/SpriteDescriptor.js.map +0 -1
- package/build/descriptor/TextDescriptor.d.ts +0 -21
- package/build/descriptor/TextDescriptor.js +0 -37
- package/build/descriptor/TextDescriptor.js.map +0 -1
- package/build/descriptor/TransformControllerDescriptor.d.ts +0 -20
- package/build/descriptor/TransformControllerDescriptor.js +0 -22
- package/build/descriptor/TransformControllerDescriptor.js.map +0 -1
- package/build/descriptor/animation/AnimationActionDescriptor.d.ts +0 -27
- package/build/descriptor/animation/AnimationActionDescriptor.js +0 -46
- package/build/descriptor/animation/AnimationActionDescriptor.js.map +0 -1
- package/build/descriptor/geometry/BoxGeometryDescriptor.d.ts +0 -14
- package/build/descriptor/geometry/BoxGeometryDescriptor.js +0 -23
- package/build/descriptor/geometry/BoxGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/BufferGeometryDescriptor.d.ts +0 -8
- package/build/descriptor/geometry/BufferGeometryDescriptor.js +0 -12
- package/build/descriptor/geometry/BufferGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/CircleGeometryDescriptor.d.ts +0 -12
- package/build/descriptor/geometry/CircleGeometryDescriptor.js +0 -19
- package/build/descriptor/geometry/CircleGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/CylinderGeometryDescriptor.d.ts +0 -16
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js +0 -27
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.d.ts +0 -18
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js +0 -33
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/GeometryDescriptor.d.ts +0 -5
- package/build/descriptor/geometry/GeometryDescriptor.js +0 -7
- package/build/descriptor/geometry/GeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/PlaneGeometryDescriptor.d.ts +0 -12
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js +0 -19
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/RingGeometryDescriptor.d.ts +0 -14
- package/build/descriptor/geometry/RingGeometryDescriptor.js +0 -23
- package/build/descriptor/geometry/RingGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/SphereGeometryDescriptor.d.ts +0 -14
- package/build/descriptor/geometry/SphereGeometryDescriptor.js +0 -24
- package/build/descriptor/geometry/SphereGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.d.ts +0 -8
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js +0 -12
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/TubeGeometryDescriptor.d.ts +0 -13
- package/build/descriptor/geometry/TubeGeometryDescriptor.js +0 -23
- package/build/descriptor/geometry/TubeGeometryDescriptor.js.map +0 -1
- package/build/descriptor/helper/AxesHelperDescriptor.d.ts +0 -5
- package/build/descriptor/helper/AxesHelperDescriptor.js +0 -7
- package/build/descriptor/helper/AxesHelperDescriptor.js.map +0 -1
- package/build/descriptor/light/AmbientLightDescriptor.d.ts +0 -5
- package/build/descriptor/light/AmbientLightDescriptor.js +0 -7
- package/build/descriptor/light/AmbientLightDescriptor.js.map +0 -1
- package/build/descriptor/light/DirectionalLightDescriptor.d.ts +0 -20
- package/build/descriptor/light/DirectionalLightDescriptor.js +0 -21
- package/build/descriptor/light/DirectionalLightDescriptor.js.map +0 -1
- package/build/descriptor/light/HemisphereLightDescriptor.d.ts +0 -8
- package/build/descriptor/light/HemisphereLightDescriptor.js +0 -12
- package/build/descriptor/light/HemisphereLightDescriptor.js.map +0 -1
- package/build/descriptor/light/LightDescriptor.d.ts +0 -8
- package/build/descriptor/light/LightDescriptor.js +0 -14
- package/build/descriptor/light/LightDescriptor.js.map +0 -1
- package/build/descriptor/light/PointLightDescriptor.d.ts +0 -15
- package/build/descriptor/light/PointLightDescriptor.js +0 -21
- package/build/descriptor/light/PointLightDescriptor.js.map +0 -1
- package/build/descriptor/light/RectAreaLightDescriptor.d.ts +0 -10
- package/build/descriptor/light/RectAreaLightDescriptor.js +0 -16
- package/build/descriptor/light/RectAreaLightDescriptor.js.map +0 -1
- package/build/descriptor/light/SpotLightDescriptor.d.ts +0 -18
- package/build/descriptor/light/SpotLightDescriptor.js +0 -27
- package/build/descriptor/light/SpotLightDescriptor.js.map +0 -1
- package/build/descriptor/material/MaterialDescriptor.d.ts +0 -54
- package/build/descriptor/material/MaterialDescriptor.js +0 -73
- package/build/descriptor/material/MaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/MeshBasicMaterialDescriptor.d.ts +0 -35
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js +0 -51
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/MeshPhongMaterialDescriptor.d.ts +0 -65
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js +0 -98
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/MeshStandardMaterialDescriptor.d.ts +0 -63
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js +0 -95
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/PointsMaterialDescriptor.d.ts +0 -19
- package/build/descriptor/material/PointsMaterialDescriptor.js +0 -29
- package/build/descriptor/material/PointsMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/ShaderMaterialDescriptor.d.ts +0 -24
- package/build/descriptor/material/ShaderMaterialDescriptor.js +0 -26
- package/build/descriptor/material/ShaderMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/ShadowMaterialDescriptor.d.ts +0 -11
- package/build/descriptor/material/ShadowMaterialDescriptor.js +0 -17
- package/build/descriptor/material/ShadowMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/SpriteMaterialDescriptor.d.ts +0 -19
- package/build/descriptor/material/SpriteMaterialDescriptor.js +0 -29
- package/build/descriptor/material/SpriteMaterialDescriptor.js.map +0 -1
- package/build/descriptor/texture/TextureDescriptor.d.ts +0 -80
- package/build/descriptor/texture/TextureDescriptor.js +0 -103
- package/build/descriptor/texture/TextureDescriptor.js.map +0 -1
- package/build/interpreter/SceneServiceInterpreter.d.ts +0 -27
- package/build/interpreter/SceneServiceInterpreter.js.map +0 -1
- package/build/interpreter/ServiceSchedulerInterpreter.d.ts +0 -9
- package/build/interpreter/ServiceSchedulerInterpreter.js.map +0 -1
- package/build/interpreter/TextInterpreter.d.ts +0 -16
- package/build/interpreter/TextInterpreter.js.map +0 -1
- package/build/preset/execute/GeoMap/drilldown.d.ts +0 -16
- package/build/preset/execute/GeoMap/drilldown.js +0 -45
- package/build/preset/execute/GeoMap/drilldown.js.map +0 -1
- package/build/preset/execute/GeoMap/index.d.ts +0 -1
- package/build/preset/execute/GeoMap/index.js +0 -2
- package/build/preset/execute/GeoMap/index.js.map +0 -1
- package/build/preset/execute/index.d.ts +0 -1
- package/build/preset/execute/index.js +0 -2
- package/build/preset/execute/index.js.map +0 -1
- package/build/preset/index.d.ts +0 -3
- package/build/preset/index.js +0 -4
- package/build/preset/index.js.map +0 -1
- package/build/preset/interaction/GeoMap/drilldown.d.ts +0 -5
- package/build/preset/interaction/GeoMap/drilldown.js +0 -19
- package/build/preset/interaction/GeoMap/drilldown.js.map +0 -1
- package/build/preset/interaction/GeoMap/index.d.ts +0 -1
- package/build/preset/interaction/GeoMap/index.js +0 -2
- package/build/preset/interaction/GeoMap/index.js.map +0 -1
- package/build/preset/interaction/index.d.ts +0 -1
- package/build/preset/interaction/index.js +0 -2
- package/build/preset/interaction/index.js.map +0 -1
- package/src/descriptor/ComposerServiceDescriptor.ts +0 -47
- package/src/descriptor/GeoMapDescriptor.ts +0 -24
- package/src/descriptor/HTMLConvertDescriptor.ts +0 -12
- package/src/descriptor/InstancedMeshDescriptor.ts +0 -21
- package/src/descriptor/MeshDescriptor.ts +0 -16
- package/src/descriptor/ModelDescriptor.ts +0 -15
- package/src/descriptor/OrbitControllerDescriptor.ts +0 -84
- package/src/descriptor/OrthographicCameraDescriptor.ts +0 -12
- package/src/descriptor/ParticleDescriptor.ts +0 -88
- package/src/descriptor/PassDescriptor.ts +0 -33
- package/src/descriptor/PerspectiveCameraDescriptor.ts +0 -15
- package/src/descriptor/PointsDescriptor.ts +0 -16
- package/src/descriptor/SceneServiceDescriptor.ts +0 -39
- package/src/descriptor/SpriteDescriptor.ts +0 -16
- package/src/descriptor/TextDescriptor.ts +0 -41
- package/src/descriptor/TransformControllerDescriptor.ts +0 -32
- package/src/descriptor/animation/AnimationActionDescriptor.ts +0 -52
- package/src/descriptor/geometry/BoxGeometryDescriptor.ts +0 -26
- package/src/descriptor/geometry/BufferGeometryDescriptor.ts +0 -15
- package/src/descriptor/geometry/CircleGeometryDescriptor.ts +0 -22
- package/src/descriptor/geometry/CylinderGeometryDescriptor.ts +0 -30
- package/src/descriptor/geometry/ExtrudeGeometryDescriptor.ts +0 -35
- package/src/descriptor/geometry/GeometryDescriptor.ts +0 -8
- package/src/descriptor/geometry/PlaneGeometryDescriptor.ts +0 -22
- package/src/descriptor/geometry/RingGeometryDescriptor.ts +0 -26
- package/src/descriptor/geometry/SphereGeometryDescriptor.ts +0 -27
- package/src/descriptor/geometry/SurfaceGeometryDescriptor.ts +0 -15
- package/src/descriptor/geometry/TubeGeometryDescriptor.ts +0 -25
- package/src/descriptor/helper/AxesHelperDescriptor.ts +0 -8
- package/src/descriptor/light/AmbientLightDescriptor.ts +0 -8
- package/src/descriptor/light/DirectionalLightDescriptor.ts +0 -33
- package/src/descriptor/light/HemisphereLightDescriptor.ts +0 -16
- package/src/descriptor/light/LightDescriptor.ts +0 -16
- package/src/descriptor/light/PointLightDescriptor.ts +0 -24
- package/src/descriptor/light/RectAreaLightDescriptor.ts +0 -20
- package/src/descriptor/light/SpotLightDescriptor.ts +0 -30
- package/src/descriptor/material/MaterialDescriptor.ts +0 -84
- package/src/descriptor/material/MeshBasicMaterialDescriptor.ts +0 -53
- package/src/descriptor/material/MeshPhongMaterialDescriptor.ts +0 -102
- package/src/descriptor/material/MeshStandardMaterialDescriptor.ts +0 -99
- package/src/descriptor/material/PointsMaterialDescriptor.ts +0 -31
- package/src/descriptor/material/ShaderMaterialDescriptor.ts +0 -35
- package/src/descriptor/material/ShadowMaterialDescriptor.ts +0 -19
- package/src/descriptor/material/SpriteMaterialDescriptor.ts +0 -31
- package/src/descriptor/texture/TextureDescriptor.ts +0 -110
- package/src/interpreter/SceneServiceInterpreter.ts +0 -119
- package/src/preset/execute/GeoMap/drilldown.ts +0 -60
- package/src/preset/execute/GeoMap/index.ts +0 -1
- package/src/preset/execute/index.ts +0 -1
- package/src/preset/index.ts +0 -7
- package/src/preset/interaction/GeoMap/drilldown.ts +0 -26
- package/src/preset/interaction/GeoMap/index.ts +0 -1
- package/src/preset/interaction/index.ts +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BufferGeometry, CylinderGeometry } from "three";
|
|
1
|
+
import { BufferGeometry, CylinderGeometry as ThreeCylinderGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { CylinderGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
class CylinderGeometryInterpreter extends Interpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class CylinderGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = CylinderGeometry.type;
|
|
7
7
|
createActor(descriptor) {
|
|
8
8
|
const actor = new GeometryActor(new BufferGeometry());
|
|
9
9
|
return actor;
|
|
10
10
|
}
|
|
11
11
|
setAttribute(actor, descriptor) {
|
|
12
|
-
const source = new
|
|
12
|
+
const source = new ThreeCylinderGeometry(descriptor.radiusTop, descriptor.radiusBottom, descriptor.height, descriptor.radialSegments, descriptor.heightSegments, descriptor.openEnded, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
13
|
actor.object.copy(source);
|
|
14
14
|
source.dispose();
|
|
15
15
|
}
|
|
@@ -25,5 +25,4 @@ class CylinderGeometryInterpreter extends Interpreter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
Interpreter.register(CylinderGeometryInterpreter);
|
|
28
|
-
export { CylinderGeometryInterpreter };
|
|
29
28
|
//# sourceMappingURL=CylinderGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CylinderGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/CylinderGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CylinderGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/CylinderGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,IAAI,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,2BAA4B,SAAQ,WAAW;IACxD,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA;IAEzB,WAAW,CAAC,UAA4B;QAC9C,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAoC,EAAE,UAA4B;QAC3E,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;QACrO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAA4B;QAC/B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAA4B;QAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,WAAW,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { BufferGeometry,
|
|
1
|
+
import { BufferGeometry, Shape } from "three";
|
|
2
2
|
import { Interpreter, JsonAsset } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { ExtrudeGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class ExtrudeGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class ExtrudeGeometryInterpreter extends Interpreter {
|
|
6
6
|
static type: string;
|
|
7
|
-
protected createActor(descriptor:
|
|
8
|
-
createShapes(collection: JsonAsset[], shapes: Shape[], descriptor:
|
|
9
|
-
setAttribute(actor: GeometryActor<
|
|
10
|
-
update(descriptor:
|
|
11
|
-
free(descriptor:
|
|
7
|
+
protected createActor(descriptor: ExtrudeGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
createShapes(collection: JsonAsset[], shapes: Shape[], descriptor: ExtrudeGeometry): void;
|
|
9
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: ExtrudeGeometry): void;
|
|
10
|
+
update(descriptor: ExtrudeGeometry): void;
|
|
11
|
+
free(descriptor: ExtrudeGeometry): void;
|
|
12
12
|
}
|
|
13
|
-
export { ExtrudeGeometryInterpreter };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BufferGeometry, ExtrudeGeometry, Path, Shape, } from "three";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BufferGeometry, ExtrudeGeometry as ThreeExtrudeGeometry, Path, Shape, } from "three";
|
|
2
|
+
import { Store, Interpreter } from "@vyr/engine";
|
|
3
|
+
import { ExtrudeGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
5
|
import { geometry } from "../../utils";
|
|
6
|
-
class ExtrudeGeometryInterpreter extends Interpreter {
|
|
7
|
-
static type =
|
|
6
|
+
export class ExtrudeGeometryInterpreter extends Interpreter {
|
|
7
|
+
static type = ExtrudeGeometry.type;
|
|
8
8
|
createActor(descriptor) {
|
|
9
9
|
const actor = new GeometryActor(new BufferGeometry());
|
|
10
10
|
return actor;
|
|
@@ -23,10 +23,10 @@ class ExtrudeGeometryInterpreter extends Interpreter {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
setAttribute(actor, descriptor) {
|
|
26
|
-
const collection =
|
|
26
|
+
const collection = Store.getCollection(descriptor.shapes);
|
|
27
27
|
const shapes = [];
|
|
28
28
|
this.createShapes(collection, shapes, descriptor);
|
|
29
|
-
const source = new
|
|
29
|
+
const source = new ThreeExtrudeGeometry(shapes, geometry.getExtrudeOptions(descriptor));
|
|
30
30
|
actor.object.copy(source);
|
|
31
31
|
source.dispose();
|
|
32
32
|
if (descriptor.flattenUVsToPlane)
|
|
@@ -44,5 +44,4 @@ class ExtrudeGeometryInterpreter extends Interpreter {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
Interpreter.register(ExtrudeGeometryInterpreter);
|
|
47
|
-
export { ExtrudeGeometryInterpreter };
|
|
48
47
|
//# sourceMappingURL=ExtrudeGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtrudeGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/ExtrudeGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExtrudeGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/ExtrudeGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,IAAI,oBAAoB,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,OAAO,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAE,WAAW,EAAa,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,0BAA2B,SAAQ,WAAW;IACvD,MAAM,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAA;IAExB,WAAW,CAAC,UAA2B;QAC7C,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,UAAuB,EAAE,MAAe,EAAE,UAA2B;QAC9E,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACjC,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;YAC3B,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA;YACjF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAElB,IAAI,SAAS,CAAC,MAAM,IAAI,CAAC;gBAAE,SAAQ;YACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACxC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA;gBACrF,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC1B,CAAC;QACL,CAAC;IACL,CAAC;IAED,YAAY,CAAC,KAAoC,EAAE,UAA2B;QAC1E,MAAM,UAAU,GAAG,KAAK,CAAC,aAAa,CAAY,UAAU,CAAC,MAAM,CAAC,CAAA;QACpE,MAAM,MAAM,GAAY,EAAE,CAAA;QAC1B,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,CAAA;QAEjD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAA;QACvF,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;QAEhB,IAAI,UAAU,CAAC,iBAAiB;YAAE,QAAQ,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC9E,CAAC;IAED,MAAM,CAAC,UAA2B;QAC9B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAA2B;QAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,WAAW,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAA"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { BufferGeometry
|
|
1
|
+
import { BufferGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { PlaneGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class PlaneGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class PlaneGeometryInterpreter extends Interpreter {
|
|
6
6
|
static type: string;
|
|
7
|
-
protected createActor(descriptor:
|
|
8
|
-
setAttribute(actor: GeometryActor<
|
|
9
|
-
update(descriptor:
|
|
10
|
-
free(descriptor:
|
|
7
|
+
protected createActor(descriptor: PlaneGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: PlaneGeometry): void;
|
|
9
|
+
update(descriptor: PlaneGeometry): void;
|
|
10
|
+
free(descriptor: PlaneGeometry): void;
|
|
11
11
|
}
|
|
12
|
-
export { PlaneGeometryInterpreter };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BufferGeometry, PlaneGeometry } from "three";
|
|
1
|
+
import { BufferGeometry, PlaneGeometry as ThreePlaneGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { PlaneGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
class PlaneGeometryInterpreter extends Interpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class PlaneGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = PlaneGeometry.type;
|
|
7
7
|
createActor(descriptor) {
|
|
8
8
|
const actor = new GeometryActor(new BufferGeometry());
|
|
9
9
|
return actor;
|
|
10
10
|
}
|
|
11
11
|
setAttribute(actor, descriptor) {
|
|
12
|
-
const source = new
|
|
12
|
+
const source = new ThreePlaneGeometry(descriptor.width, descriptor.height, descriptor.widthSegments, descriptor.heightSegments);
|
|
13
13
|
actor.object.copy(source);
|
|
14
14
|
source.dispose();
|
|
15
15
|
}
|
|
@@ -25,5 +25,4 @@ class PlaneGeometryInterpreter extends Interpreter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
Interpreter.register(PlaneGeometryInterpreter);
|
|
28
|
-
export { PlaneGeometryInterpreter };
|
|
29
28
|
//# sourceMappingURL=PlaneGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaneGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/PlaneGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PlaneGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/PlaneGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACrD,MAAM,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAA;IAEtB,WAAW,CAAC,UAAyB;QAC3C,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAoC,EAAE,UAAyB;QACxE,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;QAC/H,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAyB;QAC5B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAyB;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,WAAW,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAA"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { BufferGeometry
|
|
1
|
+
import { BufferGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { RingGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class RingGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class RingGeometryInterpreter extends Interpreter {
|
|
6
6
|
static type: string;
|
|
7
|
-
protected createActor(descriptor:
|
|
8
|
-
setAttribute(actor: GeometryActor<
|
|
9
|
-
update(descriptor:
|
|
10
|
-
free(descriptor:
|
|
7
|
+
protected createActor(descriptor: RingGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: RingGeometry): void;
|
|
9
|
+
update(descriptor: RingGeometry): void;
|
|
10
|
+
free(descriptor: RingGeometry): void;
|
|
11
11
|
}
|
|
12
|
-
export { RingGeometryInterpreter };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BufferGeometry, RingGeometry } from "three";
|
|
1
|
+
import { BufferGeometry, RingGeometry as ThreeRingGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { RingGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
class RingGeometryInterpreter extends Interpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class RingGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = RingGeometry.type;
|
|
7
7
|
createActor(descriptor) {
|
|
8
8
|
const actor = new GeometryActor(new BufferGeometry());
|
|
9
9
|
return actor;
|
|
10
10
|
}
|
|
11
11
|
setAttribute(actor, descriptor) {
|
|
12
|
-
const source = new
|
|
12
|
+
const source = new ThreeRingGeometry(descriptor.innerRadius, descriptor.outerRadius, descriptor.thetaSegments, descriptor.phiSegments, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
13
|
actor.object.copy(source);
|
|
14
14
|
source.dispose();
|
|
15
15
|
}
|
|
@@ -25,5 +25,4 @@ class RingGeometryInterpreter extends Interpreter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
Interpreter.register(RingGeometryInterpreter);
|
|
28
|
-
export { RingGeometryInterpreter };
|
|
29
28
|
//# sourceMappingURL=RingGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RingGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/RingGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RingGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/RingGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IACpD,MAAM,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAA;IAErB,WAAW,CAAC,UAAwB;QAC1C,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAoC,EAAE,UAAwB;QACvE,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;QACrL,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAwB;QAC3B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAwB;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,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"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { BufferGeometry
|
|
1
|
+
import { BufferGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { SphereGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class SphereGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class SphereGeometryInterpreter extends Interpreter {
|
|
6
6
|
static type: string;
|
|
7
|
-
protected createActor(descriptor:
|
|
8
|
-
setAttribute(actor: GeometryActor<
|
|
9
|
-
update(descriptor:
|
|
10
|
-
free(descriptor:
|
|
7
|
+
protected createActor(descriptor: SphereGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: SphereGeometry): void;
|
|
9
|
+
update(descriptor: SphereGeometry): void;
|
|
10
|
+
free(descriptor: SphereGeometry): void;
|
|
11
11
|
}
|
|
12
|
-
export { SphereGeometryInterpreter };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BufferGeometry, SphereGeometry } from "three";
|
|
1
|
+
import { BufferGeometry, SphereGeometry as ThreeSphereGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { SphereGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
class SphereGeometryInterpreter extends Interpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class SphereGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = SphereGeometry.type;
|
|
7
7
|
createActor(descriptor) {
|
|
8
8
|
const actor = new GeometryActor(new BufferGeometry());
|
|
9
9
|
return actor;
|
|
10
10
|
}
|
|
11
11
|
setAttribute(actor, descriptor) {
|
|
12
|
-
const source = new
|
|
12
|
+
const source = new ThreeSphereGeometry(descriptor.radius, descriptor.widthSegments, descriptor.heightSegments, descriptor.phiStart, descriptor.phiLength, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
13
|
actor.object.copy(source);
|
|
14
14
|
source.dispose();
|
|
15
15
|
}
|
|
@@ -25,5 +25,4 @@ class SphereGeometryInterpreter extends Interpreter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
Interpreter.register(SphereGeometryInterpreter);
|
|
28
|
-
export { SphereGeometryInterpreter };
|
|
29
28
|
//# sourceMappingURL=SphereGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SphereGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/SphereGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SphereGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/SphereGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACtD,MAAM,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;IAEvB,WAAW,CAAC,UAA0B;QAC5C,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAoC,EAAE,UAA0B;QACzE,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;QACxM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAA0B;QAC7B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAA0B;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,WAAW,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BufferGeometry, Vector3 } from "three";
|
|
2
|
+
import { SurfaceGeometry } from "../../descriptor";
|
|
3
3
|
import { GeometryActor } from "../../actor";
|
|
4
4
|
import { ExtrudeGeometryInterpreter } from "./ExtrudeGeometryInterpreter";
|
|
5
|
-
declare class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
5
|
+
export declare class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
6
6
|
static type: string;
|
|
7
7
|
/**
|
|
8
8
|
* 经纬度转V3
|
|
@@ -11,6 +11,5 @@ declare class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
|
11
11
|
* @param radius 半径
|
|
12
12
|
*/
|
|
13
13
|
static lnglatToV3(lng: number, lat: number, radius: number): Vector3;
|
|
14
|
-
setAttribute(actor: GeometryActor<
|
|
14
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: SurfaceGeometry): void;
|
|
15
15
|
}
|
|
16
|
-
export { SurfaceGeometryInterpreter };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Spherical, Vector3 } from "three";
|
|
2
|
-
import {
|
|
2
|
+
import { SurfaceGeometry } from "../../descriptor";
|
|
3
3
|
import { ExtrudeGeometryInterpreter } from "./ExtrudeGeometryInterpreter";
|
|
4
|
-
class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
5
|
-
static type =
|
|
4
|
+
export class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
5
|
+
static type = SurfaceGeometry.type;
|
|
6
6
|
/**
|
|
7
7
|
* 经纬度转V3
|
|
8
8
|
* @param lng 经度
|
|
@@ -25,5 +25,4 @@ class SurfaceGeometryInterpreter extends ExtrudeGeometryInterpreter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
ExtrudeGeometryInterpreter.register(SurfaceGeometryInterpreter);
|
|
28
|
-
export { SurfaceGeometryInterpreter };
|
|
29
28
|
//# sourceMappingURL=SurfaceGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/SurfaceGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SurfaceGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/SurfaceGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2D,SAAS,EAAW,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7G,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,OAAO,0BAA2B,SAAQ,0BAA0B;IACtE,MAAM,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAA;IAClC;;;;;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,KAAoC,EAAE,UAA2B;QAC1E,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"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { BufferGeometry, CatmullRomCurve3
|
|
1
|
+
import { BufferGeometry, CatmullRomCurve3 } from "three";
|
|
2
2
|
import { Interpreter, JsonAsset } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { TubeGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class TubeGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class TubeGeometryInterpreter extends Interpreter {
|
|
6
6
|
static type: string;
|
|
7
|
-
protected createActor(descriptor:
|
|
8
|
-
createPath(line: JsonAsset, descriptor:
|
|
9
|
-
setAttribute(actor: GeometryActor<
|
|
10
|
-
update(descriptor:
|
|
11
|
-
free(descriptor:
|
|
7
|
+
protected createActor(descriptor: TubeGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
createPath(line: JsonAsset, descriptor: TubeGeometry): CatmullRomCurve3;
|
|
9
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: TubeGeometry): void;
|
|
10
|
+
update(descriptor: TubeGeometry): void;
|
|
11
|
+
free(descriptor: TubeGeometry): void;
|
|
12
12
|
}
|
|
13
|
-
export { TubeGeometryInterpreter };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BufferGeometry, CatmullRomCurve3, TubeGeometry, Vector3, } from "three";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BufferGeometry, CatmullRomCurve3, TubeGeometry as ThreeTubeGeometry, Vector3, } from "three";
|
|
2
|
+
import { Store, Interpreter } from "@vyr/engine";
|
|
3
|
+
import { TubeGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
5
|
import { geometry } from "../../utils";
|
|
6
|
-
class TubeGeometryInterpreter extends Interpreter {
|
|
7
|
-
static type =
|
|
6
|
+
export class TubeGeometryInterpreter extends Interpreter {
|
|
7
|
+
static type = TubeGeometry.type;
|
|
8
8
|
createActor(descriptor) {
|
|
9
9
|
const actor = new GeometryActor(new BufferGeometry());
|
|
10
10
|
return actor;
|
|
@@ -14,9 +14,9 @@ class TubeGeometryInterpreter extends Interpreter {
|
|
|
14
14
|
return new CatmullRomCurve3(points, false);
|
|
15
15
|
}
|
|
16
16
|
setAttribute(actor, descriptor) {
|
|
17
|
-
const data =
|
|
17
|
+
const data = Store.getCollection(descriptor.track);
|
|
18
18
|
const path = data.length === 0 ? new CatmullRomCurve3([new Vector3(), new Vector3()]) : this.createPath(data, descriptor);
|
|
19
|
-
const source = new
|
|
19
|
+
const source = new ThreeTubeGeometry(path, descriptor.tubularSegments, descriptor.radius, descriptor.radialSegments, descriptor.closed);
|
|
20
20
|
actor.object.copy(source);
|
|
21
21
|
source.dispose();
|
|
22
22
|
}
|
|
@@ -32,5 +32,4 @@ class TubeGeometryInterpreter extends Interpreter {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
Interpreter.register(TubeGeometryInterpreter);
|
|
35
|
-
export { TubeGeometryInterpreter };
|
|
36
35
|
//# sourceMappingURL=TubeGeometryInterpreter.js.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"TubeGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/TubeGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,IAAI,iBAAiB,EAAE,OAAO,GAAG,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,KAAK,EAAE,WAAW,EAAa,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IACpD,MAAM,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAA;IAErB,WAAW,CAAC,UAAwB;QAC1C,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,UAAU,CAAC,IAAe,EAAE,UAAwB;QAChD,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,KAAoC,EAAE,UAAwB;QACvE,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAW,UAAU,CAAC,KAAK,CAAC,CAAA;QAC5D,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,iBAAiB,CAAC,IAAI,EAAE,UAAU,CAAC,eAAe,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;QACvI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAwB;QAC3B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAwB;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAgC,UAAU,CAAC,CAAA;QACtE,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"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { AxesHelper } from 'three';
|
|
2
|
-
import {
|
|
1
|
+
import { AxesHelper as ThreeAxesHelper } from 'three';
|
|
2
|
+
import { AxesHelper } from "../../descriptor";
|
|
3
3
|
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
4
|
import { NodeActor } from '../../actor';
|
|
5
|
-
declare class AxesHelperInterpreter extends NodeInterpreter {
|
|
5
|
+
export declare class AxesHelperInterpreter extends NodeInterpreter {
|
|
6
6
|
static type: string;
|
|
7
|
-
protected createActor(descriptor:
|
|
8
|
-
setAxesHelper(actor: NodeActor<
|
|
9
|
-
update(descriptor:
|
|
10
|
-
free(descriptor:
|
|
7
|
+
protected createActor(descriptor: AxesHelper): NodeActor<ThreeAxesHelper>;
|
|
8
|
+
setAxesHelper(actor: NodeActor<ThreeAxesHelper>, descriptor: AxesHelper): void;
|
|
9
|
+
update(descriptor: AxesHelper): void;
|
|
10
|
+
free(descriptor: AxesHelper): void;
|
|
11
11
|
}
|
|
12
|
-
export { AxesHelperInterpreter };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AxesHelper } from 'three';
|
|
2
|
-
import {
|
|
1
|
+
import { AxesHelper as ThreeAxesHelper } from 'three';
|
|
2
|
+
import { AxesHelper } from "../../descriptor";
|
|
3
3
|
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
4
|
import { NodeActor } from '../../actor';
|
|
5
|
-
class AxesHelperInterpreter extends NodeInterpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class AxesHelperInterpreter extends NodeInterpreter {
|
|
6
|
+
static type = AxesHelper.type;
|
|
7
7
|
createActor(descriptor) {
|
|
8
|
-
const actor = new NodeActor(new
|
|
8
|
+
const actor = new NodeActor(new ThreeAxesHelper());
|
|
9
9
|
return actor;
|
|
10
10
|
}
|
|
11
11
|
setAxesHelper(actor, descriptor) {
|
|
@@ -28,5 +28,4 @@ class AxesHelperInterpreter extends NodeInterpreter {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
NodeInterpreter.register(AxesHelperInterpreter);
|
|
31
|
-
export { AxesHelperInterpreter };
|
|
32
31
|
//# sourceMappingURL=AxesHelperInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxesHelperInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/helper/AxesHelperInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"AxesHelperInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/helper/AxesHelperInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,OAAO,qBAAsB,SAAQ,eAAe;IACtD,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAA;IAEnB,WAAW,CAAC,UAAsB;QACxC,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,eAAe,EAAE,CAAC,CAAA;QAClD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,aAAa,CAAC,KAAiC,EAAE,UAAsB;QACnE,MAAM,IAAI,GAAG,OAAO,CAAA;QACpB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QACxC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,CAAC;YACjD,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,GAAG,KAAK,CAAA;YACvC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,GAAG,KAAK,CAAA;QAC5C,CAAC;IACL,CAAC;IAED,MAAM,CAAC,UAAsB;QACzB,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA6B,UAAU,CAAC,CAAA;QACnE,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACzC,CAAC;IAED,IAAI,CAAC,UAAsB;QACvB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA6B,UAAU,CAAC,CAAA;QACnE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,eAAe,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAA"}
|
|
@@ -25,12 +25,12 @@ export * from "./light/RectAreaLightInterpreter";
|
|
|
25
25
|
export * from "./light/SpotLightInterpreter";
|
|
26
26
|
export * from "./texture/TextureInterpreter";
|
|
27
27
|
export * from './helper/AxesHelperInterpreter';
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
28
|
+
export * from "./SceneInterpreter";
|
|
29
|
+
export * from "./Scene3DServiceInterpreter";
|
|
30
30
|
export * from "./NodeInterpreter";
|
|
31
31
|
export * from "./MeshInterpreter";
|
|
32
32
|
export * from './InstancedMeshInterpreter';
|
|
33
|
-
export * from './
|
|
33
|
+
export * from './Text3DInterpreter';
|
|
34
34
|
export * from "./PointsInterpreter";
|
|
35
35
|
export * from './ParticleInterpreter';
|
|
36
36
|
export * from "./SpriteInterpreter";
|
|
@@ -25,12 +25,12 @@ export * from "./light/RectAreaLightInterpreter";
|
|
|
25
25
|
export * from "./light/SpotLightInterpreter";
|
|
26
26
|
export * from "./texture/TextureInterpreter";
|
|
27
27
|
export * from './helper/AxesHelperInterpreter';
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
28
|
+
export * from "./SceneInterpreter";
|
|
29
|
+
export * from "./Scene3DServiceInterpreter";
|
|
30
30
|
export * from "./NodeInterpreter";
|
|
31
31
|
export * from "./MeshInterpreter";
|
|
32
32
|
export * from './InstancedMeshInterpreter';
|
|
33
|
-
export * from './
|
|
33
|
+
export * from './Text3DInterpreter';
|
|
34
34
|
export * from "./PointsInterpreter";
|
|
35
35
|
export * from './ParticleInterpreter';
|
|
36
36
|
export * from "./SpriteInterpreter";
|
|
@@ -1 +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
|
|
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,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,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"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AmbientLight } from "three";
|
|
1
|
+
import { AmbientLight as ThreeAmbientLight } from "three";
|
|
2
2
|
import { PickupObject } from "@vyr/engine";
|
|
3
3
|
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
-
import {
|
|
4
|
+
import { AmbientLight } from "../../descriptor";
|
|
5
5
|
import { NodeActor } from "../../actor";
|
|
6
|
-
declare class AmbientLightInterpreter extends NodeInterpreter {
|
|
6
|
+
export declare class AmbientLightInterpreter extends NodeInterpreter {
|
|
7
7
|
static type: string;
|
|
8
|
-
protected createActor(descriptor:
|
|
9
|
-
setLight(actor: NodeActor<
|
|
10
|
-
update(descriptor:
|
|
11
|
-
pickup(descriptor:
|
|
8
|
+
protected createActor(descriptor: AmbientLight): NodeActor<ThreeAmbientLight>;
|
|
9
|
+
setLight(actor: NodeActor<ThreeAmbientLight>, descriptor: AmbientLight): void;
|
|
10
|
+
update(descriptor: AmbientLight): void;
|
|
11
|
+
pickup(descriptor: AmbientLight, result: PickupObject[]): void;
|
|
12
12
|
}
|
|
13
|
-
export { AmbientLightInterpreter };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AmbientLight } from "three";
|
|
1
|
+
import { AmbientLight as ThreeAmbientLight } from "three";
|
|
2
2
|
import { NodeInterpreter } from "../NodeInterpreter";
|
|
3
|
-
import {
|
|
3
|
+
import { AmbientLight } from "../../descriptor";
|
|
4
4
|
import { NodeActor } from "../../actor";
|
|
5
|
-
class AmbientLightInterpreter extends NodeInterpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class AmbientLightInterpreter extends NodeInterpreter {
|
|
6
|
+
static type = AmbientLight.type;
|
|
7
7
|
createActor(descriptor) {
|
|
8
|
-
const actor = new NodeActor(new
|
|
8
|
+
const actor = new NodeActor(new ThreeAmbientLight());
|
|
9
9
|
return actor;
|
|
10
10
|
}
|
|
11
11
|
setLight(actor, descriptor) {
|
|
12
|
-
actor.object.color.
|
|
12
|
+
actor.object.color.setStyle(descriptor.color);
|
|
13
13
|
actor.object.intensity = descriptor.intensity;
|
|
14
14
|
}
|
|
15
15
|
update(descriptor) {
|
|
@@ -20,5 +20,4 @@ class AmbientLightInterpreter extends NodeInterpreter {
|
|
|
20
20
|
pickup(descriptor, result) { }
|
|
21
21
|
}
|
|
22
22
|
NodeInterpreter.register(AmbientLightInterpreter);
|
|
23
|
-
export { AmbientLightInterpreter };
|
|
24
23
|
//# sourceMappingURL=AmbientLightInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmbientLightInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/light/AmbientLightInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AmbientLightInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/light/AmbientLightInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,OAAO,uBAAwB,SAAQ,eAAe;IACxD,MAAM,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAA;IAErB,WAAW,CAAC,UAAwB;QAC1C,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAA;QACpD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,QAAQ,CAAC,KAAmC,EAAE,UAAwB;QAClE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAC7C,KAAK,CAAC,MAAM,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAA;IACjD,CAAC;IAED,MAAM,CAAC,UAAwB;QAC3B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA+B,UAAU,CAAC,CAAA;QACrE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,UAAwB,EAAE,MAAsB,IAAI,CAAC;;AAEhE,eAAe,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { DirectionalLight, Object3D } from "three";
|
|
1
|
+
import { DirectionalLight as ThreeDirectionalLight, Object3D } from "three";
|
|
2
2
|
import { PickupObject } from "@vyr/engine";
|
|
3
3
|
import { NodeInterpreter } from "../NodeInterpreter";
|
|
4
|
-
import {
|
|
4
|
+
import { DirectionalLight } from "../../descriptor";
|
|
5
5
|
import { NodeActor } from "../../actor";
|
|
6
|
-
declare class DirectionalLightInterpreter extends NodeInterpreter {
|
|
6
|
+
export declare class DirectionalLightInterpreter extends NodeInterpreter {
|
|
7
7
|
static type: string;
|
|
8
8
|
target: Object3D | null;
|
|
9
|
-
protected createActor(descriptor:
|
|
10
|
-
setLight(actor: NodeActor<
|
|
11
|
-
setTarget(actor: NodeActor<
|
|
12
|
-
update(descriptor:
|
|
13
|
-
free(descriptor:
|
|
14
|
-
pickup(descriptor:
|
|
9
|
+
protected createActor(descriptor: DirectionalLight): NodeActor<ThreeDirectionalLight>;
|
|
10
|
+
setLight(actor: NodeActor<ThreeDirectionalLight>, descriptor: DirectionalLight): void;
|
|
11
|
+
setTarget(actor: NodeActor<ThreeDirectionalLight>, descriptor: DirectionalLight): void;
|
|
12
|
+
update(descriptor: DirectionalLight): void;
|
|
13
|
+
free(descriptor: DirectionalLight): void;
|
|
14
|
+
pickup(descriptor: DirectionalLight, result: PickupObject[]): void;
|
|
15
15
|
}
|
|
16
|
-
export { DirectionalLightInterpreter };
|