@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,189 @@
|
|
|
1
|
+
import UUID from 'uuid-js';
|
|
2
|
+
import Bezier from 'bezier-js';
|
|
3
|
+
import { GeometryUtils } from '../../utils/geometry-utils';
|
|
4
|
+
/**
|
|
5
|
+
* PathCommand
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
var PathCommand;
|
|
9
|
+
(function (PathCommand) {
|
|
10
|
+
PathCommand["MOVE"] = "m";
|
|
11
|
+
PathCommand["LINE"] = "l";
|
|
12
|
+
PathCommand["CURVE"] = "c";
|
|
13
|
+
})(PathCommand || (PathCommand = {}));
|
|
14
|
+
class ShapeUtils {
|
|
15
|
+
static GenerateStepsFromPath(path) {
|
|
16
|
+
const commands = path.match(/([MLCmlc](?:(?:-?\d+(?:\.\d+)?(?:[eE]\d+)?)(?:,-?\d+(?:\.\d+)?(?:[eE]\d+)?)+))/g);
|
|
17
|
+
if (!commands)
|
|
18
|
+
return [];
|
|
19
|
+
const steps = commands.map((command) => {
|
|
20
|
+
const c = command[0].toLowerCase();
|
|
21
|
+
const coordStrings = command.slice(1).split(',');
|
|
22
|
+
const coordCount = coordStrings.length;
|
|
23
|
+
const coords = [];
|
|
24
|
+
for (let i = 0; i < coordCount; i += 2) {
|
|
25
|
+
coords.push([
|
|
26
|
+
parseFloat(coordStrings[i]),
|
|
27
|
+
parseFloat(coordStrings[i + 1]),
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
return { command: c, coords };
|
|
31
|
+
});
|
|
32
|
+
for (let i = 1; i < steps.length; i++) {
|
|
33
|
+
const q = steps[i - 1];
|
|
34
|
+
const h = steps[i];
|
|
35
|
+
if (q.command === h.command && q.coords[0] === h.coords[0] && q.coords[1] === h.coords[i]) {
|
|
36
|
+
steps.splice(i, 1);
|
|
37
|
+
i--;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return steps;
|
|
41
|
+
}
|
|
42
|
+
static GeneratePathFromSteps(steps) {
|
|
43
|
+
return steps.map(({ command, coords }) => (`${command}${coords.flat(2).join(',')}`)).join('');
|
|
44
|
+
}
|
|
45
|
+
static ParseHollows(hollowString) {
|
|
46
|
+
const result = [];
|
|
47
|
+
const indices = hollowString.split(',');
|
|
48
|
+
const l = indices.length;
|
|
49
|
+
for (let i = 0; i < l; i += 2) {
|
|
50
|
+
if (indices[i].length && indices[i + 1].length) {
|
|
51
|
+
result.push([parseInt(indices[i], 10), parseInt(indices[i + 1], 10)]);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return result;
|
|
55
|
+
}
|
|
56
|
+
static UnparseHollows(hollows) {
|
|
57
|
+
return hollows.flat(2).join(',');
|
|
58
|
+
}
|
|
59
|
+
static PolyonOfPathStep(pathSteps) {
|
|
60
|
+
const ret = [];
|
|
61
|
+
let loop = [];
|
|
62
|
+
pathSteps.forEach((pathStep) => {
|
|
63
|
+
if (pathStep.command === PathCommand.MOVE) {
|
|
64
|
+
if (loop && loop.length > 0) {
|
|
65
|
+
if (loop.length > 2)
|
|
66
|
+
loop.push(loop[0]);
|
|
67
|
+
ret.push(loop);
|
|
68
|
+
}
|
|
69
|
+
loop = [...pathStep.coords];
|
|
70
|
+
}
|
|
71
|
+
else if (pathStep.command === PathCommand.LINE) {
|
|
72
|
+
loop.push(...pathStep.coords);
|
|
73
|
+
}
|
|
74
|
+
else if (pathStep.command === PathCommand.CURVE) {
|
|
75
|
+
const coords = [];
|
|
76
|
+
pathStep.coords.forEach((coord) => {
|
|
77
|
+
coords.push(...coord);
|
|
78
|
+
});
|
|
79
|
+
const bezier = new Bezier(coords);
|
|
80
|
+
const points = bezier.getLUT(10);
|
|
81
|
+
// console.info(points);
|
|
82
|
+
points.forEach((point) => {
|
|
83
|
+
loop.push([point.x, point.y]);
|
|
84
|
+
});
|
|
85
|
+
// loop.push(pathStep.coords[0]);
|
|
86
|
+
// loop.push(pathStep.coords[pathStep.coords.length - 1]);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
if (loop && loop.length > 0) {
|
|
90
|
+
if (loop.length > 2)
|
|
91
|
+
loop.push(loop[0]);
|
|
92
|
+
ret.push(loop);
|
|
93
|
+
}
|
|
94
|
+
return ret;
|
|
95
|
+
}
|
|
96
|
+
static PolygonOfShape(shape) {
|
|
97
|
+
const pathSteps = shape.getSteps();
|
|
98
|
+
return ShapeUtils.PolyonOfPathStep(pathSteps);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 图形, 用作地图图形描述
|
|
103
|
+
* @noInheritDoc
|
|
104
|
+
*/
|
|
105
|
+
class Shape {
|
|
106
|
+
/**
|
|
107
|
+
* @param data 基于ShapeData结构的描述.
|
|
108
|
+
* @param autoCalculateCentroid 自动计算图形的视觉中心.
|
|
109
|
+
* @example
|
|
110
|
+
* ```typescript
|
|
111
|
+
* // 将svg解析为Shape对象数组
|
|
112
|
+
* const shapes = await SvgUtils.parseSVG(
|
|
113
|
+
* <svg url>,
|
|
114
|
+
* [0.02, 0, 0, 0, 0, -0.02, 0, 0, 0, 0, 0, 0, -40, 40, 0, 1], // 对齐矩阵
|
|
115
|
+
* );
|
|
116
|
+
* // 也可以直接传入配置生成shape
|
|
117
|
+
* const shape = new Shape({ path: 'm0,0l1,0l1,1l0,1' }); // 正方形
|
|
118
|
+
* // 或
|
|
119
|
+
* shape.updateData({ fill: '#ff0000' });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
constructor(data, autoCalculateCentroid = true) {
|
|
123
|
+
this.data = {
|
|
124
|
+
id: UUID.create().toString(),
|
|
125
|
+
x: 0,
|
|
126
|
+
y: 0,
|
|
127
|
+
radius: 0,
|
|
128
|
+
zIndex: 0,
|
|
129
|
+
centroid: [0, 0],
|
|
130
|
+
height: 1,
|
|
131
|
+
shapeType: 'point',
|
|
132
|
+
path: '',
|
|
133
|
+
hollows: '',
|
|
134
|
+
fill: '#ffffff',
|
|
135
|
+
stroke: '#444444',
|
|
136
|
+
strokeWidth: 1,
|
|
137
|
+
opacity: 1,
|
|
138
|
+
fillOpacity: 1.0,
|
|
139
|
+
strokeOpacity: 0.2,
|
|
140
|
+
scale: [0, 0, 0],
|
|
141
|
+
rotation: [0, 0, 0, 1],
|
|
142
|
+
tag: '',
|
|
143
|
+
parentName: '',
|
|
144
|
+
};
|
|
145
|
+
if (data)
|
|
146
|
+
this.updateData(data, autoCalculateCentroid);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 更新图形数据
|
|
150
|
+
* @param data 基于ShapeData结构的描述
|
|
151
|
+
*/
|
|
152
|
+
updateData(data, autoCalculateCentroid = false) {
|
|
153
|
+
Object.assign(this.data, data);
|
|
154
|
+
this.steps = ShapeUtils.GenerateStepsFromPath(this.data.path);
|
|
155
|
+
if (this.data.shapeType === 'shape')
|
|
156
|
+
this.hollows = ShapeUtils.ParseHollows(this.data.hollows);
|
|
157
|
+
if (this.steps.length <= 2 || !autoCalculateCentroid)
|
|
158
|
+
return;
|
|
159
|
+
const polygon = ShapeUtils.PolygonOfShape(this);
|
|
160
|
+
if (polygon && polygon.length > 2) {
|
|
161
|
+
this.data.centroid = GeometryUtils.CentroidForPOI(polygon);
|
|
162
|
+
// this.data.centroid = GeometryUtils.Centroid(polygon[0]);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
updatePathFromSelfSteps() {
|
|
166
|
+
if (this.data.shapeType === 'point')
|
|
167
|
+
return;
|
|
168
|
+
this.data.path = this.steps.map((step) => (`${step.command}${step.coords.join(',')}`)).join('');
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* 获得图形数据
|
|
172
|
+
*/
|
|
173
|
+
getData() {
|
|
174
|
+
return this.data;
|
|
175
|
+
}
|
|
176
|
+
/** @ignore */
|
|
177
|
+
getHollows() {
|
|
178
|
+
return this.hollows;
|
|
179
|
+
}
|
|
180
|
+
/** @ignore */
|
|
181
|
+
getSteps() {
|
|
182
|
+
return this.steps;
|
|
183
|
+
}
|
|
184
|
+
/** 获得图形类型 */
|
|
185
|
+
getShapeType() {
|
|
186
|
+
return this.data.shapeType;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
export { Shape, PathCommand, ShapeUtils, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { Element, ElementFrameContext } from './element';
|
|
3
|
+
import { View } from '../view/view';
|
|
4
|
+
/**
|
|
5
|
+
* Mesh 元素, 需要顶点信息以渲染
|
|
6
|
+
*/
|
|
7
|
+
declare class MeshElement extends Element {
|
|
8
|
+
private initialized;
|
|
9
|
+
private loaded;
|
|
10
|
+
private group;
|
|
11
|
+
private eventListeners;
|
|
12
|
+
constructor(vertices: NS_THREE.Vector3[], triangles: number[], optionalParams?: {
|
|
13
|
+
material?: NS_THREE.Material;
|
|
14
|
+
fillColor?: NS_THREE.Color | string | number;
|
|
15
|
+
opacity?: number;
|
|
16
|
+
transparent?: boolean;
|
|
17
|
+
});
|
|
18
|
+
setOnCurrentViewChanged(func: (view: View) => void): void;
|
|
19
|
+
update(): ElementFrameContext;
|
|
20
|
+
dispose(): void;
|
|
21
|
+
}
|
|
22
|
+
export { MeshElement };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Externals } from '../stage/externals';
|
|
2
|
+
import { Element, ElementFrameContext } from './element';
|
|
3
|
+
import { BasicTools } from '../utils/basic-tools';
|
|
4
|
+
/**
|
|
5
|
+
* Mesh 元素, 需要顶点信息以渲染
|
|
6
|
+
*/
|
|
7
|
+
class MeshElement extends Element {
|
|
8
|
+
constructor(vertices, triangles, optionalParams) {
|
|
9
|
+
super();
|
|
10
|
+
const { THREE } = Externals.getInstance();
|
|
11
|
+
const options = optionalParams || {};
|
|
12
|
+
this.group = new THREE.Group();
|
|
13
|
+
this.add(this.group);
|
|
14
|
+
const material = options.material || new THREE.MeshBasicMaterial({
|
|
15
|
+
color: options.fillColor ? options.fillColor : 0x00ff00,
|
|
16
|
+
transparent: options.transparent !== undefined ? options.transparent : false,
|
|
17
|
+
opacity: options.opacity !== undefined ? options.opacity : 1,
|
|
18
|
+
side: THREE.DoubleSide,
|
|
19
|
+
depthWrite: true,
|
|
20
|
+
});
|
|
21
|
+
const plainVertices = [];
|
|
22
|
+
vertices.forEach((vertex) => { plainVertices.push(vertex.x, vertex.y, vertex.z); });
|
|
23
|
+
const vertexBuffer = new Float32Array(plainVertices);
|
|
24
|
+
const bufferGeometry = new THREE.BufferGeometry();
|
|
25
|
+
bufferGeometry.setAttribute('position', new THREE.BufferAttribute(vertexBuffer, 3));
|
|
26
|
+
bufferGeometry.setIndex(triangles);
|
|
27
|
+
const mesh = new THREE.Mesh(bufferGeometry, material);
|
|
28
|
+
mesh.renderOrder = 1000;
|
|
29
|
+
this.group.add(mesh);
|
|
30
|
+
this.initialized = false;
|
|
31
|
+
this.loaded = true;
|
|
32
|
+
}
|
|
33
|
+
setOnCurrentViewChanged(func) {
|
|
34
|
+
// if (this.eventListeners && this.eventListeners.onCurrentViewChanged) {
|
|
35
|
+
// EventHub.off(OwllyEvents.RENDERING_VIEW_CHANGED, this.eventListeners.onCurrentViewChanged);
|
|
36
|
+
// }
|
|
37
|
+
this.eventListeners = {
|
|
38
|
+
onCurrentViewChanged: func,
|
|
39
|
+
};
|
|
40
|
+
// EventHub.on(OwllyEvents.RENDERING_VIEW_CHANGED, this.eventListeners.onCurrentViewChanged);
|
|
41
|
+
}
|
|
42
|
+
// renderingViewChanged(view: View): void {
|
|
43
|
+
// if (this.eventListeners && this.eventListeners.onCurrentViewChanged) {
|
|
44
|
+
// this.eventListeners.onCurrentViewChanged(view);
|
|
45
|
+
// }
|
|
46
|
+
// }
|
|
47
|
+
update() {
|
|
48
|
+
const frameContext = new ElementFrameContext(this);
|
|
49
|
+
if (!this.initialized && this.loaded) {
|
|
50
|
+
this.initialized = true;
|
|
51
|
+
frameContext.needUpdate = true;
|
|
52
|
+
}
|
|
53
|
+
if (this.initialized && !this.parent) {
|
|
54
|
+
frameContext.shouldPlaceElement = true;
|
|
55
|
+
}
|
|
56
|
+
return frameContext;
|
|
57
|
+
}
|
|
58
|
+
dispose() {
|
|
59
|
+
super.dispose();
|
|
60
|
+
BasicTools.dispose(this, true);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export { MeshElement };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import Color from 'color';
|
|
2
|
+
import { NS_THREE } from '../stage/externals';
|
|
3
|
+
import { Element, ElementFrameContext } from './element';
|
|
4
|
+
import { PathOverlay2 } from '../overlay/path-overlay2';
|
|
5
|
+
declare class MeshLine2D extends Element {
|
|
6
|
+
tailArrow: NS_THREE.Mesh;
|
|
7
|
+
private initialized;
|
|
8
|
+
private ready;
|
|
9
|
+
renderPixelLine: boolean;
|
|
10
|
+
private needsUpdate;
|
|
11
|
+
private points;
|
|
12
|
+
orgedPoints: {
|
|
13
|
+
point: [number, number, number];
|
|
14
|
+
normal: number[];
|
|
15
|
+
scale: number;
|
|
16
|
+
}[];
|
|
17
|
+
private distances;
|
|
18
|
+
private mesh;
|
|
19
|
+
private bufferGeometry;
|
|
20
|
+
private material;
|
|
21
|
+
private currentMoveIndex;
|
|
22
|
+
private parentOverlay;
|
|
23
|
+
private viewWidth;
|
|
24
|
+
private viewHeight;
|
|
25
|
+
private options;
|
|
26
|
+
private uniforms;
|
|
27
|
+
private static VertexShader;
|
|
28
|
+
private static FragmentShader;
|
|
29
|
+
constructor(points: [number, number, number][], options?: {
|
|
30
|
+
renderPixelLine?: boolean;
|
|
31
|
+
fillOpacity?: number;
|
|
32
|
+
textureUrl?: string;
|
|
33
|
+
textureMode?: string;
|
|
34
|
+
textureSize?: [number, number];
|
|
35
|
+
color?: Color | number | string;
|
|
36
|
+
viewDistance?: number;
|
|
37
|
+
gradientDistance?: number;
|
|
38
|
+
current?: number;
|
|
39
|
+
gradientEnabled?: boolean;
|
|
40
|
+
width?: number;
|
|
41
|
+
strokeWidth?: number;
|
|
42
|
+
strokeColor?: Color | number | string;
|
|
43
|
+
animateEnabled?: boolean;
|
|
44
|
+
animateSpeed?: number;
|
|
45
|
+
});
|
|
46
|
+
calcPoints(points: [number, number, number][], scale?: number): number[][];
|
|
47
|
+
createTailArrow(): void;
|
|
48
|
+
orgPoints(points: [number, number, number][], nScale?: number): {
|
|
49
|
+
point: [number, number, number];
|
|
50
|
+
normal: number[];
|
|
51
|
+
scale: number;
|
|
52
|
+
}[];
|
|
53
|
+
private init;
|
|
54
|
+
setContainer(container: HTMLElement): void;
|
|
55
|
+
resize(containerWidth: number, containerHeight: number): void;
|
|
56
|
+
getBestView(currentPoint: NS_THREE.Vector3, fromDistance: number, toDistance: number): number;
|
|
57
|
+
getPointOnDistance(distance: number): {
|
|
58
|
+
point: NS_THREE.Vector3;
|
|
59
|
+
index: number;
|
|
60
|
+
};
|
|
61
|
+
getNearestPoint(position: NS_THREE.Vector3, startDistance?: number): {
|
|
62
|
+
point: NS_THREE.Vector3;
|
|
63
|
+
distance: number;
|
|
64
|
+
index: number;
|
|
65
|
+
};
|
|
66
|
+
getPathWithScope(startDistance: number, endDistance: number): [number, number, number][];
|
|
67
|
+
getPathBaseStartPoint(distance: number): [number, number, number][];
|
|
68
|
+
update(): ElementFrameContext;
|
|
69
|
+
dispose(): void;
|
|
70
|
+
setCurrent(current: number): void;
|
|
71
|
+
getLength(): number;
|
|
72
|
+
setCurrentIndex(currentIndex: number): void;
|
|
73
|
+
getCurrent(): number;
|
|
74
|
+
getCurrentIndex(): number;
|
|
75
|
+
setViewDistance(value: number): void;
|
|
76
|
+
updateTailArrowPos(distance: number): void;
|
|
77
|
+
setWidth(width: number): void;
|
|
78
|
+
setColor(color: number | string): void;
|
|
79
|
+
getViewDistance(): number;
|
|
80
|
+
setParentOverlay(parent: PathOverlay2): void;
|
|
81
|
+
}
|
|
82
|
+
export { MeshLine2D };
|