@aibee/owlly 1.0.25 → 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,118 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { Externals } from '../stage/externals';
|
|
3
|
+
import { Overlay } from './overlay';
|
|
4
|
+
import { MeshLine2D } from '../element';
|
|
5
|
+
/**
|
|
6
|
+
* POI覆盖层, 画线用
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const PathOverlay2 = new PathOverlay2();
|
|
10
|
+
* // 任意View
|
|
11
|
+
* view.addOverlay(PathOverlay2);
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
class PathOverlay2 extends Overlay {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.pathMap = new Map();
|
|
18
|
+
this.renderThisFrame = true;
|
|
19
|
+
PathOverlay2.instanceId = 0;
|
|
20
|
+
}
|
|
21
|
+
init(parent) {
|
|
22
|
+
const { THREE } = Externals.getInstance();
|
|
23
|
+
this.parent = parent;
|
|
24
|
+
this.scene = new THREE.Scene();
|
|
25
|
+
this.camera = this.parent.camera;
|
|
26
|
+
this.renderer = this.parent.renderer;
|
|
27
|
+
this.pathMap = new Map();
|
|
28
|
+
this.enabled = true;
|
|
29
|
+
this.renderThisFrame = true;
|
|
30
|
+
}
|
|
31
|
+
update() {
|
|
32
|
+
let paths = [];
|
|
33
|
+
Array.from(this.pathMap).forEach(([name, pathGroup]) => {
|
|
34
|
+
paths = [...paths, ...Array.from(pathGroup)];
|
|
35
|
+
});
|
|
36
|
+
const pathNeedUpdate = paths.reduce((tf, e) => (this.handleElementUpdate(e.update()) || tf), false);
|
|
37
|
+
if (this.renderThisFrame || pathNeedUpdate) {
|
|
38
|
+
this.renderThisFrame = false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
handleElementUpdate(context) {
|
|
44
|
+
return context.needUpdate;
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
if (!this.enabled)
|
|
48
|
+
return;
|
|
49
|
+
this.resize(this.parent.getViewWidth(), this.parent.getViewHeight());
|
|
50
|
+
this.renderer.clearDepth();
|
|
51
|
+
this.renderer.render(this.scene, this.camera);
|
|
52
|
+
}
|
|
53
|
+
resize(containerWidth, containerHeight) {
|
|
54
|
+
this.pathMap.forEach((pathGroup) => {
|
|
55
|
+
for (let path of pathGroup) {
|
|
56
|
+
path.resize(containerWidth, containerHeight);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
setEnabled(value) {
|
|
61
|
+
this.enabled = value;
|
|
62
|
+
}
|
|
63
|
+
createPath(points, options, ifClear = false) {
|
|
64
|
+
if (ifClear) {
|
|
65
|
+
this.clearPaths();
|
|
66
|
+
}
|
|
67
|
+
if (!this.scene)
|
|
68
|
+
throw Error('pathOverlay need bind a view, use view.addOverlay()');
|
|
69
|
+
const pathGroup = new Set();
|
|
70
|
+
this.renderThisFrame = true;
|
|
71
|
+
PathOverlay2.instanceId++;
|
|
72
|
+
if (options.strokeWidth && options.strokeColor) {
|
|
73
|
+
const borPath = new MeshLine2D(points, Object.assign(Object.assign({}, options), { strokeWidth: 0, width: (options.width + options.strokeWidth * 2), color: options.strokeColor, renderPixelLine: true }));
|
|
74
|
+
const borName = `border_${PathOverlay2.instanceId}`;
|
|
75
|
+
borPath.name = borName;
|
|
76
|
+
pathGroup.add(borPath);
|
|
77
|
+
this.scene.add(borPath);
|
|
78
|
+
}
|
|
79
|
+
const path = new MeshLine2D(points, Object.assign(Object.assign({}, options), { strokeWidth: 0, renderPixelLine: true }));
|
|
80
|
+
const pathId = PathOverlay2.instanceId;
|
|
81
|
+
const name = pathId + '';
|
|
82
|
+
path.name = name;
|
|
83
|
+
pathGroup.add(path);
|
|
84
|
+
this.scene.add(path);
|
|
85
|
+
// // console.log('path.testLines.', path.testLines)
|
|
86
|
+
// path.testLines.forEach((v: any) => {
|
|
87
|
+
// this.scene.add(v);
|
|
88
|
+
// })
|
|
89
|
+
this.pathMap.set(name, pathGroup);
|
|
90
|
+
return pathGroup;
|
|
91
|
+
}
|
|
92
|
+
removePath(path) {
|
|
93
|
+
const name = path.name;
|
|
94
|
+
const curPathGroup = this.pathMap.get(name);
|
|
95
|
+
if (curPathGroup) {
|
|
96
|
+
for (let path of curPathGroup) {
|
|
97
|
+
this.scene.remove(path);
|
|
98
|
+
path.dispose();
|
|
99
|
+
}
|
|
100
|
+
this.pathMap.delete(name);
|
|
101
|
+
this.renderThisFrame = true;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
clearPaths() {
|
|
105
|
+
this.pathMap.forEach((pathGroup) => {
|
|
106
|
+
for (let path of pathGroup) {
|
|
107
|
+
this.scene.remove(path);
|
|
108
|
+
path.dispose();
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
this.pathMap.clear();
|
|
112
|
+
this.renderThisFrame = true;
|
|
113
|
+
}
|
|
114
|
+
dispose() {
|
|
115
|
+
this.clearPaths();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export { PathOverlay2 };
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { Euler } from 'three';
|
|
2
|
+
import { NS_THREE } from '../stage/externals';
|
|
3
|
+
import { Overlay } from './overlay';
|
|
4
|
+
import { View } from '../view/view';
|
|
5
|
+
/**
|
|
6
|
+
* POI元素, 包含一个图标与一段文字
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const poiOverlay = new PoiOverlay();
|
|
10
|
+
* const poi = poiOverlay.createPoi(new Vector3(0, 0, 0));
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
interface Rect {
|
|
14
|
+
xMin: number;
|
|
15
|
+
xMax: number;
|
|
16
|
+
yMin: number;
|
|
17
|
+
yMax: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* POI覆盖层, 可以展示POI图标与文字, 存在图标时以图标中心为中心, 否则为文字中心
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const poiOverlay = new PoiOverlay();
|
|
24
|
+
* // 任意View
|
|
25
|
+
* view.addOverlay(poiOverlay);
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare class Poi3DOverlay extends Overlay {
|
|
29
|
+
static canvas: HTMLCanvasElement;
|
|
30
|
+
static ctx: CanvasRenderingContext2D;
|
|
31
|
+
private parent;
|
|
32
|
+
private rectMap;
|
|
33
|
+
private pois;
|
|
34
|
+
private mouseState;
|
|
35
|
+
private mousePositionBuffer;
|
|
36
|
+
private eventTarget;
|
|
37
|
+
private enabled;
|
|
38
|
+
private renderThisFrame;
|
|
39
|
+
private visible;
|
|
40
|
+
camera: NS_THREE.Camera;
|
|
41
|
+
scene: NS_THREE.Scene;
|
|
42
|
+
renderCamera: NS_THREE.OrthographicCamera;
|
|
43
|
+
renderer: NS_THREE.WebGL1Renderer;
|
|
44
|
+
orderPois: Function;
|
|
45
|
+
prevPosition: NS_THREE.Vector3 | null;
|
|
46
|
+
prevQuaternion: NS_THREE.Quaternion | null;
|
|
47
|
+
prevZoom: any;
|
|
48
|
+
private needRender;
|
|
49
|
+
private listeners;
|
|
50
|
+
constructor(canvas?: HTMLCanvasElement);
|
|
51
|
+
init(parent: View): void;
|
|
52
|
+
update(): boolean;
|
|
53
|
+
forceRenderInThisFrame(): void;
|
|
54
|
+
render(): void;
|
|
55
|
+
orderPoisByLevel(): void;
|
|
56
|
+
recalculateVisibilities(pois: Poi3D[]): void;
|
|
57
|
+
checkUpdate(): void;
|
|
58
|
+
dispose(): void;
|
|
59
|
+
private onPointerDown;
|
|
60
|
+
private onPointerUp;
|
|
61
|
+
private onTouchStart;
|
|
62
|
+
private onTouchEnd;
|
|
63
|
+
private onNodePointerDown;
|
|
64
|
+
/**
|
|
65
|
+
* 新建POI
|
|
66
|
+
* @param position POI在3D空间中的位置
|
|
67
|
+
*/
|
|
68
|
+
createPoi(position: NS_THREE.Vector3): Poi3D;
|
|
69
|
+
setRectMap(rect: Rect, ele: Poi3D): void;
|
|
70
|
+
/**
|
|
71
|
+
* 删除POI
|
|
72
|
+
* @param poi 待删除的POI
|
|
73
|
+
*/
|
|
74
|
+
removePoi(poi: Poi3D): void;
|
|
75
|
+
clearPoi(): void;
|
|
76
|
+
/**
|
|
77
|
+
* 设置覆盖层可见性 兼容旧poi
|
|
78
|
+
* @param visible 覆盖层是否可见
|
|
79
|
+
*/
|
|
80
|
+
setVisibility(visible: boolean): void;
|
|
81
|
+
setEnabled(value: boolean): void;
|
|
82
|
+
resize(viewWidth: number, viewHeight: number): void;
|
|
83
|
+
private updateCameraAspect;
|
|
84
|
+
}
|
|
85
|
+
declare class Poi3D {
|
|
86
|
+
static ImageMaterialMap: Map<any, any>;
|
|
87
|
+
private position;
|
|
88
|
+
private screenPosition;
|
|
89
|
+
private visible;
|
|
90
|
+
private hide;
|
|
91
|
+
private parent;
|
|
92
|
+
private subHide;
|
|
93
|
+
private textVisibility;
|
|
94
|
+
private iconVisibility;
|
|
95
|
+
private animationEnabled;
|
|
96
|
+
isInFrustum: boolean;
|
|
97
|
+
private textPosInfo;
|
|
98
|
+
private iconPosInfo;
|
|
99
|
+
private autoRotation;
|
|
100
|
+
private rotation;
|
|
101
|
+
collision: boolean;
|
|
102
|
+
private boundingBox;
|
|
103
|
+
private overlapArea;
|
|
104
|
+
collisionMode: string;
|
|
105
|
+
private withBoundingBox;
|
|
106
|
+
private subAreaOpacity;
|
|
107
|
+
private abandonedAreaOpacity;
|
|
108
|
+
private visiblePartWhenCollision;
|
|
109
|
+
private boundingRect;
|
|
110
|
+
private outerRect;
|
|
111
|
+
private iconCircleOptions;
|
|
112
|
+
private iconInCircle;
|
|
113
|
+
private iconRect;
|
|
114
|
+
private textRect;
|
|
115
|
+
private visibilityAnimation;
|
|
116
|
+
private textWidth;
|
|
117
|
+
private textHeight;
|
|
118
|
+
private iconSize;
|
|
119
|
+
private textMaterial;
|
|
120
|
+
private iconMaterial;
|
|
121
|
+
private iconCircleMaterial;
|
|
122
|
+
private rectMaterial;
|
|
123
|
+
private text;
|
|
124
|
+
private icon;
|
|
125
|
+
group: NS_THREE.Group | null;
|
|
126
|
+
poiId: number;
|
|
127
|
+
private iconOptions;
|
|
128
|
+
private labelOptions;
|
|
129
|
+
private rectOptions;
|
|
130
|
+
private withRect;
|
|
131
|
+
private rect;
|
|
132
|
+
private level;
|
|
133
|
+
private dpr;
|
|
134
|
+
private isFlipY;
|
|
135
|
+
private _renderThisFrame;
|
|
136
|
+
private labelOpacity;
|
|
137
|
+
private iconOpacity;
|
|
138
|
+
private set renderThisFrame(value);
|
|
139
|
+
private get renderThisFrame();
|
|
140
|
+
constructor(position?: NS_THREE.Vector3);
|
|
141
|
+
dispose(): void;
|
|
142
|
+
setParent(parent: Poi3DOverlay): void;
|
|
143
|
+
setPosition(position: NS_THREE.Vector3, tolerance?: number): void;
|
|
144
|
+
setOpacity(labelOpacity?: number, iconOpacity?: number): void;
|
|
145
|
+
/**
|
|
146
|
+
* 设置旋转角度
|
|
147
|
+
* @param rotation 旋转角度
|
|
148
|
+
*/
|
|
149
|
+
setRotation(rotation: number, tolerance?: number): void;
|
|
150
|
+
/**
|
|
151
|
+
* 设置是否碰撞
|
|
152
|
+
* @param collision 是否碰撞
|
|
153
|
+
*/
|
|
154
|
+
setCollision(collision: boolean): void;
|
|
155
|
+
/**
|
|
156
|
+
* 设置碰撞模式
|
|
157
|
+
* @param mode 碰撞模式 label || icon || outer(默认)
|
|
158
|
+
*/
|
|
159
|
+
setCollisionMode(mode: string): void;
|
|
160
|
+
setLabelVisibility(visible: boolean): void;
|
|
161
|
+
setIconVisiblity(visible: boolean): void;
|
|
162
|
+
setHideModeWhenCollision(mode: string): void;
|
|
163
|
+
setVisiblePartWhenCollision(part: string): void;
|
|
164
|
+
setCollisionOverlap(x: number, y: number): void;
|
|
165
|
+
/**
|
|
166
|
+
* 设置POI层级
|
|
167
|
+
* @param level 层级
|
|
168
|
+
*/
|
|
169
|
+
setLevel(level: number, forceOrder?: boolean): void;
|
|
170
|
+
/**
|
|
171
|
+
* 获取POI层级
|
|
172
|
+
*/
|
|
173
|
+
getLevel(): number;
|
|
174
|
+
/**
|
|
175
|
+
* 设置POI可见性
|
|
176
|
+
* @param visible 可见性
|
|
177
|
+
*/
|
|
178
|
+
setVisibility(visible: boolean): void;
|
|
179
|
+
/**
|
|
180
|
+
* 设置POI是否暂时隐藏
|
|
181
|
+
* @param hide true 全部隐藏 false: 根据 hideModeWhenCollision 做显隐判断
|
|
182
|
+
*/
|
|
183
|
+
setHidden(hide: boolean, subHide?: boolean): void;
|
|
184
|
+
/**
|
|
185
|
+
* 设置Rect是否可见
|
|
186
|
+
* @param withRect 可见性
|
|
187
|
+
*/
|
|
188
|
+
setRect(withRect: boolean): void;
|
|
189
|
+
/**
|
|
190
|
+
* 设置Rect默认宽高 未废弃, 不发挥作用
|
|
191
|
+
* @param withRect 可见性
|
|
192
|
+
*/
|
|
193
|
+
private setRectDefSize;
|
|
194
|
+
/**
|
|
195
|
+
* 设置Rect背景色 未废弃, 不发挥作用
|
|
196
|
+
* @param color
|
|
197
|
+
*/
|
|
198
|
+
setRectFill(color: number | string): void;
|
|
199
|
+
/**
|
|
200
|
+
* 设置Rect偏移 未废弃, 不发挥作用
|
|
201
|
+
* @param x
|
|
202
|
+
* @param y
|
|
203
|
+
*/
|
|
204
|
+
setRectOffset(x?: number, y?: number): void;
|
|
205
|
+
setIconImage(src: string): void;
|
|
206
|
+
setIconSize(width: number, height: number): void;
|
|
207
|
+
/**
|
|
208
|
+
* 设置POI中icon的显示
|
|
209
|
+
*/
|
|
210
|
+
setIconShowInCircle(lineWidth: number, lineColor: string): void;
|
|
211
|
+
drawIcon(): void;
|
|
212
|
+
private clearIcon;
|
|
213
|
+
/**
|
|
214
|
+
* 设置图标相对(0,0)的位置
|
|
215
|
+
* @param direction: x / y value: + / - 表示方向
|
|
216
|
+
* x = 2 的时候, 表示label 中心 和 icon 中心 同一条y轴, label 右边框 距离 icon 左边框2个单位
|
|
217
|
+
*/
|
|
218
|
+
setIconAnchor(anchor: 'center' | 'left' | 'right' | 'top' | 'bottom' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright'): void;
|
|
219
|
+
/**
|
|
220
|
+
* 设置图标反转
|
|
221
|
+
*/
|
|
222
|
+
setIconFlipY(flipY: boolean): void;
|
|
223
|
+
setIconOffset(x: number, y: number): void;
|
|
224
|
+
/**
|
|
225
|
+
* 设置文字字体大小
|
|
226
|
+
* @param fontSize 字号, 单位为px
|
|
227
|
+
*/
|
|
228
|
+
setFontSize(fontSize: number): void;
|
|
229
|
+
setFontPadding(fPadding: number): void;
|
|
230
|
+
setLabelText(text: string): void;
|
|
231
|
+
drawText(): void;
|
|
232
|
+
recalcOffset(width: number, height: number, anchor: string, anchorOffsetX: number, anchorOffsetY: number): {
|
|
233
|
+
offsetX: number;
|
|
234
|
+
offsetY: number;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* 设置POI文字相对(0,0)的位置。在有icon 和 无icon时锚点不同
|
|
238
|
+
* @param direction: x / y value: + / - 表示方向
|
|
239
|
+
* x = 2 的时候, 表示label 中心 和 icon 中心 同一条y轴, label 右边框 距离 icon 左边框2个单位
|
|
240
|
+
*/
|
|
241
|
+
setLabelAnchor(anchor: 'center' | 'left' | 'right' | 'top' | 'bottom' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright'): void;
|
|
242
|
+
setLabelOffset(x: number, y: number): void;
|
|
243
|
+
getLabelAnchor(): 'center' | 'left' | 'right' | 'top' | 'bottom' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright';
|
|
244
|
+
getLabelOffset(): {
|
|
245
|
+
x: number;
|
|
246
|
+
y: number;
|
|
247
|
+
};
|
|
248
|
+
calcBoundingSize(): void;
|
|
249
|
+
private drawRect;
|
|
250
|
+
private drawBoundingBox;
|
|
251
|
+
setBoundingBox(): void;
|
|
252
|
+
/** @ignore */
|
|
253
|
+
getBoundingRect(): {
|
|
254
|
+
xMin: number;
|
|
255
|
+
yMin: number;
|
|
256
|
+
xMax: number;
|
|
257
|
+
yMax: number;
|
|
258
|
+
};
|
|
259
|
+
/** @ignore */
|
|
260
|
+
getOuterRect(): {
|
|
261
|
+
xMin: number;
|
|
262
|
+
yMin: number;
|
|
263
|
+
xMax: number;
|
|
264
|
+
yMax: number;
|
|
265
|
+
};
|
|
266
|
+
setAnimationEnabled(value: boolean): void;
|
|
267
|
+
private calcPoiRotation;
|
|
268
|
+
getVisibility(): boolean;
|
|
269
|
+
calcPosAndSize(frustum: NS_THREE.Frustum, widthHalf: number, heightHalf: number): {
|
|
270
|
+
isInFrustum: boolean;
|
|
271
|
+
};
|
|
272
|
+
draw(): void;
|
|
273
|
+
updatePosition(// 根据已计算出的position, offset, visible 等更新渲染位置, 显隐
|
|
274
|
+
euler: Euler, zoom: number): void;
|
|
275
|
+
update(): boolean;
|
|
276
|
+
setPoiId(poiId: number): void;
|
|
277
|
+
}
|
|
278
|
+
export { Poi3DOverlay, Poi3D };
|