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