@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,27 @@
|
|
|
1
|
+
import { Element, ElementFrameContext } from './element';
|
|
2
|
+
import { ModelSvgMapping } from '../view/svg-map-view';
|
|
3
|
+
import { SvgFloorModel } from './svg-floor-model';
|
|
4
|
+
interface SvgModelInfo {
|
|
5
|
+
url: string;
|
|
6
|
+
mapping: ModelSvgMapping;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* SVG楼层模型组, 不应再被维护
|
|
10
|
+
* @noInheritDoc
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
declare class SvgFloors extends Element {
|
|
14
|
+
private initialized;
|
|
15
|
+
private loadCounter;
|
|
16
|
+
private floorInfos;
|
|
17
|
+
private floors;
|
|
18
|
+
private visibleFloorIndex;
|
|
19
|
+
private renderThisFrame;
|
|
20
|
+
constructor(floors: SvgModelInfo[], visibleFloorIndex?: number);
|
|
21
|
+
update(): ElementFrameContext;
|
|
22
|
+
setFloorVisible(index: number): void;
|
|
23
|
+
switchToFloor(index: number): Promise<unknown>;
|
|
24
|
+
getCurrentVisibleFloorModel(): SvgFloorModel;
|
|
25
|
+
dispose(): void;
|
|
26
|
+
}
|
|
27
|
+
export { SvgFloors, SvgModelInfo };
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { Element, ElementFrameContext } from './element';
|
|
3
|
+
import { View } from '../view/view';
|
|
4
|
+
import { GroundParameters } from './floor-model';
|
|
5
|
+
import { TilePanorama } from './tile-panorama';
|
|
6
|
+
/** 全景点位显示模式
|
|
7
|
+
* 点位的显示/隐藏状态通过[setIndicatorVisibility]方法设置,
|
|
8
|
+
* 但是最终是否显示、以何外观显示,则是结合PanoramaGroup在当前View的显示模式来决定
|
|
9
|
+
* @param AlwaysHide 不论显示/隐藏的设置如何,都不显示
|
|
10
|
+
* @param AlwaysShow 不论显示/隐藏的设置如何,都不显示。该模式主要用于俯视全局视图用
|
|
11
|
+
* @param Editing 编辑模式,隐藏/显示状态的点位用不同的外观显示
|
|
12
|
+
* @param Show 按显示/隐葳的状态设置决定是否显示
|
|
13
|
+
*/
|
|
14
|
+
declare enum IndicatorDisplayMode {
|
|
15
|
+
AlwaysHide = 0,
|
|
16
|
+
AlwaysShow = 1,
|
|
17
|
+
Editing = 2,
|
|
18
|
+
Show = 3
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 全景图组显示状态配置
|
|
22
|
+
*/
|
|
23
|
+
interface TilePanoramaGroupViewConfiguration {
|
|
24
|
+
targetView: View;
|
|
25
|
+
hidden?: boolean;
|
|
26
|
+
/** 可视范围半径,会根据此数值来决定预加载哪些全景图以及显示哪些点位 */
|
|
27
|
+
visibleRadius?: number;
|
|
28
|
+
/** 全景点位显示模式 */
|
|
29
|
+
indicatorDisplayMode?: IndicatorDisplayMode;
|
|
30
|
+
/** 是否显示模型包围盒,用于全景漫游时 */
|
|
31
|
+
showBoundBox?: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface TilePanoramaData {
|
|
34
|
+
pid: number;
|
|
35
|
+
seqID: number;
|
|
36
|
+
textureURLs: string[];
|
|
37
|
+
neighbourPanoramaIDs: number[];
|
|
38
|
+
highTextureURLs?: string[];
|
|
39
|
+
useLowTextureURLsOnly?: boolean;
|
|
40
|
+
tiledTextureURLRoot?: string;
|
|
41
|
+
position?: NS_THREE.Vector3;
|
|
42
|
+
quaternion?: NS_THREE.Quaternion;
|
|
43
|
+
legacyMode?: boolean;
|
|
44
|
+
visible?: boolean;
|
|
45
|
+
offLineTextureUrls?: string[];
|
|
46
|
+
offLineTextureLevel?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 全景图组
|
|
50
|
+
* @noInheritDoc
|
|
51
|
+
*/
|
|
52
|
+
declare class TilePanoramaGroup extends Element {
|
|
53
|
+
private initialized;
|
|
54
|
+
private needUpdate;
|
|
55
|
+
/** 当前全景点 */
|
|
56
|
+
currentPanorama: TilePanorama | undefined;
|
|
57
|
+
/** 模型元素 */
|
|
58
|
+
modelElement: NS_THREE.Object3D | null;
|
|
59
|
+
private groundParams?;
|
|
60
|
+
private boundBox;
|
|
61
|
+
/** 当前全景点id */
|
|
62
|
+
currentPanoramaID: number;
|
|
63
|
+
private panoramaDatas;
|
|
64
|
+
private panoramaMap;
|
|
65
|
+
private indicatorMeshPrototype;
|
|
66
|
+
private indicatorMaterials;
|
|
67
|
+
private indicatorShaderUniforms;
|
|
68
|
+
private invisibleIndicatorShaderUniforms;
|
|
69
|
+
private indicatorMap;
|
|
70
|
+
private inSightIndicators;
|
|
71
|
+
private indicatorVisibilityMap;
|
|
72
|
+
private indicatorHiddenMap;
|
|
73
|
+
private indicatorPositionMap;
|
|
74
|
+
private indicatorImageURL;
|
|
75
|
+
private indicatorWidth;
|
|
76
|
+
private indicatorHeight;
|
|
77
|
+
private panoramaCreatingTasks;
|
|
78
|
+
private group;
|
|
79
|
+
private viewConfigurations;
|
|
80
|
+
private showInvisible;
|
|
81
|
+
private eventListeners;
|
|
82
|
+
private maxWorldDistance;
|
|
83
|
+
/** 默认有效半径 */
|
|
84
|
+
static DefaultVisibleRadius: number;
|
|
85
|
+
/** 标签显示半径 */
|
|
86
|
+
static IndicatorRadius: number;
|
|
87
|
+
/** 标签高度偏移 */
|
|
88
|
+
static IndicatorOffsetZ: number;
|
|
89
|
+
/** 全局缩放 */
|
|
90
|
+
private globalScale;
|
|
91
|
+
/**
|
|
92
|
+
* @param modelElement 模型对象,通常应该是FloorModel
|
|
93
|
+
* @param groundParams 地面参数对象,若有则在计算地面高度时忽略modelElement,优先使用它
|
|
94
|
+
* @param indicatorImageURL 显示状态全景点地面标识的图片URL
|
|
95
|
+
* @param invisibleIndicatorImageURL 编辑模式下隐藏状态全景点地面标识的图片URL
|
|
96
|
+
* @param indicatorWidth 全景点地面标识宽度
|
|
97
|
+
* @param indicatorHeight 全景点地面标识高度
|
|
98
|
+
* @example
|
|
99
|
+
* ``` typescript
|
|
100
|
+
* panoMgr = new TilePanoramaGroup(panoramaDataList, 2, {
|
|
101
|
+
* floorModel,
|
|
102
|
+
* groundParams,
|
|
103
|
+
* });
|
|
104
|
+
* stage.bindElement(panoMgr);
|
|
105
|
+
*/
|
|
106
|
+
constructor(panoramaDataList: TilePanoramaData[], options: {
|
|
107
|
+
modelElement?: NS_THREE.Object3D;
|
|
108
|
+
groundParams?: GroundParameters;
|
|
109
|
+
indicatorImageURL?: string;
|
|
110
|
+
invisibleIndicatorImageURL?: string;
|
|
111
|
+
indicatorWidth?: number;
|
|
112
|
+
indicatorHeight?: number;
|
|
113
|
+
indicatorPositionMap?: Map<number, NS_THREE.Vector3>;
|
|
114
|
+
globalScale?: number;
|
|
115
|
+
showInvisible?: boolean;
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* @ignore
|
|
119
|
+
* @param panoramaDataList
|
|
120
|
+
*/
|
|
121
|
+
private initPanoramas;
|
|
122
|
+
private initIndicatorPosition;
|
|
123
|
+
/**
|
|
124
|
+
* 更新最大等级
|
|
125
|
+
* @param levelMax 最大等级
|
|
126
|
+
*/
|
|
127
|
+
updateLevelMax(levelMax: number): void;
|
|
128
|
+
/**
|
|
129
|
+
* 销毁
|
|
130
|
+
* @param exceptForCubeTextureOfPID
|
|
131
|
+
*/
|
|
132
|
+
dispose(exceptForCubeTextureOfPID?: number): void;
|
|
133
|
+
/**
|
|
134
|
+
* 初始化indicator
|
|
135
|
+
* @param indicatorImageURL
|
|
136
|
+
* @param invisibleIndicatorImageURL
|
|
137
|
+
*/
|
|
138
|
+
private initIndicator;
|
|
139
|
+
/**
|
|
140
|
+
* 更新标签
|
|
141
|
+
*/
|
|
142
|
+
private updateIndicators;
|
|
143
|
+
/**
|
|
144
|
+
* @ignore
|
|
145
|
+
*/
|
|
146
|
+
update(): ElementFrameContext;
|
|
147
|
+
/**
|
|
148
|
+
* 绑定模型Element对象(用于创建天空包围盒供全景切换时使用)
|
|
149
|
+
* @param modelElement 模型Element对象
|
|
150
|
+
*/
|
|
151
|
+
bindModelElement(modelElement?: NS_THREE.Object3D): void;
|
|
152
|
+
/**
|
|
153
|
+
* 获取盒子
|
|
154
|
+
* @param rootObj
|
|
155
|
+
* @param globalScale
|
|
156
|
+
* @returns
|
|
157
|
+
*/
|
|
158
|
+
static getBoundBox(rootObj: NS_THREE.Object3D | null): NS_THREE.Mesh | null;
|
|
159
|
+
/**
|
|
160
|
+
* 获取模型盒子
|
|
161
|
+
* @returns
|
|
162
|
+
*/
|
|
163
|
+
private getModelBoundBox;
|
|
164
|
+
/**
|
|
165
|
+
* 设置包围盒出现
|
|
166
|
+
* @param material
|
|
167
|
+
* @returns
|
|
168
|
+
*/
|
|
169
|
+
setBoundBoxAppearance(material: NS_THREE.Material): void;
|
|
170
|
+
private setBoundBoxVisible;
|
|
171
|
+
/**
|
|
172
|
+
* 加载指定全景图并加入场景(显示要通过PanoramaController)
|
|
173
|
+
* @param panorama 要加载的全景图
|
|
174
|
+
*/
|
|
175
|
+
private presentPanorama;
|
|
176
|
+
/**
|
|
177
|
+
* 根据全景对象初始化纹理
|
|
178
|
+
* @param panorama
|
|
179
|
+
*/
|
|
180
|
+
private initTexturesByPanorama;
|
|
181
|
+
/**
|
|
182
|
+
* 加载指定PID的全景图并加入场景(显示要通过PanoramaController)
|
|
183
|
+
* @param pid 要加载的全景图ID
|
|
184
|
+
*/
|
|
185
|
+
private presentPanoramaOfPID;
|
|
186
|
+
private visibleRadiusOfView;
|
|
187
|
+
/**
|
|
188
|
+
* @ignore
|
|
189
|
+
* @param centerPID
|
|
190
|
+
* @param view
|
|
191
|
+
* @returns
|
|
192
|
+
*/
|
|
193
|
+
panoramaIDsAround(centerPID: number, view?: View): number[] | null;
|
|
194
|
+
/**
|
|
195
|
+
* 设置当前位于的全景点位。将加载指定全景点并预加载其相邻全景点
|
|
196
|
+
* @param {number} currentPID 全景点位ID
|
|
197
|
+
* @returns 1为初始化成功, 0为初始化失败
|
|
198
|
+
*/
|
|
199
|
+
presentPanoramaAround(currentPID: number, view?: View): Promise<number>;
|
|
200
|
+
/** @ignore */
|
|
201
|
+
private getPIDPositionMap;
|
|
202
|
+
/**
|
|
203
|
+
* 根据pid获取标签的位置
|
|
204
|
+
* @param pid
|
|
205
|
+
* @returns
|
|
206
|
+
*/
|
|
207
|
+
getIndicatorPosition(pid: number): NS_THREE.Vector3 | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* 显示指定全景点位标签
|
|
210
|
+
* @param pidPositionMap 从PID映射到全景点位位置的Map
|
|
211
|
+
*/
|
|
212
|
+
presentPanoramaIndicators(pidPositionMap: Map<number, NS_THREE.Vector3>): void;
|
|
213
|
+
/**
|
|
214
|
+
* 更新标签位置
|
|
215
|
+
*/
|
|
216
|
+
private updateIndicatorsPositions;
|
|
217
|
+
/**
|
|
218
|
+
* 显示指定全景点及其相邻全景点上的标签
|
|
219
|
+
* @param pid “中心”全景点ID,一般指摄像机当前所在的全景点PID
|
|
220
|
+
*/
|
|
221
|
+
presentPanoramaIndicatorsAround(pid: number, view?: View): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* 获取pid的标签是否可见
|
|
224
|
+
* @param pid
|
|
225
|
+
* @returns
|
|
226
|
+
*/
|
|
227
|
+
getIndicatorVisibility(pid: number): boolean;
|
|
228
|
+
/**
|
|
229
|
+
* 设置指定全景点位的显示/隐藏状态
|
|
230
|
+
* @param visibility 显示/隐藏状态
|
|
231
|
+
* @param pid 可选,可以是全景图点位PID数组,也可以是单个PID,
|
|
232
|
+
* 若不设置则应用到本PanoramaGroup的所有全景点位上
|
|
233
|
+
*/
|
|
234
|
+
setIndicatorVisibility(visibility: boolean, pid?: number | number[]): void;
|
|
235
|
+
/**
|
|
236
|
+
* 设置标签隐藏
|
|
237
|
+
* @param hidden 隐藏
|
|
238
|
+
* @param pid 指定pid
|
|
239
|
+
*/
|
|
240
|
+
setIndicatorHidden(hidden: boolean, pid?: number | number[]): void;
|
|
241
|
+
/**
|
|
242
|
+
* 与全景点标志作相交测试
|
|
243
|
+
* 若有任一个全景点标志与射线相交则返回最近一个的相应PID
|
|
244
|
+
* 若没有则返回-1
|
|
245
|
+
* @param rayOrigin 射线起点
|
|
246
|
+
* @param rayDirection 射线方向
|
|
247
|
+
*/
|
|
248
|
+
intersectIndicators(rayOrigin: NS_THREE.Vector3, rayDirection: NS_THREE.Vector3): number;
|
|
249
|
+
/**
|
|
250
|
+
* @ignore
|
|
251
|
+
* @param screenPosition
|
|
252
|
+
* @param radius
|
|
253
|
+
* @param param2
|
|
254
|
+
* @param camera
|
|
255
|
+
* @returns
|
|
256
|
+
*/
|
|
257
|
+
intersectIndicatorsOnScreen(screenPosition: NS_THREE.Vector2, radius: number, { screenWidth, screenHeight }: {
|
|
258
|
+
screenWidth: number;
|
|
259
|
+
screenHeight: number;
|
|
260
|
+
}, camera: NS_THREE.Camera): number;
|
|
261
|
+
/**
|
|
262
|
+
* 添加全景点
|
|
263
|
+
* @param {Panorama} pano 全景图对象
|
|
264
|
+
*/
|
|
265
|
+
putPanorama(pano: TilePanorama): void;
|
|
266
|
+
/**
|
|
267
|
+
* 指定预构建全景对象的顺序策略
|
|
268
|
+
* @param preInitStrategy 多义参数,表示具体的创建顺序
|
|
269
|
+
* 当为'all'时,直接按构造函数中panoramaDataList的顺序创建全部全景对象
|
|
270
|
+
* 当为一个整数值时,表示一个全景PID,将按全景点邻接关系以广度优先搜索的顺序创建全景对象
|
|
271
|
+
* 当为一个整数数组时,以数组指定的PID顺序依次创建
|
|
272
|
+
*/
|
|
273
|
+
initializePanoramasIfNecessary(preInitStrategy: 'all' | number | number[]): Promise<(TilePanorama | undefined)[]>;
|
|
274
|
+
/**
|
|
275
|
+
* 获得指定ID的全景点对象
|
|
276
|
+
* @param pid 全景点ID
|
|
277
|
+
*/
|
|
278
|
+
getPanoramaByPID(pid: number): TilePanorama | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* 立刻获得指定ID的全景点对象
|
|
281
|
+
* @param pid 全景点ID
|
|
282
|
+
*/
|
|
283
|
+
getPanoramaByPIDInstant(pid: number): TilePanorama | null;
|
|
284
|
+
/**
|
|
285
|
+
* @ignore
|
|
286
|
+
* @param rayDirection
|
|
287
|
+
*/
|
|
288
|
+
getNeghbourPanoClosestToRay(rayDirection: NS_THREE.Vector3): number;
|
|
289
|
+
/**
|
|
290
|
+
* @ignore
|
|
291
|
+
*/
|
|
292
|
+
updateIndicatorGeometry(): void;
|
|
293
|
+
/**
|
|
294
|
+
* 改变地面全景点标识的尺寸
|
|
295
|
+
* @param width 宽度
|
|
296
|
+
* @param height 高度
|
|
297
|
+
*/
|
|
298
|
+
setIndicatorSize(width: number, height: number): void;
|
|
299
|
+
/**
|
|
300
|
+
* 设置标签的图片
|
|
301
|
+
* @param url
|
|
302
|
+
*/
|
|
303
|
+
setIndicatorImageURL(url: string): void;
|
|
304
|
+
/**
|
|
305
|
+
* 查询当前设置的地面全景点标识尺寸
|
|
306
|
+
* @returns number数组,依次是width, height
|
|
307
|
+
*/
|
|
308
|
+
getIndicatorSize(): number[];
|
|
309
|
+
private setIndicatorMeshPrototype;
|
|
310
|
+
/**
|
|
311
|
+
* 设定全景点位标签的原型对象,每个全景点位的标签会以该原型对象为母本clone出来
|
|
312
|
+
* @param prototypeObject 点位标签原型Object3D对象
|
|
313
|
+
* @param mode 点位的展示模式
|
|
314
|
+
* @param visibility 点位的显隐状态设置
|
|
315
|
+
*/
|
|
316
|
+
setIndicatorMaterial(material: NS_THREE.Material, mode: IndicatorDisplayMode, visibility: boolean): void;
|
|
317
|
+
/**
|
|
318
|
+
* 获取标签材质
|
|
319
|
+
* @param mode
|
|
320
|
+
* @param visibility
|
|
321
|
+
* @returns
|
|
322
|
+
*/
|
|
323
|
+
getIndicatorMaterial(mode: IndicatorDisplayMode, visibility: boolean): NS_THREE.Material | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* 配置全景图组在不同view中的显示状态
|
|
326
|
+
* @param configuration 全景图组配置,见[[PanoramaGroupViewConfiguration]]
|
|
327
|
+
*/
|
|
328
|
+
addGroupViewConfiguration(configuration: TilePanoramaGroupViewConfiguration): void;
|
|
329
|
+
/**
|
|
330
|
+
* 设置最大时间距离
|
|
331
|
+
* @param distance
|
|
332
|
+
*/
|
|
333
|
+
setMaxWorldDistance(distance: number): void;
|
|
334
|
+
}
|
|
335
|
+
export { TilePanoramaGroup, IndicatorDisplayMode, TilePanoramaGroupViewConfiguration, TilePanoramaData, };
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { Element, ElementFrameContext } from './element';
|
|
3
|
+
import { View } from '../view';
|
|
4
|
+
import { TilePlane } from './tile-plane';
|
|
5
|
+
import { TileTextureInfo } from '../utils/tile-util';
|
|
6
|
+
interface TilePanoramaViewConfiguration {
|
|
7
|
+
targetView: View;
|
|
8
|
+
showBorder?: boolean;
|
|
9
|
+
showSkyBox?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 全景图对象
|
|
13
|
+
* @noInheritDoc
|
|
14
|
+
*/
|
|
15
|
+
declare class TilePanorama extends Element {
|
|
16
|
+
static DisposeModule(): void;
|
|
17
|
+
private initialized;
|
|
18
|
+
private needsUpdate;
|
|
19
|
+
private level;
|
|
20
|
+
/** @ignore */
|
|
21
|
+
levelMax: number;
|
|
22
|
+
private sphereMesh;
|
|
23
|
+
private isPlayingVideo;
|
|
24
|
+
private video;
|
|
25
|
+
private wireFrame;
|
|
26
|
+
/** @ignore */
|
|
27
|
+
tilePlanes: TilePlane[];
|
|
28
|
+
pid: number;
|
|
29
|
+
/** @ignore */
|
|
30
|
+
seqID: number;
|
|
31
|
+
/** @ignore */
|
|
32
|
+
neighborPanoramaIDs: number[];
|
|
33
|
+
/** @ignore */
|
|
34
|
+
highTextureURLs: string[];
|
|
35
|
+
/** @ignore */
|
|
36
|
+
textureURLs: string[];
|
|
37
|
+
/** @ignore */
|
|
38
|
+
offLinTextureUrls: string[];
|
|
39
|
+
/** @ignore */
|
|
40
|
+
offLineTextureLevel: number;
|
|
41
|
+
/** @ignore */
|
|
42
|
+
useLowTextureURLsOnly: boolean;
|
|
43
|
+
/** @ignore */
|
|
44
|
+
tiledTextureURLRoot: string | undefined;
|
|
45
|
+
private baseQuaternion;
|
|
46
|
+
private additionalQuaternion;
|
|
47
|
+
private panoramaLoaded;
|
|
48
|
+
private eventListeners;
|
|
49
|
+
private isSelected;
|
|
50
|
+
private videoCanvas;
|
|
51
|
+
private mpegVideoPlayer;
|
|
52
|
+
private videoContentType;
|
|
53
|
+
private mounted;
|
|
54
|
+
/**
|
|
55
|
+
* @param textureURLs 低清立方体贴图六张图的URL数组(本地相对路径或网络URL均可),按右左上下前后的顺序
|
|
56
|
+
* @param highTextureURLs 高清立方体贴图六张图的URL数组(本地相对路径或网络URL均可),按右左上下前后的顺序
|
|
57
|
+
* @param useLowTextureURLsOnly 可选,设置后则(如果没有提供瓦片贴图)只使用低清立方体贴图
|
|
58
|
+
* @param tiledTextureURLRoot 可选,瓦片贴图URL的前缀部分,若没有则用highTextureURLs和lowTextureURLs作为贴图源
|
|
59
|
+
*/
|
|
60
|
+
constructor(pid: number, seqID: number, textureURLs: string[], neighborPanoramaIDs: number[] | undefined, levelMax: number, offLinTextureUrls?: string[], offLineTextureLevel?: number, position?: NS_THREE.Vector3, quaternion?: NS_THREE.Quaternion);
|
|
61
|
+
/**
|
|
62
|
+
* 关联包围框
|
|
63
|
+
* @param size
|
|
64
|
+
*/
|
|
65
|
+
private linkLineBox;
|
|
66
|
+
/**
|
|
67
|
+
* 关联球
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
private linkShere;
|
|
71
|
+
/**
|
|
72
|
+
* 挂载
|
|
73
|
+
* @ignore
|
|
74
|
+
*/
|
|
75
|
+
mount(): void;
|
|
76
|
+
/**
|
|
77
|
+
* 卸载
|
|
78
|
+
*/
|
|
79
|
+
unMount(): void;
|
|
80
|
+
/**
|
|
81
|
+
* 更新等级
|
|
82
|
+
* @param level
|
|
83
|
+
*/
|
|
84
|
+
updateLevel(level: number): void;
|
|
85
|
+
/**
|
|
86
|
+
* 获取预处理纹理信息
|
|
87
|
+
* @returns
|
|
88
|
+
*/
|
|
89
|
+
getPreTextureInfos(): TileTextureInfo[];
|
|
90
|
+
/**
|
|
91
|
+
* 设置位移
|
|
92
|
+
* @param position
|
|
93
|
+
* @param quaternion
|
|
94
|
+
*/
|
|
95
|
+
private setTransform;
|
|
96
|
+
/**
|
|
97
|
+
* 暂停视频播放
|
|
98
|
+
*/
|
|
99
|
+
pauseVideo(): void;
|
|
100
|
+
/**
|
|
101
|
+
* 恢复视频播放
|
|
102
|
+
*/
|
|
103
|
+
resumeVideo(): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* 停止视频播放,并释放视频相关资源
|
|
106
|
+
*/
|
|
107
|
+
stopVideo(): void;
|
|
108
|
+
/**
|
|
109
|
+
* 开始视频播放
|
|
110
|
+
* @param videoURL 视频地址
|
|
111
|
+
* @param loop 是否循环播放
|
|
112
|
+
* @param callbacks 回调函数集合,可选
|
|
113
|
+
*/
|
|
114
|
+
playVideo(videoURL: string, loop: boolean, callbacks?: {
|
|
115
|
+
onPrepareToPlay?: (video?: HTMLVideoElement) => void;
|
|
116
|
+
onReadyToPlay?: (video?: HTMLVideoElement) => void;
|
|
117
|
+
onEnded?: (video?: HTMLVideoElement) => void;
|
|
118
|
+
}, contentType?: 'mp4' | 'ts', canvasSize?: [number, number]): HTMLVideoElement | null;
|
|
119
|
+
/**
|
|
120
|
+
* 设置是否只使用低分辨率贴图
|
|
121
|
+
* @param useLowTexturesOnly 是否只使用低分辨率贴图
|
|
122
|
+
*/
|
|
123
|
+
setUseLowTexturesOnly(useLowTexturesOnly: boolean): void;
|
|
124
|
+
/**
|
|
125
|
+
* 是否使用地分辨率贴图
|
|
126
|
+
* @returns
|
|
127
|
+
*/
|
|
128
|
+
isUseLowTexturesOnly(): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* 清理
|
|
131
|
+
*/
|
|
132
|
+
dispose(): void;
|
|
133
|
+
/**
|
|
134
|
+
* @ignore
|
|
135
|
+
*/
|
|
136
|
+
update(): ElementFrameContext;
|
|
137
|
+
/**
|
|
138
|
+
* 使用欧拉角模式设置矫正
|
|
139
|
+
* @param roll 横滚角, 坐标轴为x
|
|
140
|
+
* @param pitch 俯仰角, 坐标轴为y
|
|
141
|
+
* @param yaw 偏航角, 坐标轴为z
|
|
142
|
+
*/
|
|
143
|
+
setAdditionalRotationInEuler(roll: number, pitch: number, yaw: number): NS_THREE.Quaternion;
|
|
144
|
+
/**
|
|
145
|
+
* 使用四元数模式设置矫正
|
|
146
|
+
* @param x 四元数的x值
|
|
147
|
+
* @param y 四元数的y值
|
|
148
|
+
* @param z 四元数的y值
|
|
149
|
+
* @param w 四元数的w值
|
|
150
|
+
*/
|
|
151
|
+
setAdditionalRotationInQuaternion(x: number, y: number, z: number, w: number): NS_THREE.Euler;
|
|
152
|
+
/**
|
|
153
|
+
* 获取盒子
|
|
154
|
+
* @ignore
|
|
155
|
+
* @returns
|
|
156
|
+
*/
|
|
157
|
+
getBox(): {
|
|
158
|
+
size: number;
|
|
159
|
+
matrix: NS_THREE.Matrix4;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
export { TilePanorama, TilePanoramaViewConfiguration };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { Element, ElementFrameContext, View } from '..';
|
|
3
|
+
import { TileTextureInfo } from '../utils/tile-util';
|
|
4
|
+
/**
|
|
5
|
+
* 瓦片平面,可以是平面,也可以是曲面
|
|
6
|
+
*/
|
|
7
|
+
declare class TilePlane extends Element {
|
|
8
|
+
private initialized;
|
|
9
|
+
/** 全景面id @ignore */
|
|
10
|
+
pfid: number;
|
|
11
|
+
private planeGeometry;
|
|
12
|
+
private uniforms;
|
|
13
|
+
private plane;
|
|
14
|
+
private needsUpdate;
|
|
15
|
+
/** @ignore */
|
|
16
|
+
textureMap: Map<string, TileTextureInfo>;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
level: number;
|
|
19
|
+
/** @ignore */
|
|
20
|
+
revers: boolean;
|
|
21
|
+
/** @ignore */
|
|
22
|
+
face: number;
|
|
23
|
+
/** @ignore */
|
|
24
|
+
flipX: boolean;
|
|
25
|
+
/** @ignore */
|
|
26
|
+
flipY: boolean;
|
|
27
|
+
/** @ignore */
|
|
28
|
+
textureRootUrl: string;
|
|
29
|
+
/** @ignore */
|
|
30
|
+
offLineTextureRootUrl?: string;
|
|
31
|
+
/** @ignore */
|
|
32
|
+
offLineTextureLevel: number;
|
|
33
|
+
/**
|
|
34
|
+
* 构造
|
|
35
|
+
* @param face 面数
|
|
36
|
+
* @param flipX x翻转
|
|
37
|
+
* @param flipY y翻转
|
|
38
|
+
*/
|
|
39
|
+
constructor(face: number, flipX?: boolean, flipY?: boolean);
|
|
40
|
+
/**
|
|
41
|
+
* 更新面id
|
|
42
|
+
* @ignore
|
|
43
|
+
* @param pfid 全景面id
|
|
44
|
+
* @param level 全景等级
|
|
45
|
+
*/
|
|
46
|
+
updatePfid(pfid: number, level: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* 设置纹理
|
|
49
|
+
* @param max
|
|
50
|
+
* @param textures
|
|
51
|
+
*/
|
|
52
|
+
private setTexturesUniforms;
|
|
53
|
+
/**
|
|
54
|
+
* 更新纹理
|
|
55
|
+
* @param textures
|
|
56
|
+
* @param textureMap
|
|
57
|
+
*/
|
|
58
|
+
updateTextures(textures: NS_THREE.Texture[], textureMap: Map<string, TileTextureInfo>): void;
|
|
59
|
+
/**
|
|
60
|
+
* 更新纹理图
|
|
61
|
+
* @ignore
|
|
62
|
+
* @param textureMap
|
|
63
|
+
*/
|
|
64
|
+
updateInfos(textureMap: Map<string, TileTextureInfo>): void;
|
|
65
|
+
/**
|
|
66
|
+
* 更新在相机中的信息
|
|
67
|
+
* @ignore
|
|
68
|
+
* @param view
|
|
69
|
+
* @returns
|
|
70
|
+
*/
|
|
71
|
+
udpateInCamera(view: View): TileTextureInfo[];
|
|
72
|
+
/**
|
|
73
|
+
* 更新
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
update(): ElementFrameContext;
|
|
77
|
+
renderOnce(): void;
|
|
78
|
+
/**
|
|
79
|
+
* 销毁
|
|
80
|
+
*/
|
|
81
|
+
destroy(): void;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 瓦片平面工具类
|
|
85
|
+
*/
|
|
86
|
+
declare class TilePlaneUtil {
|
|
87
|
+
private static cubeMatrix;
|
|
88
|
+
/**
|
|
89
|
+
* 设置平面可见性
|
|
90
|
+
* @ignore
|
|
91
|
+
* @param visible
|
|
92
|
+
*/
|
|
93
|
+
static setPlanesVisible(visible: boolean): void;
|
|
94
|
+
/**
|
|
95
|
+
* 根据矩阵获取平面组
|
|
96
|
+
* @ignore
|
|
97
|
+
* @param pid 全景id
|
|
98
|
+
* @param level 瓦片等级
|
|
99
|
+
* @param textureUrls 纹理地址
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
static getPlanesByMatrix(pid: number, level: number, textureUrls: string[], offLineTextureLevel?: number, offLineTextureUrls?: string[]): TilePlane[];
|
|
103
|
+
/**
|
|
104
|
+
* 获取cube平面矩阵
|
|
105
|
+
* @returns
|
|
106
|
+
*/
|
|
107
|
+
static getCubeMatrix(): NS_THREE.Matrix4[];
|
|
108
|
+
/**
|
|
109
|
+
* 销毁所有平面
|
|
110
|
+
* @ignore
|
|
111
|
+
*/
|
|
112
|
+
static destroyPlanes(): void;
|
|
113
|
+
}
|
|
114
|
+
export { TilePlane, TilePlaneUtil };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { Element, ElementFrameContext } from './element';
|
|
3
|
+
declare class SharedVideo {
|
|
4
|
+
video: HTMLVideoElement;
|
|
5
|
+
count: number;
|
|
6
|
+
playing: boolean;
|
|
7
|
+
playSet: Set<number>;
|
|
8
|
+
texture: NS_THREE.VideoTexture;
|
|
9
|
+
private listeners;
|
|
10
|
+
constructor(videoSrc: string);
|
|
11
|
+
play(identifier?: number): void;
|
|
12
|
+
pause(identifier?: number): void;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
}
|
|
15
|
+
declare class VideoElement extends Element {
|
|
16
|
+
static Videos: Map<string, SharedVideo>;
|
|
17
|
+
private initialized;
|
|
18
|
+
private video;
|
|
19
|
+
private videoPlane;
|
|
20
|
+
private videoVisible;
|
|
21
|
+
constructor(videoSrc: string);
|
|
22
|
+
private static RemoveVideo;
|
|
23
|
+
private static AddVideo;
|
|
24
|
+
private createVideoPlane;
|
|
25
|
+
setVideoSrc(videoSrc: string): void;
|
|
26
|
+
setVideoVisible(visible: boolean): void;
|
|
27
|
+
setVideoSize(width: number, height: number): void;
|
|
28
|
+
play(identifier?: number): void;
|
|
29
|
+
stop(identifier?: number): void;
|
|
30
|
+
update(): ElementFrameContext;
|
|
31
|
+
dispose(): void;
|
|
32
|
+
}
|
|
33
|
+
export { VideoElement };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
export interface ExtrudeGeometry2Options {
|
|
3
|
+
extrudePath: NS_THREE.Vector3[];
|
|
4
|
+
closed: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface UVGenerator2 {
|
|
7
|
+
generateTopUV(geometry: ExtrudeGeometry2, vertices: number[], indexA: number, indexB: number, indexC: number): THREE.Vector2[];
|
|
8
|
+
generateSideWallUV(geometry: ExtrudeGeometry2, vertices: number[], indexA: number, indexB: number, indexC: number, indexD: number): THREE.Vector2[];
|
|
9
|
+
}
|
|
10
|
+
declare class ExtrudeGeometry2 extends NS_THREE.BufferGeometry {
|
|
11
|
+
private parameters;
|
|
12
|
+
constructor(shapes: NS_THREE.Shape | NS_THREE.Shape[], options: ExtrudeGeometry2Options);
|
|
13
|
+
toJSON(): any;
|
|
14
|
+
}
|
|
15
|
+
export { ExtrudeGeometry2, ExtrudeGeometry2 as ExtrudeBufferGeometry2 };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import TWEEN from '@tweenjs/tween.js';
|
|
2
|
+
export * from './stage';
|
|
3
|
+
export * from './screen';
|
|
4
|
+
export * from './view';
|
|
5
|
+
export * from './overlay';
|
|
6
|
+
export * from './element';
|
|
7
|
+
export * from './controller';
|
|
8
|
+
export * from './utils';
|
|
9
|
+
export * from '../external/loaders/gltf-loader';
|
|
10
|
+
export * from '../external/lines/line-geometry';
|
|
11
|
+
export * from '../external/lines/line-material';
|
|
12
|
+
export * from '../external/lines/line-segments-2';
|
|
13
|
+
export { TWEEN };
|