@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Raycaster, Vector2 } from 'three';
|
|
2
|
+
import { Descriptor, Interpreter, Service, ServiceInterpreter } from '@vyr/engine';
|
|
3
|
+
import { Scene3DService } from '../descriptor';
|
|
4
|
+
import { Scene3DServiceActor } from '../actor';
|
|
5
|
+
import { PickupNode } from './NodeInterpreter';
|
|
6
|
+
export declare class Scene3DServiceInterpreter extends Interpreter implements ServiceInterpreter {
|
|
7
|
+
static type: string;
|
|
8
|
+
static ray: Raycaster;
|
|
9
|
+
static direcation: Vector2;
|
|
10
|
+
private _unlisten;
|
|
11
|
+
protected createActor(descriptor: Scene3DService): Scene3DServiceActor;
|
|
12
|
+
protected setSize(actor: Scene3DServiceActor): DOMRect;
|
|
13
|
+
protected resize: () => void;
|
|
14
|
+
update(descriptor: Scene3DService): void;
|
|
15
|
+
mount(descriptor: Scene3DService, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
16
|
+
unmount(descriptor: Scene3DService, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
17
|
+
free(descriptor: Scene3DService): void;
|
|
18
|
+
clear(service: Service): void;
|
|
19
|
+
beforeRender(service: Scene3DService): void;
|
|
20
|
+
render(service: Scene3DService): void;
|
|
21
|
+
afterRender(service: Service): void;
|
|
22
|
+
beforePickup(mouse: {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}, rect: DOMRect): void;
|
|
26
|
+
orderBy(result: PickupNode[]): void;
|
|
27
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { PerspectiveCamera, Raycaster, Vector2
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
class
|
|
6
|
-
static type =
|
|
1
|
+
import { PerspectiveCamera as ThreePerspectiveCamera, Raycaster, Vector2 } from 'three';
|
|
2
|
+
import { Descriptor, HTMLActor, Interpreter } from '@vyr/engine';
|
|
3
|
+
import { Scene3DService } from '../descriptor';
|
|
4
|
+
import { Scene3DServiceActor } from '../actor';
|
|
5
|
+
export class Scene3DServiceInterpreter extends Interpreter {
|
|
6
|
+
static type = Scene3DService.type;
|
|
7
7
|
static ray = new Raycaster();
|
|
8
8
|
static direcation = new Vector2();
|
|
9
9
|
_unlisten = -1;
|
|
10
10
|
createActor(descriptor) {
|
|
11
|
-
const actor = new
|
|
11
|
+
const actor = new Scene3DServiceActor(descriptor.uuid);
|
|
12
12
|
return actor;
|
|
13
13
|
}
|
|
14
14
|
setSize(actor) {
|
|
@@ -36,7 +36,6 @@ class SceneServiceInterpreter extends ServiceInterpreter {
|
|
|
36
36
|
mount(descriptor, parentInterpreter, parentDescriptor) {
|
|
37
37
|
super.mount(descriptor, parentInterpreter, parentDescriptor);
|
|
38
38
|
const actor = this.getActor(descriptor);
|
|
39
|
-
actor.clearStyleClass(actor.pipeline.domElement);
|
|
40
39
|
const parenActor = parentInterpreter.getActor(parentDescriptor);
|
|
41
40
|
if (parenActor instanceof HTMLActor)
|
|
42
41
|
parenActor.add(actor);
|
|
@@ -64,13 +63,13 @@ class SceneServiceInterpreter extends ServiceInterpreter {
|
|
|
64
63
|
actor.scene.updateMatrixWorld();
|
|
65
64
|
}
|
|
66
65
|
render(service) {
|
|
67
|
-
const cameraDescriptor =
|
|
66
|
+
const cameraDescriptor = Descriptor.get(this.graphics.scene.camera);
|
|
68
67
|
if (cameraDescriptor === null)
|
|
69
68
|
return;
|
|
70
69
|
const actor = this.getActor(service);
|
|
71
70
|
const cameraInterpreter = this.graphics.getInterpreter(cameraDescriptor);
|
|
72
71
|
const camera = cameraInterpreter.getActor(cameraDescriptor);
|
|
73
|
-
if (camera.object instanceof
|
|
72
|
+
if (camera.object instanceof ThreePerspectiveCamera) {
|
|
74
73
|
const aspect = actor.pipeline.domElement.clientWidth / actor.pipeline.domElement.clientHeight;
|
|
75
74
|
if (aspect !== camera.object.aspect) {
|
|
76
75
|
camera.object.aspect = aspect;
|
|
@@ -79,17 +78,17 @@ class SceneServiceInterpreter extends ServiceInterpreter {
|
|
|
79
78
|
}
|
|
80
79
|
actor.render(service, camera);
|
|
81
80
|
}
|
|
81
|
+
afterRender(service) { }
|
|
82
82
|
beforePickup(mouse, rect) {
|
|
83
|
-
const currentCamera =
|
|
83
|
+
const currentCamera = Descriptor.get(this.graphics.scene.camera);
|
|
84
84
|
const camera = this.graphics.getInterpreter(currentCamera).getActor(currentCamera);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
Scene3DServiceInterpreter.direcation.x = (mouse.x / rect.width) * 2 - 1;
|
|
86
|
+
Scene3DServiceInterpreter.direcation.y = -(mouse.y / rect.height) * 2 + 1;
|
|
87
|
+
Scene3DServiceInterpreter.ray.setFromCamera(Scene3DServiceInterpreter.direcation, camera.object);
|
|
88
88
|
}
|
|
89
89
|
orderBy(result) {
|
|
90
90
|
result.sort((a, b) => a.minDistance - b.minDistance);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
//# sourceMappingURL=SceneServiceInterpreter.js.map
|
|
93
|
+
Interpreter.register(Scene3DServiceInterpreter);
|
|
94
|
+
//# sourceMappingURL=Scene3DServiceInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scene3DServiceInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/Scene3DServiceInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,SAAS,EAAE,OAAO,EAAyB,MAAM,OAAO,CAAA;AAC9G,OAAO,EAA0B,UAAU,EAAE,SAAS,EAAE,WAAW,EAA+B,MAAM,aAAa,CAAA;AACrH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAa,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAGzD,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACtD,MAAM,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;IAEjC,MAAM,CAAC,GAAG,GAAG,IAAI,SAAS,EAAE,CAAA;IAC5B,MAAM,CAAC,UAAU,GAAG,IAAI,OAAO,EAAE,CAAA;IAEzB,SAAS,GAAG,CAAC,CAAC,CAAA;IACZ,WAAW,CAAC,UAA0B;QAC5C,MAAM,KAAK,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;QACtD,OAAO,KAAK,CAAA;IAChB,CAAC;IAES,OAAO,CAAC,KAA0B;QACxC,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CA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,CAAyB,aAAa,CAAC,CAAA;QAE1G,yBAAyB,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACvE,yBAAyB,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QAEzE,yBAAyB,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IACpG,CAAC;IAED,OAAO,CAAC,MAAoB;QACxB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,CAAA;IACxD,CAAC;;AAEL,WAAW,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnimationMixer } from 'three';
|
|
2
|
+
import { SceneInterpreter as BaseSceneInterpreter, Scene, TickArgs } from '@vyr/engine';
|
|
3
|
+
export declare class SceneInterpreter extends BaseSceneInterpreter {
|
|
4
|
+
readonly mixer: AnimationMixer;
|
|
5
|
+
updateMixer: (args: TickArgs) => void;
|
|
6
|
+
install(descriptor: Scene): void;
|
|
7
|
+
uninstall(descriptor: Scene): void;
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnimationMixer, Object3D } from 'three';
|
|
2
|
-
import {
|
|
3
|
-
class
|
|
2
|
+
import { SceneInterpreter as BaseSceneInterpreter } from '@vyr/engine';
|
|
3
|
+
export class SceneInterpreter extends BaseSceneInterpreter {
|
|
4
4
|
mixer = new AnimationMixer(new Object3D());
|
|
5
5
|
updateMixer = (args) => {
|
|
6
6
|
this.mixer.update(args.delta);
|
|
@@ -14,6 +14,5 @@ class ServiceSchedulerInterpreter extends SchedulerInterpreter {
|
|
|
14
14
|
super.uninstall(descriptor);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=ServiceSchedulerInterpreter.js.map
|
|
17
|
+
BaseSceneInterpreter.register(SceneInterpreter);
|
|
18
|
+
//# sourceMappingURL=SceneInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SceneInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/SceneInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,gBAAgB,IAAI,oBAAoB,EAAmB,MAAM,aAAa,CAAA;AAEvF,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IAC7C,KAAK,GAAG,IAAI,cAAc,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAA;IAEnD,WAAW,GAAG,CAAC,IAAc,EAAE,EAAE;QAC7B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACjC,CAAC,CAAA;IAED,OAAO,CAAC,UAAiB;QACrB,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;QACzB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;IACjE,CAAC;IAED,SAAS,CAAC,UAAiB;QACvB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;QAC/D,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;IAC/B,CAAC;CACJ;AACD,oBAAoB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAA"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Sprite, SpriteMaterial } from "three";
|
|
2
|
-
import {
|
|
1
|
+
import { Sprite as ThreeSprite, SpriteMaterial } from "three";
|
|
2
|
+
import { Sprite } from "../descriptor";
|
|
3
3
|
import { NodeInterpreter } from "./NodeInterpreter";
|
|
4
4
|
import { NodeActor } from "../actor";
|
|
5
|
-
declare class SpriteInterpreter extends NodeInterpreter {
|
|
5
|
+
export declare class SpriteInterpreter extends NodeInterpreter {
|
|
6
6
|
private static _material;
|
|
7
7
|
static get material(): SpriteMaterial;
|
|
8
8
|
static type: string;
|
|
9
|
-
protected createActor(descriptor:
|
|
9
|
+
protected createActor(descriptor: Sprite): NodeActor<ThreeSprite<import("three").Object3DEventMap>>;
|
|
10
10
|
useMaterial(material: string): SpriteMaterial;
|
|
11
|
-
getMaterial(descriptor:
|
|
12
|
-
update(descriptor:
|
|
11
|
+
getMaterial(descriptor: Sprite): SpriteMaterial;
|
|
12
|
+
update(descriptor: Sprite): void;
|
|
13
13
|
}
|
|
14
|
-
export { SpriteInterpreter };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Sprite, SpriteMaterial } from "three";
|
|
1
|
+
import { Sprite as ThreeSprite, SpriteMaterial } from "three";
|
|
2
2
|
import { Asset } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { Sprite } from "../descriptor";
|
|
4
4
|
import { NodeInterpreter } from "./NodeInterpreter";
|
|
5
5
|
import { NodeActor } from "../actor";
|
|
6
|
-
class SpriteInterpreter extends NodeInterpreter {
|
|
6
|
+
export class SpriteInterpreter extends NodeInterpreter {
|
|
7
7
|
static _material = null;
|
|
8
8
|
static get material() {
|
|
9
9
|
if (this._material === null) {
|
|
@@ -11,9 +11,9 @@ class SpriteInterpreter extends NodeInterpreter {
|
|
|
11
11
|
}
|
|
12
12
|
return this._material;
|
|
13
13
|
}
|
|
14
|
-
static type =
|
|
14
|
+
static type = Sprite.type;
|
|
15
15
|
createActor(descriptor) {
|
|
16
|
-
const actor = new NodeActor(new
|
|
16
|
+
const actor = new NodeActor(new ThreeSprite());
|
|
17
17
|
return actor;
|
|
18
18
|
}
|
|
19
19
|
useMaterial(material) {
|
|
@@ -34,5 +34,4 @@ class SpriteInterpreter extends NodeInterpreter {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
NodeInterpreter.register(SpriteInterpreter);
|
|
37
|
-
export { SpriteInterpreter };
|
|
38
37
|
//# sourceMappingURL=SpriteInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpriteInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/SpriteInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SpriteInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/SpriteInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAiB,SAAS,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,OAAO,iBAAkB,SAAQ,eAAe;IAC1C,MAAM,CAAC,SAAS,GAA0B,IAAI,CAAA;IAEtD,MAAM,KAAK,QAAQ;QACf,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;YAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,EAAE,CAAA;QACzC,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAA;IACzB,CAAC;IAED,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;IAEf,WAAW,CAAC,UAAkB;QACpC,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,WAAW,EAAE,CAAC,CAAA;QAC9C,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,WAAW,CAAC,QAAgB;QACxB,MAAM,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QAC9C,IAAI,kBAAkB,KAAK,IAAI;YAAE,OAAO,iBAAiB,CAAC,QAAQ,CAAA;QAElE,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAA;QACpE,MAAM,KAAK,GAAG,WAAW,CAAC,QAAQ,CAAgB,kBAAkB,CAAC,CAAA;QACrE,OAAO,KAAK,CAAC,MAAM,YAAY,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAA;IAC7F,CAAC;IAED,WAAW,CAAC,UAAkB;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAChD,CAAC;IAED,MAAM,CAAC,UAAkB;QACrB,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAyB,UAAU,CAAC,CAAA;QAC/D,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;IACxD,CAAC;;AAEL,eAAe,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BufferGeometry, Mesh } from "three";
|
|
2
|
+
import { Text3D } from "../descriptor";
|
|
3
|
+
import { NodeInterpreter } from "./NodeInterpreter";
|
|
4
|
+
import { NodeActor } from "../actor";
|
|
5
|
+
export declare class Text3DInterpreter extends NodeInterpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
private _geometry;
|
|
8
|
+
private _cacheKey;
|
|
9
|
+
protected createActor(descriptor: Text3D): NodeActor<Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material, import("three").Object3DEventMap>>;
|
|
10
|
+
private _fastHash;
|
|
11
|
+
getCacheKey(descriptor: Text3D): string;
|
|
12
|
+
setAttribute(descriptor: Text3D): void;
|
|
13
|
+
update(descriptor: Text3D): void;
|
|
14
|
+
free(descriptor: Text3D): void;
|
|
15
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BufferGeometry, Mesh } from "three";
|
|
2
2
|
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
3
3
|
import { Asset } from "@vyr/engine";
|
|
4
|
-
import {
|
|
4
|
+
import { Text3D } from "../descriptor";
|
|
5
5
|
import { NodeInterpreter } from "./NodeInterpreter";
|
|
6
6
|
import { NodeActor } from "../actor";
|
|
7
7
|
import { geometry, TextUtils, material } from "../utils";
|
|
8
|
-
class
|
|
9
|
-
static type =
|
|
8
|
+
export class Text3DInterpreter extends NodeInterpreter {
|
|
9
|
+
static type = Text3D.type;
|
|
10
10
|
_geometry = new BufferGeometry();
|
|
11
11
|
_cacheKey = '';
|
|
12
12
|
createActor(descriptor) {
|
|
@@ -63,6 +63,5 @@ class TextInterpreter extends NodeInterpreter {
|
|
|
63
63
|
super.free(descriptor);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
NodeInterpreter.register(
|
|
67
|
-
|
|
68
|
-
//# sourceMappingURL=TextInterpreter.js.map
|
|
66
|
+
NodeInterpreter.register(Text3DInterpreter);
|
|
67
|
+
//# sourceMappingURL=Text3DInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text3DInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/Text3DInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAA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,CAAC;YAC9B,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;YAC7B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;QAC7B,CAAC;QACD,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACpF,CAAC;IAED,IAAI,CAAC,UAAkB;QACnB,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAA;QACxB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,eAAe,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Descriptor, Interpreter } from "@vyr/engine";
|
|
2
|
-
import {
|
|
2
|
+
import { TransformController } from '../descriptor';
|
|
3
3
|
import { TransformControllerActor } from "../actor";
|
|
4
|
-
declare class TransformControllerInterpreter extends Interpreter {
|
|
4
|
+
export declare class TransformControllerInterpreter extends Interpreter {
|
|
5
5
|
static type: string;
|
|
6
|
-
protected createActor(descriptor:
|
|
7
|
-
update(descriptor:
|
|
8
|
-
mount(descriptor:
|
|
9
|
-
unmount(descriptor:
|
|
10
|
-
free(descriptor:
|
|
6
|
+
protected createActor(descriptor: TransformController): TransformControllerActor;
|
|
7
|
+
update(descriptor: TransformController): void;
|
|
8
|
+
mount(descriptor: TransformController, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
9
|
+
unmount(descriptor: TransformController, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
10
|
+
free(descriptor: TransformController): void;
|
|
11
11
|
}
|
|
12
|
-
export { TransformControllerInterpreter };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Interpreter } from "@vyr/engine";
|
|
2
|
-
import {
|
|
2
|
+
import { TransformController } from '../descriptor';
|
|
3
3
|
import { TransformControllerActor } from "../actor";
|
|
4
|
-
class TransformControllerInterpreter extends Interpreter {
|
|
5
|
-
static type =
|
|
4
|
+
export class TransformControllerInterpreter extends Interpreter {
|
|
5
|
+
static type = TransformController.type;
|
|
6
6
|
createActor(descriptor) {
|
|
7
7
|
const actor = new TransformControllerActor();
|
|
8
8
|
return actor;
|
|
@@ -32,5 +32,4 @@ class TransformControllerInterpreter extends Interpreter {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
Interpreter.register(TransformControllerInterpreter);
|
|
35
|
-
export { TransformControllerInterpreter };
|
|
36
35
|
//# sourceMappingURL=TransformControllerInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransformControllerInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/TransformControllerInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TransformControllerInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/TransformControllerInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAa,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAE9D,MAAM,OAAO,8BAA+B,SAAQ,WAAW;IAC7D,MAAM,CAAC,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAA;IAE5B,WAAW,CAAC,UAA+B;QACnD,MAAM,KAAK,GAAG,IAAI,wBAAwB,EAAE,CAAA;QAC5C,OAAO,KAAK,CAAA;IACd,CAAC;IAED,MAAM,CAAC,UAA+B;QACpC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA2B,UAAU,CAAC,CAAA;QACjE,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACzC,CAAC;IAED,KAAK,CAAC,UAA+B,EAAE,iBAA8B,EAAE,gBAA4B;QACjG,KAAK,CAAC,KAAK,CAAC,UAAU,EAAG,iBAAiB,EAAE,gBAAgB,CAAC,CAAA;QAC7D,MAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,CAAY,gBAAgB,CAAC,CAAA;QAC1E,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA2B,UAAU,CAAC,CAAA;QACjE,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACvB,CAAC;IAED,OAAO,CAAC,UAA+B,EAAE,iBAA8B,EAAE,gBAA4B;QACnG,MAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,CAAY,gBAAgB,CAAC,CAAA;QAC1E,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA2B,UAAU,CAAC,CAAA;QACjE,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACxB,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAE7B,KAAK,CAAC,OAAO,CAAC,UAAU,EAAG,iBAAiB,EAAE,gBAAgB,CAAC,CAAA;IACjE,CAAC;IAED,IAAI,CAAC,UAA+B;QAClC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA2B,UAAU,CAAC,CAAA;QACjE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC5B,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACxB,CAAC;;AAEH,WAAW,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AnimationAction, AnimationMixer } from 'three';
|
|
1
|
+
import { AnimationAction as ThreeAnimationAction, AnimationMixer } from 'three';
|
|
2
2
|
import { Descriptor, Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
4
|
-
declare class AnimationActionInterpreter extends Interpreter {
|
|
3
|
+
import { AnimationAction } from "../../descriptor";
|
|
4
|
+
export declare class AnimationActionInterpreter extends Interpreter {
|
|
5
5
|
static type: string;
|
|
6
|
-
animationAction:
|
|
6
|
+
animationAction: ThreeAnimationAction | null;
|
|
7
7
|
freeAction(mixer: AnimationMixer): void;
|
|
8
|
-
setProperty(action:
|
|
9
|
-
update(descriptor:
|
|
10
|
-
mount(descriptor:
|
|
11
|
-
unmount(descriptor:
|
|
8
|
+
setProperty(action: ThreeAnimationAction, descriptor: AnimationAction): void;
|
|
9
|
+
update(descriptor: AnimationAction): void;
|
|
10
|
+
mount(descriptor: AnimationAction, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
11
|
+
unmount(descriptor: AnimationAction, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
12
12
|
}
|
|
13
|
-
export { AnimationActionInterpreter };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Interpreter } from "@vyr/engine";
|
|
2
|
-
import {
|
|
2
|
+
import { AnimationAction, Model } from "../../descriptor";
|
|
3
3
|
import { ModelInterpreter } from '../ModelInterpreter';
|
|
4
|
-
class AnimationActionInterpreter extends Interpreter {
|
|
5
|
-
static type =
|
|
4
|
+
export class AnimationActionInterpreter extends Interpreter {
|
|
5
|
+
static type = AnimationAction.type;
|
|
6
6
|
animationAction = null;
|
|
7
7
|
freeAction(mixer) {
|
|
8
8
|
if (this.animationAction) {
|
|
@@ -25,9 +25,9 @@ class AnimationActionInterpreter extends Interpreter {
|
|
|
25
25
|
}
|
|
26
26
|
update(descriptor) {
|
|
27
27
|
super.update(descriptor);
|
|
28
|
-
const
|
|
29
|
-
this.freeAction(
|
|
30
|
-
const parentDescriptor =
|
|
28
|
+
const scene = this.graphics.getInterpreter(this.graphics.scene);
|
|
29
|
+
this.freeAction(scene.mixer);
|
|
30
|
+
const parentDescriptor = Model.get(this.unit.parent);
|
|
31
31
|
const parentInterpreter = this.graphics.getInterpreter(parentDescriptor);
|
|
32
32
|
if (parentInterpreter instanceof ModelInterpreter) {
|
|
33
33
|
const model = parentInterpreter.wrapper.children[0];
|
|
@@ -35,7 +35,7 @@ class AnimationActionInterpreter extends Interpreter {
|
|
|
35
35
|
return;
|
|
36
36
|
for (const clip of model.animations) {
|
|
37
37
|
if (clip.name === descriptor.clip) {
|
|
38
|
-
this.animationAction =
|
|
38
|
+
this.animationAction = scene.mixer.clipAction(clip, model);
|
|
39
39
|
this.animationAction.clampWhenFinished = true;
|
|
40
40
|
this.setProperty(this.animationAction, descriptor);
|
|
41
41
|
}
|
|
@@ -47,11 +47,10 @@ class AnimationActionInterpreter extends Interpreter {
|
|
|
47
47
|
this.getActor(descriptor);
|
|
48
48
|
}
|
|
49
49
|
unmount(descriptor, parentInterpreter, parentDescriptor) {
|
|
50
|
-
const
|
|
51
|
-
this.freeAction(
|
|
50
|
+
const scene = this.graphics.getInterpreter(this.graphics.scene);
|
|
51
|
+
this.freeAction(scene.mixer);
|
|
52
52
|
super.unmount(descriptor, parentInterpreter, parentDescriptor);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
Interpreter.register(AnimationActionInterpreter);
|
|
56
|
-
export { AnimationActionInterpreter };
|
|
57
56
|
//# sourceMappingURL=AnimationActionInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationActionInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/animation/AnimationActionInterpreter.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,WAAW,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AnimationActionInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/animation/AnimationActionInterpreter.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,WAAW,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAA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AAC,KAAK,CAAC,CAAA;QACjF,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC5B,KAAK,CAAC,OAAO,CAAC,UAAU,EAAG,iBAAiB,EAAE,gBAAgB,CAAC,CAAA;IACnE,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 { BoxGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class BoxGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class BoxGeometryInterpreter 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: BoxGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: BoxGeometry): void;
|
|
9
|
+
update(descriptor: BoxGeometry): void;
|
|
10
|
+
free(descriptor: BoxGeometry): void;
|
|
11
11
|
}
|
|
12
|
-
export { BoxGeometryInterpreter };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BufferGeometry, BoxGeometry } from "three";
|
|
1
|
+
import { BufferGeometry, BoxGeometry as ThreeBoxGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { BoxGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
class BoxGeometryInterpreter extends Interpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class BoxGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = BoxGeometry.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 ThreeBoxGeometry(descriptor.width, descriptor.height, descriptor.depth, descriptor.widthSegments, descriptor.heightSegments, descriptor.depthSegments);
|
|
13
13
|
actor.object.copy(source);
|
|
14
14
|
source.dispose();
|
|
15
15
|
}
|
|
@@ -25,5 +25,4 @@ class BoxGeometryInterpreter extends Interpreter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
Interpreter.register(BoxGeometryInterpreter);
|
|
28
|
-
export { BoxGeometryInterpreter };
|
|
29
28
|
//# sourceMappingURL=BoxGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoxGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/BoxGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BoxGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/BoxGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACnD,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAA;IAEpB,WAAW,CAAC,UAAuB;QACzC,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAoC,EAAE,UAAuB;QACtE,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;QACzK,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAuB;QAC1B,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,UAAuB;QACxB,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,sBAAsB,CAAC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { BufferGeometry, BufferGeometryLoader } from "three";
|
|
1
|
+
import { BufferGeometry as ThreeBufferGeometry, BufferGeometryLoader } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { BufferGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class BufferGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class BufferGeometryInterpreter extends Interpreter {
|
|
6
6
|
static type: string;
|
|
7
7
|
static get loader(): BufferGeometryLoader;
|
|
8
|
-
protected createActor(descriptor:
|
|
9
|
-
setAttribute(actor: GeometryActor<
|
|
10
|
-
update(descriptor:
|
|
11
|
-
free(descriptor:
|
|
8
|
+
protected createActor(descriptor: BufferGeometry): GeometryActor<ThreeBufferGeometry<import("three").NormalBufferAttributes>>;
|
|
9
|
+
setAttribute(actor: GeometryActor<ThreeBufferGeometry>, descriptor: BufferGeometry): void;
|
|
10
|
+
update(descriptor: BufferGeometry): void;
|
|
11
|
+
free(descriptor: BufferGeometry): void;
|
|
12
12
|
}
|
|
13
|
-
export { BufferGeometryInterpreter };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BufferGeometry, BufferGeometryLoader } from "three";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BufferGeometry as ThreeBufferGeometry, BufferGeometryLoader } from "three";
|
|
2
|
+
import { Store, Interpreter } from "@vyr/engine";
|
|
3
|
+
import { BufferGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
5
|
let _loader = null;
|
|
6
|
-
class BufferGeometryInterpreter extends Interpreter {
|
|
7
|
-
static type =
|
|
6
|
+
export class BufferGeometryInterpreter extends Interpreter {
|
|
7
|
+
static type = BufferGeometry.type;
|
|
8
8
|
static get loader() {
|
|
9
9
|
if (_loader === null) {
|
|
10
10
|
_loader = new BufferGeometryLoader();
|
|
@@ -12,14 +12,14 @@ class BufferGeometryInterpreter extends Interpreter {
|
|
|
12
12
|
return _loader;
|
|
13
13
|
}
|
|
14
14
|
createActor(descriptor) {
|
|
15
|
-
const actor = new GeometryActor(new
|
|
15
|
+
const actor = new GeometryActor(new ThreeBufferGeometry());
|
|
16
16
|
return actor;
|
|
17
17
|
}
|
|
18
18
|
setAttribute(actor, descriptor) {
|
|
19
|
-
const buffer =
|
|
19
|
+
const buffer = Store.getData(descriptor.buffer);
|
|
20
20
|
let source;
|
|
21
21
|
if (buffer === null) {
|
|
22
|
-
source = new
|
|
22
|
+
source = new ThreeBufferGeometry();
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
25
|
source = BufferGeometryInterpreter.loader.parse(buffer);
|
|
@@ -39,5 +39,4 @@ class BufferGeometryInterpreter extends Interpreter {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
Interpreter.register(BufferGeometryInterpreter);
|
|
42
|
-
export { BufferGeometryInterpreter };
|
|
43
42
|
//# sourceMappingURL=BufferGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BufferGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/BufferGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BufferGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/BufferGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,IAAI,OAAO,GAAgC,IAAI,CAAA;AAC/C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACtD,MAAM,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;IACjC,MAAM,KAAK,MAAM;QACb,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,GAAG,IAAI,oBAAoB,EAAE,CAAA;QACxC,CAAC;QACD,OAAO,OAAO,CAAA;IAClB,CAAC;IAES,WAAW,CAAC,UAA0B;QAC5C,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAA;QAC1D,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAyC,EAAE,UAA0B;QAC9E,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QAC/C,IAAI,MAAM,CAAA;QACV,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAClB,MAAM,GAAG,IAAI,mBAAmB,EAAE,CAAA;QACtC,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,yBAAyB,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAC3D,CAAC;QACD,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,CAAqC,UAAU,CAAC,CAAA;QAC3E,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAA0B;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAqC,UAAU,CAAC,CAAA;QAC3E,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,12 +1,11 @@
|
|
|
1
|
-
import { BufferGeometry
|
|
1
|
+
import { BufferGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { CircleGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class CircleGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class CircleGeometryInterpreter 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: CircleGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: CircleGeometry): void;
|
|
9
|
+
update(descriptor: CircleGeometry): void;
|
|
10
|
+
free(descriptor: CircleGeometry): void;
|
|
11
11
|
}
|
|
12
|
-
export { CircleGeometryInterpreter };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BufferGeometry, CircleGeometry } from "three";
|
|
1
|
+
import { BufferGeometry, CircleGeometry as ThreeCircleGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { CircleGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
class CircleGeometryInterpreter extends Interpreter {
|
|
6
|
-
static type =
|
|
5
|
+
export class CircleGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = CircleGeometry.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 ThreeCircleGeometry(descriptor.radius, descriptor.segments, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
13
|
actor.object.copy(source);
|
|
14
14
|
source.dispose();
|
|
15
15
|
}
|
|
@@ -25,5 +25,4 @@ class CircleGeometryInterpreter extends Interpreter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
Interpreter.register(CircleGeometryInterpreter);
|
|
28
|
-
export { CircleGeometryInterpreter };
|
|
29
28
|
//# sourceMappingURL=CircleGeometryInterpreter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircleGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/CircleGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CircleGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/CircleGeometryInterpreter.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,QAAQ,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;QAC7H,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,12 +1,11 @@
|
|
|
1
|
-
import { BufferGeometry
|
|
1
|
+
import { BufferGeometry } from "three";
|
|
2
2
|
import { Interpreter } from "@vyr/engine";
|
|
3
|
-
import {
|
|
3
|
+
import { CylinderGeometry } from "../../descriptor";
|
|
4
4
|
import { GeometryActor } from "../../actor";
|
|
5
|
-
declare class CylinderGeometryInterpreter extends Interpreter {
|
|
5
|
+
export declare class CylinderGeometryInterpreter 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: CylinderGeometry): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: CylinderGeometry): void;
|
|
9
|
+
update(descriptor: CylinderGeometry): void;
|
|
10
|
+
free(descriptor: CylinderGeometry): void;
|
|
11
11
|
}
|
|
12
|
-
export { CylinderGeometryInterpreter };
|