@vyr/three 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/actor/ComposerServiceActor.d.ts +23 -0
- package/build/actor/ComposerServiceActor.js +93 -0
- package/build/actor/ComposerServiceActor.js.map +1 -0
- package/build/actor/GeometryActor.d.ts +7 -0
- package/build/actor/GeometryActor.js +10 -0
- package/build/actor/GeometryActor.js.map +1 -0
- package/build/actor/HTMLConvertActor.d.ts +14 -0
- package/build/actor/HTMLConvertActor.js +52 -0
- package/build/actor/HTMLConvertActor.js.map +1 -0
- package/build/actor/MaterialActor.d.ts +7 -0
- package/build/actor/MaterialActor.js +10 -0
- package/build/actor/MaterialActor.js.map +1 -0
- package/build/actor/NodeActor.d.ts +9 -0
- package/build/actor/NodeActor.js +21 -0
- package/build/actor/NodeActor.js.map +1 -0
- package/build/actor/OrbitControllerActor.d.ts +20 -0
- package/build/actor/OrbitControllerActor.js +103 -0
- package/build/actor/OrbitControllerActor.js.map +1 -0
- package/build/actor/PassActor.d.ts +8 -0
- package/build/actor/PassActor.js +16 -0
- package/build/actor/PassActor.js.map +1 -0
- package/build/actor/SceneServiceActor.d.ts +21 -0
- package/build/actor/SceneServiceActor.js +112 -0
- package/build/actor/SceneServiceActor.js.map +1 -0
- package/build/actor/TextureActor.d.ts +7 -0
- package/build/actor/TextureActor.js +10 -0
- package/build/actor/TextureActor.js.map +1 -0
- package/build/actor/TransformControllerActor.d.ts +10 -0
- package/build/actor/TransformControllerActor.js +19 -0
- package/build/actor/TransformControllerActor.js.map +1 -0
- package/build/actor/index.d.ts +8 -0
- package/build/actor/index.js +11 -0
- package/build/actor/index.js.map +1 -0
- package/build/asset/index.d.ts +1 -0
- package/build/asset/index.js +219 -0
- package/build/asset/index.js.map +1 -0
- package/build/controls/CameraControls.d.ts +647 -0
- package/build/controls/CameraControls.js +2332 -0
- package/build/controls/CameraControls.js.map +1 -0
- package/build/controls/TransformControls.d.ts +72 -0
- package/build/controls/TransformControls.js +1359 -0
- package/build/controls/TransformControls.js.map +1 -0
- package/build/controls/index.d.ts +2 -0
- package/build/controls/index.js +3 -0
- package/build/controls/index.js.map +1 -0
- package/build/descriptor/ComposerServiceDescriptor.d.ts +33 -0
- package/build/descriptor/ComposerServiceDescriptor.js +42 -0
- package/build/descriptor/ComposerServiceDescriptor.js.map +1 -0
- package/build/descriptor/GeoMapDescriptor.d.ts +12 -0
- package/build/descriptor/GeoMapDescriptor.js +22 -0
- package/build/descriptor/GeoMapDescriptor.js.map +1 -0
- package/build/descriptor/HTMLConvertDescriptor.d.ts +6 -0
- package/build/descriptor/HTMLConvertDescriptor.js +10 -0
- package/build/descriptor/HTMLConvertDescriptor.js.map +1 -0
- package/build/descriptor/InstancedMeshDescriptor.d.ts +12 -0
- package/build/descriptor/InstancedMeshDescriptor.js +12 -0
- package/build/descriptor/InstancedMeshDescriptor.js.map +1 -0
- package/build/descriptor/MeshDescriptor.d.ts +8 -0
- package/build/descriptor/MeshDescriptor.js +14 -0
- package/build/descriptor/MeshDescriptor.js.map +1 -0
- package/build/descriptor/ModelDescriptor.d.ts +7 -0
- package/build/descriptor/ModelDescriptor.js +12 -0
- package/build/descriptor/ModelDescriptor.js.map +1 -0
- package/build/descriptor/OrbitControllerDescriptor.d.ts +54 -0
- package/build/descriptor/OrbitControllerDescriptor.js +73 -0
- package/build/descriptor/OrbitControllerDescriptor.js.map +1 -0
- package/build/descriptor/OrthographicCameraDescriptor.d.ts +6 -0
- package/build/descriptor/OrthographicCameraDescriptor.js +10 -0
- package/build/descriptor/OrthographicCameraDescriptor.js.map +1 -0
- package/build/descriptor/ParticleDescriptor.d.ts +55 -0
- package/build/descriptor/ParticleDescriptor.js +85 -0
- package/build/descriptor/ParticleDescriptor.js.map +1 -0
- package/build/descriptor/PassDescriptor.d.ts +16 -0
- package/build/descriptor/PassDescriptor.js +23 -0
- package/build/descriptor/PassDescriptor.js.map +1 -0
- package/build/descriptor/PerspectiveCameraDescriptor.d.ts +7 -0
- package/build/descriptor/PerspectiveCameraDescriptor.js +12 -0
- package/build/descriptor/PerspectiveCameraDescriptor.js.map +1 -0
- package/build/descriptor/PointsDescriptor.d.ts +8 -0
- package/build/descriptor/PointsDescriptor.js +14 -0
- package/build/descriptor/PointsDescriptor.js.map +1 -0
- package/build/descriptor/SceneServiceDescriptor.d.ts +20 -0
- package/build/descriptor/SceneServiceDescriptor.js +35 -0
- package/build/descriptor/SceneServiceDescriptor.js.map +1 -0
- package/build/descriptor/SpriteDescriptor.d.ts +8 -0
- package/build/descriptor/SpriteDescriptor.js +14 -0
- package/build/descriptor/SpriteDescriptor.js.map +1 -0
- package/build/descriptor/TextDescriptor.d.ts +21 -0
- package/build/descriptor/TextDescriptor.js +37 -0
- package/build/descriptor/TextDescriptor.js.map +1 -0
- package/build/descriptor/TransformControllerDescriptor.d.ts +20 -0
- package/build/descriptor/TransformControllerDescriptor.js +22 -0
- package/build/descriptor/TransformControllerDescriptor.js.map +1 -0
- package/build/descriptor/animation/AnimationActionDescriptor.d.ts +27 -0
- package/build/descriptor/animation/AnimationActionDescriptor.js +46 -0
- package/build/descriptor/animation/AnimationActionDescriptor.js.map +1 -0
- package/build/descriptor/geometry/BoxGeometryDescriptor.d.ts +14 -0
- package/build/descriptor/geometry/BoxGeometryDescriptor.js +23 -0
- package/build/descriptor/geometry/BoxGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/BufferGeometryDescriptor.d.ts +8 -0
- package/build/descriptor/geometry/BufferGeometryDescriptor.js +12 -0
- package/build/descriptor/geometry/BufferGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/CircleGeometryDescriptor.d.ts +12 -0
- package/build/descriptor/geometry/CircleGeometryDescriptor.js +19 -0
- package/build/descriptor/geometry/CircleGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/CylinderGeometryDescriptor.d.ts +16 -0
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js +27 -0
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.d.ts +18 -0
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js +33 -0
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/GeometryDescriptor.d.ts +5 -0
- package/build/descriptor/geometry/GeometryDescriptor.js +7 -0
- package/build/descriptor/geometry/GeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/PlaneGeometryDescriptor.d.ts +12 -0
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js +19 -0
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/RingGeometryDescriptor.d.ts +14 -0
- package/build/descriptor/geometry/RingGeometryDescriptor.js +23 -0
- package/build/descriptor/geometry/RingGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/SphereGeometryDescriptor.d.ts +14 -0
- package/build/descriptor/geometry/SphereGeometryDescriptor.js +24 -0
- package/build/descriptor/geometry/SphereGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.d.ts +8 -0
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js +12 -0
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js.map +1 -0
- package/build/descriptor/geometry/TubeGeometryDescriptor.d.ts +13 -0
- package/build/descriptor/geometry/TubeGeometryDescriptor.js +23 -0
- package/build/descriptor/geometry/TubeGeometryDescriptor.js.map +1 -0
- package/build/descriptor/helper/AxesHelperDescriptor.d.ts +5 -0
- package/build/descriptor/helper/AxesHelperDescriptor.js +7 -0
- package/build/descriptor/helper/AxesHelperDescriptor.js.map +1 -0
- package/build/descriptor/index.d.ts +43 -0
- package/build/descriptor/index.js +46 -0
- package/build/descriptor/index.js.map +1 -0
- package/build/descriptor/light/AmbientLightDescriptor.d.ts +5 -0
- package/build/descriptor/light/AmbientLightDescriptor.js +7 -0
- package/build/descriptor/light/AmbientLightDescriptor.js.map +1 -0
- package/build/descriptor/light/DirectionalLightDescriptor.d.ts +20 -0
- package/build/descriptor/light/DirectionalLightDescriptor.js +21 -0
- package/build/descriptor/light/DirectionalLightDescriptor.js.map +1 -0
- package/build/descriptor/light/HemisphereLightDescriptor.d.ts +8 -0
- package/build/descriptor/light/HemisphereLightDescriptor.js +12 -0
- package/build/descriptor/light/HemisphereLightDescriptor.js.map +1 -0
- package/build/descriptor/light/LightDescriptor.d.ts +8 -0
- package/build/descriptor/light/LightDescriptor.js +14 -0
- package/build/descriptor/light/LightDescriptor.js.map +1 -0
- package/build/descriptor/light/PointLightDescriptor.d.ts +15 -0
- package/build/descriptor/light/PointLightDescriptor.js +21 -0
- package/build/descriptor/light/PointLightDescriptor.js.map +1 -0
- package/build/descriptor/light/RectAreaLightDescriptor.d.ts +10 -0
- package/build/descriptor/light/RectAreaLightDescriptor.js +16 -0
- package/build/descriptor/light/RectAreaLightDescriptor.js.map +1 -0
- package/build/descriptor/light/SpotLightDescriptor.d.ts +18 -0
- package/build/descriptor/light/SpotLightDescriptor.js +27 -0
- package/build/descriptor/light/SpotLightDescriptor.js.map +1 -0
- package/build/descriptor/material/MaterialDescriptor.d.ts +54 -0
- package/build/descriptor/material/MaterialDescriptor.js +73 -0
- package/build/descriptor/material/MaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/MeshBasicMaterialDescriptor.d.ts +35 -0
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js +51 -0
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/MeshPhongMaterialDescriptor.d.ts +65 -0
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js +98 -0
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/MeshStandardMaterialDescriptor.d.ts +63 -0
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js +95 -0
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/PointsMaterialDescriptor.d.ts +19 -0
- package/build/descriptor/material/PointsMaterialDescriptor.js +29 -0
- package/build/descriptor/material/PointsMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/ShaderMaterialDescriptor.d.ts +24 -0
- package/build/descriptor/material/ShaderMaterialDescriptor.js +26 -0
- package/build/descriptor/material/ShaderMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/ShadowMaterialDescriptor.d.ts +11 -0
- package/build/descriptor/material/ShadowMaterialDescriptor.js +17 -0
- package/build/descriptor/material/ShadowMaterialDescriptor.js.map +1 -0
- package/build/descriptor/material/SpriteMaterialDescriptor.d.ts +19 -0
- package/build/descriptor/material/SpriteMaterialDescriptor.js +29 -0
- package/build/descriptor/material/SpriteMaterialDescriptor.js.map +1 -0
- package/build/descriptor/texture/TextureDescriptor.d.ts +80 -0
- package/build/descriptor/texture/TextureDescriptor.js +103 -0
- package/build/descriptor/texture/TextureDescriptor.js.map +1 -0
- package/build/index.d.ts +9 -0
- package/build/index.js +10 -0
- package/build/index.js.map +1 -0
- package/build/interpreter/ComposerServiceInterpreter.d.ts +0 -0
- package/build/interpreter/ComposerServiceInterpreter.js +22 -0
- package/build/interpreter/ComposerServiceInterpreter.js.map +1 -0
- package/build/interpreter/GeoMapInterpreter.d.ts +36 -0
- package/build/interpreter/GeoMapInterpreter.js +216 -0
- package/build/interpreter/GeoMapInterpreter.js.map +1 -0
- package/build/interpreter/HTMLConvertInterpreter.d.ts +12 -0
- package/build/interpreter/HTMLConvertInterpreter.js +25 -0
- package/build/interpreter/HTMLConvertInterpreter.js.map +1 -0
- package/build/interpreter/InstancedMeshInterpreter.d.ts +19 -0
- package/build/interpreter/InstancedMeshInterpreter.js +67 -0
- package/build/interpreter/InstancedMeshInterpreter.js.map +1 -0
- package/build/interpreter/MeshInterpreter.d.ts +9 -0
- package/build/interpreter/MeshInterpreter.js +21 -0
- package/build/interpreter/MeshInterpreter.js.map +1 -0
- package/build/interpreter/ModelInterpreter.d.ts +16 -0
- package/build/interpreter/ModelInterpreter.js +52 -0
- package/build/interpreter/ModelInterpreter.js.map +1 -0
- package/build/interpreter/NodeInterpreter.d.ts +18 -0
- package/build/interpreter/NodeInterpreter.js +53 -0
- package/build/interpreter/NodeInterpreter.js.map +1 -0
- package/build/interpreter/OrbitControllerInterpreter.d.ts +13 -0
- package/build/interpreter/OrbitControllerInterpreter.js +38 -0
- package/build/interpreter/OrbitControllerInterpreter.js.map +1 -0
- package/build/interpreter/OrthographicCameraInterpreter.d.ts +8 -0
- package/build/interpreter/OrthographicCameraInterpreter.js +9 -0
- package/build/interpreter/OrthographicCameraInterpreter.js.map +1 -0
- package/build/interpreter/ParticleInterpreter.d.ts +24 -0
- package/build/interpreter/ParticleInterpreter.js +180 -0
- package/build/interpreter/ParticleInterpreter.js.map +1 -0
- package/build/interpreter/PassInterpreter.d.ts +0 -0
- package/build/interpreter/PassInterpreter.js +36 -0
- package/build/interpreter/PassInterpreter.js.map +1 -0
- package/build/interpreter/PerspectiveCameraInterpreter.d.ts +13 -0
- package/build/interpreter/PerspectiveCameraInterpreter.js +26 -0
- package/build/interpreter/PerspectiveCameraInterpreter.js.map +1 -0
- package/build/interpreter/PointsInterpreter.d.ts +17 -0
- package/build/interpreter/PointsInterpreter.js +54 -0
- package/build/interpreter/PointsInterpreter.js.map +1 -0
- package/build/interpreter/SceneServiceInterpreter.d.ts +27 -0
- package/build/interpreter/SceneServiceInterpreter.js +95 -0
- package/build/interpreter/SceneServiceInterpreter.js.map +1 -0
- package/build/interpreter/ServiceSchedulerInterpreter.d.ts +9 -0
- package/build/interpreter/ServiceSchedulerInterpreter.js +19 -0
- package/build/interpreter/ServiceSchedulerInterpreter.js.map +1 -0
- package/build/interpreter/SpriteInterpreter.d.ts +14 -0
- package/build/interpreter/SpriteInterpreter.js +38 -0
- package/build/interpreter/SpriteInterpreter.js.map +1 -0
- package/build/interpreter/TextInterpreter.d.ts +16 -0
- package/build/interpreter/TextInterpreter.js +68 -0
- package/build/interpreter/TextInterpreter.js.map +1 -0
- package/build/interpreter/TransformControllerInterpreter.d.ts +12 -0
- package/build/interpreter/TransformControllerInterpreter.js +36 -0
- package/build/interpreter/TransformControllerInterpreter.js.map +1 -0
- package/build/interpreter/animation/AnimationActionInterpreter.d.ts +13 -0
- package/build/interpreter/animation/AnimationActionInterpreter.js +57 -0
- package/build/interpreter/animation/AnimationActionInterpreter.js.map +1 -0
- package/build/interpreter/geometry/BoxGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/BoxGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/BoxGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/BufferGeometryInterpreter.d.ts +13 -0
- package/build/interpreter/geometry/BufferGeometryInterpreter.js +43 -0
- package/build/interpreter/geometry/BufferGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/CircleGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/CircleGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/CircleGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/CylinderGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.d.ts +13 -0
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js +48 -0
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/PlaneGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/RingGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/RingGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/RingGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/SphereGeometryInterpreter.d.ts +12 -0
- package/build/interpreter/geometry/SphereGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/SphereGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.d.ts +16 -0
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js +29 -0
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js.map +1 -0
- package/build/interpreter/geometry/TubeGeometryInterpreter.d.ts +13 -0
- package/build/interpreter/geometry/TubeGeometryInterpreter.js +36 -0
- package/build/interpreter/geometry/TubeGeometryInterpreter.js.map +1 -0
- package/build/interpreter/helper/AxesHelperInterpreter.d.ts +12 -0
- package/build/interpreter/helper/AxesHelperInterpreter.js +32 -0
- package/build/interpreter/helper/AxesHelperInterpreter.js.map +1 -0
- package/build/interpreter/index.d.ts +43 -0
- package/build/interpreter/index.js +46 -0
- package/build/interpreter/index.js.map +1 -0
- package/build/interpreter/light/AmbientLightInterpreter.d.ts +13 -0
- package/build/interpreter/light/AmbientLightInterpreter.js +24 -0
- package/build/interpreter/light/AmbientLightInterpreter.js.map +1 -0
- package/build/interpreter/light/DirectionalLightInterpreter.d.ts +16 -0
- package/build/interpreter/light/DirectionalLightInterpreter.js +75 -0
- package/build/interpreter/light/DirectionalLightInterpreter.js.map +1 -0
- package/build/interpreter/light/HemisphereLightInterpreter.d.ts +13 -0
- package/build/interpreter/light/HemisphereLightInterpreter.js +25 -0
- package/build/interpreter/light/HemisphereLightInterpreter.js.map +1 -0
- package/build/interpreter/light/PointLightInterpreter.d.ts +14 -0
- package/build/interpreter/light/PointLightInterpreter.js +37 -0
- package/build/interpreter/light/PointLightInterpreter.js.map +1 -0
- package/build/interpreter/light/RectAreaLightInterpreter.d.ts +13 -0
- package/build/interpreter/light/RectAreaLightInterpreter.js +27 -0
- package/build/interpreter/light/RectAreaLightInterpreter.js.map +1 -0
- package/build/interpreter/light/SpotLightInterpreter.d.ts +15 -0
- package/build/interpreter/light/SpotLightInterpreter.js +63 -0
- package/build/interpreter/light/SpotLightInterpreter.js.map +1 -0
- package/build/interpreter/material/MaterialInterpreter.d.ts +9 -0
- package/build/interpreter/material/MaterialInterpreter.js +28 -0
- package/build/interpreter/material/MaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/MeshBasicMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js +37 -0
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/MeshPhongMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js +56 -0
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/MeshStandardMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js +52 -0
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/PointsMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/PointsMaterialInterpreter.js +30 -0
- package/build/interpreter/material/PointsMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/ShaderMaterialInterpreter.d.ts +14 -0
- package/build/interpreter/material/ShaderMaterialInterpreter.js +46 -0
- package/build/interpreter/material/ShaderMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/ShadowMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/ShadowMaterialInterpreter.js +25 -0
- package/build/interpreter/material/ShadowMaterialInterpreter.js.map +1 -0
- package/build/interpreter/material/SpriteMaterialInterpreter.d.ts +11 -0
- package/build/interpreter/material/SpriteMaterialInterpreter.js +30 -0
- package/build/interpreter/material/SpriteMaterialInterpreter.js.map +1 -0
- package/build/interpreter/texture/TextureInterpreter.d.ts +13 -0
- package/build/interpreter/texture/TextureInterpreter.js +54 -0
- package/build/interpreter/texture/TextureInterpreter.js.map +1 -0
- package/build/locale/Language.d.ts +3 -0
- package/build/locale/Language.js +6 -0
- package/build/locale/Language.js.map +1 -0
- package/build/locale/LanguageProvider.d.ts +6 -0
- package/build/locale/LanguageProvider.js +7 -0
- package/build/locale/LanguageProvider.js.map +1 -0
- package/build/locale/index.d.ts +2 -0
- package/build/locale/index.js +3 -0
- package/build/locale/index.js.map +1 -0
- package/build/preset/execute/GeoMap/drilldown.d.ts +16 -0
- package/build/preset/execute/GeoMap/drilldown.js +45 -0
- package/build/preset/execute/GeoMap/drilldown.js.map +1 -0
- package/build/preset/execute/GeoMap/index.d.ts +1 -0
- package/build/preset/execute/GeoMap/index.js +2 -0
- package/build/preset/execute/GeoMap/index.js.map +1 -0
- package/build/preset/execute/index.d.ts +1 -0
- package/build/preset/execute/index.js +2 -0
- package/build/preset/execute/index.js.map +1 -0
- package/build/preset/index.d.ts +3 -0
- package/build/preset/index.js +4 -0
- package/build/preset/index.js.map +1 -0
- package/build/preset/interaction/GeoMap/drilldown.d.ts +5 -0
- package/build/preset/interaction/GeoMap/drilldown.js +19 -0
- package/build/preset/interaction/GeoMap/drilldown.js.map +1 -0
- package/build/preset/interaction/GeoMap/index.d.ts +1 -0
- package/build/preset/interaction/GeoMap/index.js +2 -0
- package/build/preset/interaction/GeoMap/index.js.map +1 -0
- package/build/preset/interaction/index.d.ts +1 -0
- package/build/preset/interaction/index.js +2 -0
- package/build/preset/interaction/index.js.map +1 -0
- package/build/utils/dispose/index.d.ts +3 -0
- package/build/utils/dispose/index.js +22 -0
- package/build/utils/dispose/index.js.map +1 -0
- package/build/utils/geometry/index.d.ts +19 -0
- package/build/utils/geometry/index.js +61 -0
- package/build/utils/geometry/index.js.map +1 -0
- package/build/utils/index.d.ts +7 -0
- package/build/utils/index.js +8 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/material/index.d.ts +7 -0
- package/build/utils/material/index.js +46 -0
- package/build/utils/material/index.js.map +1 -0
- package/build/utils/pickup/index.d.ts +5 -0
- package/build/utils/pickup/index.js +14 -0
- package/build/utils/pickup/index.js.map +1 -0
- package/build/utils/random/index.d.ts +2 -0
- package/build/utils/random/index.js +5 -0
- package/build/utils/random/index.js.map +1 -0
- package/build/utils/text/index.d.ts +98 -0
- package/build/utils/text/index.js +379 -0
- package/build/utils/text/index.js.map +1 -0
- package/build/utils/texture/index.d.ts +4 -0
- package/build/utils/texture/index.js +17 -0
- package/build/utils/texture/index.js.map +1 -0
- package/package.json +27 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BufferGeometry, Mesh } from "three";
|
|
2
|
+
import { TextDescriptor } from "../descriptor";
|
|
3
|
+
import { NodeInterpreter } from "./NodeInterpreter";
|
|
4
|
+
import { NodeActor } from "../actor";
|
|
5
|
+
declare class TextInterpreter extends NodeInterpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
private _geometry;
|
|
8
|
+
private _cacheKey;
|
|
9
|
+
protected createActor(descriptor: TextDescriptor): NodeActor<Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material, import("three").Object3DEventMap>>;
|
|
10
|
+
private _fastHash;
|
|
11
|
+
getCacheKey(descriptor: TextDescriptor): string;
|
|
12
|
+
setAttribute(descriptor: TextDescriptor): void;
|
|
13
|
+
update(descriptor: TextDescriptor): void;
|
|
14
|
+
free(descriptor: TextDescriptor): void;
|
|
15
|
+
}
|
|
16
|
+
export { TextInterpreter };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { BufferGeometry, Mesh } from "three";
|
|
2
|
+
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
3
|
+
import { Asset } from "@vyr/engine";
|
|
4
|
+
import { TextDescriptor } from "../descriptor";
|
|
5
|
+
import { NodeInterpreter } from "./NodeInterpreter";
|
|
6
|
+
import { NodeActor } from "../actor";
|
|
7
|
+
import { geometry, TextUtils, material } from "../utils";
|
|
8
|
+
class TextInterpreter extends NodeInterpreter {
|
|
9
|
+
static type = TextDescriptor.type;
|
|
10
|
+
_geometry = new BufferGeometry();
|
|
11
|
+
_cacheKey = '';
|
|
12
|
+
createActor(descriptor) {
|
|
13
|
+
const actor = new NodeActor(new Mesh(this._geometry, material.defaultMaterial()));
|
|
14
|
+
return actor;
|
|
15
|
+
}
|
|
16
|
+
_fastHash(str) {
|
|
17
|
+
let hash1 = 5381; // djb2初始值
|
|
18
|
+
let hash2 = 0x811C9DC5; // FNV-1初始值
|
|
19
|
+
for (let i = 0; i < str.length; i++) {
|
|
20
|
+
const char = str.charCodeAt(i);
|
|
21
|
+
hash1 = (hash1 * 33) ^ char;
|
|
22
|
+
hash2 = (hash2 * 0x01000193) ^ char;
|
|
23
|
+
}
|
|
24
|
+
// 组合两个哈希值,大幅降低碰撞概率
|
|
25
|
+
return ((hash1 >>> 0) ^ (hash2 >>> 0)) >>> 0;
|
|
26
|
+
}
|
|
27
|
+
getCacheKey(descriptor) {
|
|
28
|
+
return `${this._fastHash(descriptor.text)}_${descriptor.size}_${descriptor.lineHeight}_${descriptor.maxWidth}_${descriptor.letterSpacing}`;
|
|
29
|
+
}
|
|
30
|
+
setAttribute(descriptor) {
|
|
31
|
+
const font = Asset.get(descriptor.font);
|
|
32
|
+
if (font instanceof Font) {
|
|
33
|
+
const options = {
|
|
34
|
+
size: descriptor.size,
|
|
35
|
+
lineHeight: descriptor.lineHeight,
|
|
36
|
+
maxWidth: descriptor.maxWidth,
|
|
37
|
+
letterSpacing: descriptor.letterSpacing,
|
|
38
|
+
};
|
|
39
|
+
const source = TextUtils.createTextGeometry(descriptor.text, descriptor.maxWidth, font, options);
|
|
40
|
+
this._geometry.copy(source);
|
|
41
|
+
source.dispose();
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const source = new BufferGeometry();
|
|
45
|
+
this._geometry.copy(source);
|
|
46
|
+
source.dispose();
|
|
47
|
+
}
|
|
48
|
+
if (descriptor.flattenUVsToPlane)
|
|
49
|
+
geometry.flattenUVsToPlane(this._geometry);
|
|
50
|
+
}
|
|
51
|
+
update(descriptor) {
|
|
52
|
+
super.update(descriptor);
|
|
53
|
+
const actor = this.getActor(descriptor);
|
|
54
|
+
const cacheKey = this.getCacheKey(descriptor);
|
|
55
|
+
if (this._cacheKey !== cacheKey) {
|
|
56
|
+
this.setAttribute(descriptor);
|
|
57
|
+
this._cacheKey = cacheKey;
|
|
58
|
+
}
|
|
59
|
+
actor.object.material = material.getMaterial(descriptor.material, this.graphics);
|
|
60
|
+
}
|
|
61
|
+
free(descriptor) {
|
|
62
|
+
this._geometry.dispose();
|
|
63
|
+
super.free(descriptor);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
NodeInterpreter.register(TextInterpreter);
|
|
67
|
+
export { TextInterpreter };
|
|
68
|
+
//# sourceMappingURL=TextInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInterpreter.js","sourceRoot":"","sources":["../../src/interpreter/TextInterpreter.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,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,eAAgB,SAAQ,eAAe;IACzC,MAAM,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;IACzB,SAAS,GAAG,IAAI,cAAc,EAAE,CAAA;IAChC,SAAS,GAAG,EAAE,CAAA;IAEZ,WAAW,CAAC,UAA0B;QAC5C,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;QACjF,OAAO,KAAK,CAAA;IAChB,CAAC;IAEO,SAAS,CAAC,GAAW;QAC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{ TransformControllerActor } from "../actor";
|
|
4
|
+
declare class TransformControllerInterpreter extends Interpreter {
|
|
5
|
+
static type: string;
|
|
6
|
+
protected createActor(descriptor: TransformControllerDescriptor): TransformControllerActor;
|
|
7
|
+
update(descriptor: TransformControllerDescriptor): void;
|
|
8
|
+
mount(descriptor: TransformControllerDescriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
9
|
+
unmount(descriptor: TransformControllerDescriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
10
|
+
free(descriptor: TransformControllerDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { TransformControllerInterpreter };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Interpreter } from "@vyr/engine";
|
|
2
|
+
import { TransformControllerDescriptor } from '../descriptor';
|
|
3
|
+
import { TransformControllerActor } from "../actor";
|
|
4
|
+
class TransformControllerInterpreter extends Interpreter {
|
|
5
|
+
static type = TransformControllerDescriptor.type;
|
|
6
|
+
createActor(descriptor) {
|
|
7
|
+
const actor = new TransformControllerActor();
|
|
8
|
+
return actor;
|
|
9
|
+
}
|
|
10
|
+
update(descriptor) {
|
|
11
|
+
super.update(descriptor);
|
|
12
|
+
const actor = this.getActor(descriptor);
|
|
13
|
+
actor.update(descriptor, this.graphics);
|
|
14
|
+
}
|
|
15
|
+
mount(descriptor, parentInterpreter, parentDescriptor) {
|
|
16
|
+
super.mount(descriptor, parentInterpreter, parentDescriptor);
|
|
17
|
+
const parenActor = parentInterpreter.getActor(parentDescriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
parenActor.add(actor);
|
|
20
|
+
}
|
|
21
|
+
unmount(descriptor, parentInterpreter, parentDescriptor) {
|
|
22
|
+
const parenActor = parentInterpreter.getActor(parentDescriptor);
|
|
23
|
+
const actor = this.getActor(descriptor);
|
|
24
|
+
parenActor.remove(actor);
|
|
25
|
+
actor.unlisten(this.graphics);
|
|
26
|
+
super.unmount(descriptor, parentInterpreter, parentDescriptor);
|
|
27
|
+
}
|
|
28
|
+
free(descriptor) {
|
|
29
|
+
const actor = this.getActor(descriptor);
|
|
30
|
+
actor.dispose(this.graphics);
|
|
31
|
+
super.free(descriptor);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
Interpreter.register(TransformControllerInterpreter);
|
|
35
|
+
export { TransformControllerInterpreter };
|
|
36
|
+
//# sourceMappingURL=TransformControllerInterpreter.js.map
|
|
@@ -0,0 +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,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAa,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAE9D,MAAM,8BAA+B,SAAQ,WAAW;IACtD,MAAM,CAAC,IAAI,GAAG,6BAA6B,CAAC,IAAI,CAAA;IAEtC,WAAW,CAAC,UAAyC;QAC7D,MAAM,KAAK,GAAG,IAAI,wBAAwB,EAAE,CAAA;QAC5C,OAAO,KAAK,CAAA;IACd,CAAC;IAED,MAAM,CAAC,UAAyC;QAC9C,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,UAAyC,EAAE,iBAA8B,EAAE,gBAA4B;QAC3G,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,UAAyC,EAAE,iBAA8B,EAAE,gBAA4B;QAC7G,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,UAAyC;QAC5C,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;AAGpD,OAAO,EAAE,8BAA8B,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnimationAction, AnimationMixer } from 'three';
|
|
2
|
+
import { Descriptor, Interpreter } from "@vyr/engine";
|
|
3
|
+
import { AnimationActionDescriptor } from "../../descriptor";
|
|
4
|
+
declare class AnimationActionInterpreter extends Interpreter {
|
|
5
|
+
static type: string;
|
|
6
|
+
animationAction: AnimationAction | null;
|
|
7
|
+
freeAction(mixer: AnimationMixer): void;
|
|
8
|
+
setProperty(action: AnimationAction, descriptor: AnimationActionDescriptor): void;
|
|
9
|
+
update(descriptor: AnimationActionDescriptor): void;
|
|
10
|
+
mount(descriptor: AnimationActionDescriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
11
|
+
unmount(descriptor: AnimationActionDescriptor, parentInterpreter: Interpreter, parentDescriptor: Descriptor): void;
|
|
12
|
+
}
|
|
13
|
+
export { AnimationActionInterpreter };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Interpreter } from "@vyr/engine";
|
|
2
|
+
import { AnimationActionDescriptor, ModelDescriptor } from "../../descriptor";
|
|
3
|
+
import { ModelInterpreter } from '../ModelInterpreter';
|
|
4
|
+
class AnimationActionInterpreter extends Interpreter {
|
|
5
|
+
static type = AnimationActionDescriptor.type;
|
|
6
|
+
animationAction = null;
|
|
7
|
+
freeAction(mixer) {
|
|
8
|
+
if (this.animationAction) {
|
|
9
|
+
this.animationAction.stop();
|
|
10
|
+
const clip = this.animationAction.getClip();
|
|
11
|
+
mixer.uncacheAction(clip, this.animationAction.getRoot());
|
|
12
|
+
this.animationAction = null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
setProperty(action, descriptor) {
|
|
16
|
+
action.enabled = descriptor.enabled;
|
|
17
|
+
action.timeScale = descriptor.timeScale;
|
|
18
|
+
action.weight = descriptor.weight;
|
|
19
|
+
action.zeroSlopeAtStart = descriptor.zeroSlopeAtStart;
|
|
20
|
+
action.zeroSlopeAtEnd = descriptor.zeroSlopeAtEnd;
|
|
21
|
+
action.startAt(descriptor.startTime);
|
|
22
|
+
action.setDuration(descriptor.duration);
|
|
23
|
+
action.setLoop(descriptor.loop, descriptor.repetitions);
|
|
24
|
+
descriptor.play ? action.play() : action.stop();
|
|
25
|
+
}
|
|
26
|
+
update(descriptor) {
|
|
27
|
+
super.update(descriptor);
|
|
28
|
+
const scheduler = this.graphics.getInterpreter(this.graphics.scheduler);
|
|
29
|
+
this.freeAction(scheduler.mixer);
|
|
30
|
+
const parentDescriptor = ModelDescriptor.get(this.unit.parent);
|
|
31
|
+
const parentInterpreter = this.graphics.getInterpreter(parentDescriptor);
|
|
32
|
+
if (parentInterpreter instanceof ModelInterpreter) {
|
|
33
|
+
const model = parentInterpreter.wrapper.children[0];
|
|
34
|
+
if (model === undefined)
|
|
35
|
+
return;
|
|
36
|
+
for (const clip of model.animations) {
|
|
37
|
+
if (clip.name === descriptor.clip) {
|
|
38
|
+
this.animationAction = scheduler.mixer.clipAction(clip, model);
|
|
39
|
+
this.animationAction.clampWhenFinished = true;
|
|
40
|
+
this.setProperty(this.animationAction, descriptor);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
mount(descriptor, parentInterpreter, parentDescriptor) {
|
|
46
|
+
super.mount(descriptor, parentInterpreter, parentDescriptor);
|
|
47
|
+
this.getActor(descriptor);
|
|
48
|
+
}
|
|
49
|
+
unmount(descriptor, parentInterpreter, parentDescriptor) {
|
|
50
|
+
const scheduler = this.graphics.getInterpreter(this.graphics.scheduler);
|
|
51
|
+
this.freeAction(scheduler.mixer);
|
|
52
|
+
super.unmount(descriptor, parentInterpreter, parentDescriptor);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
Interpreter.register(AnimationActionInterpreter);
|
|
56
|
+
export { AnimationActionInterpreter };
|
|
57
|
+
//# sourceMappingURL=AnimationActionInterpreter.js.map
|
|
@@ -0,0 +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,yBAAyB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,0BAA2B,SAAQ,WAAW;IAChD,MAAM,CAAC,IAAI,GAAG,yBAAyB,CAAC,IAAI,CAAA;IAC5C,eAAe,GAA2B,IAAI,CAAA;IAE9C,UAAU,CAAC,KAAqB;QAC5B,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACvB,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A;AAEhD,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BufferGeometry, BoxGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { BoxGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class BoxGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: BoxGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<BoxGeometry>, descriptor: BoxGeometryDescriptor): void;
|
|
9
|
+
update(descriptor: BoxGeometryDescriptor): void;
|
|
10
|
+
free(descriptor: BoxGeometryDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { BoxGeometryInterpreter };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BufferGeometry, BoxGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { BoxGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
class BoxGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = BoxGeometryDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setAttribute(actor, descriptor) {
|
|
12
|
+
const source = new BoxGeometry(descriptor.width, descriptor.height, descriptor.depth, descriptor.widthSegments, descriptor.heightSegments, descriptor.depthSegments);
|
|
13
|
+
actor.object.copy(source);
|
|
14
|
+
source.dispose();
|
|
15
|
+
}
|
|
16
|
+
update(descriptor) {
|
|
17
|
+
super.update(descriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
this.setAttribute(actor, descriptor);
|
|
20
|
+
}
|
|
21
|
+
free(descriptor) {
|
|
22
|
+
const actor = this.getActor(descriptor);
|
|
23
|
+
actor.object.dispose();
|
|
24
|
+
super.free(descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
Interpreter.register(BoxGeometryInterpreter);
|
|
28
|
+
export { BoxGeometryInterpreter };
|
|
29
|
+
//# sourceMappingURL=BoxGeometryInterpreter.js.map
|
|
@@ -0,0 +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;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,sBAAuB,SAAQ,WAAW;IAC5C,MAAM,CAAC,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAA;IAE9B,WAAW,CAAC,UAAiC;QACnD,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAiC,EAAE,UAAiC;QAC7E,MAAM,MAAM,GAAG,IAAI,WAAW,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;QACpK,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAiC;QACpC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA6B,UAAU,CAAC,CAAA;QACnE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAiC;QAClC,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,WAAW,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAA;AAE5C,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BufferGeometry, BufferGeometryLoader } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { BufferGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class BufferGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
static get loader(): BufferGeometryLoader;
|
|
8
|
+
protected createActor(descriptor: BufferGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
9
|
+
setAttribute(actor: GeometryActor<BufferGeometry>, descriptor: BufferGeometryDescriptor): void;
|
|
10
|
+
update(descriptor: BufferGeometryDescriptor): void;
|
|
11
|
+
free(descriptor: BufferGeometryDescriptor): void;
|
|
12
|
+
}
|
|
13
|
+
export { BufferGeometryInterpreter };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BufferGeometry, BufferGeometryLoader } from "three";
|
|
2
|
+
import { DatasetDescriptor, Interpreter } from "@vyr/engine";
|
|
3
|
+
import { BufferGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
let _loader = null;
|
|
6
|
+
class BufferGeometryInterpreter extends Interpreter {
|
|
7
|
+
static type = BufferGeometryDescriptor.type;
|
|
8
|
+
static get loader() {
|
|
9
|
+
if (_loader === null) {
|
|
10
|
+
_loader = new BufferGeometryLoader();
|
|
11
|
+
}
|
|
12
|
+
return _loader;
|
|
13
|
+
}
|
|
14
|
+
createActor(descriptor) {
|
|
15
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
16
|
+
return actor;
|
|
17
|
+
}
|
|
18
|
+
setAttribute(actor, descriptor) {
|
|
19
|
+
const buffer = DatasetDescriptor.getData(descriptor.buffer);
|
|
20
|
+
let source;
|
|
21
|
+
if (buffer === null) {
|
|
22
|
+
source = new BufferGeometry();
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
source = BufferGeometryInterpreter.loader.parse(buffer);
|
|
26
|
+
}
|
|
27
|
+
actor.object.copy(source);
|
|
28
|
+
source.dispose();
|
|
29
|
+
}
|
|
30
|
+
update(descriptor) {
|
|
31
|
+
super.update(descriptor);
|
|
32
|
+
const actor = this.getActor(descriptor);
|
|
33
|
+
this.setAttribute(actor, descriptor);
|
|
34
|
+
}
|
|
35
|
+
free(descriptor) {
|
|
36
|
+
const actor = this.getActor(descriptor);
|
|
37
|
+
actor.object.dispose();
|
|
38
|
+
super.free(descriptor);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
Interpreter.register(BufferGeometryInterpreter);
|
|
42
|
+
export { BufferGeometryInterpreter };
|
|
43
|
+
//# sourceMappingURL=BufferGeometryInterpreter.js.map
|
|
@@ -0,0 +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;AAC7D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,aA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AO,EAAE,CAAA;QACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;;AAEL,WAAW,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAA;AAE/C,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BufferGeometry, CircleGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { CircleGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class CircleGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: CircleGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<CircleGeometry>, descriptor: CircleGeometryDescriptor): void;
|
|
9
|
+
update(descriptor: CircleGeometryDescriptor): void;
|
|
10
|
+
free(descriptor: CircleGeometryDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { CircleGeometryInterpreter };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BufferGeometry, CircleGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { CircleGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
class CircleGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = CircleGeometryDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setAttribute(actor, descriptor) {
|
|
12
|
+
const source = new CircleGeometry(descriptor.radius, descriptor.segments, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
|
+
actor.object.copy(source);
|
|
14
|
+
source.dispose();
|
|
15
|
+
}
|
|
16
|
+
update(descriptor) {
|
|
17
|
+
super.update(descriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
this.setAttribute(actor, descriptor);
|
|
20
|
+
}
|
|
21
|
+
free(descriptor) {
|
|
22
|
+
const actor = this.getActor(descriptor);
|
|
23
|
+
actor.object.dispose();
|
|
24
|
+
super.free(descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
Interpreter.register(CircleGeometryInterpreter);
|
|
28
|
+
export { CircleGeometryInterpreter };
|
|
29
|
+
//# sourceMappingURL=CircleGeometryInterpreter.js.map
|
|
@@ -0,0 +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;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,yBAA0B,SAAQ,WAAW;IAC/C,MAAM,CAAC,IAAI,GAAG,wBAAwB,CAAC,IAAI,CAAA;IAEjC,WAAW,CAAC,UAAoC;QACtD,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAoC,EAAE,UAAoC;QACnF,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;QACxH,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAoC;QACvC,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,UAAoC;QACrC,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;AAE/C,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BufferGeometry, CylinderGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { CylinderGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class CylinderGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: CylinderGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<CylinderGeometry>, descriptor: CylinderGeometryDescriptor): void;
|
|
9
|
+
update(descriptor: CylinderGeometryDescriptor): void;
|
|
10
|
+
free(descriptor: CylinderGeometryDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { CylinderGeometryInterpreter };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BufferGeometry, CylinderGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { CylinderGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
class CylinderGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = CylinderGeometryDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setAttribute(actor, descriptor) {
|
|
12
|
+
const source = new CylinderGeometry(descriptor.radiusTop, descriptor.radiusBottom, descriptor.height, descriptor.radialSegments, descriptor.heightSegments, descriptor.openEnded, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
|
+
actor.object.copy(source);
|
|
14
|
+
source.dispose();
|
|
15
|
+
}
|
|
16
|
+
update(descriptor) {
|
|
17
|
+
super.update(descriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
this.setAttribute(actor, descriptor);
|
|
20
|
+
}
|
|
21
|
+
free(descriptor) {
|
|
22
|
+
const actor = this.getActor(descriptor);
|
|
23
|
+
actor.object.dispose();
|
|
24
|
+
super.free(descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
Interpreter.register(CylinderGeometryInterpreter);
|
|
28
|
+
export { CylinderGeometryInterpreter };
|
|
29
|
+
//# sourceMappingURL=CylinderGeometryInterpreter.js.map
|
|
@@ -0,0 +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;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,2BAA4B,SAAQ,WAAW;IACjD,MAAM,CAAC,IAAI,GAAG,0BAA0B,CAAC,IAAI,CAAA;IAEnC,WAAW,CAAC,UAAsC;QACxD,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAsC,EAAE,UAAsC;QACvF,MAAM,MAAM,GAAG,IAAI,gBAAgB,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;QAChO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAsC;QACzC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAkC,UAAU,CAAC,CAAA;QACxE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAsC;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAkC,UAAU,CAAC,CAAA;QACxE,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;AAEjD,OAAO,EAAE,2BAA2B,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BufferGeometry, ExtrudeGeometry, Shape } from "three";
|
|
2
|
+
import { Interpreter, JsonAsset } from "@vyr/engine";
|
|
3
|
+
import { ExtrudeGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class ExtrudeGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: ExtrudeGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
createShapes(collection: JsonAsset[], shapes: Shape[], descriptor: ExtrudeGeometryDescriptor): void;
|
|
9
|
+
setAttribute(actor: GeometryActor<ExtrudeGeometry>, descriptor: ExtrudeGeometryDescriptor): void;
|
|
10
|
+
update(descriptor: ExtrudeGeometryDescriptor): void;
|
|
11
|
+
free(descriptor: ExtrudeGeometryDescriptor): void;
|
|
12
|
+
}
|
|
13
|
+
export { ExtrudeGeometryInterpreter };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BufferGeometry, ExtrudeGeometry, Path, Shape, } from "three";
|
|
2
|
+
import { DatasetDescriptor, Interpreter } from "@vyr/engine";
|
|
3
|
+
import { ExtrudeGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
import { geometry } from "../../utils";
|
|
6
|
+
class ExtrudeGeometryInterpreter extends Interpreter {
|
|
7
|
+
static type = ExtrudeGeometryDescriptor.type;
|
|
8
|
+
createActor(descriptor) {
|
|
9
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
10
|
+
return actor;
|
|
11
|
+
}
|
|
12
|
+
createShapes(collection, shapes, descriptor) {
|
|
13
|
+
for (const shapeData of collection) {
|
|
14
|
+
const region = shapeData[0];
|
|
15
|
+
const shape = new Shape(geometry.getPointsOfshapeData(region, descriptor.offset));
|
|
16
|
+
shapes.push(shape);
|
|
17
|
+
if (shapeData.length <= 1)
|
|
18
|
+
continue;
|
|
19
|
+
for (let i = 1; i < shapeData.length; i++) {
|
|
20
|
+
const path = new Path(geometry.getPointsOfshapeData(shapeData[i], descriptor.offset));
|
|
21
|
+
shape.holes.push(path);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
setAttribute(actor, descriptor) {
|
|
26
|
+
const collection = DatasetDescriptor.getCollection(descriptor.shapes);
|
|
27
|
+
const shapes = [];
|
|
28
|
+
this.createShapes(collection, shapes, descriptor);
|
|
29
|
+
const source = new ExtrudeGeometry(shapes, geometry.getExtrudeOptions(descriptor));
|
|
30
|
+
actor.object.copy(source);
|
|
31
|
+
source.dispose();
|
|
32
|
+
if (descriptor.flattenUVsToPlane)
|
|
33
|
+
geometry.flattenUVsToPlane(actor.object);
|
|
34
|
+
}
|
|
35
|
+
update(descriptor) {
|
|
36
|
+
super.update(descriptor);
|
|
37
|
+
const actor = this.getActor(descriptor);
|
|
38
|
+
this.setAttribute(actor, descriptor);
|
|
39
|
+
}
|
|
40
|
+
free(descriptor) {
|
|
41
|
+
const actor = this.getActor(descriptor);
|
|
42
|
+
actor.object.dispose();
|
|
43
|
+
super.free(descriptor);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Interpreter.register(ExtrudeGeometryInterpreter);
|
|
47
|
+
export { ExtrudeGeometryInterpreter };
|
|
48
|
+
//# sourceMappingURL=ExtrudeGeometryInterpreter.js.map
|
|
@@ -0,0 +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;AACtE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAa,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,0BAA2B,SAAQ,WAAW;IAChD,MAAM,CAAC,IAAI,GAAG,yBAAyB,CAAC,IAAI,CAAA;IAElC,WAAW,CAAC,UAAqC;QACvD,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAA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,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC9E,CAAC;IAED,MAAM,CAAC,UAAqC;QACxC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAiC,UAAU,CAAC,CAAA;QACvE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAqC;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAiC,UAAU,CAAC,CAAA;QACvE,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;AAEhD,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BufferGeometry, PlaneGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { PlaneGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class PlaneGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: PlaneGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<PlaneGeometry>, descriptor: PlaneGeometryDescriptor): void;
|
|
9
|
+
update(descriptor: PlaneGeometryDescriptor): void;
|
|
10
|
+
free(descriptor: PlaneGeometryDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { PlaneGeometryInterpreter };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BufferGeometry, PlaneGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { PlaneGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
class PlaneGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = PlaneGeometryDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setAttribute(actor, descriptor) {
|
|
12
|
+
const source = new PlaneGeometry(descriptor.width, descriptor.height, descriptor.widthSegments, descriptor.heightSegments);
|
|
13
|
+
actor.object.copy(source);
|
|
14
|
+
source.dispose();
|
|
15
|
+
}
|
|
16
|
+
update(descriptor) {
|
|
17
|
+
super.update(descriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
this.setAttribute(actor, descriptor);
|
|
20
|
+
}
|
|
21
|
+
free(descriptor) {
|
|
22
|
+
const actor = this.getActor(descriptor);
|
|
23
|
+
actor.object.dispose();
|
|
24
|
+
super.free(descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
Interpreter.register(PlaneGeometryInterpreter);
|
|
28
|
+
export { PlaneGeometryInterpreter };
|
|
29
|
+
//# sourceMappingURL=PlaneGeometryInterpreter.js.map
|
|
@@ -0,0 +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;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,wBAAyB,SAAQ,WAAW;IAC9C,MAAM,CAAC,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAA;IAEhC,WAAW,CAAC,UAAmC;QACrD,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,cAAc,EAAE,CAAC,CAAA;QACrD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,YAAY,CAAC,KAAmC,EAAE,UAAmC;QACjF,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;QAC1H,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACzB,MAAM,CAAC,OAAO,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,UAAmC;QACtC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA+B,UAAU,CAAC,CAAA;QACrE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,UAAmC;QACpC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAA+B,UAAU,CAAC,CAAA;QACrE,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;AAE9C,OAAO,EAAE,wBAAwB,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BufferGeometry, RingGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { RingGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class RingGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: RingGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<RingGeometry>, descriptor: RingGeometryDescriptor): void;
|
|
9
|
+
update(descriptor: RingGeometryDescriptor): void;
|
|
10
|
+
free(descriptor: RingGeometryDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { RingGeometryInterpreter };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BufferGeometry, RingGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { RingGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
class RingGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type = RingGeometryDescriptor.type;
|
|
7
|
+
createActor(descriptor) {
|
|
8
|
+
const actor = new GeometryActor(new BufferGeometry());
|
|
9
|
+
return actor;
|
|
10
|
+
}
|
|
11
|
+
setAttribute(actor, descriptor) {
|
|
12
|
+
const source = new RingGeometry(descriptor.innerRadius, descriptor.outerRadius, descriptor.thetaSegments, descriptor.phiSegments, descriptor.thetaStart, descriptor.thetaLength);
|
|
13
|
+
actor.object.copy(source);
|
|
14
|
+
source.dispose();
|
|
15
|
+
}
|
|
16
|
+
update(descriptor) {
|
|
17
|
+
super.update(descriptor);
|
|
18
|
+
const actor = this.getActor(descriptor);
|
|
19
|
+
this.setAttribute(actor, descriptor);
|
|
20
|
+
}
|
|
21
|
+
free(descriptor) {
|
|
22
|
+
const actor = this.getActor(descriptor);
|
|
23
|
+
actor.object.dispose();
|
|
24
|
+
super.free(descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
Interpreter.register(RingGeometryInterpreter);
|
|
28
|
+
export { RingGeometryInterpreter };
|
|
29
|
+
//# sourceMappingURL=RingGeometryInterpreter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RingGeometryInterpreter.js","sourceRoot":"","sources":["../../../src/interpreter/geometry/RingGeometryInterpreter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAA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B,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BufferGeometry, SphereGeometry } from "three";
|
|
2
|
+
import { Interpreter } from "@vyr/engine";
|
|
3
|
+
import { SphereGeometryDescriptor } from "../../descriptor";
|
|
4
|
+
import { GeometryActor } from "../../actor";
|
|
5
|
+
declare class SphereGeometryInterpreter extends Interpreter {
|
|
6
|
+
static type: string;
|
|
7
|
+
protected createActor(descriptor: SphereGeometryDescriptor): GeometryActor<BufferGeometry<import("three").NormalBufferAttributes>>;
|
|
8
|
+
setAttribute(actor: GeometryActor<SphereGeometry>, descriptor: SphereGeometryDescriptor): void;
|
|
9
|
+
update(descriptor: SphereGeometryDescriptor): void;
|
|
10
|
+
free(descriptor: SphereGeometryDescriptor): void;
|
|
11
|
+
}
|
|
12
|
+
export { SphereGeometryInterpreter };
|