@aibee/owlly 1.0.26 → 1.0.29
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/lib/external/lines/line-geometry.d.ts +9 -0
- package/lib/external/lines/line-geometry.js +51 -0
- package/lib/external/lines/line-material.d.ts +10 -0
- package/lib/external/lines/line-material.js +376 -0
- package/lib/external/lines/line-segments-2.d.ts +7 -0
- package/lib/external/lines/line-segments-2.js +143 -0
- package/lib/external/lines/line-segments-geometry.d.ts +15 -0
- package/lib/external/lines/line-segments-geometry.js +140 -0
- package/lib/external/loaders/gltf-loader.d.ts +77 -0
- package/lib/external/loaders/gltf-loader.js +2318 -0
- package/lib/external/orbit-controls.d.ts +44 -0
- package/lib/external/orbit-controls.js +745 -0
- package/lib/external/renderers/css-2d-renderer.d.ts +16 -0
- package/lib/external/renderers/css-2d-renderer.js +121 -0
- package/lib/external/renderers/css-3d-renderer.d.ts +18 -0
- package/lib/external/renderers/css-3d-renderer.js +138 -0
- package/lib/external/transform-controls.d.ts +106 -0
- package/lib/external/transform-controls.js +1112 -0
- package/lib/owlly/controller/aerial-element-controller.d.ts +65 -0
- package/lib/owlly/controller/aerial-element-controller.js +235 -0
- package/lib/owlly/controller/basic-controller.d.ts +324 -0
- package/lib/owlly/controller/basic-controller.js +1238 -0
- package/lib/owlly/controller/camera-controller.d.ts +37 -0
- package/lib/owlly/controller/camera-controller.js +137 -0
- package/lib/owlly/controller/controller.d.ts +61 -0
- package/lib/owlly/controller/controller.js +23 -0
- package/lib/owlly/controller/index.d.ts +2 -0
- package/lib/owlly/controller/index.js +13 -0
- package/lib/owlly/controller/mouse-indicator-controller.d.ts +34 -0
- package/lib/owlly/controller/mouse-indicator-controller.js +118 -0
- package/lib/owlly/controller/orbit-control.d.ts +147 -0
- package/lib/owlly/controller/orbit-control.js +264 -0
- package/lib/owlly/controller/panorama-adjust-controller.d.ts +45 -0
- package/lib/owlly/controller/panorama-adjust-controller.js +157 -0
- package/lib/owlly/controller/panorama-controller.d.ts +441 -0
- package/lib/owlly/controller/panorama-controller.js +1943 -0
- package/lib/owlly/controller/panorama-transform-controller.d.ts +66 -0
- package/lib/owlly/controller/panorama-transform-controller.js +136 -0
- package/lib/owlly/controller/plane-controller.d.ts +43 -0
- package/lib/owlly/controller/plane-controller.js +173 -0
- package/lib/owlly/controller/texture-controller.d.ts +181 -0
- package/lib/owlly/controller/texture-controller.js +875 -0
- package/lib/owlly/controller/tile-panorama-controller.d.ts +308 -0
- package/lib/owlly/controller/tile-panorama-controller.js +1353 -0
- package/lib/owlly/controller/transform-controller.d.ts +106 -0
- package/lib/owlly/controller/transform-controller.js +545 -0
- package/lib/owlly/element/bottom-nav-element.d.ts +65 -0
- package/lib/owlly/element/bottom-nav-element.js +257 -0
- package/lib/owlly/element/camera.d.ts +82 -0
- package/lib/owlly/element/camera.js +283 -0
- package/lib/owlly/element/dom-2d-element.d.ts +35 -0
- package/lib/owlly/element/dom-2d-element.js +48 -0
- package/lib/owlly/element/dom-3d-element.d.ts +27 -0
- package/lib/owlly/element/dom-3d-element.js +33 -0
- package/lib/owlly/element/dom-label-2d.d.ts +116 -0
- package/lib/owlly/element/dom-label-2d.js +382 -0
- package/lib/owlly/element/element.d.ts +53 -0
- package/lib/owlly/element/element.js +75 -0
- package/lib/owlly/element/floor-model.d.ts +83 -0
- package/lib/owlly/element/floor-model.js +227 -0
- package/lib/owlly/element/gif-kit/Gif.d.ts +96 -0
- package/lib/owlly/element/gif-kit/Gif.js +432 -0
- package/lib/owlly/element/gif-kit/GifColor.d.ts +21 -0
- package/lib/owlly/element/gif-kit/GifColor.js +37 -0
- package/lib/owlly/element/gif-kit/GifCompressedCodesToByteArrayConverter.d.ts +20 -0
- package/lib/owlly/element/gif-kit/GifCompressedCodesToByteArrayConverter.js +50 -0
- package/lib/owlly/element/gif-kit/GifFrame.d.ts +31 -0
- package/lib/owlly/element/gif-kit/GifFrame.js +96 -0
- package/lib/owlly/element/gif-kit/GifImage.d.ts +23 -0
- package/lib/owlly/element/gif-kit/GifImage.js +7 -0
- package/lib/owlly/element/gif-kit/GifParser.d.ts +17 -0
- package/lib/owlly/element/gif-kit/GifParser.js +196 -0
- package/lib/owlly/element/gif-kit/GifPresenter.d.ts +20 -0
- package/lib/owlly/element/gif-kit/GifPresenter.js +43 -0
- package/lib/owlly/element/gif-kit/GifVersion.d.ts +10 -0
- package/lib/owlly/element/gif-kit/GifVersion.js +12 -0
- package/lib/owlly/element/gltf-mesh-element.d.ts +31 -0
- package/lib/owlly/element/gltf-mesh-element.js +136 -0
- package/lib/owlly/element/index.d.ts +20 -0
- package/lib/owlly/element/index.js +24 -0
- package/lib/owlly/element/map-kit/shape.d.ts +131 -0
- package/lib/owlly/element/map-kit/shape.js +189 -0
- package/lib/owlly/element/mesh-element.d.ts +22 -0
- package/lib/owlly/element/mesh-element.js +63 -0
- package/lib/owlly/element/mesh-line-2d.d.ts +82 -0
- package/lib/owlly/element/mesh-line-2d.js +887 -0
- package/lib/owlly/element/meshline-o.d.ts +64 -0
- package/lib/owlly/element/meshline-o.js +678 -0
- package/lib/owlly/element/panorama-group.d.ts +241 -0
- package/lib/owlly/element/panorama-group.js +966 -0
- package/lib/owlly/element/panorama.d.ts +132 -0
- package/lib/owlly/element/panorama.js +812 -0
- package/lib/owlly/element/path-group.d.ts +69 -0
- package/lib/owlly/element/path-group.js +171 -0
- package/lib/owlly/element/path.d.ts +99 -0
- package/lib/owlly/element/path.js +531 -0
- package/lib/owlly/element/placeable-2d.d.ts +158 -0
- package/lib/owlly/element/placeable-2d.js +470 -0
- package/lib/owlly/element/polygon-mesh.d.ts +107 -0
- package/lib/owlly/element/polygon-mesh.js +307 -0
- package/lib/owlly/element/ring-element.d.ts +79 -0
- package/lib/owlly/element/ring-element.js +383 -0
- package/lib/owlly/element/sphere-mesh.d.ts +28 -0
- package/lib/owlly/element/sphere-mesh.js +69 -0
- package/lib/owlly/element/svg-floor-model.d.ts +22 -0
- package/lib/owlly/element/svg-floor-model.js +184 -0
- package/lib/owlly/element/svg-floors.d.ts +27 -0
- package/lib/owlly/element/svg-floors.js +109 -0
- package/lib/owlly/element/tile-panorama-group.d.ts +335 -0
- package/lib/owlly/element/tile-panorama-group.js +1006 -0
- package/lib/owlly/element/tile-panorama.d.ts +161 -0
- package/lib/owlly/element/tile-panorama.js +509 -0
- package/lib/owlly/element/tile-plane.d.ts +105 -0
- package/lib/owlly/element/tile-plane.js +360 -0
- package/lib/owlly/element/video-element.d.ts +33 -0
- package/lib/owlly/element/video-element.js +159 -0
- package/lib/owlly/geometries/ExtrudeGeometry2.d.ts +15 -0
- package/lib/owlly/geometries/ExtrudeGeometry2.js +210 -0
- package/lib/owlly/index.d.ts +13 -0
- package/lib/owlly/index.js +16 -0
- package/lib/owlly/overlay/canvas-overlay.d.ts +96 -0
- package/lib/owlly/overlay/canvas-overlay.js +510 -0
- package/lib/owlly/overlay/css-2d-overlay.d.ts +14 -0
- package/lib/owlly/overlay/css-2d-overlay.js +35 -0
- package/lib/owlly/overlay/css-3d-overlay.d.ts +16 -0
- package/lib/owlly/overlay/css-3d-overlay.js +36 -0
- package/lib/owlly/overlay/index.d.ts +6 -0
- package/lib/owlly/overlay/index.js +11 -0
- package/lib/owlly/overlay/label-overlay.d.ts +62 -0
- package/lib/owlly/overlay/label-overlay.js +328 -0
- package/lib/owlly/overlay/overlay.d.ts +14 -0
- package/lib/owlly/overlay/overlay.js +4 -0
- package/lib/owlly/overlay/path-overlay.d.ts +39 -0
- package/lib/owlly/overlay/path-overlay.js +124 -0
- package/lib/owlly/overlay/path-overlay2.d.ts +35 -0
- package/lib/owlly/overlay/path-overlay2.js +118 -0
- package/lib/owlly/overlay/poi-overlay-3d.d.ts +278 -0
- package/lib/owlly/overlay/poi-overlay-3d.js +1432 -0
- package/lib/owlly/overlay/poi-overlay.d.ts +277 -0
- package/lib/owlly/overlay/poi-overlay.js +1411 -0
- package/lib/owlly/owlly-2d/index.d.ts +28 -0
- package/lib/owlly/owlly-2d/index.js +92 -0
- package/lib/owlly/screen/index.d.ts +1 -0
- package/lib/owlly/screen/index.js +1 -0
- package/lib/owlly/screen/screen.d.ts +73 -0
- package/lib/owlly/screen/screen.js +236 -0
- package/lib/owlly/stage/externals.d.ts +19 -0
- package/lib/owlly/stage/externals.js +24 -0
- package/lib/owlly/stage/index.d.ts +4 -0
- package/lib/owlly/stage/index.js +6 -0
- package/lib/owlly/stage/owlly.d.ts +38 -0
- package/lib/owlly/stage/owlly.js +168 -0
- package/lib/owlly/stage/stage.d.ts +108 -0
- package/lib/owlly/stage/stage.js +234 -0
- package/lib/owlly/utils/alignment-utils.d.ts +20 -0
- package/lib/owlly/utils/alignment-utils.js +63 -0
- package/lib/owlly/utils/basic-calc.d.ts +18 -0
- package/lib/owlly/utils/basic-calc.js +129 -0
- package/lib/owlly/utils/basic-tools.d.ts +71 -0
- package/lib/owlly/utils/basic-tools.js +235 -0
- package/lib/owlly/utils/bvh-tree.d.ts +105 -0
- package/lib/owlly/utils/bvh-tree.js +539 -0
- package/lib/owlly/utils/camera.d.ts +37 -0
- package/lib/owlly/utils/camera.js +50 -0
- package/lib/owlly/utils/cube-texture-cache.d.ts +25 -0
- package/lib/owlly/utils/cube-texture-cache.js +143 -0
- package/lib/owlly/utils/device-utils.d.ts +18 -0
- package/lib/owlly/utils/device-utils.js +41 -0
- package/lib/owlly/utils/environment-utils.d.ts +37 -0
- package/lib/owlly/utils/environment-utils.js +73 -0
- package/lib/owlly/utils/event-hub.d.ts +50 -0
- package/lib/owlly/utils/event-hub.js +106 -0
- package/lib/owlly/utils/events.d.ts +219 -0
- package/lib/owlly/utils/events.js +219 -0
- package/lib/owlly/utils/geometry-utils.d.ts +119 -0
- package/lib/owlly/utils/geometry-utils.js +622 -0
- package/lib/owlly/utils/helper.d.ts +6 -0
- package/lib/owlly/utils/helper.js +24 -0
- package/lib/owlly/utils/index.d.ts +14 -0
- package/lib/owlly/utils/index.js +17 -0
- package/lib/owlly/utils/lru-cache.d.ts +26 -0
- package/lib/owlly/utils/lru-cache.js +109 -0
- package/lib/owlly/utils/map-utils.d.ts +7 -0
- package/lib/owlly/utils/map-utils.js +52 -0
- package/lib/owlly/utils/number-utils.d.ts +8 -0
- package/lib/owlly/utils/number-utils.js +72 -0
- package/lib/owlly/utils/panorama-model-util.d.ts +46 -0
- package/lib/owlly/utils/panorama-model-util.js +245 -0
- package/lib/owlly/utils/path-utils.d.ts +80 -0
- package/lib/owlly/utils/path-utils.js +728 -0
- package/lib/owlly/utils/svgutils.d.ts +138 -0
- package/lib/owlly/utils/svgutils.js +561 -0
- package/lib/owlly/utils/texture-cache.d.ts +29 -0
- package/lib/owlly/utils/texture-cache.js +115 -0
- package/lib/owlly/utils/tile-util.d.ts +187 -0
- package/lib/owlly/utils/tile-util.js +456 -0
- package/lib/owlly/utils/time-profiler.d.ts +21 -0
- package/lib/owlly/utils/time-profiler.js +48 -0
- package/lib/owlly/view/camera-view.d.ts +35 -0
- package/lib/owlly/view/camera-view.js +101 -0
- package/lib/owlly/view/index.d.ts +3 -0
- package/lib/owlly/view/index.js +5 -0
- package/lib/owlly/view/orthographic-view.d.ts +40 -0
- package/lib/owlly/view/orthographic-view.js +94 -0
- package/lib/owlly/view/perspective-view.d.ts +40 -0
- package/lib/owlly/view/perspective-view.js +95 -0
- package/lib/owlly/view/svg-map-view.d.ts +46 -0
- package/lib/owlly/view/svg-map-view.js +144 -0
- package/lib/owlly/view/view.d.ts +146 -0
- package/lib/owlly/view/view.js +317 -0
- package/lib/prod/owlly.esm.js +93462 -0
- package/lib/prod/owlly.esm.js.map +1 -0
- package/lib/prod/owlly.esm.min.js +54 -0
- package/lib/prod/owlly.iife.js +93560 -0
- package/lib/prod/owlly.iife.js.map +1 -0
- package/lib/prod/owlly.iife.min.js +69 -0
- package/lib/prod/owlly.miniapp.js +73845 -0
- package/lib/prod/owlly.miniapp.js.map +1 -0
- package/lib/prod/owlly.miniapp.min.js +63 -0
- package/lib/prod/src/external/lines/line-geometry.d.ts +9 -0
- package/lib/prod/src/external/lines/line-material.d.ts +10 -0
- package/lib/prod/src/external/lines/line-segments-2.d.ts +7 -0
- package/lib/prod/src/external/lines/line-segments-geometry.d.ts +15 -0
- package/lib/prod/src/external/loaders/gltf-loader.d.ts +77 -0
- package/lib/prod/src/external/orbit-controls.d.ts +44 -0
- package/lib/prod/src/external/renderers/css-2d-renderer.d.ts +16 -0
- package/lib/prod/src/external/renderers/css-3d-renderer.d.ts +18 -0
- package/lib/prod/src/external/transform-controls.d.ts +106 -0
- package/lib/prod/src/external/util/buffer-geometry-utils.d.ts +45 -0
- package/lib/prod/src/owlly/controller/aerial-element-controller.d.ts +65 -0
- package/lib/prod/src/owlly/controller/basic-controller.d.ts +324 -0
- package/lib/prod/src/owlly/controller/camera-controller.d.ts +37 -0
- package/lib/prod/src/owlly/controller/controller.d.ts +61 -0
- package/lib/prod/src/owlly/controller/index.d.ts +2 -0
- package/lib/prod/src/owlly/controller/mouse-indicator-controller.d.ts +34 -0
- package/lib/prod/src/owlly/controller/orbit-control.d.ts +147 -0
- package/lib/prod/src/owlly/controller/panorama-adjust-controller.d.ts +45 -0
- package/lib/prod/src/owlly/controller/panorama-controller.d.ts +441 -0
- package/lib/prod/src/owlly/controller/panorama-transform-controller.d.ts +66 -0
- package/lib/prod/src/owlly/controller/plane-controller.d.ts +43 -0
- package/lib/prod/src/owlly/controller/texture-controller.d.ts +183 -0
- package/lib/prod/src/owlly/controller/tile-panorama-controller.d.ts +308 -0
- package/lib/prod/src/owlly/controller/transform-controller.d.ts +106 -0
- package/lib/prod/src/owlly/element/bottom-nav-element.d.ts +65 -0
- package/lib/prod/src/owlly/element/camera.d.ts +82 -0
- package/lib/prod/src/owlly/element/dom-2d-element.d.ts +35 -0
- package/lib/prod/src/owlly/element/dom-3d-element.d.ts +27 -0
- package/lib/prod/src/owlly/element/dom-label-2d.d.ts +116 -0
- package/lib/prod/src/owlly/element/element.d.ts +53 -0
- package/lib/prod/src/owlly/element/floor-model.d.ts +83 -0
- package/lib/prod/src/owlly/element/gif-kit/Gif.d.ts +96 -0
- package/lib/prod/src/owlly/element/gif-kit/GifColor.d.ts +21 -0
- package/lib/prod/src/owlly/element/gif-kit/GifCompressedCodesToByteArrayConverter.d.ts +20 -0
- package/lib/prod/src/owlly/element/gif-kit/GifFrame.d.ts +31 -0
- package/lib/prod/src/owlly/element/gif-kit/GifImage.d.ts +23 -0
- package/lib/prod/src/owlly/element/gif-kit/GifParser.d.ts +17 -0
- package/lib/prod/src/owlly/element/gif-kit/GifPresenter.d.ts +20 -0
- package/lib/prod/src/owlly/element/gif-kit/GifVersion.d.ts +10 -0
- package/lib/prod/src/owlly/element/gltf-mesh-element.d.ts +31 -0
- package/lib/prod/src/owlly/element/index.d.ts +6 -0
- package/lib/prod/src/owlly/element/map-kit/area.d.ts +24 -0
- package/lib/prod/src/owlly/element/map-kit/block-set.d.ts +39 -0
- package/lib/prod/src/owlly/element/map-kit/block.d.ts +77 -0
- package/lib/prod/src/owlly/element/map-kit/index.d.ts +3 -0
- package/lib/prod/src/owlly/element/map-kit/shape.d.ts +131 -0
- package/lib/prod/src/owlly/element/mesh-element.d.ts +22 -0
- package/lib/prod/src/owlly/element/mesh-line-2d.d.ts +82 -0
- package/lib/prod/src/owlly/element/meshline-o.d.ts +64 -0
- package/lib/prod/src/owlly/element/panorama-group.d.ts +241 -0
- package/lib/prod/src/owlly/element/panorama.d.ts +132 -0
- package/lib/prod/src/owlly/element/path-group.d.ts +69 -0
- package/lib/prod/src/owlly/element/path.d.ts +99 -0
- package/lib/prod/src/owlly/element/placeable-2d.d.ts +158 -0
- package/lib/prod/src/owlly/element/polygon-mesh.d.ts +107 -0
- package/lib/prod/src/owlly/element/ring-element.d.ts +79 -0
- package/lib/prod/src/owlly/element/sphere-mesh.d.ts +28 -0
- package/lib/prod/src/owlly/element/svg-floor-model.d.ts +22 -0
- package/lib/prod/src/owlly/element/svg-floors.d.ts +27 -0
- package/lib/prod/src/owlly/element/tile-panorama-group.d.ts +335 -0
- package/lib/prod/src/owlly/element/tile-panorama.d.ts +162 -0
- package/lib/prod/src/owlly/element/tile-plane.d.ts +114 -0
- package/lib/prod/src/owlly/element/video-element.d.ts +33 -0
- package/lib/prod/src/owlly/geometries/ExtrudeGeometry2.d.ts +15 -0
- package/lib/prod/src/owlly/index.d.ts +13 -0
- package/lib/prod/src/owlly/overlay/canvas-overlay.d.ts +96 -0
- package/lib/prod/src/owlly/overlay/css-2d-overlay.d.ts +14 -0
- package/lib/prod/src/owlly/overlay/css-3d-overlay.d.ts +16 -0
- package/lib/prod/src/owlly/overlay/index.d.ts +5 -0
- package/lib/prod/src/owlly/overlay/label-overlay.d.ts +62 -0
- package/lib/prod/src/owlly/overlay/overlay.d.ts +14 -0
- package/lib/prod/src/owlly/overlay/path-overlay.d.ts +39 -0
- package/lib/prod/src/owlly/overlay/path-overlay2.d.ts +35 -0
- package/lib/prod/src/owlly/overlay/poi-overlay-3d.d.ts +278 -0
- package/lib/prod/src/owlly/overlay/poi-overlay.d.ts +277 -0
- package/lib/prod/src/owlly/owlly-2d/index.d.ts +28 -0
- package/lib/prod/src/owlly/screen/index.d.ts +1 -0
- package/lib/prod/src/owlly/screen/screen.d.ts +73 -0
- package/lib/prod/src/owlly/stage/__test__/stage.spec.d.ts +1 -0
- package/lib/prod/src/owlly/stage/externals.d.ts +19 -0
- package/lib/prod/src/owlly/stage/index.d.ts +3 -0
- package/lib/prod/src/owlly/stage/owlly.d.ts +38 -0
- package/lib/prod/src/owlly/stage/stage.d.ts +108 -0
- package/lib/prod/src/owlly/utils/alignment-utils.d.ts +20 -0
- package/lib/prod/src/owlly/utils/basic-calc.d.ts +18 -0
- package/lib/prod/src/owlly/utils/basic-tools.d.ts +71 -0
- package/lib/prod/src/owlly/utils/bvh-tree.d.ts +105 -0
- package/lib/prod/src/owlly/utils/camera.d.ts +37 -0
- package/lib/prod/src/owlly/utils/cube-texture-cache.d.ts +25 -0
- package/lib/prod/src/owlly/utils/device-utils.d.ts +18 -0
- package/lib/prod/src/owlly/utils/environment-utils.d.ts +37 -0
- package/lib/prod/src/owlly/utils/event-hub.d.ts +50 -0
- package/lib/prod/src/owlly/utils/events.d.ts +219 -0
- package/lib/prod/src/owlly/utils/geometry-utils.d.ts +119 -0
- package/lib/prod/src/owlly/utils/helper.d.ts +6 -0
- package/lib/prod/src/owlly/utils/index.d.ts +13 -0
- package/lib/prod/src/owlly/utils/lru-cache.d.ts +26 -0
- package/lib/prod/src/owlly/utils/map-utils.d.ts +7 -0
- package/lib/prod/src/owlly/utils/number-utils.d.ts +8 -0
- package/lib/prod/src/owlly/utils/panorama-model-util.d.ts +46 -0
- package/lib/prod/src/owlly/utils/path-utils.d.ts +80 -0
- package/lib/prod/src/owlly/utils/svgutils.d.ts +138 -0
- package/lib/prod/src/owlly/utils/texture-cache.d.ts +29 -0
- package/lib/prod/src/owlly/utils/tile-util.d.ts +187 -0
- package/lib/prod/src/owlly/utils/time-profiler.d.ts +21 -0
- package/lib/prod/src/owlly/view/__test__/perspective-view.spec.d.ts +0 -0
- package/lib/prod/src/owlly/view/camera-view.d.ts +35 -0
- package/lib/prod/src/owlly/view/index.d.ts +3 -0
- package/lib/prod/src/owlly/view/orthographic-view.d.ts +40 -0
- package/lib/prod/src/owlly/view/perspective-view.d.ts +40 -0
- package/lib/prod/src/owlly/view/svg-map-view.d.ts +46 -0
- package/lib/prod/src/owlly/view/view.d.ts +146 -0
- package/lib/src/owlly/controller/texture-controller.d.ts +3 -1
- package/lib/src/owlly/controller/texture-controller.js +16 -1
- package/lib/src/owlly/controller/texture-controller.js.map +1 -1
- package/lib/src/owlly/controller/tile-panorama-controller.js +4 -0
- package/lib/src/owlly/controller/tile-panorama-controller.js.map +1 -1
- package/lib/src/owlly/element/tile-panorama.d.ts +1 -0
- package/lib/src/owlly/element/tile-panorama.js +16 -3
- package/lib/src/owlly/element/tile-panorama.js.map +1 -1
- package/lib/src/owlly/element/tile-plane.d.ts +9 -0
- package/lib/src/owlly/element/tile-plane.js +27 -0
- package/lib/src/owlly/element/tile-plane.js.map +1 -1
- package/lib/src/owlly/overlay/poi-overlay-3d.js.map +1 -1
- package/lib/src/owlly/overlay/poi-overlay.js.map +1 -1
- package/lib/src/owlly/stage/owlly.js +7 -1
- package/lib/src/owlly/stage/owlly.js.map +1 -1
- package/lib/src/owlly/stage/stage.js +2 -0
- package/lib/src/owlly/stage/stage.js.map +1 -1
- package/lib/src/web/main.rpeng.mes.plane.js.map +1 -1
- package/package.json +16 -7
- package/src/owlly/controller/texture-controller.ts +18 -1
- package/src/owlly/controller/tile-panorama-controller.ts +3 -1
- package/src/owlly/element/tile-panorama.ts +14 -0
- package/src/owlly/element/tile-plane.ts +26 -0
- package/src/owlly/overlay/poi-overlay-3d.ts +0 -4
- package/src/owlly/overlay/poi-overlay.ts +0 -4
- package/src/owlly/stage/owlly.ts +6 -1
- package/src/owlly/stage/stage.ts +2 -0
- package/src/web/main.rpeng.mes.plane.ts +0 -6
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { Externals } from '../stage/externals';
|
|
2
|
+
// #if WEB_ONLY
|
|
3
|
+
import { Owlly2D } from '../owlly-2d';
|
|
4
|
+
// #endif
|
|
5
|
+
import { OwllyEvents } from '../utils/events';
|
|
6
|
+
import { EventHubClassic } from '../utils/event-hub';
|
|
7
|
+
import { PoiOverlay } from '..';
|
|
8
|
+
/** @ignore */
|
|
9
|
+
class View extends EventHubClassic {
|
|
10
|
+
/**
|
|
11
|
+
* @param screen 指定 View 所绘制的 Screen
|
|
12
|
+
* @param renderStage 是否渲染所绑定场景
|
|
13
|
+
*/
|
|
14
|
+
constructor(screen, renderStage = true) {
|
|
15
|
+
super();
|
|
16
|
+
this.overlays = [];
|
|
17
|
+
this.enabled = true;
|
|
18
|
+
this.renderStage = renderStage;
|
|
19
|
+
this.renderOrder = 0;
|
|
20
|
+
this.listeners = {
|
|
21
|
+
mouseDown: this.mouseDown.bind(this),
|
|
22
|
+
mouseMove: this.mouseMove.bind(this),
|
|
23
|
+
mouseUp: this.mouseUp.bind(this),
|
|
24
|
+
mouseWheel: this.mouseWheel.bind(this),
|
|
25
|
+
touchStart: this.touchStart.bind(this),
|
|
26
|
+
touchMove: this.touchMove.bind(this),
|
|
27
|
+
touchEnd: this.touchEnd.bind(this),
|
|
28
|
+
contextMenu: this.contextMenu.bind(this),
|
|
29
|
+
dblclick: this.dblclick.bind(this),
|
|
30
|
+
};
|
|
31
|
+
const { THREE } = Externals.getInstance();
|
|
32
|
+
// 初始化
|
|
33
|
+
this.rendererOffsetDefault = new THREE.Vector4(0, 0, 0, 0);
|
|
34
|
+
if (screen)
|
|
35
|
+
this.bindScreen(screen);
|
|
36
|
+
}
|
|
37
|
+
mouseDown(e) {
|
|
38
|
+
if (this.isInView(e.offsetX, e.offsetY))
|
|
39
|
+
this.emit(OwllyEvents.MOUSE_DOWN, e);
|
|
40
|
+
}
|
|
41
|
+
mouseMove(e) {
|
|
42
|
+
this.emit(OwllyEvents.MOUSE_MOVE, e);
|
|
43
|
+
}
|
|
44
|
+
mouseUp(e) {
|
|
45
|
+
this.emit(OwllyEvents.MOUSE_UP, e);
|
|
46
|
+
}
|
|
47
|
+
mouseWheel(e) {
|
|
48
|
+
if (this.isInView(e.offsetX, e.offsetY))
|
|
49
|
+
this.emit(OwllyEvents.MOUSE_WHEEL, e);
|
|
50
|
+
}
|
|
51
|
+
touchStart(e) {
|
|
52
|
+
if (this.isTouchInView(e))
|
|
53
|
+
this.emit(OwllyEvents.TOUCH_START, e);
|
|
54
|
+
}
|
|
55
|
+
touchMove(e) {
|
|
56
|
+
this.emit(OwllyEvents.TOUCH_MOVE, e);
|
|
57
|
+
}
|
|
58
|
+
touchEnd(e) {
|
|
59
|
+
this.emit(OwllyEvents.TOUCH_END, e);
|
|
60
|
+
}
|
|
61
|
+
contextMenu(e) {
|
|
62
|
+
if (this.isInView(e.offsetX, e.offsetY))
|
|
63
|
+
this.emit(OwllyEvents.CONTEXT_MENU, e);
|
|
64
|
+
}
|
|
65
|
+
dblclick(e) {
|
|
66
|
+
this.emit(OwllyEvents.DBLCLICK, e);
|
|
67
|
+
}
|
|
68
|
+
set render3D(value) {
|
|
69
|
+
this.renderStage = value;
|
|
70
|
+
}
|
|
71
|
+
get container() {
|
|
72
|
+
if (!this.parent)
|
|
73
|
+
throw new Error('will be removed');
|
|
74
|
+
return this.parent.container;
|
|
75
|
+
}
|
|
76
|
+
get canvas() {
|
|
77
|
+
if (!this.parent)
|
|
78
|
+
throw new Error('will be removed');
|
|
79
|
+
return this.parent.canvas;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 事件是否在当前view裁剪区域内触发
|
|
83
|
+
*/
|
|
84
|
+
isInView(eX, eY) {
|
|
85
|
+
const { x, y, z, w, } = this.rendererOffset || this.rendererOffsetDefault;
|
|
86
|
+
const viewY = this.parent.height - eY; // three的y坐标和屏幕坐标是反着的
|
|
87
|
+
return eX > x && eX < (x + z) && viewY > y && viewY < (y + w);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* 事件是否在当前view裁剪区域内触发
|
|
91
|
+
* 移动端,判断多个点
|
|
92
|
+
*/
|
|
93
|
+
isTouchInView(e) {
|
|
94
|
+
let isIn = false;
|
|
95
|
+
const target = e.target;
|
|
96
|
+
if (!e.target)
|
|
97
|
+
return isIn;
|
|
98
|
+
const box = target.getBoundingClientRect();
|
|
99
|
+
for (let i = 0; i < e.touches.length; i++) {
|
|
100
|
+
if (this.isInView(e.touches[i].clientX - box.x, e.touches[i].clientY - box.y)) {
|
|
101
|
+
isIn = true;
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return isIn;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 绑定 Screen
|
|
109
|
+
*/
|
|
110
|
+
bindScreen(screen) {
|
|
111
|
+
if (this.parent)
|
|
112
|
+
this.unbindScreen();
|
|
113
|
+
this.parent = screen;
|
|
114
|
+
this.registerScreenEvents();
|
|
115
|
+
this.parent.addView(this);
|
|
116
|
+
this.renderer = this.parent.renderer;
|
|
117
|
+
const { THREE } = Externals.getInstance();
|
|
118
|
+
// 默认裁剪区域,为canvas全部区域
|
|
119
|
+
this.rendererOffsetDefault = new THREE.Vector4(0, 0, this.parent.width, this.parent.height);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 解绑 Screen
|
|
123
|
+
*/
|
|
124
|
+
unbindScreen() {
|
|
125
|
+
if (!this.parent)
|
|
126
|
+
return;
|
|
127
|
+
this.unregisterScreenEvents();
|
|
128
|
+
this.parent.removeView(this);
|
|
129
|
+
this.parent = null;
|
|
130
|
+
this.renderer = null;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @ignore
|
|
134
|
+
*/
|
|
135
|
+
registerScreenEvents() {
|
|
136
|
+
if (!this.parent)
|
|
137
|
+
return;
|
|
138
|
+
this.parent.on(OwllyEvents.MOUSE_DOWN, this.listeners.mouseDown);
|
|
139
|
+
this.parent.on(OwllyEvents.MOUSE_MOVE, this.listeners.mouseMove);
|
|
140
|
+
this.parent.on(OwllyEvents.MOUSE_UP, this.listeners.mouseUp);
|
|
141
|
+
this.parent.on(OwllyEvents.MOUSE_WHEEL, this.listeners.mouseWheel);
|
|
142
|
+
this.parent.on(OwllyEvents.TOUCH_START, this.listeners.touchStart);
|
|
143
|
+
this.parent.on(OwllyEvents.TOUCH_MOVE, this.listeners.touchMove);
|
|
144
|
+
this.parent.on(OwllyEvents.TOUCH_END, this.listeners.touchEnd);
|
|
145
|
+
this.parent.on(OwllyEvents.CONTEXT_MENU, this.listeners.contextMenu);
|
|
146
|
+
this.parent.on(OwllyEvents.DBLCLICK, this.listeners.dblclick);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @ignore
|
|
150
|
+
*/
|
|
151
|
+
unregisterScreenEvents() {
|
|
152
|
+
if (!this.parent)
|
|
153
|
+
return;
|
|
154
|
+
this.parent.off(OwllyEvents.MOUSE_DOWN, this.listeners.mouseDown);
|
|
155
|
+
this.parent.off(OwllyEvents.MOUSE_MOVE, this.listeners.mouseMove);
|
|
156
|
+
this.parent.off(OwllyEvents.MOUSE_UP, this.listeners.mouseUp);
|
|
157
|
+
this.parent.off(OwllyEvents.MOUSE_WHEEL, this.listeners.mouseWheel);
|
|
158
|
+
this.parent.off(OwllyEvents.TOUCH_START, this.listeners.touchStart);
|
|
159
|
+
this.parent.off(OwllyEvents.TOUCH_MOVE, this.listeners.touchMove);
|
|
160
|
+
this.parent.off(OwllyEvents.TOUCH_END, this.listeners.touchEnd);
|
|
161
|
+
this.parent.off(OwllyEvents.CONTEXT_MENU, this.listeners.contextMenu);
|
|
162
|
+
this.parent.off(OwllyEvents.DBLCLICK, this.listeners.dblclick);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* 销毁 View
|
|
166
|
+
*/
|
|
167
|
+
dispose() {
|
|
168
|
+
this.overlays.forEach((o) => { o.dispose(); });
|
|
169
|
+
this.overlays = [];
|
|
170
|
+
// #if WEB_ONLY
|
|
171
|
+
if (this.container)
|
|
172
|
+
Owlly2D.disposeStage(this.container);
|
|
173
|
+
// #endif
|
|
174
|
+
this.unbindScreen();
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 添加 Overlay, Overlay 渲染顺序与添加顺序一致
|
|
178
|
+
* @param overlay 需要添加的 Overlay
|
|
179
|
+
*/
|
|
180
|
+
addOverlay(overlay) {
|
|
181
|
+
overlay.init(this);
|
|
182
|
+
this.overlays.push(overlay);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* 移除 Overlay
|
|
186
|
+
* @param overlay 需要移除的 Overlay
|
|
187
|
+
*/
|
|
188
|
+
removeOverlay(overlay) {
|
|
189
|
+
const index = this.overlays.indexOf(overlay);
|
|
190
|
+
if (index !== -1) {
|
|
191
|
+
overlay.dispose();
|
|
192
|
+
this.overlays.splice(index, 1);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* 设置 View 的渲染尺寸
|
|
197
|
+
* @param containerWidth 宽度, 单位 px
|
|
198
|
+
* @param containerHeight 高度, 单位 px
|
|
199
|
+
*/
|
|
200
|
+
resize(containerWidth, containerHeight) {
|
|
201
|
+
const { z, w, } = this.rendererOffsetDefault;
|
|
202
|
+
this.rendererOffsetDefault.set(0, 0, containerWidth, containerHeight);
|
|
203
|
+
if (this.rendererOffset) {
|
|
204
|
+
const scaleX = this.rendererOffset.z / z;
|
|
205
|
+
const scaleY = this.rendererOffset.w / w;
|
|
206
|
+
const { THREE } = Externals.getInstance();
|
|
207
|
+
this.rendererOffset.multiply(new THREE.Vector4(scaleX, scaleY, scaleX, scaleY));
|
|
208
|
+
}
|
|
209
|
+
this.overlays.forEach((o) => o.resize && o.resize(containerWidth, containerHeight));
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* 钩子函数, 更新 View, 每一个 tick 执行
|
|
213
|
+
* @ignore
|
|
214
|
+
*/
|
|
215
|
+
update() {
|
|
216
|
+
if (!this.enabled)
|
|
217
|
+
return false;
|
|
218
|
+
let result = false;
|
|
219
|
+
result = this.overlays.reduce((tf, e) => (e.update() || tf), false);
|
|
220
|
+
return result;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 渲染该 View
|
|
224
|
+
* @ignore
|
|
225
|
+
*/
|
|
226
|
+
renderView() {
|
|
227
|
+
if (!this.enabled)
|
|
228
|
+
return;
|
|
229
|
+
if (this.renderStage) {
|
|
230
|
+
this.stage.resizeElements(this.getViewWidth(), this.getViewHeight());
|
|
231
|
+
this.stage.renderElements();
|
|
232
|
+
if (this.renderer) {
|
|
233
|
+
this.renderer.clearDepth();
|
|
234
|
+
}
|
|
235
|
+
this.render();
|
|
236
|
+
this.overlays.forEach((o) => {
|
|
237
|
+
if (o instanceof PoiOverlay) {
|
|
238
|
+
o.forceRenderInThisFrame();
|
|
239
|
+
}
|
|
240
|
+
o.render();
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* 设置当前View是否工作
|
|
246
|
+
* @param value 开关值
|
|
247
|
+
*/
|
|
248
|
+
setEnabled(value) {
|
|
249
|
+
this.enabled = value;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* 绑定 Stage
|
|
253
|
+
* @param stage 需要绑定的 Stage
|
|
254
|
+
*/
|
|
255
|
+
bindStage(stage) {
|
|
256
|
+
this.stage = stage;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* 设置 View的 裁剪区域,外部调用
|
|
260
|
+
* @param rendererOffset 裁剪配置
|
|
261
|
+
*/
|
|
262
|
+
setViewport(rendererOffset) {
|
|
263
|
+
this.rendererOffset = rendererOffset;
|
|
264
|
+
if (!this.parent)
|
|
265
|
+
console.warn('view.setViewport() is before bind screen'); // eslint-disable-line
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* 设置renderer的裁剪区域,screen调用
|
|
269
|
+
* @ignore
|
|
270
|
+
*/
|
|
271
|
+
setRendererPort() {
|
|
272
|
+
if (!this.renderer || !this.rendererOffset)
|
|
273
|
+
return;
|
|
274
|
+
const r = this.renderer;
|
|
275
|
+
r.setScissorTest(true);
|
|
276
|
+
r.setViewport(this.rendererOffset.x, this.rendererOffset.y, this.rendererOffset.z, this.rendererOffset.w);
|
|
277
|
+
r.setScissor(this.rendererOffset.x, this.rendererOffset.y, this.rendererOffset.z, this.rendererOffset.w);
|
|
278
|
+
r.setScissorTest(false);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* 清空renderer的裁剪区域,screen调用
|
|
282
|
+
* @ignore
|
|
283
|
+
*/
|
|
284
|
+
clearRendererPort() {
|
|
285
|
+
if (!this.renderer || !this.rendererOffset)
|
|
286
|
+
return;
|
|
287
|
+
const r = this.renderer;
|
|
288
|
+
r.setScissorTest(true);
|
|
289
|
+
r.setViewport(this.rendererOffsetDefault);
|
|
290
|
+
r.setScissor(this.rendererOffsetDefault);
|
|
291
|
+
r.setScissorTest(false);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* 获取view的实际宽度
|
|
295
|
+
*/
|
|
296
|
+
getViewWidth() {
|
|
297
|
+
return this.rendererOffset ? this.rendererOffset.z : this.rendererOffsetDefault.z;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* 获取view的实际高度
|
|
301
|
+
*/
|
|
302
|
+
getViewHeight() {
|
|
303
|
+
return this.rendererOffset ? this.rendererOffset.w : this.rendererOffsetDefault.w;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* 获取view的实际与screen的偏离
|
|
307
|
+
*/
|
|
308
|
+
getViewOffset() {
|
|
309
|
+
return this.rendererOffset
|
|
310
|
+
? [this.rendererOffset.x, this.rendererOffset.y]
|
|
311
|
+
: [this.rendererOffsetDefault.x, this.rendererOffsetDefault.y];
|
|
312
|
+
}
|
|
313
|
+
setRenderOrder(renderOrder) {
|
|
314
|
+
this.renderOrder = renderOrder || 0;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
export { View };
|