@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,46 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
declare class PanoramaModelUtil {
|
|
3
|
+
/**
|
|
4
|
+
* 获取模型的顶点着色器
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
static getModelVS(): string;
|
|
8
|
+
/**
|
|
9
|
+
* 获取穿梭的定点着色器
|
|
10
|
+
* @ignore
|
|
11
|
+
*/
|
|
12
|
+
static getInstantTranslationVS(): string;
|
|
13
|
+
/**
|
|
14
|
+
* 获得模型片源着色器
|
|
15
|
+
* @ignore
|
|
16
|
+
* @returns {string} 片源着色器代码
|
|
17
|
+
*/
|
|
18
|
+
static getModelFS(): string;
|
|
19
|
+
/**
|
|
20
|
+
* debug模型顶点着色器
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
static debugModelVS(): string;
|
|
24
|
+
/**
|
|
25
|
+
* debug模型片源着色器
|
|
26
|
+
* @ignore
|
|
27
|
+
*/
|
|
28
|
+
static debugModelFS(): string;
|
|
29
|
+
static createModelUniforms(): {
|
|
30
|
+
[uniform: string]: NS_THREE.IUniform;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @ignore
|
|
34
|
+
*/
|
|
35
|
+
static createInstantTranslationUniforms(): {
|
|
36
|
+
[uniform: string]: NS_THREE.IUniform;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 获取模型网格
|
|
40
|
+
* @ignore
|
|
41
|
+
* @param e 3d对象
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
static getModelMeshInElement(e: NS_THREE.Object3D): NS_THREE.Mesh | undefined;
|
|
45
|
+
}
|
|
46
|
+
export { PanoramaModelUtil, };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { FloorModel, GroundParameters } from '../element/floor-model';
|
|
3
|
+
declare class PathUtils {
|
|
4
|
+
static PathMeshOffsetZ: number;
|
|
5
|
+
static ArrowMeshOffsetZ: number;
|
|
6
|
+
static getAngle(vec0: NS_THREE.Vector2, vec1: NS_THREE.Vector2): number;
|
|
7
|
+
/**
|
|
8
|
+
* 路径简化
|
|
9
|
+
* @param path 路径点集数组
|
|
10
|
+
* @param ignoreFirst 是否在简化过程中忽略第一个点
|
|
11
|
+
* @param smoothingOptimization 是否针对平滑对路径进行插值
|
|
12
|
+
* @param simplifyDistanceThreshold 简化时路径最短保留的距离, 默认为5
|
|
13
|
+
* @param maximumTurningDegree 简化时三点夹角认定为转弯的最大角度,默认为150
|
|
14
|
+
* @param smoothingDistance 平滑时使用的转角最大距离
|
|
15
|
+
*/
|
|
16
|
+
static simplify(path: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}[], ignoreFirst?: boolean, smoothingOptimization?: boolean, simplifyDistanceThreshold?: number, maximumTurningDegree?: number, smoothingDistance?: number): {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
}[];
|
|
23
|
+
static averageStepLength(path: [number, number][]): number;
|
|
24
|
+
static smoothPath(path: [number, number][], threshold?: number): [number, number][];
|
|
25
|
+
static smoothPathBezier(path: [number, number][], bezierLength: number, segment?: number): [number, number][];
|
|
26
|
+
static getRenderHeight(expression: number[], x: number, y: number): number;
|
|
27
|
+
static getPointHash(x: number, y: number, minX: number, minY: number, dist?: number): [number, number];
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated
|
|
30
|
+
* @param path 路径点二维坐标数组
|
|
31
|
+
* @param params 其它可选参数
|
|
32
|
+
* @param arrowImageRatio 箭头图像的宽高比,用于生成纹理坐标
|
|
33
|
+
* @param arrowImageURL 箭头图像URL
|
|
34
|
+
* @param floorModel FloorModel对象,用于计算地面高度坐标
|
|
35
|
+
* @param groundParams GroundParameters对象,用于计算地面高度坐标
|
|
36
|
+
* @param color 路劲的颜色
|
|
37
|
+
* 当存在groundParams时优先用它计算,忽略floorModel
|
|
38
|
+
*/
|
|
39
|
+
static generatePathMesh(path: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
}[], params?: {
|
|
43
|
+
viewDistance?: number;
|
|
44
|
+
gradientDistance?: number;
|
|
45
|
+
arrowImageRatio?: number;
|
|
46
|
+
arrowImageURL?: string;
|
|
47
|
+
floorModel?: FloorModel;
|
|
48
|
+
groundParams?: GroundParameters;
|
|
49
|
+
color?: string;
|
|
50
|
+
dynamicPathEnabled?: boolean;
|
|
51
|
+
width?: number;
|
|
52
|
+
}): {
|
|
53
|
+
mesh: NS_THREE.Mesh;
|
|
54
|
+
arrowMeshes: {
|
|
55
|
+
arrowMesh: NS_THREE.Mesh;
|
|
56
|
+
index: number;
|
|
57
|
+
}[];
|
|
58
|
+
newPath: [number, number][];
|
|
59
|
+
pointMap: Map<string, Map<string, number[][]>>;
|
|
60
|
+
pathMinX: number;
|
|
61
|
+
pathMinY: number;
|
|
62
|
+
progressBuffer: Float32Array;
|
|
63
|
+
pathDistance: number[];
|
|
64
|
+
};
|
|
65
|
+
static nearlyEqualsV2(v1: NS_THREE.Vector2, v2: NS_THREE.Vector2, tolerance?: number): boolean;
|
|
66
|
+
static nearlyEqualsV3(v1: NS_THREE.Vector3, v2: NS_THREE.Vector3, tolerance?: number): boolean;
|
|
67
|
+
static mergePathSameVectorPoint3(path: NS_THREE.Vector3[], tolerance?: number): void;
|
|
68
|
+
static mergePathSameVectorPoint2(path: NS_THREE.Vector2[], tolerance?: number): void;
|
|
69
|
+
static mergeSamePoint3(path: NS_THREE.Vector3[], tolerance?: number): void;
|
|
70
|
+
static mergeSamePoint2(path: NS_THREE.Vector2[], tolerance?: number): void;
|
|
71
|
+
static splitPathByPoints(path: NS_THREE.Vector3[], closed: boolean, points: NS_THREE.Vector3[], widths: number | number[], tolerance?: number): {
|
|
72
|
+
paths: NS_THREE.Vector3[][];
|
|
73
|
+
split: boolean;
|
|
74
|
+
};
|
|
75
|
+
static invalidPath(path: NS_THREE.Vector3[]): boolean;
|
|
76
|
+
static getDistances(path: NS_THREE.Vector3[]): number[];
|
|
77
|
+
static findPointIndexByPath(path: NS_THREE.Vector3[], point: NS_THREE.Vector3, tolerance?: number): number[];
|
|
78
|
+
static pointInLine(point: NS_THREE.Vector3, lineP1: NS_THREE.Vector3, lineP2: NS_THREE.Vector3, tolerance?: number): boolean;
|
|
79
|
+
}
|
|
80
|
+
export { PathUtils };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import Snap from '@aibee/snapsvg';
|
|
2
|
+
import { NS_THREE } from '../stage/externals';
|
|
3
|
+
import { Shape } from '../element/map-kit/shape';
|
|
4
|
+
interface ModelSvgMapping {
|
|
5
|
+
scale: number;
|
|
6
|
+
theta: number;
|
|
7
|
+
offsetRatioX: number;
|
|
8
|
+
offsetRatioY: number;
|
|
9
|
+
imageHeight?: number;
|
|
10
|
+
imageWidth?: number;
|
|
11
|
+
}
|
|
12
|
+
declare type ArrayFixed<T, L extends number> = [T, ...Array<T>] & {
|
|
13
|
+
length: L;
|
|
14
|
+
};
|
|
15
|
+
/** @ignore */
|
|
16
|
+
interface SvgNode {
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
value: string;
|
|
20
|
+
attributes: any;
|
|
21
|
+
children: SvgNode[];
|
|
22
|
+
}
|
|
23
|
+
/** @ignore */
|
|
24
|
+
interface Command {
|
|
25
|
+
command: CommandChar;
|
|
26
|
+
args: number[];
|
|
27
|
+
}
|
|
28
|
+
/** @ignore */
|
|
29
|
+
interface CanvasNode {
|
|
30
|
+
id?: string;
|
|
31
|
+
children: CanvasNode[];
|
|
32
|
+
commands: Command[];
|
|
33
|
+
fill?: string;
|
|
34
|
+
fillRule?: string;
|
|
35
|
+
tag?: string;
|
|
36
|
+
}
|
|
37
|
+
/** @ignore */
|
|
38
|
+
interface SvgTransComps {
|
|
39
|
+
position: NS_THREE.Vector3;
|
|
40
|
+
scale: NS_THREE.Vector3;
|
|
41
|
+
quaternion: NS_THREE.Quaternion;
|
|
42
|
+
}
|
|
43
|
+
/** @ignore */
|
|
44
|
+
declare type CommandChar = 'C' | 'M' | 'L' | 'Z';
|
|
45
|
+
declare class SvgUtils {
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated
|
|
48
|
+
* 将SVG文件解析为Owlly map-kit可用的格式
|
|
49
|
+
* @param url svg地址
|
|
50
|
+
* @param alignMatrix 对齐数组
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* // 将svg解析为Shape对象数组
|
|
54
|
+
* const shapes = await SvgUtils.parseSVG(
|
|
55
|
+
* <svg url>,
|
|
56
|
+
* [0.02, 0, 0, 0, 0, -0.02, 0, 0, 0, 0, 0, 0, -40, 40, 0, 1], // 对齐矩阵
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
static parseSVG(url: string, alignMatrix: ArrayFixed<number, 16>): Promise<Shape[]>;
|
|
61
|
+
static parseSVGString(svgStr: string, alignMatrix: ArrayFixed<number, 16>): Promise<Shape[]>;
|
|
62
|
+
/** @ignore */
|
|
63
|
+
static getShapesFromCanvasNode(canvasNode: CanvasNode): Shape[];
|
|
64
|
+
/** @ignore */
|
|
65
|
+
static planCoordinateToWorldCoordinate(planX: number, planY: number, mapping: ModelSvgMapping): {
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
};
|
|
69
|
+
/** @ignore */
|
|
70
|
+
static getPathCommands(path: string, translate: number[], mapping: ModelSvgMapping): Command[];
|
|
71
|
+
/** @ignore */
|
|
72
|
+
static svgNode2Canvas(node: SvgNode, mapping: ModelSvgMapping, isRoot?: boolean, fill?: string | null, fillRule?: string | null, translate?: number[], tag?: string | null): CanvasNode | null;
|
|
73
|
+
/** @ignore */
|
|
74
|
+
static svg2canvas(svg: SvgNode, mapping: ModelSvgMapping): CanvasNode | null;
|
|
75
|
+
/** @ignore */
|
|
76
|
+
static getPathCommandsWithAlignment(path: string, translate: number[], alignMatrix: ArrayFixed<number, 16>): Command[];
|
|
77
|
+
static get3DPositionsFrom2D([x, y]: [number, number], m: ArrayFixed<number, 16>): {
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* 获取对齐矩阵指向北方转动的弧度
|
|
83
|
+
* @param m 对齐矩阵
|
|
84
|
+
*/
|
|
85
|
+
static getRotateRadiusToNorth(m: ArrayFixed<number, 16>): number;
|
|
86
|
+
/** @ignore */
|
|
87
|
+
private static generateCanvasNodeFromSvg;
|
|
88
|
+
/** @ignore */
|
|
89
|
+
static getCanvasNodeFromSvg(svg: SvgNode, alignMatrix: ArrayFixed<number, 16>): CanvasNode | null;
|
|
90
|
+
/** @ignore */
|
|
91
|
+
static generateNewShape(path: string, id: string, options?: {
|
|
92
|
+
tag?: string;
|
|
93
|
+
fill?: string;
|
|
94
|
+
ownTag?: string;
|
|
95
|
+
}): Shape;
|
|
96
|
+
/** @ignore */
|
|
97
|
+
static parseRectElementToShape(node: Snap.Element, alignMatrix: ArrayFixed<number, 16>, { tag, fill, ownTag }: {
|
|
98
|
+
tag?: string;
|
|
99
|
+
fill?: string;
|
|
100
|
+
ownTag?: string;
|
|
101
|
+
}): Shape;
|
|
102
|
+
/** @ignore */
|
|
103
|
+
static parsePolygonElementToShape(node: Snap.Element, alignMatrix: ArrayFixed<number, 16>, { tag, fill, ownTag }: {
|
|
104
|
+
tag?: string;
|
|
105
|
+
fill?: string;
|
|
106
|
+
ownTag?: string;
|
|
107
|
+
}): Shape;
|
|
108
|
+
/** @ignore */
|
|
109
|
+
static parsePathElementToShape(node: Snap.Element, alignMatrix: ArrayFixed<number, 16>, { tag, fill, ownTag }: {
|
|
110
|
+
tag?: string;
|
|
111
|
+
fill?: string;
|
|
112
|
+
ownTag?: string;
|
|
113
|
+
}): Shape;
|
|
114
|
+
/** @ignore */
|
|
115
|
+
static parseSnapSvgToShapes(node: Snap.Element, alignMatrix: ArrayFixed<number, 16>, options?: {
|
|
116
|
+
tag?: string;
|
|
117
|
+
fill?: string;
|
|
118
|
+
}): Shape[];
|
|
119
|
+
/** @ignore */
|
|
120
|
+
static getCompsFromMat4(mat: ArrayFixed<number, 16>): SvgTransComps;
|
|
121
|
+
/**
|
|
122
|
+
* 将svg解析为Shape对象数组
|
|
123
|
+
* @param url SVG文件url
|
|
124
|
+
* @param alignMatrix 对齐矩阵数组
|
|
125
|
+
* @param coefficient shape高度调整系数
|
|
126
|
+
* @example
|
|
127
|
+
* ```typescript
|
|
128
|
+
* // 将svg解析为Shape对象数组
|
|
129
|
+
* const shapes = await SvgUtils.parseSvgToShapes(
|
|
130
|
+
* <svg url>,
|
|
131
|
+
* [0.02, 0, 0, 0, 0, -0.02, 0, 0, 0, 0, 0, 0, -40, 40, 0, 1], // 对齐矩阵
|
|
132
|
+
* );
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
static parseSvgToShapes(url: string, alignMatrix: ArrayFixed<number, 16>, coefficient?: number): Promise<Shape[]>;
|
|
136
|
+
static calcHeightFromMat(height: number, alignMatrix: ArrayFixed<number, 16>): number;
|
|
137
|
+
}
|
|
138
|
+
export { CanvasNode, SvgNode, SvgUtils, ModelSvgMapping, };
|
|
@@ -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,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, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare class TimeProfiler {
|
|
2
|
+
private frameTimeMillses;
|
|
3
|
+
private timingIntervalMills;
|
|
4
|
+
private fps;
|
|
5
|
+
/**
|
|
6
|
+
* 初始化FPS统计
|
|
7
|
+
* @param timingIntervalMills 统计FPS的时间区间间隔长度,单位毫秒
|
|
8
|
+
*/
|
|
9
|
+
constructor(timingIntervalMills?: number);
|
|
10
|
+
reset(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Tick一帧
|
|
13
|
+
* @param frameTimeMills 时间戳,是当前帧的相对时间,不是两帧之间的间隔。单位毫秒
|
|
14
|
+
*/
|
|
15
|
+
tick(frameTimeMills: number): void;
|
|
16
|
+
/**
|
|
17
|
+
* 获得当前统计的FPS值
|
|
18
|
+
*/
|
|
19
|
+
getFPS(): number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export { TimeProfiler };
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { View } from './view';
|
|
3
|
+
import { Camera } from '../element/camera';
|
|
4
|
+
/** 相机元素视图, 渲染相机元素所看到的图像, 用于虚拟部署, 需要在新版本中更新 */
|
|
5
|
+
declare class CameraView extends View {
|
|
6
|
+
container: HTMLElement;
|
|
7
|
+
renderer: NS_THREE.WebGL1Renderer;
|
|
8
|
+
private activeCamera;
|
|
9
|
+
private eventListeners;
|
|
10
|
+
/**
|
|
11
|
+
* @param container 目标容器
|
|
12
|
+
*/
|
|
13
|
+
constructor(container: HTMLElement);
|
|
14
|
+
/** @ignore */
|
|
15
|
+
resize(): void;
|
|
16
|
+
/** @ignore */
|
|
17
|
+
render(scene: NS_THREE.Scene): void;
|
|
18
|
+
dispose(): void;
|
|
19
|
+
/**
|
|
20
|
+
* 绑定相机元素, 绑定后视图将显示传入相机元素所看到的图像
|
|
21
|
+
* @param camera 绑定的相机元素
|
|
22
|
+
*/
|
|
23
|
+
bindCamera(camera: Camera): void;
|
|
24
|
+
/**
|
|
25
|
+
* 解绑相机元素
|
|
26
|
+
* 取消相机辅助线,并清空画布
|
|
27
|
+
* edited by kxiao
|
|
28
|
+
*/
|
|
29
|
+
unbindCamera(): void;
|
|
30
|
+
/**
|
|
31
|
+
* 获取当前绑定的相机元素
|
|
32
|
+
*/
|
|
33
|
+
getActiveCamera(): Camera | undefined | null;
|
|
34
|
+
}
|
|
35
|
+
export { CameraView };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { View } from './view';
|
|
3
|
+
import { Screen } from '../screen/screen';
|
|
4
|
+
/** 透视投影视图 */
|
|
5
|
+
declare class OrthographicView extends View {
|
|
6
|
+
camera: NS_THREE.OrthographicCamera;
|
|
7
|
+
renderer: NS_THREE.WebGL1Renderer | NS_THREE.WebGLRenderer;
|
|
8
|
+
createCamera(): void;
|
|
9
|
+
/** @ignore */
|
|
10
|
+
resize(clientWidth: number, clientHeight: number): void;
|
|
11
|
+
bindScreen(screen: Screen): void;
|
|
12
|
+
unbindScreen(): void;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
render(): void;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
/**
|
|
17
|
+
* 设置View的裁剪区域,外部调用
|
|
18
|
+
*/
|
|
19
|
+
setViewport(rendererOffset: NS_THREE.Vector4): void;
|
|
20
|
+
/**
|
|
21
|
+
* 更新相机和渲染区域的裁剪比例一致
|
|
22
|
+
*/
|
|
23
|
+
private updateCameraAspect;
|
|
24
|
+
/**
|
|
25
|
+
* 设置相机姿态
|
|
26
|
+
* @param worldMatrix 相机的姿态矩阵
|
|
27
|
+
*/
|
|
28
|
+
setCameraWorldMatrix(worldMatrix: number[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* 设置相机裁剪
|
|
31
|
+
* @param fullWidth 多视图的全宽设置
|
|
32
|
+
* @param fullHeight 多视图的全高设置
|
|
33
|
+
* @param x 副摄像机的水平偏移
|
|
34
|
+
* @param y 副摄像机的垂直偏移
|
|
35
|
+
* @param width 副摄像机的宽度
|
|
36
|
+
* @param height 副摄像机的高度
|
|
37
|
+
*/
|
|
38
|
+
setCameraViewPort(fullWidth: number, fullHeight: number, x: number, y: number, width: number, height: number): void;
|
|
39
|
+
}
|
|
40
|
+
export { OrthographicView };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { View } from './view';
|
|
3
|
+
import { Screen } from '../screen/screen';
|
|
4
|
+
/** 透视投影视图 */
|
|
5
|
+
declare class PerspectiveView extends View {
|
|
6
|
+
camera: NS_THREE.PerspectiveCamera;
|
|
7
|
+
renderer: NS_THREE.WebGL1Renderer | NS_THREE.WebGLRenderer | null;
|
|
8
|
+
createCamera(): void;
|
|
9
|
+
/** @ignore */
|
|
10
|
+
resize(clientWidth: number, clientHeight: number): void;
|
|
11
|
+
bindScreen(screen: Screen): void;
|
|
12
|
+
unbindScreen(): void;
|
|
13
|
+
/** @ignore */
|
|
14
|
+
render(): void;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
/**
|
|
17
|
+
* 设置View的裁剪区域,外部调用
|
|
18
|
+
*/
|
|
19
|
+
setViewport(rendererOffset: NS_THREE.Vector4): void;
|
|
20
|
+
/**
|
|
21
|
+
* 更新相机和渲染区域的裁剪比例一致
|
|
22
|
+
*/
|
|
23
|
+
private updateCameraAspect;
|
|
24
|
+
/**
|
|
25
|
+
* 设置相机姿态
|
|
26
|
+
* @param worldMatrix 相机的姿态矩阵
|
|
27
|
+
*/
|
|
28
|
+
setCameraWorldMatrix(worldMatrix: number[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* 设置相机裁剪
|
|
31
|
+
* @param fullWidth 多视图的全宽设置
|
|
32
|
+
* @param fullHeight 多视图的全高设置
|
|
33
|
+
* @param x 副摄像机的水平偏移
|
|
34
|
+
* @param y 副摄像机的垂直偏移
|
|
35
|
+
* @param width 副摄像机的宽度
|
|
36
|
+
* @param height 副摄像机的高度
|
|
37
|
+
*/
|
|
38
|
+
setCameraViewPort(fullWidth: number, fullHeight: number, x: number, y: number, width: number, height: number): void;
|
|
39
|
+
}
|
|
40
|
+
export { PerspectiveView };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { NS_THREE } from '../stage/externals';
|
|
2
|
+
import { View } from './view';
|
|
3
|
+
import { ModelSvgMapping } from '../utils/svgutils';
|
|
4
|
+
/**
|
|
5
|
+
* 该 View 为早期为 BI 制作的专属 View, 可以不再进行维护. 其组成为两个定制开发的 Overlay. 这些 Overlay 也可以不再维护.
|
|
6
|
+
*/
|
|
7
|
+
declare class SvgMapView extends View {
|
|
8
|
+
camera: NS_THREE.PerspectiveCamera;
|
|
9
|
+
container: HTMLElement;
|
|
10
|
+
renderer: NS_THREE.WebGL1Renderer;
|
|
11
|
+
private pathOverlay;
|
|
12
|
+
private labelOverlay;
|
|
13
|
+
constructor(container: HTMLElement, shadowEnabled?: boolean);
|
|
14
|
+
update(): boolean;
|
|
15
|
+
setCameraPosition(x: number, y: number, z: number): void;
|
|
16
|
+
setCameraLookAt(x: number, y: number, z: number): void;
|
|
17
|
+
resize(): void;
|
|
18
|
+
render(scene: NS_THREE.Scene): void;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
setPath(path: NS_THREE.Vector3[], startPointType: string | null, endPointType: string | null, message: string | null, fontSize: number, imageStyle: {
|
|
21
|
+
left: number;
|
|
22
|
+
top: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}, messageStyle: {
|
|
26
|
+
left: number;
|
|
27
|
+
top: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
}, iconStyle: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}): void;
|
|
34
|
+
setStores(stores: {
|
|
35
|
+
position: NS_THREE.Vector3;
|
|
36
|
+
name: string;
|
|
37
|
+
nodeId: string;
|
|
38
|
+
fontSize?: number;
|
|
39
|
+
}[]): void;
|
|
40
|
+
setPriorNodes(ids: string[]): void;
|
|
41
|
+
getCameraInfo(target: NS_THREE.Object3D): {
|
|
42
|
+
position: NS_THREE.Vector3;
|
|
43
|
+
lookAt: NS_THREE.Vector3 | null;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export { SvgMapView, ModelSvgMapping };
|