@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,29 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
declare class TextureCache {
|
|
3
|
+
private textureLoader;
|
|
4
|
+
private textureCache;
|
|
5
|
+
private workingTasks;
|
|
6
|
+
private static sharedHdFaceTextureCache;
|
|
7
|
+
private static sharedLdFaceTextureCache;
|
|
8
|
+
static disposeAll(): void;
|
|
9
|
+
static get hdFaceTexturesCache(): TextureCache;
|
|
10
|
+
static get ldFaceTexturesCache(): TextureCache;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
constructor(capacity: number);
|
|
13
|
+
/**
|
|
14
|
+
* @ignore
|
|
15
|
+
* 获取贴图,先从缓存中获取,若未命中则异步加载贴图
|
|
16
|
+
* @param textureURL 贴图的图像URL
|
|
17
|
+
*/
|
|
18
|
+
loadTexture(textureURL: string, cacheAnyway?: boolean | undefined): Promise<NS_THREE.Texture>;
|
|
19
|
+
/**
|
|
20
|
+
* 获取一组贴图,若没命中则异步加载
|
|
21
|
+
* @param textureURLs 需要获取的贴图URL数组
|
|
22
|
+
* @param waitForReadyCount 指定函数必须在textureURLsArray中的前多少个贴图获取到以后才能返回
|
|
23
|
+
*/
|
|
24
|
+
preloadTextures(textureURLs: (string | undefined)[], waitForReadyCount: number): Promise<NS_THREE.Texture[]>;
|
|
25
|
+
recycleTexture(textureURL: string): boolean;
|
|
26
|
+
getCapacity(): number;
|
|
27
|
+
getTotalCost(): number;
|
|
28
|
+
}
|
|
29
|
+
export { TextureCache };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Externals } from '../stage/externals';
|
|
11
|
+
import { EventHub } from './event-hub';
|
|
12
|
+
import { LruCache } from './lru-cache';
|
|
13
|
+
class TextureCache {
|
|
14
|
+
constructor(capacity) {
|
|
15
|
+
const { THREE } = Externals.getInstance();
|
|
16
|
+
// if (!TextureCache.hdFaceTexturesCache) TextureCache.hdFaceTexturesCache = new TextureCache(32);
|
|
17
|
+
// if (!TextureCache.ldFaceTexturesCache) TextureCache.ldFaceTexturesCache = new TextureCache(64);
|
|
18
|
+
this.textureLoader = new THREE.TextureLoader();
|
|
19
|
+
this.textureCache = new LruCache(capacity);
|
|
20
|
+
this.workingTasks = new Map();
|
|
21
|
+
}
|
|
22
|
+
// public static hdFaceTexturesCache: TextureCache;
|
|
23
|
+
// public static ldFaceTexturesCache: TextureCache;
|
|
24
|
+
static disposeAll() {
|
|
25
|
+
this.hdFaceTexturesCache.dispose();
|
|
26
|
+
this.ldFaceTexturesCache.dispose();
|
|
27
|
+
}
|
|
28
|
+
static get hdFaceTexturesCache() {
|
|
29
|
+
if (!TextureCache.sharedHdFaceTextureCache)
|
|
30
|
+
TextureCache.sharedHdFaceTextureCache = new TextureCache(32);
|
|
31
|
+
return TextureCache.sharedHdFaceTextureCache;
|
|
32
|
+
}
|
|
33
|
+
static get ldFaceTexturesCache() {
|
|
34
|
+
if (!TextureCache.sharedLdFaceTextureCache)
|
|
35
|
+
TextureCache.sharedLdFaceTextureCache = new TextureCache(32);
|
|
36
|
+
return TextureCache.sharedLdFaceTextureCache;
|
|
37
|
+
}
|
|
38
|
+
dispose() {
|
|
39
|
+
this.textureCache.clear((key, value) => {
|
|
40
|
+
value.dispose();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @ignore
|
|
45
|
+
* 获取贴图,先从缓存中获取,若未命中则异步加载贴图
|
|
46
|
+
* @param textureURL 贴图的图像URL
|
|
47
|
+
*/
|
|
48
|
+
loadTexture(textureURL, cacheAnyway = true) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const retTexture = this.textureCache.get(textureURL);
|
|
51
|
+
if (retTexture) {
|
|
52
|
+
// console.log(`#TiledCube# Use cached Texture:${textureURL}`);
|
|
53
|
+
return retTexture;
|
|
54
|
+
}
|
|
55
|
+
let workingTask = this.workingTasks.get(textureURL);
|
|
56
|
+
if (!workingTask) {
|
|
57
|
+
workingTask = new Promise((resolve, reject) => {
|
|
58
|
+
// console.log(`#PanoCtrl# Will load Texture:${textureURL}`);
|
|
59
|
+
this.textureLoader.load(textureURL, (texture) => {
|
|
60
|
+
// console.info(`#TiledCube# Texture loaded for key '${textureURL}':`, texture);
|
|
61
|
+
// console.log(`#PanoCtrl# cacheAnyway=${cacheAnyway}`);
|
|
62
|
+
this.textureCache.put(textureURL, texture, (k, v) => {
|
|
63
|
+
// 销毁立方体贴图资源
|
|
64
|
+
// console.log(`#PanoCtrl# By evicting retTexture with key '${k}', dispose it`);
|
|
65
|
+
v.dispose();
|
|
66
|
+
}, !cacheAnyway);
|
|
67
|
+
this.workingTasks.delete(textureURL);
|
|
68
|
+
resolve(texture);
|
|
69
|
+
}, () => { }, (event) => {
|
|
70
|
+
// console.log(`#PanoCtrl# Error with key '${textureURL}', event=${event}`);
|
|
71
|
+
EventHub.emit('error', `Loading '${textureURL}' failed.`);
|
|
72
|
+
this.workingTasks.delete(textureURL);
|
|
73
|
+
reject(event);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
this.workingTasks.set(textureURL, workingTask);
|
|
77
|
+
}
|
|
78
|
+
return workingTask;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 获取一组贴图,若没命中则异步加载
|
|
83
|
+
* @param textureURLs 需要获取的贴图URL数组
|
|
84
|
+
* @param waitForReadyCount 指定函数必须在textureURLsArray中的前多少个贴图获取到以后才能返回
|
|
85
|
+
*/
|
|
86
|
+
preloadTextures(textureURLs, waitForReadyCount) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
const waitCount = waitForReadyCount > textureURLs.length ? textureURLs.length : waitForReadyCount;
|
|
89
|
+
// console.info('#TiledCube# preloadTextures:', textureURLs);
|
|
90
|
+
const promises = textureURLs.map((textureURL, index) => {
|
|
91
|
+
if (textureURL) {
|
|
92
|
+
return this.loadTexture(textureURL, index < waitForReadyCount);
|
|
93
|
+
}
|
|
94
|
+
return undefined;
|
|
95
|
+
});
|
|
96
|
+
const mustPromises = [];
|
|
97
|
+
for (let i = 0; i < waitCount; i += 1) {
|
|
98
|
+
const promise = promises[i];
|
|
99
|
+
if (promise) {
|
|
100
|
+
mustPromises.push(promise);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return Promise.all(mustPromises);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
recycleTexture(textureURL) {
|
|
107
|
+
// console.log(`#TiledCube# TextureCache.recycleTexture(${textureURL})`);
|
|
108
|
+
return this.textureCache.recycle(textureURL, (key, value) => {
|
|
109
|
+
value.dispose();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
getCapacity() { return this.textureCache.getCapacity(); }
|
|
113
|
+
getTotalCost() { return this.textureCache.getTotalCost(); }
|
|
114
|
+
}
|
|
115
|
+
export { TextureCache };
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
declare const TEXT_MAX = 16;
|
|
3
|
+
declare const TEXT_SEGMENT = 4;
|
|
4
|
+
interface TileConfig {
|
|
5
|
+
textPixel?: number;
|
|
6
|
+
imgTextPixel?: number;
|
|
7
|
+
}
|
|
8
|
+
declare function getTextPixel(): number;
|
|
9
|
+
declare function getImgTextPixel(): number;
|
|
10
|
+
declare function setTileConfig(config: TileConfig): void;
|
|
11
|
+
export declare const TEXT_PIXEL: number;
|
|
12
|
+
export declare const IMG_TEXT_PIXEL: number;
|
|
13
|
+
declare const USE_CANVAS = false;
|
|
14
|
+
declare const USE_TEXTURE_BLACK = false;
|
|
15
|
+
declare const VertexShader: string;
|
|
16
|
+
declare const FragmentShader = "\n uniform sampler2D mTexture0;\n uniform sampler2D mTexture1;\n uniform sampler2D mTexture2;\n uniform sampler2D mTexture3;\n uniform sampler2D mTexture4;\n uniform sampler2D mTexture5;\n uniform sampler2D mTexture6;\n uniform sampler2D mTexture7;\n uniform sampler2D mTexture8;\n uniform sampler2D mTexture9;\n uniform sampler2D mTexture10;\n uniform sampler2D mTexture11;\n uniform sampler2D mTexture12;\n uniform sampler2D mTexture13;\n uniform sampler2D mTexture14;\n uniform sampler2D mTexture15;\n\n uniform int uvMax;\n varying vec3 vUv;\n uniform bool black;\n\n int modi(int x, int y) {\n int result = x - ((x / y) * y);\n return result < 0 ? result + y : result;\n }\n\n float modf(float x, float y){\n float result = x - y * floor(x/y);\n return result < 0.0 ? result + y : result;\n }\n\n int getInt(float value) {\n // \u6DFB\u52A0\u8FB9\u754C\u68C0\u67E5\n if (value < 0.0) return 0;\n if (value > float(0x7FFFFFFF)) return 0x7FFFFFFF;\n\n float m = modf(value, 1.0);\n return m < 1.0 && m > 0.6 ? int(value) + 1 : int(value);\n }\n\n vec4 getSample(int index, vec2 uv) {\n if (index == 0) return texture2D(mTexture0, uv);\n if (index == 1) return texture2D(mTexture1, uv);\n if (index == 2) return texture2D(mTexture2, uv);\n if (index == 3) return texture2D(mTexture3, uv);\n if (index == 4) return texture2D(mTexture4, uv);\n if (index == 5) return texture2D(mTexture5, uv);\n if (index == 6) return texture2D(mTexture6, uv);\n if (index == 7) return texture2D(mTexture7, uv);\n if (index == 8) return texture2D(mTexture8, uv);\n if (index == 9) return texture2D(mTexture9, uv);\n if (index == 10) return texture2D(mTexture10, uv);\n if (index == 11) return texture2D(mTexture11, uv);\n if (index == 12) return texture2D(mTexture12, uv);\n if (index == 13) return texture2D(mTexture13, uv);\n if (index == 14) return texture2D(mTexture14, uv);\n if (index == 15) return texture2D(mTexture15, uv);\n return vec4(0.0, 0.0, 0.0, 1.0); // \u9ED8\u8BA4\u8FD4\u56DE\u900F\u660E\u9ED1\u8272\n }\n\n vec2 getUv(vec2 uvs, int pos){\n // \u4E25\u683C\u7684\u8FB9\u754C\u4FDD\u62A4\n float min2 = 1.0 / 4096.0;\n float max2 = 1.0 - min2;\n vec2 clampedUvs = clamp(uvs, vec2(min2), vec2(max2));\n\n vec2 tuv = clampedUvs / 4.0;\n int x = modi(pos, 4);\n int y = pos / 4;\n\n float segment = 1.0 / 4.0;\n vec2 base = vec2(float(x) * segment, float(y) * segment);\n\n // \u6DFB\u52A0\u989D\u5916\u7684\u8FB9\u754C\u68C0\u67E5\n return clamp(tuv + base, vec2(0.0), vec2(1.0));\n }\n\n void main(){\n vec2 tuv = vUv.xy;\n int indexPos = getInt(vUv.z);\n int index = indexPos / 100;\n int pos = modi(indexPos, 100);\n tuv = getUv(tuv, pos);\n gl_FragColor = getSample(index, tuv);\n }";
|
|
17
|
+
/**
|
|
18
|
+
* 获取瓦片信息id
|
|
19
|
+
* @ignore
|
|
20
|
+
* @param pid pid
|
|
21
|
+
* @param level 等级
|
|
22
|
+
* @param index 下标
|
|
23
|
+
* @returns id字符串
|
|
24
|
+
*/
|
|
25
|
+
declare function getTileInfoId(pid: number, level: number, index: number): string;
|
|
26
|
+
interface FaceConfig {
|
|
27
|
+
normal: NS_THREE.Vector3;
|
|
28
|
+
trans: NS_THREE.Vector3;
|
|
29
|
+
euler?: NS_THREE.Euler;
|
|
30
|
+
face: number;
|
|
31
|
+
flipX: boolean;
|
|
32
|
+
flipY: boolean;
|
|
33
|
+
revers: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 六面配置
|
|
37
|
+
*/
|
|
38
|
+
declare const CubeFaceConfig: FaceConfig[];
|
|
39
|
+
/**
|
|
40
|
+
* 根据参数获取顶点数据
|
|
41
|
+
* @ignore
|
|
42
|
+
* @param level 等级
|
|
43
|
+
* @param index 下标
|
|
44
|
+
* @param revers 逆转
|
|
45
|
+
* @param flipX x翻转
|
|
46
|
+
* @param flipY y翻转
|
|
47
|
+
* @returns 顶点数组
|
|
48
|
+
*/
|
|
49
|
+
declare function getVertices(level: number, index: number, revers: boolean, flipX: boolean, flipY: boolean): NS_THREE.Vector3[];
|
|
50
|
+
/**
|
|
51
|
+
* info说明 TileTextureInfo
|
|
52
|
+
* pid pid.index // pid为全景id, index为0-5的该场景的面小标
|
|
53
|
+
* textureIndex index*100 + pos // index 为textures的下标, 该纹理的区域位置,以2048*2048算的话现在为0-15
|
|
54
|
+
* level 当前的level等级
|
|
55
|
+
* index 该level等级下的平面所在区域
|
|
56
|
+
*/
|
|
57
|
+
declare class TileTextureInfo {
|
|
58
|
+
/** @ignore */
|
|
59
|
+
pfid: number;
|
|
60
|
+
/** @ignore 纹理坐标 */
|
|
61
|
+
textureIndex: number;
|
|
62
|
+
/** @ignore 等级 */
|
|
63
|
+
level: number;
|
|
64
|
+
/** @ignore 坐标 */
|
|
65
|
+
index: number;
|
|
66
|
+
/** @ignore 冻结 */
|
|
67
|
+
frize: boolean;
|
|
68
|
+
/** @ignore 是否在相机内 */
|
|
69
|
+
isInCamera: boolean;
|
|
70
|
+
/** @ignore 是否将要在相机内 */
|
|
71
|
+
willIsInCamera: boolean;
|
|
72
|
+
/** @ignore 顶点 */
|
|
73
|
+
private _originVertices;
|
|
74
|
+
/** @ignore */
|
|
75
|
+
rootUrl: string;
|
|
76
|
+
/** @ignore */
|
|
77
|
+
offLineRootUrl: string;
|
|
78
|
+
/** @ignore */
|
|
79
|
+
offLineLevel: number;
|
|
80
|
+
/** @ignore */
|
|
81
|
+
time: number;
|
|
82
|
+
/** @ignore */
|
|
83
|
+
centerDis: number;
|
|
84
|
+
/**
|
|
85
|
+
* 构造
|
|
86
|
+
* @ignore
|
|
87
|
+
* @param pfid 全景面id
|
|
88
|
+
* @param textureIndex 纹理下标
|
|
89
|
+
* @param level 等级
|
|
90
|
+
* @param index 下标
|
|
91
|
+
* @param rootUrl 根地址
|
|
92
|
+
*/
|
|
93
|
+
constructor(pfid?: number, textureIndex?: number, level?: number, index?: number, rootUrl?: string, offLineLevel?: number, offLineRootUrl?: string);
|
|
94
|
+
/** @ignore */
|
|
95
|
+
get id(): string;
|
|
96
|
+
/** @ignore */
|
|
97
|
+
get originVertices(): NS_THREE.Vector3[];
|
|
98
|
+
/**
|
|
99
|
+
* 判定是否在相机内
|
|
100
|
+
* @ignore
|
|
101
|
+
* @param matrix 矩阵
|
|
102
|
+
* @param camera 相机
|
|
103
|
+
* @returns bool
|
|
104
|
+
*/
|
|
105
|
+
inCamera(matrix: NS_THREE.Matrix4, camera: NS_THREE.Camera): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* @ignore
|
|
108
|
+
* 目标id
|
|
109
|
+
*/
|
|
110
|
+
get targetTid(): number;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* 瓦片工具类
|
|
114
|
+
*/
|
|
115
|
+
declare class TileUtil {
|
|
116
|
+
/** 美帧最大纹理更新个数 */
|
|
117
|
+
static updateTextureMax: number;
|
|
118
|
+
/** 等级最小限制 */
|
|
119
|
+
static levelMin: number;
|
|
120
|
+
/** 等级最大限制 */
|
|
121
|
+
static levelMax: number;
|
|
122
|
+
/** 优先重置大小 */
|
|
123
|
+
static resizeFirst: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* 获取xy
|
|
126
|
+
* @ignore
|
|
127
|
+
* @param value 目标值
|
|
128
|
+
* @param segment 分段
|
|
129
|
+
* @returns {x,y}
|
|
130
|
+
*/
|
|
131
|
+
static getXY(value: number, segment: number): {
|
|
132
|
+
x: number;
|
|
133
|
+
y: number;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* 根据level等级获取分段
|
|
137
|
+
* @ignore
|
|
138
|
+
* @param level 等级
|
|
139
|
+
* @returns 分段数
|
|
140
|
+
*/
|
|
141
|
+
static getSegment(level: number): number;
|
|
142
|
+
/**
|
|
143
|
+
* 根据level等级获取总数量
|
|
144
|
+
* @ignore
|
|
145
|
+
* @param level 等级
|
|
146
|
+
* @returns 总数量
|
|
147
|
+
*/
|
|
148
|
+
static getCount(level: number): number;
|
|
149
|
+
/**
|
|
150
|
+
* 获取图片信息
|
|
151
|
+
* @ignore
|
|
152
|
+
* @param pid 全景id
|
|
153
|
+
* @param index 下标
|
|
154
|
+
* @param level 等级
|
|
155
|
+
* @returns {url, id}
|
|
156
|
+
*/
|
|
157
|
+
static getImageInfo2(pfid: number, index: number, level: number, rootUrl: string): {
|
|
158
|
+
url: string;
|
|
159
|
+
id: string;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* 获取图片信息
|
|
163
|
+
* @param info
|
|
164
|
+
* @returns
|
|
165
|
+
*/
|
|
166
|
+
static getImageInfo(info: TileTextureInfo): {
|
|
167
|
+
url: string;
|
|
168
|
+
id: string;
|
|
169
|
+
};
|
|
170
|
+
static getTileInfoId: typeof getTileInfoId;
|
|
171
|
+
static getVertices: typeof getVertices;
|
|
172
|
+
/**
|
|
173
|
+
* 防抖
|
|
174
|
+
* @param cb
|
|
175
|
+
* @param time
|
|
176
|
+
* @returns
|
|
177
|
+
*/
|
|
178
|
+
static antiShake(cb: Function, time: number): Function;
|
|
179
|
+
/**
|
|
180
|
+
* 节流
|
|
181
|
+
* @param cb
|
|
182
|
+
* @param time
|
|
183
|
+
* @returns
|
|
184
|
+
*/
|
|
185
|
+
static throttle(cb: Function, time: number): Function;
|
|
186
|
+
}
|
|
187
|
+
export { TileUtil, TileTextureInfo, TEXT_MAX, TEXT_SEGMENT, VertexShader, FragmentShader, FaceConfig, CubeFaceConfig, USE_CANVAS, USE_TEXTURE_BLACK, getTextPixel, getImgTextPixel, setTileConfig, TileConfig, };
|