@realsee/dnalogel 2.1.2-alpha.10 → 2.1.2-alpha.11
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/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +167 -0
- package/dist/CSS3DRenderPlugin/Controller.d.ts +81 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +5 -0
- package/dist/CSS3DRenderPlugin/typing.d.ts +26 -0
- package/dist/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
- package/dist/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
- package/dist/CSS3DRenderPlugin/utils/random.d.ts +1 -0
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +5 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- package/dist/CruisePlugin/Controller.d.ts +172 -0
- package/dist/CruisePlugin/index.d.ts +6 -0
- package/dist/CruisePlugin/typing.d.ts +134 -0
- package/dist/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
- package/dist/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
- package/dist/CruisePlugin/utils/formatRad.d.ts +7 -0
- package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
- package/dist/CruisePlugin/utils/safeCall.d.ts +1 -0
- package/dist/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
- package/dist/GuideLinePlugin/Controller.d.ts +51 -0
- package/dist/GuideLinePlugin/index.d.ts +5 -0
- package/dist/GuideLinePlugin/typing.d.ts +34 -0
- package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ItemLabelPlugin/index.d.ts +9 -0
- package/dist/ItemLabelPlugin/typings.d.ts +65 -0
- package/dist/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/dist/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/dist/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
- package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +4 -0
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +5 -0
- package/dist/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/dist/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/dist/ModelViewPlugin/Plugin.d.ts +28 -0
- package/dist/ModelViewPlugin/index.d.ts +4 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +65 -0
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
- package/dist/Object3DHelperPlugin/index.d.ts +6 -0
- package/dist/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/Controller.d.ts +84 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +7 -0
- package/dist/PanoCompassPlugin/typings.d.ts +57 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoDoorLabelPlugin/Controller.d.ts +37 -0
- package/dist/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoDoorLabelPlugin/typings.d.ts +38 -0
- package/dist/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +73 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +35 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
- package/dist/PanoMeasurePlugin/index.d.ts +10 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/dist/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/dist/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/Plugin.d.ts +34 -0
- package/dist/PanoRulerPlugin/index.d.ts +5 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/dist/PanoRulerProPlugin/index.d.ts +8 -0
- package/dist/PanoRulerProPlugin/typings.d.ts +46 -0
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -0
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +144 -0
- package/dist/PanoTagPlugin/index.d.ts +8 -0
- package/dist/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +103 -0
- package/dist/PanoTagPlugin/typings/index.d.ts +2 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/index.d.ts +12 -0
- package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/search.d.ts +11 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/dist/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/dist/base/BasePlugin.d.ts +106 -0
- package/dist/base/BasePluginWithData.d.ts +34 -0
- package/dist/components/PaintBrush/Controller.d.ts +43 -0
- package/dist/components/PaintBrush/Subscribe.d.ts +76 -0
- package/dist/components/PaintBrush/index.d.ts +27 -0
- package/dist/components/PaintBrush/style.d.ts +2 -0
- package/dist/components/PaintBrush/tween.d.ts +7 -0
- package/dist/components/PaintBrush/typings.d.ts +58 -0
- package/dist/components/PaintBrush/utils.d.ts +26 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/env.d.ts +1 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/dist/floorplan/Assets/compass.d.ts +1 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/index.d.ts +7 -0
- package/dist/floorplan/typings/floorplanData.d.ts +137 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +144 -0
- package/dist/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/dist/floorplan/utils/constant.d.ts +22 -0
- package/dist/floorplan/utils/correctFiveState.d.ts +15 -0
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.es.js +16650 -0
- package/dist/index.js +556 -0
- package/dist/index.umd.js +556 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
- package/dist/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
- package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
- package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
- package/dist/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
- package/dist/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
- package/dist/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
- package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/index.d.ts +71 -0
- package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
- package/dist/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
- package/dist/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
- package/dist/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/dist/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
- package/dist/shared-utils/Subscribe.d.ts +60 -0
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/dist/shared-utils/animationFrame/index.d.ts +16 -0
- package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/dist/shared-utils/createLine/index.d.ts +3 -0
- package/dist/shared-utils/debounce.d.ts +6 -0
- package/dist/shared-utils/equal.d.ts +11 -0
- package/dist/shared-utils/filter.d.ts +27 -0
- package/dist/shared-utils/five/changeMode.d.ts +5 -0
- package/dist/shared-utils/getPxmm.d.ts +19 -0
- package/dist/shared-utils/index.d.ts +4 -0
- package/dist/shared-utils/isNil.d.ts +10 -0
- package/dist/shared-utils/isTruelyObject.d.ts +18 -0
- package/dist/shared-utils/math/Interval.d.ts +13 -0
- package/dist/shared-utils/math/Rectangle.d.ts +27 -0
- package/dist/shared-utils/math/index.d.ts +2 -0
- package/dist/shared-utils/math/planimetry.d.ts +116 -0
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/nextFrame.d.ts +1 -0
- package/dist/shared-utils/noop.d.ts +5 -0
- package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/dist/shared-utils/tap.d.ts +8 -0
- package/dist/shared-utils/three/Assets/index.d.ts +3 -0
- package/dist/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/dist/shared-utils/three/Magnifier.d.ts +53 -0
- package/dist/shared-utils/three/PointDomHelper.d.ts +18 -0
- package/dist/shared-utils/three/PointHelper.d.ts +21 -0
- package/dist/shared-utils/three/getCoords.d.ts +9 -0
- package/dist/shared-utils/three/getIntersect.d.ts +6 -0
- package/dist/shared-utils/three/getRaycaster.d.ts +6 -0
- package/dist/shared-utils/three/index.d.ts +7 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/dist/shared-utils/throttle.d.ts +7 -0
- package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
- package/dist/shared-utils/to.d.ts +8 -0
- package/dist/shared-utils/uuid.d.ts +5 -0
- package/dist/typings/math.type.d.ts +44 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/package.json +5 -7
- package/dist/CSS3DRenderPlugin/index..js +0 -88
- package/dist/CSS3DRenderPlugin/index.cjs.js +0 -1
- package/dist/CameraMovementPlugin/index..js +0 -11
- package/dist/CameraMovementPlugin/index.cjs.js +0 -1
- package/dist/CruisePlugin/index..js +0 -527
- package/dist/CruisePlugin/index.cjs.js +0 -1
- package/dist/GuideLinePlugin/index..js +0 -214
- package/dist/GuideLinePlugin/index.cjs.js +0 -1
- package/dist/ItemLabelPlugin/index..js +0 -508
- package/dist/ItemLabelPlugin/index.cjs.js +0 -10
- package/dist/ModelChassisCompassPlugin/index..js +0 -9
- package/dist/ModelChassisCompassPlugin/index.cjs.js +0 -1
- package/dist/ModelEntryDoorGuidePlugin/index..js +0 -9
- package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +0 -1
- package/dist/ModelItemLabelPlugin/index..js +0 -334
- package/dist/ModelItemLabelPlugin/index.cjs.js +0 -10
- package/dist/ModelRoomLabelPlugin/index..js +0 -274
- package/dist/ModelRoomLabelPlugin/index.cjs.js +0 -1
- package/dist/ModelTVVideoPlugin/index..js +0 -12
- package/dist/ModelTVVideoPlugin/index.cjs.js +0 -1
- package/dist/ModelViewPlugin/index..js +0 -8
- package/dist/ModelViewPlugin/index.cjs.js +0 -1
- package/dist/Object3DHelperPlugin/index..js +0 -1414
- package/dist/Object3DHelperPlugin/index.cjs.js +0 -1
- package/dist/PanoCompassPlugin/index..js +0 -258
- package/dist/PanoCompassPlugin/index.cjs.js +0 -1
- package/dist/PanoCursorRaycasterPlugin/index..js +0 -63
- package/dist/PanoCursorRaycasterPlugin/index.cjs.js +0 -1
- package/dist/PanoDoorLabelPlugin/index..js +0 -340
- package/dist/PanoDoorLabelPlugin/index.cjs.js +0 -1
- package/dist/PanoMeasurePlugin/index..js +0 -15
- package/dist/PanoMeasurePlugin/index.cjs.js +0 -1
- package/dist/PanoRulerPlugin/index..js +0 -9
- package/dist/PanoRulerPlugin/index.cjs.js +0 -1
- package/dist/PanoRulerProPlugin/index..js +0 -395
- package/dist/PanoRulerProPlugin/index.cjs.js +0 -1
- package/dist/PanoSpatialTagPlugin/index..js +0 -15
- package/dist/PanoSpatialTagPlugin/index.cjs.js +0 -1
- package/dist/PanoTagPlugin/index..js +0 -4522
- package/dist/PanoTagPlugin/index.cjs.js +0 -17
- package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +0 -1
- package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +0 -1
- package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +0 -1
- package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +0 -94
- package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +0 -16
- package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.9971108a.cjs.js +0 -1
- package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +0 -1
- package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +0 -1
- package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +0 -1
- package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +0 -1
- package/dist/chunks/cjs/debounce.93dfb637.cjs.js +0 -1
- package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +0 -1
- package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +0 -1
- package/dist/chunks/cjs/formatData.81e95011.cjs.js +0 -10
- package/dist/chunks/cjs/index.30b7baeb.cjs.js +0 -101
- package/dist/chunks/cjs/index.686e84d1.cjs.js +0 -290
- package/dist/chunks/cjs/index.7d2010ce.cjs.js +0 -1
- package/dist/chunks/cjs/isNil.b3a58990.cjs.js +0 -1
- package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +0 -1
- package/dist/chunks/cjs/throttle.86c209eb.cjs.js +0 -1
- package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +0 -1
- package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +0 -1
- package/dist/chunks/es/BasePlugin.813e25f7.es.js +0 -18
- package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +0 -6
- package/dist/chunks/es/CSS3DRender.5652510e.es.js +0 -393
- package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +0 -120
- package/dist/chunks/es/Plugin.26c2df05.es.js +0 -106
- package/dist/chunks/es/Plugin.435485ed.es.js +0 -584
- package/dist/chunks/es/Plugin.a98418f0.es.js +0 -82
- package/dist/chunks/es/Plugin.ae4ee6f8.es.js +0 -82
- package/dist/chunks/es/Plugin.dd11e0ad.es.js +0 -180
- package/dist/chunks/es/Plugin.f4cf895f.es.js +0 -355
- package/dist/chunks/es/Subscribe.c73e0f91.es.js +0 -50
- package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +0 -1551
- package/dist/chunks/es/correctFiveState.e7feab9f.es.js +0 -66
- package/dist/chunks/es/debounce.ef83f417.es.js +0 -11
- package/dist/chunks/es/equal.7db4a6f7.es.js +0 -56
- package/dist/chunks/es/filter.97ec06c4.es.js +0 -12
- package/dist/chunks/es/formatData.a2b39ef9.es.js +0 -483
- package/dist/chunks/es/index.a273f06e.es.js +0 -532
- package/dist/chunks/es/index.b8fdb59b.es.js +0 -50
- package/dist/chunks/es/index.f74f4851.es.js +0 -1787
- package/dist/chunks/es/isNil.212842d9.es.js +0 -10
- package/dist/chunks/es/planimetry.b0b4a28d.es.js +0 -43
- package/dist/chunks/es/throttle.db66bac3.es.js +0 -11
- package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +0 -24
- package/dist/chunks/es/uuid.676cb2c8.es.js +0 -9
- package/dist/components/PaintBrush/index..js +0 -6
- package/dist/components/PaintBrush/index.cjs.js +0 -1
- package/dist/components/index..js +0 -7
- package/dist/components/index.cjs.js +0 -1
- package/dist/floorplan/MapviewFloorplanPlugin/index..js +0 -324
- package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +0 -1
- package/dist/floorplan/ModelFloorplanPlugin/index..js +0 -320
- package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +0 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +0 -613
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +0 -1
- package/dist/floorplan/TopviewFloorplanPlugin/index..js +0 -277
- package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +0 -1
- package/dist/index..js +0 -530
- package/dist/index.cjs.js +0 -16
|
@@ -1,613 +0,0 @@
|
|
|
1
|
-
var oe = Object.defineProperty, ae = Object.defineProperties;
|
|
2
|
-
var le = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var V = Object.getOwnPropertySymbols;
|
|
4
|
-
var se = Object.prototype.hasOwnProperty, fe = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var N = (r, i, e) => i in r ? oe(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e, x = (r, i) => {
|
|
6
|
-
for (var e in i || (i = {}))
|
|
7
|
-
se.call(i, e) && N(r, e, i[e]);
|
|
8
|
-
if (V)
|
|
9
|
-
for (var e of V(i))
|
|
10
|
-
fe.call(i, e) && N(r, e, i[e]);
|
|
11
|
-
return r;
|
|
12
|
-
}, X = (r, i) => ae(r, le(i));
|
|
13
|
-
var b = (r, i, e) => (N(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
|
-
var q = (r, i, e) => new Promise((t, n) => {
|
|
15
|
-
var o = (c) => {
|
|
16
|
-
try {
|
|
17
|
-
f(e.next(c));
|
|
18
|
-
} catch (s) {
|
|
19
|
-
n(s);
|
|
20
|
-
}
|
|
21
|
-
}, a = (c) => {
|
|
22
|
-
try {
|
|
23
|
-
f(e.throw(c));
|
|
24
|
-
} catch (s) {
|
|
25
|
-
n(s);
|
|
26
|
-
}
|
|
27
|
-
}, f = (c) => c.done ? t(c.value) : Promise.resolve(c.value).then(o, a);
|
|
28
|
-
f((e = e.apply(r, i)).next());
|
|
29
|
-
});
|
|
30
|
-
import { SvelteComponent as R, init as T, safe_not_equal as B, append_styles as G, element as k, attr as D, set_style as p, insert as w, append as S, noop as M, detach as I, update_keyed_each as ue, destroy_block as ce, space as P, assign as H, create_component as E, empty as ne, mount_component as C, get_spread_update as W, transition_in as _, group_outros as L, transition_out as v, check_outros as K, destroy_component as z, add_render_callback as he, add_resize_listener as de } from "svelte/internal";
|
|
31
|
-
import { onMount as re } from "svelte";
|
|
32
|
-
import { CAMERA_IMAGE as J, BaseImage as me, RoomHighlight as pe, formatData as Y, formatExtraObjects as ge } from "../../chunks/es/formatData.a2b39ef9.es.js";
|
|
33
|
-
import { throttle as _e } from "../../chunks/es/throttle.db66bac3.es.js";
|
|
34
|
-
import { equal as be } from "../../chunks/es/equal.7db4a6f7.es.js";
|
|
35
|
-
import { Controller as ve } from "../../chunks/es/BasePluginWithData.4bf4e649.es.js";
|
|
36
|
-
import "../../chunks/es/BasePlugin.813e25f7.es.js";
|
|
37
|
-
import "../../chunks/es/Subscribe.c73e0f91.es.js";
|
|
38
|
-
function we(r) {
|
|
39
|
-
G(r, "svelte-1nqrlxd", ".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
|
|
40
|
-
}
|
|
41
|
-
function Ie(r) {
|
|
42
|
-
let i, e, t;
|
|
43
|
-
return {
|
|
44
|
-
c() {
|
|
45
|
-
i = k("div"), e = k("div"), t = k("div"), D(t, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), p(t, "background-image", "url(" + (r[0] || J) + ")"), p(t, "transform", r[1], !1), D(e, "class", "plugin-radar__camera-position svelte-1nqrlxd"), p(e, "transform", r[2], !1), D(i, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
|
|
46
|
-
},
|
|
47
|
-
m(n, o) {
|
|
48
|
-
w(n, i, o), S(i, e), S(e, t);
|
|
49
|
-
},
|
|
50
|
-
p(n, [o]) {
|
|
51
|
-
o & 1 && p(t, "background-image", "url(" + (n[0] || J) + ")"), o & 2 && p(t, "transform", n[1], !1), o & 4 && p(e, "transform", n[2], !1);
|
|
52
|
-
},
|
|
53
|
-
i: M,
|
|
54
|
-
o: M,
|
|
55
|
-
d(n) {
|
|
56
|
-
n && I(i);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function ke(r) {
|
|
61
|
-
return `rotate(${Math.floor(r / Math.PI * 180) * -1 + 45}deg)`;
|
|
62
|
-
}
|
|
63
|
-
function De(r, i, e) {
|
|
64
|
-
let t, n, { five: o } = i, { pxmm: a } = i, { floorplanData: f } = i, { cameraImageUrl: c } = i, s = o.getCurrentState().panoIndex, l = o.getCurrentState().longitude;
|
|
65
|
-
function h(m, j) {
|
|
66
|
-
const y = m.bounding, d = m.observers[j];
|
|
67
|
-
if (!d)
|
|
68
|
-
return "";
|
|
69
|
-
const F = (y.max.x - y.min.x) * a, U = (y.max.y - y.min.y) * a, A = Math.floor(d.positionInImage.x * F), O = Math.floor(d.positionInImage.y * U);
|
|
70
|
-
return `translate(${A}px, ${O}px)`;
|
|
71
|
-
}
|
|
72
|
-
function u(m) {
|
|
73
|
-
e(6, s = m);
|
|
74
|
-
}
|
|
75
|
-
const g = _e(
|
|
76
|
-
(m) => {
|
|
77
|
-
e(7, l = m.longitude);
|
|
78
|
-
},
|
|
79
|
-
1e3 / 60
|
|
80
|
-
);
|
|
81
|
-
return re(() => (o.on("panoWillArrive", u), o.on("cameraDirectionUpdate", g), function() {
|
|
82
|
-
o.off("panoWillArrive", u), o.off("cameraDirectionUpdate", g);
|
|
83
|
-
})), r.$$set = (m) => {
|
|
84
|
-
"five" in m && e(3, o = m.five), "pxmm" in m && e(4, a = m.pxmm), "floorplanData" in m && e(5, f = m.floorplanData), "cameraImageUrl" in m && e(0, c = m.cameraImageUrl);
|
|
85
|
-
}, r.$$.update = () => {
|
|
86
|
-
r.$$.dirty & 96 && e(2, t = h(f, s)), r.$$.dirty & 128 && e(1, n = ke(l));
|
|
87
|
-
}, [
|
|
88
|
-
c,
|
|
89
|
-
n,
|
|
90
|
-
t,
|
|
91
|
-
o,
|
|
92
|
-
a,
|
|
93
|
-
f,
|
|
94
|
-
s,
|
|
95
|
-
l
|
|
96
|
-
];
|
|
97
|
-
}
|
|
98
|
-
class je extends R {
|
|
99
|
-
constructor(i) {
|
|
100
|
-
super(), T(
|
|
101
|
-
this,
|
|
102
|
-
i,
|
|
103
|
-
De,
|
|
104
|
-
Ie,
|
|
105
|
-
B,
|
|
106
|
-
{
|
|
107
|
-
five: 3,
|
|
108
|
-
pxmm: 4,
|
|
109
|
-
floorplanData: 5,
|
|
110
|
-
cameraImageUrl: 0
|
|
111
|
-
},
|
|
112
|
-
we
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function ye(r) {
|
|
117
|
-
G(r, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
|
|
118
|
-
}
|
|
119
|
-
function Z(r, i, e) {
|
|
120
|
-
const t = r.slice();
|
|
121
|
-
return t[1] = i[e], t;
|
|
122
|
-
}
|
|
123
|
-
function $(r, i) {
|
|
124
|
-
let e, t, n = `${i[1].icon.width / 16}rem`, o = `${i[1].icon.height / 16}rem`, a, f = `${i[1].positionInImage.y * 100}%`, c = `${i[1].positionInImage.x * 100}%`;
|
|
125
|
-
return {
|
|
126
|
-
key: r,
|
|
127
|
-
first: null,
|
|
128
|
-
c() {
|
|
129
|
-
e = k("div"), t = k("div"), a = P(), D(t, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), p(t, "background-image", `url(${i[1].icon.url})`), p(t, "width", n, !1), p(t, "height", o, !1), D(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), p(e, "top", f, !1), p(e, "left", c, !1), this.first = e;
|
|
130
|
-
},
|
|
131
|
-
m(s, l) {
|
|
132
|
-
w(s, e, l), S(e, t), S(e, a);
|
|
133
|
-
},
|
|
134
|
-
p(s, l) {
|
|
135
|
-
i = s, l & 1 && p(t, "background-image", `url(${i[1].icon.url})`), l & 1 && n !== (n = `${i[1].icon.width / 16}rem`) && p(t, "width", n, !1), l & 1 && o !== (o = `${i[1].icon.height / 16}rem`) && p(t, "height", o, !1), l & 1 && f !== (f = `${i[1].positionInImage.y * 100}%`) && p(e, "top", f, !1), l & 1 && c !== (c = `${i[1].positionInImage.x * 100}%`) && p(e, "left", c, !1);
|
|
136
|
-
},
|
|
137
|
-
d(s) {
|
|
138
|
-
s && I(e);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function Ae(r) {
|
|
143
|
-
let i, e = [], t = /* @__PURE__ */ new Map(), n = r[0];
|
|
144
|
-
const o = (a) => a[1].id;
|
|
145
|
-
for (let a = 0; a < n.length; a += 1) {
|
|
146
|
-
let f = Z(r, n, a), c = o(f);
|
|
147
|
-
t.set(c, e[a] = $(c, f));
|
|
148
|
-
}
|
|
149
|
-
return {
|
|
150
|
-
c() {
|
|
151
|
-
i = k("div");
|
|
152
|
-
for (let a = 0; a < e.length; a += 1)
|
|
153
|
-
e[a].c();
|
|
154
|
-
D(i, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
|
|
155
|
-
},
|
|
156
|
-
m(a, f) {
|
|
157
|
-
w(a, i, f);
|
|
158
|
-
for (let c = 0; c < e.length; c += 1)
|
|
159
|
-
e[c].m(i, null);
|
|
160
|
-
},
|
|
161
|
-
p(a, [f]) {
|
|
162
|
-
f & 1 && (n = a[0], e = ue(e, f, o, 1, a, n, t, i, ce, $, null, Z));
|
|
163
|
-
},
|
|
164
|
-
i: M,
|
|
165
|
-
o: M,
|
|
166
|
-
d(a) {
|
|
167
|
-
a && I(i);
|
|
168
|
-
for (let f = 0; f < e.length; f += 1)
|
|
169
|
-
e[f].d();
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function xe(r, i, e) {
|
|
174
|
-
let { extraObjects: t = [] } = i;
|
|
175
|
-
return r.$$set = (n) => {
|
|
176
|
-
"extraObjects" in n && e(0, t = n.extraObjects);
|
|
177
|
-
}, [t];
|
|
178
|
-
}
|
|
179
|
-
class Oe extends R {
|
|
180
|
-
constructor(i) {
|
|
181
|
-
super(), T(this, i, xe, Ae, B, { extraObjects: 0 }, ye);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
function ee(r) {
|
|
185
|
-
let i, e;
|
|
186
|
-
const t = [
|
|
187
|
-
{
|
|
188
|
-
five: r[0],
|
|
189
|
-
pxmm: r[1],
|
|
190
|
-
floorIndex: r[2],
|
|
191
|
-
floorplanData: r[4],
|
|
192
|
-
onRoomHeightClick: r[6]
|
|
193
|
-
}
|
|
194
|
-
];
|
|
195
|
-
let n = {};
|
|
196
|
-
for (let o = 0; o < t.length; o += 1)
|
|
197
|
-
n = H(n, t[o]);
|
|
198
|
-
return i = new pe({ props: n }), {
|
|
199
|
-
c() {
|
|
200
|
-
E(i.$$.fragment);
|
|
201
|
-
},
|
|
202
|
-
m(o, a) {
|
|
203
|
-
C(i, o, a), e = !0;
|
|
204
|
-
},
|
|
205
|
-
p(o, a) {
|
|
206
|
-
const f = a & 87 ? W(t, [
|
|
207
|
-
{
|
|
208
|
-
five: o[0],
|
|
209
|
-
pxmm: o[1],
|
|
210
|
-
floorIndex: o[2],
|
|
211
|
-
floorplanData: o[4],
|
|
212
|
-
onRoomHeightClick: o[6]
|
|
213
|
-
}
|
|
214
|
-
]) : {};
|
|
215
|
-
i.$set(f);
|
|
216
|
-
},
|
|
217
|
-
i(o) {
|
|
218
|
-
e || (_(i.$$.fragment, o), e = !0);
|
|
219
|
-
},
|
|
220
|
-
o(o) {
|
|
221
|
-
v(i.$$.fragment, o), e = !1;
|
|
222
|
-
},
|
|
223
|
-
d(o) {
|
|
224
|
-
z(i, o);
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function qe(r) {
|
|
229
|
-
let i, e, t, n, o, a;
|
|
230
|
-
const f = [
|
|
231
|
-
{
|
|
232
|
-
floorIndex: r[2],
|
|
233
|
-
floorplanData: r[4]
|
|
234
|
-
}
|
|
235
|
-
];
|
|
236
|
-
let c = {};
|
|
237
|
-
for (let l = 0; l < f.length; l += 1)
|
|
238
|
-
c = H(c, f[l]);
|
|
239
|
-
i = new me({ props: c }), t = new Oe({
|
|
240
|
-
props: {
|
|
241
|
-
extraObjects: r[5]
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
let s = r[3] && ee(r);
|
|
245
|
-
return {
|
|
246
|
-
c() {
|
|
247
|
-
E(i.$$.fragment), e = P(), E(t.$$.fragment), n = P(), s && s.c(), o = ne();
|
|
248
|
-
},
|
|
249
|
-
m(l, h) {
|
|
250
|
-
C(i, l, h), w(l, e, h), C(t, l, h), w(l, n, h), s && s.m(l, h), w(l, o, h), a = !0;
|
|
251
|
-
},
|
|
252
|
-
p(l, [h]) {
|
|
253
|
-
const u = h & 20 ? W(f, [
|
|
254
|
-
{
|
|
255
|
-
floorIndex: l[2],
|
|
256
|
-
floorplanData: l[4]
|
|
257
|
-
}
|
|
258
|
-
]) : {};
|
|
259
|
-
i.$set(u);
|
|
260
|
-
const g = {};
|
|
261
|
-
h & 32 && (g.extraObjects = l[5]), t.$set(g), l[3] ? s ? (s.p(l, h), h & 8 && _(s, 1)) : (s = ee(l), s.c(), _(s, 1), s.m(o.parentNode, o)) : s && (L(), v(s, 1, 1, () => {
|
|
262
|
-
s = null;
|
|
263
|
-
}), K());
|
|
264
|
-
},
|
|
265
|
-
i(l) {
|
|
266
|
-
a || (_(i.$$.fragment, l), _(t.$$.fragment, l), _(s), a = !0);
|
|
267
|
-
},
|
|
268
|
-
o(l) {
|
|
269
|
-
v(i.$$.fragment, l), v(t.$$.fragment, l), v(s), a = !1;
|
|
270
|
-
},
|
|
271
|
-
d(l) {
|
|
272
|
-
z(i, l), l && I(e), z(t, l), l && I(n), s && s.d(l), l && I(o);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
function Se(r, i, e) {
|
|
277
|
-
let t, { five: n } = i, { pxmm: o } = i, { floorIndex: a } = i, { hoverEnable: f } = i, { floorplanData: c } = i, { extraObjects: s = [] } = i;
|
|
278
|
-
const l = void 0;
|
|
279
|
-
return r.$$set = (h) => {
|
|
280
|
-
"five" in h && e(0, n = h.five), "pxmm" in h && e(1, o = h.pxmm), "floorIndex" in h && e(2, a = h.floorIndex), "hoverEnable" in h && e(3, f = h.hoverEnable), "floorplanData" in h && e(4, c = h.floorplanData), "extraObjects" in h && e(7, s = h.extraObjects);
|
|
281
|
-
}, r.$$.update = () => {
|
|
282
|
-
r.$$.dirty & 132 && e(5, t = s == null ? void 0 : s.filter((h) => h.floorIndex === a));
|
|
283
|
-
}, [
|
|
284
|
-
n,
|
|
285
|
-
o,
|
|
286
|
-
a,
|
|
287
|
-
f,
|
|
288
|
-
c,
|
|
289
|
-
t,
|
|
290
|
-
l,
|
|
291
|
-
s
|
|
292
|
-
];
|
|
293
|
-
}
|
|
294
|
-
class Ee extends R {
|
|
295
|
-
constructor(i) {
|
|
296
|
-
super(), T(this, i, Se, qe, B, {
|
|
297
|
-
five: 0,
|
|
298
|
-
pxmm: 1,
|
|
299
|
-
floorIndex: 2,
|
|
300
|
-
hoverEnable: 3,
|
|
301
|
-
floorplanData: 4,
|
|
302
|
-
extraObjects: 7
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
function Ce(r) {
|
|
307
|
-
G(r, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
308
|
-
}
|
|
309
|
-
function te(r) {
|
|
310
|
-
let i, e, t, n = r[6] !== 0 && ie(r);
|
|
311
|
-
return {
|
|
312
|
-
c() {
|
|
313
|
-
i = k("div"), n && n.c(), D(i, "class", "plugin-floorplan-radar svelte-1mvqyqq"), he(() => r[12].call(i));
|
|
314
|
-
},
|
|
315
|
-
m(o, a) {
|
|
316
|
-
w(o, i, a), n && n.m(i, null), e = de(i, r[12].bind(i)), t = !0;
|
|
317
|
-
},
|
|
318
|
-
p(o, a) {
|
|
319
|
-
o[6] !== 0 ? n ? (n.p(o, a), a & 64 && _(n, 1)) : (n = ie(o), n.c(), _(n, 1), n.m(i, null)) : n && (L(), v(n, 1, 1, () => {
|
|
320
|
-
n = null;
|
|
321
|
-
}), K());
|
|
322
|
-
},
|
|
323
|
-
i(o) {
|
|
324
|
-
t || (_(n), t = !0);
|
|
325
|
-
},
|
|
326
|
-
o(o) {
|
|
327
|
-
v(n), t = !1;
|
|
328
|
-
},
|
|
329
|
-
d(o) {
|
|
330
|
-
o && I(i), n && n.d(), e();
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
function ie(r) {
|
|
335
|
-
let i, e, t, n, o = `${r[8]}px`, a = `${r[11]}px`, f;
|
|
336
|
-
const c = [
|
|
337
|
-
{
|
|
338
|
-
five: r[0],
|
|
339
|
-
pxmm: r[9],
|
|
340
|
-
floorIndex: r[10],
|
|
341
|
-
floorplanData: r[3],
|
|
342
|
-
hoverEnable: r[2],
|
|
343
|
-
extraObjects: r[5]
|
|
344
|
-
}
|
|
345
|
-
];
|
|
346
|
-
let s = {};
|
|
347
|
-
for (let u = 0; u < c.length; u += 1)
|
|
348
|
-
s = H(s, c[u]);
|
|
349
|
-
e = new Ee({ props: s });
|
|
350
|
-
const l = [
|
|
351
|
-
{
|
|
352
|
-
pxmm: r[9],
|
|
353
|
-
five: r[0],
|
|
354
|
-
floorplanData: r[3],
|
|
355
|
-
cameraImageUrl: r[4]
|
|
356
|
-
}
|
|
357
|
-
];
|
|
358
|
-
let h = {};
|
|
359
|
-
for (let u = 0; u < l.length; u += 1)
|
|
360
|
-
h = H(h, l[u]);
|
|
361
|
-
return n = new je({ props: h }), {
|
|
362
|
-
c() {
|
|
363
|
-
i = k("div"), E(e.$$.fragment), t = P(), E(n.$$.fragment), D(i, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), p(i, "width", o, !1), p(i, "height", a, !1);
|
|
364
|
-
},
|
|
365
|
-
m(u, g) {
|
|
366
|
-
w(u, i, g), C(e, i, null), S(i, t), C(n, i, null), f = !0;
|
|
367
|
-
},
|
|
368
|
-
p(u, g) {
|
|
369
|
-
const m = g & 1581 ? W(c, [
|
|
370
|
-
{
|
|
371
|
-
five: u[0],
|
|
372
|
-
pxmm: u[9],
|
|
373
|
-
floorIndex: u[10],
|
|
374
|
-
floorplanData: u[3],
|
|
375
|
-
hoverEnable: u[2],
|
|
376
|
-
extraObjects: u[5]
|
|
377
|
-
}
|
|
378
|
-
]) : {};
|
|
379
|
-
e.$set(m);
|
|
380
|
-
const j = g & 537 ? W(l, [
|
|
381
|
-
{
|
|
382
|
-
pxmm: u[9],
|
|
383
|
-
five: u[0],
|
|
384
|
-
floorplanData: u[3],
|
|
385
|
-
cameraImageUrl: u[4]
|
|
386
|
-
}
|
|
387
|
-
]) : {};
|
|
388
|
-
n.$set(j), g & 256 && o !== (o = `${u[8]}px`) && p(i, "width", o, !1), g & 2048 && a !== (a = `${u[11]}px`) && p(i, "height", a, !1);
|
|
389
|
-
},
|
|
390
|
-
i(u) {
|
|
391
|
-
f || (_(e.$$.fragment, u), _(n.$$.fragment, u), f = !0);
|
|
392
|
-
},
|
|
393
|
-
o(u) {
|
|
394
|
-
v(e.$$.fragment, u), v(n.$$.fragment, u), f = !1;
|
|
395
|
-
},
|
|
396
|
-
d(u) {
|
|
397
|
-
u && I(i), z(e), z(n);
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
function ze(r) {
|
|
402
|
-
let i, e, t = r[1] && te(r);
|
|
403
|
-
return {
|
|
404
|
-
c() {
|
|
405
|
-
t && t.c(), i = ne();
|
|
406
|
-
},
|
|
407
|
-
m(n, o) {
|
|
408
|
-
t && t.m(n, o), w(n, i, o), e = !0;
|
|
409
|
-
},
|
|
410
|
-
p(n, [o]) {
|
|
411
|
-
n[1] ? t ? (t.p(n, o), o & 2 && _(t, 1)) : (t = te(n), t.c(), _(t, 1), t.m(i.parentNode, i)) : t && (L(), v(t, 1, 1, () => {
|
|
412
|
-
t = null;
|
|
413
|
-
}), K());
|
|
414
|
-
},
|
|
415
|
-
i(n) {
|
|
416
|
-
e || (_(t), e = !0);
|
|
417
|
-
},
|
|
418
|
-
o(n) {
|
|
419
|
-
v(t), e = !1;
|
|
420
|
-
},
|
|
421
|
-
d(n) {
|
|
422
|
-
t && t.d(n), n && I(i);
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
function Fe(r, i, e) {
|
|
427
|
-
let { five: t } = i, { visible: n } = i, { hoverEnable: o } = i, { floorplanData: a } = i, { cameraImageUrl: f } = i, { extraObjects: c = [] } = i, s = 0, l = 0, h = 0, u = 0, g = 0, m = 0;
|
|
428
|
-
function j(d) {
|
|
429
|
-
e(10, l = t.work.observers[d].floorIndex);
|
|
430
|
-
}
|
|
431
|
-
re(() => (t.on("panoArrived", j), () => {
|
|
432
|
-
t.off("panoArrived", j);
|
|
433
|
-
}));
|
|
434
|
-
function y() {
|
|
435
|
-
h = this.clientWidth, u = this.clientHeight, e(6, h), e(7, u);
|
|
436
|
-
}
|
|
437
|
-
return r.$$set = (d) => {
|
|
438
|
-
"five" in d && e(0, t = d.five), "visible" in d && e(1, n = d.visible), "hoverEnable" in d && e(2, o = d.hoverEnable), "floorplanData" in d && e(3, a = d.floorplanData), "cameraImageUrl" in d && e(4, f = d.cameraImageUrl), "extraObjects" in d && e(5, c = d.extraObjects);
|
|
439
|
-
}, r.$$.update = () => {
|
|
440
|
-
if (r.$$.dirty & 456) {
|
|
441
|
-
const d = Math.min(h, u), { max: F, min: U } = a.bounding, A = F.x - U.x, O = F.y - U.y, Q = function() {
|
|
442
|
-
return A > O ? [d, d / A * O] : [d / O * A, d];
|
|
443
|
-
}();
|
|
444
|
-
e(8, g = Q[0]), e(11, m = Q[1]), e(9, s = g / A);
|
|
445
|
-
}
|
|
446
|
-
}, [
|
|
447
|
-
t,
|
|
448
|
-
n,
|
|
449
|
-
o,
|
|
450
|
-
a,
|
|
451
|
-
f,
|
|
452
|
-
c,
|
|
453
|
-
h,
|
|
454
|
-
u,
|
|
455
|
-
g,
|
|
456
|
-
s,
|
|
457
|
-
l,
|
|
458
|
-
m,
|
|
459
|
-
y
|
|
460
|
-
];
|
|
461
|
-
}
|
|
462
|
-
class Ue extends R {
|
|
463
|
-
constructor(i) {
|
|
464
|
-
super(), T(
|
|
465
|
-
this,
|
|
466
|
-
i,
|
|
467
|
-
Fe,
|
|
468
|
-
ze,
|
|
469
|
-
B,
|
|
470
|
-
{
|
|
471
|
-
five: 0,
|
|
472
|
-
visible: 1,
|
|
473
|
-
hoverEnable: 2,
|
|
474
|
-
floorplanData: 3,
|
|
475
|
-
cameraImageUrl: 4,
|
|
476
|
-
extraObjects: 5
|
|
477
|
-
},
|
|
478
|
-
Ce
|
|
479
|
-
);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
class Me extends ve {
|
|
483
|
-
constructor(e, t) {
|
|
484
|
-
super(e);
|
|
485
|
-
b(this, "name", "panoFloorplanRadarPlugin");
|
|
486
|
-
b(this, "state");
|
|
487
|
-
b(this, "data");
|
|
488
|
-
b(this, "app");
|
|
489
|
-
b(this, "wrapperSelector", "");
|
|
490
|
-
b(this, "wrapper", null);
|
|
491
|
-
b(this, "disposed", !1);
|
|
492
|
-
b(this, "extraObjects", []);
|
|
493
|
-
b(this, "dispose", () => {
|
|
494
|
-
var e;
|
|
495
|
-
this.disposed = !0, (e = this.app) == null || e.$destroy(), this.wrapper = null, this.wrapperSelector = "", this.hooks.emit("dispose");
|
|
496
|
-
});
|
|
497
|
-
b(this, "_disable", (e) => {
|
|
498
|
-
var n;
|
|
499
|
-
const { userAction: t } = e;
|
|
500
|
-
(n = this.app) == null || n.$destroy(), this.app = void 0, this.hooks.emit("disable", { userAction: t });
|
|
501
|
-
});
|
|
502
|
-
this.five = e;
|
|
503
|
-
const n = {
|
|
504
|
-
hoverEnable: !1,
|
|
505
|
-
cameraImageUrl: J
|
|
506
|
-
}, o = t != null && t.configs ? t.configs : {}, a = x(x({}, n), o);
|
|
507
|
-
this.state = { enabled: !0, visible: !0, config: a }, t != null && t.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (t == null ? void 0 : t.wrapper) == "string" ? this.wrapperSelector = t.wrapper : (t == null ? void 0 : t.wrapper) instanceof Element && (this.wrapper = t.wrapper), e.once("dispose", this.dispose);
|
|
508
|
-
}
|
|
509
|
-
load(e, t, n = !0) {
|
|
510
|
-
return q(this, null, function* () {
|
|
511
|
-
function o(s) {
|
|
512
|
-
return Object.prototype.hasOwnProperty.apply(s, ["version"]);
|
|
513
|
-
}
|
|
514
|
-
const a = JSON.parse(JSON.stringify(e)), f = o(a) ? a.data : a, c = this.data;
|
|
515
|
-
this.data = yield Y(f), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, c), t && this.updateState(t, n), this.render();
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
show() {
|
|
519
|
-
return q(this, arguments, function* (e = {}) {
|
|
520
|
-
if (this.state.visible)
|
|
521
|
-
return;
|
|
522
|
-
const t = e.userAction !== void 0 ? e.userAction : !0;
|
|
523
|
-
this.updateState({ visible: !0 }, t), this._show({ userAction: t });
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
hide() {
|
|
527
|
-
return q(this, arguments, function* (e = {}) {
|
|
528
|
-
if (!this.state.visible)
|
|
529
|
-
return;
|
|
530
|
-
const t = e.userAction !== void 0 ? e.userAction : !0;
|
|
531
|
-
this.updateState({ visible: !1 }, t), this._hide({ userAction: t });
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
enable(e = {}) {
|
|
535
|
-
if (this.state.enabled)
|
|
536
|
-
return;
|
|
537
|
-
const t = e.userAction !== void 0 ? e.userAction : !0;
|
|
538
|
-
this.updateState({ enabled: !0 }, e.userAction || t), this._enable({ userAction: t });
|
|
539
|
-
}
|
|
540
|
-
disable(e = {}) {
|
|
541
|
-
if (!this.state.enabled)
|
|
542
|
-
return;
|
|
543
|
-
const t = e.userAction !== void 0 ? e.userAction : !0;
|
|
544
|
-
this.updateState({ enabled: !1 }, e.userAction || t), this._disable({ userAction: t });
|
|
545
|
-
}
|
|
546
|
-
setState(e, t = {}) {
|
|
547
|
-
const n = this.state, o = t.userAction !== void 0 ? t.userAction : !0;
|
|
548
|
-
if (this.updateState(e, o), e.enabled !== void 0 && n.enabled !== e.enabled) {
|
|
549
|
-
const a = { userAction: o };
|
|
550
|
-
e.enabled ? this._enable(a) : this._disable(a);
|
|
551
|
-
}
|
|
552
|
-
if (e.visible !== void 0 && n.visible !== e.visible) {
|
|
553
|
-
const a = { userAction: o };
|
|
554
|
-
e.visible ? this._show(a) : this._hide(a);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
appendTo(e) {
|
|
558
|
-
this.wrapper = e, this.render();
|
|
559
|
-
}
|
|
560
|
-
changeConfigs(e, t = !0) {
|
|
561
|
-
this.setState({ config: e }, { userAction: t }), this.render();
|
|
562
|
-
}
|
|
563
|
-
setExtraObjectsWith3DPositions(e) {
|
|
564
|
-
!this.data || (this.extraObjects = ge(e, this.five, this.data), this.render());
|
|
565
|
-
}
|
|
566
|
-
formatData(e) {
|
|
567
|
-
return q(this, null, function* () {
|
|
568
|
-
return yield Y(e.data);
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
_enable(e) {
|
|
572
|
-
const { userAction: t } = e;
|
|
573
|
-
this.hooks.emit("enable", { userAction: t }), this.state.visible && this._show({ userAction: t });
|
|
574
|
-
}
|
|
575
|
-
_show(e) {
|
|
576
|
-
if (this.disposed || !this.state.enabled)
|
|
577
|
-
return;
|
|
578
|
-
const { userAction: t } = e;
|
|
579
|
-
this.hooks.emit("show", { userAction: t }), this.render();
|
|
580
|
-
}
|
|
581
|
-
_hide(e) {
|
|
582
|
-
if (this.disposed || !this.state.enabled)
|
|
583
|
-
return;
|
|
584
|
-
const { userAction: t } = e;
|
|
585
|
-
this.hooks.emit("hide", { userAction: t }), this.render();
|
|
586
|
-
}
|
|
587
|
-
updateState(e, t) {
|
|
588
|
-
const n = this.state;
|
|
589
|
-
this.state = x(x({}, this.state), e), !be(this.state, n, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: n, userAction: t });
|
|
590
|
-
}
|
|
591
|
-
render() {
|
|
592
|
-
if (this.disposed || !this.state.enabled)
|
|
593
|
-
return;
|
|
594
|
-
if (!this.wrapper && this.wrapperSelector) {
|
|
595
|
-
const t = document.querySelector(this.wrapperSelector);
|
|
596
|
-
this.wrapper = t;
|
|
597
|
-
}
|
|
598
|
-
if (!this.data || !this.wrapper)
|
|
599
|
-
return;
|
|
600
|
-
const e = X(x({}, this.state.config), {
|
|
601
|
-
five: this.five,
|
|
602
|
-
floorplanData: this.data,
|
|
603
|
-
visible: this.state.visible,
|
|
604
|
-
extraObjects: this.extraObjects
|
|
605
|
-
});
|
|
606
|
-
this.app ? this.app.$set(e) : this.app = new Ue({ target: this.wrapper, props: e });
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
const Ke = (r, i) => new Me(r, i);
|
|
610
|
-
export {
|
|
611
|
-
Ke as PanoFloorplanRadarPlugin,
|
|
612
|
-
Ke as default
|
|
613
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.defineProperty,W=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var A=(o,i,e)=>i in o?R(o,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[i]=e,j=(o,i)=>{for(var e in i||(i={}))B.call(i,e)&&A(o,e,i[e]);if(x)for(var e of x(i))T.call(i,e)&&A(o,e,i[e]);return o},E=(o,i)=>W(o,H(i));var g=(o,i,e)=>(A(o,typeof i!="symbol"?i+"":i,e),e);var I=(o,i,e)=>new Promise((n,r)=>{var s=h=>{try{c(e.next(h))}catch(f){r(f)}},a=h=>{try{c(e.throw(h))}catch(f){r(f)}},c=h=>h.done?n(h.value):Promise.resolve(h.value).then(s,a);c((e=e.apply(o,i)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("svelte/internal"),z=require("svelte"),b=require("../../chunks/cjs/formatData.81e95011.cjs.js"),N=require("../../chunks/cjs/throttle.86c209eb.cjs.js"),G=require("../../chunks/cjs/equal.e9fcbd4e.cjs.js"),J=require("../../chunks/cjs/BasePluginWithData.0a28882d.cjs.js");require("../../chunks/cjs/BasePlugin.57e5204f.cjs.js");require("../../chunks/cjs/Subscribe.5398d5c6.cjs.js");function L(o){t.append_styles(o,"svelte-1nqrlxd",".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}")}function K(o){let i,e,n;return{c(){i=t.element("div"),e=t.element("div"),n=t.element("div"),t.attr(n,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),t.set_style(n,"background-image","url("+(o[0]||b.CAMERA_IMAGE)+")"),t.set_style(n,"transform",o[1],!1),t.attr(e,"class","plugin-radar__camera-position svelte-1nqrlxd"),t.set_style(e,"transform",o[2],!1),t.attr(i,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(r,s){t.insert(r,i,s),t.append(i,e),t.append(e,n)},p(r,[s]){s&1&&t.set_style(n,"background-image","url("+(r[0]||b.CAMERA_IMAGE)+")"),s&2&&t.set_style(n,"transform",r[1],!1),s&4&&t.set_style(e,"transform",r[2],!1)},i:t.noop,o:t.noop,d(r){r&&t.detach(i)}}}function Q(o){return`rotate(${Math.floor(o/Math.PI*180)*-1+45}deg)`}function V(o,i,e){let n,r,{five:s}=i,{pxmm:a}=i,{floorplanData:c}=i,{cameraImageUrl:h}=i,f=s.getCurrentState().panoIndex,l=s.getCurrentState().longitude;function d(_,v){const y=_.bounding,p=_.observers[v];if(!p)return"";const D=(y.max.x-y.min.x)*a,q=(y.max.y-y.min.y)*a,w=Math.floor(p.positionInImage.x*D),k=Math.floor(p.positionInImage.y*q);return`translate(${w}px, ${k}px)`}function u(_){e(6,f=_)}const m=N.throttle(_=>{e(7,l=_.longitude)},1e3/60);return z.onMount(()=>(s.on("panoWillArrive",u),s.on("cameraDirectionUpdate",m),function(){s.off("panoWillArrive",u),s.off("cameraDirectionUpdate",m)})),o.$$set=_=>{"five"in _&&e(3,s=_.five),"pxmm"in _&&e(4,a=_.pxmm),"floorplanData"in _&&e(5,c=_.floorplanData),"cameraImageUrl"in _&&e(0,h=_.cameraImageUrl)},o.$$.update=()=>{o.$$.dirty&96&&e(2,n=d(c,f)),o.$$.dirty&128&&e(1,r=Q(l))},[h,r,n,s,a,c,f,l]}class X extends t.SvelteComponent{constructor(i){super(),t.init(this,i,V,K,t.safe_not_equal,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},L)}}function Y(o){t.append_styles(o,"svelte-1i87fz7",".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}")}function O(o,i,e){const n=o.slice();return n[1]=i[e],n}function C(o,i){let e,n,r=`${i[1].icon.width/16}rem`,s=`${i[1].icon.height/16}rem`,a,c=`${i[1].positionInImage.y*100}%`,h=`${i[1].positionInImage.x*100}%`;return{key:o,first:null,c(){e=t.element("div"),n=t.element("div"),a=t.space(),t.attr(n,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),t.set_style(n,"background-image",`url(${i[1].icon.url})`),t.set_style(n,"width",r,!1),t.set_style(n,"height",s,!1),t.attr(e,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),t.set_style(e,"top",c,!1),t.set_style(e,"left",h,!1),this.first=e},m(f,l){t.insert(f,e,l),t.append(e,n),t.append(e,a)},p(f,l){i=f,l&1&&t.set_style(n,"background-image",`url(${i[1].icon.url})`),l&1&&r!==(r=`${i[1].icon.width/16}rem`)&&t.set_style(n,"width",r,!1),l&1&&s!==(s=`${i[1].icon.height/16}rem`)&&t.set_style(n,"height",s,!1),l&1&&c!==(c=`${i[1].positionInImage.y*100}%`)&&t.set_style(e,"top",c,!1),l&1&&h!==(h=`${i[1].positionInImage.x*100}%`)&&t.set_style(e,"left",h,!1)},d(f){f&&t.detach(e)}}}function Z(o){let i,e=[],n=new Map,r=o[0];const s=a=>a[1].id;for(let a=0;a<r.length;a+=1){let c=O(o,r,a),h=s(c);n.set(h,e[a]=C(h,c))}return{c(){i=t.element("div");for(let a=0;a<e.length;a+=1)e[a].c();t.attr(i,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(a,c){t.insert(a,i,c);for(let h=0;h<e.length;h+=1)e[h].m(i,null)},p(a,[c]){c&1&&(r=a[0],e=t.update_keyed_each(e,c,s,1,a,r,n,i,t.destroy_block,C,null,O))},i:t.noop,o:t.noop,d(a){a&&t.detach(i);for(let c=0;c<e.length;c+=1)e[c].d()}}}function $(o,i,e){let{extraObjects:n=[]}=i;return o.$$set=r=>{"extraObjects"in r&&e(0,n=r.extraObjects)},[n]}class ee extends t.SvelteComponent{constructor(i){super(),t.init(this,i,$,Z,t.safe_not_equal,{extraObjects:0},Y)}}function M(o){let i,e;const n=[{five:o[0],pxmm:o[1],floorIndex:o[2],floorplanData:o[4],onRoomHeightClick:o[6]}];let r={};for(let s=0;s<n.length;s+=1)r=t.assign(r,n[s]);return i=new b.RoomHighlight({props:r}),{c(){t.create_component(i.$$.fragment)},m(s,a){t.mount_component(i,s,a),e=!0},p(s,a){const c=a&87?t.get_spread_update(n,[{five:s[0],pxmm:s[1],floorIndex:s[2],floorplanData:s[4],onRoomHeightClick:s[6]}]):{};i.$set(c)},i(s){e||(t.transition_in(i.$$.fragment,s),e=!0)},o(s){t.transition_out(i.$$.fragment,s),e=!1},d(s){t.destroy_component(i,s)}}}function te(o){let i,e,n,r,s,a;const c=[{floorIndex:o[2],floorplanData:o[4]}];let h={};for(let l=0;l<c.length;l+=1)h=t.assign(h,c[l]);i=new b.BaseImage({props:h}),n=new ee({props:{extraObjects:o[5]}});let f=o[3]&&M(o);return{c(){t.create_component(i.$$.fragment),e=t.space(),t.create_component(n.$$.fragment),r=t.space(),f&&f.c(),s=t.empty()},m(l,d){t.mount_component(i,l,d),t.insert(l,e,d),t.mount_component(n,l,d),t.insert(l,r,d),f&&f.m(l,d),t.insert(l,s,d),a=!0},p(l,[d]){const u=d&20?t.get_spread_update(c,[{floorIndex:l[2],floorplanData:l[4]}]):{};i.$set(u);const m={};d&32&&(m.extraObjects=l[5]),n.$set(m),l[3]?f?(f.p(l,d),d&8&&t.transition_in(f,1)):(f=M(l),f.c(),t.transition_in(f,1),f.m(s.parentNode,s)):f&&(t.group_outros(),t.transition_out(f,1,1,()=>{f=null}),t.check_outros())},i(l){a||(t.transition_in(i.$$.fragment,l),t.transition_in(n.$$.fragment,l),t.transition_in(f),a=!0)},o(l){t.transition_out(i.$$.fragment,l),t.transition_out(n.$$.fragment,l),t.transition_out(f),a=!1},d(l){t.destroy_component(i,l),l&&t.detach(e),t.destroy_component(n,l),l&&t.detach(r),f&&f.d(l),l&&t.detach(s)}}}function ne(o,i,e){let n,{five:r}=i,{pxmm:s}=i,{floorIndex:a}=i,{hoverEnable:c}=i,{floorplanData:h}=i,{extraObjects:f=[]}=i;const l=void 0;return o.$$set=d=>{"five"in d&&e(0,r=d.five),"pxmm"in d&&e(1,s=d.pxmm),"floorIndex"in d&&e(2,a=d.floorIndex),"hoverEnable"in d&&e(3,c=d.hoverEnable),"floorplanData"in d&&e(4,h=d.floorplanData),"extraObjects"in d&&e(7,f=d.extraObjects)},o.$$.update=()=>{o.$$.dirty&132&&e(5,n=f==null?void 0:f.filter(d=>d.floorIndex===a))},[r,s,a,c,h,n,l,f]}class ie extends t.SvelteComponent{constructor(i){super(),t.init(this,i,ne,te,t.safe_not_equal,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:7})}}function re(o){t.append_styles(o,"svelte-1mvqyqq",".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}")}function P(o){let i,e,n,r=o[6]!==0&&F(o);return{c(){i=t.element("div"),r&&r.c(),t.attr(i,"class","plugin-floorplan-radar svelte-1mvqyqq"),t.add_render_callback(()=>o[12].call(i))},m(s,a){t.insert(s,i,a),r&&r.m(i,null),e=t.add_resize_listener(i,o[12].bind(i)),n=!0},p(s,a){s[6]!==0?r?(r.p(s,a),a&64&&t.transition_in(r,1)):(r=F(s),r.c(),t.transition_in(r,1),r.m(i,null)):r&&(t.group_outros(),t.transition_out(r,1,1,()=>{r=null}),t.check_outros())},i(s){n||(t.transition_in(r),n=!0)},o(s){t.transition_out(r),n=!1},d(s){s&&t.detach(i),r&&r.d(),e()}}}function F(o){let i,e,n,r,s=`${o[8]}px`,a=`${o[11]}px`,c;const h=[{five:o[0],pxmm:o[9],floorIndex:o[10],floorplanData:o[3],hoverEnable:o[2],extraObjects:o[5]}];let f={};for(let u=0;u<h.length;u+=1)f=t.assign(f,h[u]);e=new ie({props:f});const l=[{pxmm:o[9],five:o[0],floorplanData:o[3],cameraImageUrl:o[4]}];let d={};for(let u=0;u<l.length;u+=1)d=t.assign(d,l[u]);return r=new X({props:d}),{c(){i=t.element("div"),t.create_component(e.$$.fragment),n=t.space(),t.create_component(r.$$.fragment),t.attr(i,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),t.set_style(i,"width",s,!1),t.set_style(i,"height",a,!1)},m(u,m){t.insert(u,i,m),t.mount_component(e,i,null),t.append(i,n),t.mount_component(r,i,null),c=!0},p(u,m){const _=m&1581?t.get_spread_update(h,[{five:u[0],pxmm:u[9],floorIndex:u[10],floorplanData:u[3],hoverEnable:u[2],extraObjects:u[5]}]):{};e.$set(_);const v=m&537?t.get_spread_update(l,[{pxmm:u[9],five:u[0],floorplanData:u[3],cameraImageUrl:u[4]}]):{};r.$set(v),m&256&&s!==(s=`${u[8]}px`)&&t.set_style(i,"width",s,!1),m&2048&&a!==(a=`${u[11]}px`)&&t.set_style(i,"height",a,!1)},i(u){c||(t.transition_in(e.$$.fragment,u),t.transition_in(r.$$.fragment,u),c=!0)},o(u){t.transition_out(e.$$.fragment,u),t.transition_out(r.$$.fragment,u),c=!1},d(u){u&&t.detach(i),t.destroy_component(e),t.destroy_component(r)}}}function oe(o){let i,e,n=o[1]&&P(o);return{c(){n&&n.c(),i=t.empty()},m(r,s){n&&n.m(r,s),t.insert(r,i,s),e=!0},p(r,[s]){r[1]?n?(n.p(r,s),s&2&&t.transition_in(n,1)):(n=P(r),n.c(),t.transition_in(n,1),n.m(i.parentNode,i)):n&&(t.group_outros(),t.transition_out(n,1,1,()=>{n=null}),t.check_outros())},i(r){e||(t.transition_in(n),e=!0)},o(r){t.transition_out(n),e=!1},d(r){n&&n.d(r),r&&t.detach(i)}}}function se(o,i,e){let{five:n}=i,{visible:r}=i,{hoverEnable:s}=i,{floorplanData:a}=i,{cameraImageUrl:c}=i,{extraObjects:h=[]}=i,f=0,l=0,d=0,u=0,m=0,_=0;function v(p){e(10,l=n.work.observers[p].floorIndex)}z.onMount(()=>(n.on("panoArrived",v),()=>{n.off("panoArrived",v)}));function y(){d=this.clientWidth,u=this.clientHeight,e(6,d),e(7,u)}return o.$$set=p=>{"five"in p&&e(0,n=p.five),"visible"in p&&e(1,r=p.visible),"hoverEnable"in p&&e(2,s=p.hoverEnable),"floorplanData"in p&&e(3,a=p.floorplanData),"cameraImageUrl"in p&&e(4,c=p.cameraImageUrl),"extraObjects"in p&&e(5,h=p.extraObjects)},o.$$.update=()=>{if(o.$$.dirty&456){const p=Math.min(d,u),{max:D,min:q}=a.bounding,w=D.x-q.x,k=D.y-q.y,S=function(){return w>k?[p,p/w*k]:[p/k*w,p]}();e(8,m=S[0]),e(11,_=S[1]),e(9,f=m/w)}},[n,r,s,a,c,h,d,u,m,f,l,_,y]}class ae extends t.SvelteComponent{constructor(i){super(),t.init(this,i,se,oe,t.safe_not_equal,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5},re)}}class le extends J.Controller{constructor(e,n){super(e);g(this,"name","panoFloorplanRadarPlugin");g(this,"state");g(this,"data");g(this,"app");g(this,"wrapperSelector","");g(this,"wrapper",null);g(this,"disposed",!1);g(this,"extraObjects",[]);g(this,"dispose",()=>{var e;this.disposed=!0,(e=this.app)==null||e.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});g(this,"_disable",e=>{var r;const{userAction:n}=e;(r=this.app)==null||r.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:n})});this.five=e;const r={hoverEnable:!1,cameraImageUrl:b.CAMERA_IMAGE},s=n!=null&&n.configs?n.configs:{},a=j(j({},r),s);this.state={enabled:!0,visible:!0,config:a},n!=null&&n.wrapper&&console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"),typeof(n==null?void 0:n.wrapper)=="string"?this.wrapperSelector=n.wrapper:(n==null?void 0:n.wrapper)instanceof Element&&(this.wrapper=n.wrapper),e.once("dispose",this.dispose)}load(e,n,r=!0){return I(this,null,function*(){function s(f){return Object.prototype.hasOwnProperty.apply(f,["version"])}const a=JSON.parse(JSON.stringify(e)),c=s(a)?a.data:a,h=this.data;this.data=yield b.formatData(c),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,h),n&&this.updateState(n,r),this.render()})}show(){return I(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return I(this,arguments,function*(e={}){if(!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const r=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&r.enabled!==e.enabled){const a={userAction:s};e.enabled?this._enable(a):this._disable(a)}if(e.visible!==void 0&&r.visible!==e.visible){const a={userAction:s};e.visible?this._show(a):this._hide(a)}}appendTo(e){this.wrapper=e,this.render()}changeConfigs(e,n=!0){this.setState({config:e},{userAction:n}),this.render()}setExtraObjectsWith3DPositions(e){!this.data||(this.extraObjects=b.formatExtraObjects(e,this.five,this.data),this.render())}formatData(e){return I(this,null,function*(){return yield b.formatData(e.data)})}_enable(e){const{userAction:n}=e;this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}_show(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("show",{userAction:n}),this.render()}_hide(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n}),this.render()}updateState(e,n){const r=this.state;this.state=j(j({},this.state),e),!G.equal(this.state,r,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:r,userAction:n})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const n=document.querySelector(this.wrapperSelector);this.wrapper=n}if(!this.data||!this.wrapper)return;const e=E(j({},this.state.config),{five:this.five,floorplanData:this.data,visible:this.state.visible,extraObjects:this.extraObjects});this.app?this.app.$set(e):this.app=new ae({target:this.wrapper,props:e})}}const U=(o,i)=>new le(o,i);exports.PanoFloorplanRadarPlugin=U;exports.default=U;
|