@realsee/dnalogel 2.0.0-alpha.43 → 2.0.0-alpha.46
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/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/CSS3DRenderPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/CSS3DRenderPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/CameraMovementPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/CameraMovementPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/CameraMovementPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/ItemLabelPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/ItemLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/ItemLabelPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/ItemLabelPlugin/index.js +185 -78
- package/dist/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ModelChassisCompassPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/ModelChassisCompassPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/ModelChassisCompassPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/ModelEntryDoorGuidePlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/ModelEntryDoorGuidePlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/ModelItemLabelPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/ModelItemLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/ModelItemLabelPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/ModelItemLabelPlugin/index.js +2 -2
- package/dist/ModelRoomLabelPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/ModelRoomLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/ModelRoomLabelPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/ModelRoomLabelPlugin/index.js +2 -2
- package/dist/ModelTVVideoPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/ModelTVVideoPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/ModelTVVideoPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/ModelViewPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/ModelViewPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/ModelViewPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelViewPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/ModelViewPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/ModelViewPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/ModelViewPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/PanoCompassPlugin/{controller.d.ts → Controller.d.ts} +0 -0
- package/dist/PanoCompassPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoCompassPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoCompassPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/PanoCursorRaycasterPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoCursorRaycasterPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoCursorRaycasterPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/CSS3DRenderPlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/CSS3DRenderPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/CameraMovementPlugin/CameraMovementPlugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/CameraMovementPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/CameraMovementPlugin/typing.d.ts +0 -0
- package/dist/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/events.type.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/typings.d.ts +7 -1
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/getLabelTransform.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/getStrokeLength.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/isImpacted.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/parseData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ItemLabelPlugin/utils/transform2RenderData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelChassisCompassPlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelChassisCompassPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelEntryDoorGuidePlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelEntryDoorGuidePlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/events.type.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/typings.d.ts +1 -1
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelItemLabelPlugin/utils/parseData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/Controller.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/typings.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/typings.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelTVVideoPlugin/utils/parseData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelViewPlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/ModelViewPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +0 -0
- package/{libs/PanoCompassPlugin/controller.d.ts → dist/PanoDoorLabelPlugin/PanoCompassPlugin/Controller.d.ts} +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoCompassPlugin/getRoomInfoInstance.d.ts +0 -0
- package/dist/PanoDoorLabelPlugin/PanoCompassPlugin/index.d.ts +7 -0
- package/dist/PanoDoorLabelPlugin/PanoCompassPlugin/typings.d.ts +57 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoCursorRaycasterPlugin/index.d.ts +0 -0
- package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoDoorLabelPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/EditController.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -0
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/line.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/point.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Model/polyline.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/typings/data.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/typings/event.type.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/typings/utils.type.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -0
- package/dist/PanoDoorLabelPlugin/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/distanceDom.d.ts +2 -2
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/ironbox.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/line.d.ts +3 -3
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/math.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/style.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerPlugin/typings.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerProPlugin/Controller.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerProPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoRulerProPlugin/typings.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/Plugin.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/store.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/style.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/PanoSpatialTagPlugin/typings.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/base/BasePlugin.d.ts +0 -4
- package/{libs/src → dist/PanoDoorLabelPlugin}/base/BasePluginWithData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/Controller.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/Subscribe.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/style.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/tween.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/typings.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/PaintBrush/utils.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/components/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/Assets/camera.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/Assets/compass.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/Assets/floorplanExtraObject.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/ModelFloorplanPlugin/Controller.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/ModelFloorplanPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/ModelFloorplanPlugin/typing.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/TopviewFloorplanPlugin/typing.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/constant.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/typings/floorplanData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/typings/utility.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/constant.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/correctFiveState.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/formatData.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/floorplan/utils/formatPosition.d.ts +0 -0
- package/dist/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoDoorLabelPlugin/index.js +775 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/Preloader.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/Subscribe.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/BetterTween.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/calculateProgress.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/formatRad.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/animationFrame/tween.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/changeModelCanvasOpacity.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/createCanvasTextTexture.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/createLine/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/debounce.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/equal.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/filter.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/five/changeMode.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/formatRad.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/getPxmm.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/getRandomColor.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/isNil.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/isTruelyObject.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/logger.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/Interval.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/Rectangle.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/evenNumber.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/index.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/planimetry.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/math/rad2Deg.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/nearlyEqual.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/nextFrame.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/noop.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/object3d2LocalMatrix.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/px2rem.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/removeArrayItem.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/tap.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/centerPoint.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/getExtraModelLoader.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/getNormal.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/getTextureLoader.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/loadFbxObj.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/loadTexture.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/transformPositionToVector3.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/three/transfromToMeshBasicMaterial.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/throttle.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/tinyEJSrender.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/to.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/uuid.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/shared-utils/vectorTocoordinates.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/typings/math.type.d.ts +0 -0
- package/{libs/src → dist/PanoDoorLabelPlugin}/typings/utils.type.d.ts +0 -0
- package/dist/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoMeasurePlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoMeasurePlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoMeasurePlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/PanoRulerPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoRulerPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoRulerPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/PanoRulerProPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoRulerProPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoRulerProPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/PanoRulerProPlugin/index.js +2 -2
- package/dist/PanoSpatialTagPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/PanoSpatialTagPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/PanoSpatialTagPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/PanoSpatialTagPlugin/index.js +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +17 -17
- package/dist/floorplan/PanoFloorplanRadarPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +9 -9
- package/dist/floorplan/TopviewFloorplanPlugin/ItemLabelPlugin/typings.d.ts +2 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +17 -17
- package/dist/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +1136 -299
- package/dist/index.js +1135 -297
- package/dist/index.umd.js +1135 -297
- package/docs/assets/search.js +1 -1
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -0
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/modules.html +18 -18
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +3 -3
- package/libs/ItemLabelPlugin/ItemLabelItem.js +184 -77
- package/libs/ItemLabelPlugin/typings.d.ts +2 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +3 -3
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +7 -7
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +5 -5
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +3 -3
- package/libs/PanoCompassPlugin/Controller.d.ts +84 -0
- package/libs/PanoCompassPlugin/{controller.js → Controller.js} +0 -0
- package/libs/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/libs/PanoDoorLabelPlugin/BaseController.js +103 -0
- package/libs/PanoDoorLabelPlugin/Controller.d.ts +36 -0
- package/libs/PanoDoorLabelPlugin/Controller.js +434 -0
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +159 -0
- package/libs/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/libs/PanoDoorLabelPlugin/index.js +6 -0
- package/libs/PanoDoorLabelPlugin/typings.d.ts +33 -0
- package/libs/{src/ModelRoomLabelPlugin → PanoDoorLabelPlugin}/typings.js +0 -0
- package/libs/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/libs/PanoDoorLabelPlugin/utils.js +55 -0
- package/libs/PanoRulerProPlugin/RulerItem.js +10 -10
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -1
- package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +10 -10
- package/libs/floorplan/Components/BaseImage.js +3 -3
- package/libs/floorplan/Components/Camera.js +4 -4
- package/libs/floorplan/Components/Compass.js +5 -5
- package/libs/floorplan/Components/CurrentFloor.js +4 -4
- package/libs/floorplan/Components/Main.js +3 -3
- package/libs/floorplan/Components/Normalmage.js +3 -3
- package/libs/floorplan/Components/RoomHighlight/Room.js +3 -3
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +4 -4
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +4 -4
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +3 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +4 -4
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +10 -10
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +3 -3
- package/libs/floorplan/Components/SvgImage.js +4 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +5 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +4 -4
- package/libs/floorplan/typings/floorplanServerData.d.ts +13 -0
- package/libs/index.d.ts +2 -1
- package/libs/index.js +3 -1
- package/package.json +2 -1
- package/dist/PanoCompassPlugin/Plugin.d.ts +0 -47
- package/libs/PanoCompassPlugin/Plugin.d.ts +0 -47
- package/libs/PanoCompassPlugin/Plugin.js +0 -267
- package/libs/PanoCompassPlugin/typeings.d.ts +0 -0
- package/libs/PanoCompassPlugin/typeings.js +0 -0
- package/libs/package.json +0 -68
- package/libs/src/CSS3DRenderPlugin/Plugin.js +0 -182
- package/libs/src/CSS3DRenderPlugin/index.js +0 -3
- package/libs/src/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -18
- package/libs/src/CameraMovementPlugin/CameraMovementPlugin.js +0 -159
- package/libs/src/CameraMovementPlugin/index.js +0 -4
- package/libs/src/CameraMovementPlugin/typing.js +0 -17
- package/libs/src/ItemLabelPlugin/Plugin.js +0 -120
- package/libs/src/ItemLabelPlugin/events.type.js +0 -1
- package/libs/src/ItemLabelPlugin/index.js +0 -8
- package/libs/src/ItemLabelPlugin/typings.js +0 -7
- package/libs/src/ItemLabelPlugin/utils/getLabelTransform.js +0 -3
- package/libs/src/ItemLabelPlugin/utils/getStrokeLength.js +0 -16
- package/libs/src/ItemLabelPlugin/utils/isImpacted.js +0 -13
- package/libs/src/ItemLabelPlugin/utils/parseData.js +0 -4
- package/libs/src/ItemLabelPlugin/utils/transform2RenderData.js +0 -4
- package/libs/src/ModelChassisCompassPlugin/Plugin.js +0 -77
- package/libs/src/ModelChassisCompassPlugin/index.js +0 -3
- package/libs/src/ModelEntryDoorGuidePlugin/Plugin.js +0 -140
- package/libs/src/ModelEntryDoorGuidePlugin/index.js +0 -3
- package/libs/src/ModelItemLabelPlugin/ModelItemLabelPlugin.js +0 -120
- package/libs/src/ModelItemLabelPlugin/events.type.js +0 -1
- package/libs/src/ModelItemLabelPlugin/index.js +0 -8
- package/libs/src/ModelItemLabelPlugin/typings.js +0 -7
- package/libs/src/ModelItemLabelPlugin/utils/parseData.js +0 -4
- package/libs/src/ModelRoomLabelPlugin/Assets/roomLabelBg.js +0 -1
- package/libs/src/ModelRoomLabelPlugin/Controller.js +0 -142
- package/libs/src/ModelRoomLabelPlugin/index.js +0 -9
- package/libs/src/ModelRoomLabelPlugin/utils/parseData.js +0 -14
- package/libs/src/ModelTVVideoPlugin/Plugin.js +0 -254
- package/libs/src/ModelTVVideoPlugin/index.js +0 -4
- package/libs/src/ModelTVVideoPlugin/typings.js +0 -8
- package/libs/src/ModelTVVideoPlugin/utils/parseData.js +0 -13
- package/libs/src/ModelViewPlugin/Plugin.js +0 -159
- package/libs/src/ModelViewPlugin/index.js +0 -3
- package/libs/src/PanoCompassPlugin/Assets/roomInfoIcon.js +0 -1
- package/libs/src/PanoCompassPlugin/Plugin.d.ts +0 -47
- package/libs/src/PanoCompassPlugin/Plugin.js +0 -249
- package/libs/src/PanoCompassPlugin/getRoomInfoInstance.js +0 -48
- package/libs/src/PanoCompassPlugin/index.d.ts +0 -8
- package/libs/src/PanoCompassPlugin/index.js +0 -7
- package/libs/src/PanoCursorRaycasterPlugin/index.js +0 -76
- package/libs/src/PanoMeasurePlugin/Controller/BaseController.js +0 -132
- package/libs/src/PanoMeasurePlugin/Controller/EditController.js +0 -329
- package/libs/src/PanoMeasurePlugin/Controller/MixedController.js +0 -337
- package/libs/src/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -64
- package/libs/src/PanoMeasurePlugin/Controller/WatchController.js +0 -316
- package/libs/src/PanoMeasurePlugin/Controller/index.js +0 -306
- package/libs/src/PanoMeasurePlugin/Model/index.js +0 -139
- package/libs/src/PanoMeasurePlugin/Model/line.js +0 -114
- package/libs/src/PanoMeasurePlugin/Model/point.js +0 -48
- package/libs/src/PanoMeasurePlugin/Model/polyline.js +0 -65
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -12
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -2
- package/libs/src/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -190
- package/libs/src/PanoMeasurePlugin/Modules/FiveHelper.js +0 -48
- package/libs/src/PanoMeasurePlugin/Modules/GuideController.js +0 -110
- package/libs/src/PanoMeasurePlugin/Modules/Magnifier.js +0 -278
- package/libs/src/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -128
- package/libs/src/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -126
- package/libs/src/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -73
- package/libs/src/PanoMeasurePlugin/Modules/UIController/index.js +0 -117
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +0 -80
- package/libs/src/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +0 -98
- package/libs/src/PanoMeasurePlugin/Modules/UIController/style.js +0 -71
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/html.js +0 -64
- package/libs/src/PanoMeasurePlugin/Modules/rangePiece/index.js +0 -264
- package/libs/src/PanoMeasurePlugin/index.js +0 -7
- package/libs/src/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/src/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/src/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/src/PanoMeasurePlugin/utils/calculateThreeMouse.js +0 -15
- package/libs/src/PanoMeasurePlugin/utils/clearGroup.js +0 -3
- package/libs/src/PanoMeasurePlugin/utils/constants.d.ts +0 -4
- package/libs/src/PanoMeasurePlugin/utils/constants.js +0 -31
- package/libs/src/PanoMeasurePlugin/utils/distanceDom.js +0 -120
- package/libs/src/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -21
- package/libs/src/PanoMeasurePlugin/utils/findClosestPoint.js +0 -27
- package/libs/src/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -9
- package/libs/src/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -14
- package/libs/src/PanoMeasurePlugin/utils/ironbox.js +0 -1
- package/libs/src/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -6
- package/libs/src/PanoMeasurePlugin/utils/line.js +0 -33
- package/libs/src/PanoMeasurePlugin/utils/math.js +0 -44
- package/libs/src/PanoMeasurePlugin/utils/mouseGroup.js +0 -69
- package/libs/src/PanoMeasurePlugin/utils/ndc2Screen.js +0 -6
- package/libs/src/PanoRulerPlugin/Plugin.js +0 -403
- package/libs/src/PanoRulerPlugin/index.js +0 -3
- package/libs/src/PanoRulerPlugin/style.js +0 -88
- package/libs/src/PanoRulerPlugin/typings.js +0 -1
- package/libs/src/PanoRulerProPlugin/Controller.js +0 -110
- package/libs/src/PanoRulerProPlugin/index.js +0 -8
- package/libs/src/PanoRulerProPlugin/typings.js +0 -1
- package/libs/src/PanoSpatialTagPlugin/Plugin.js +0 -426
- package/libs/src/PanoSpatialTagPlugin/index.js +0 -5
- package/libs/src/PanoSpatialTagPlugin/store.js +0 -2
- package/libs/src/PanoSpatialTagPlugin/style.js +0 -8
- package/libs/src/PanoSpatialTagPlugin/typings.js +0 -1
- package/libs/src/base/BasePlugin.js +0 -41
- package/libs/src/base/BasePluginWithData.js +0 -4
- package/libs/src/components/PaintBrush/Controller.js +0 -575
- package/libs/src/components/PaintBrush/Subscribe.js +0 -121
- package/libs/src/components/PaintBrush/index.js +0 -57
- package/libs/src/components/PaintBrush/style.js +0 -102
- package/libs/src/components/PaintBrush/tween.js +0 -15
- package/libs/src/components/PaintBrush/typings.js +0 -6
- package/libs/src/components/PaintBrush/utils.js +0 -51
- package/libs/src/components/index.js +0 -3
- package/libs/src/floorplan/Assets/camera.js +0 -1
- package/libs/src/floorplan/Assets/compass.js +0 -1
- package/libs/src/floorplan/Assets/floorplanExtraObject.js +0 -1
- package/libs/src/floorplan/ModelFloorplanPlugin/Controller.js +0 -701
- package/libs/src/floorplan/ModelFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/ModelFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -240
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/index.js +0 -5
- package/libs/src/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
- package/libs/src/floorplan/TopviewFloorplanPlugin/Controller.js +0 -486
- package/libs/src/floorplan/TopviewFloorplanPlugin/index.js +0 -5
- package/libs/src/floorplan/TopviewFloorplanPlugin/style.js +0 -8
- package/libs/src/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
- package/libs/src/floorplan/constant.js +0 -6
- package/libs/src/floorplan/index.js +0 -7
- package/libs/src/floorplan/typings/floorplanData.js +0 -6
- package/libs/src/floorplan/typings/floorplanServerData.js +0 -101
- package/libs/src/floorplan/typings/utility.js +0 -1
- package/libs/src/floorplan/utils/constant.js +0 -23
- package/libs/src/floorplan/utils/correctFiveState.js +0 -46
- package/libs/src/floorplan/utils/formatData.js +0 -94
- package/libs/src/floorplan/utils/formatPosition.js +0 -50
- package/libs/src/index.d.ts +0 -16
- package/libs/src/index.js +0 -28
- package/libs/src/shared-utils/Preloader.js +0 -38
- package/libs/src/shared-utils/Subscribe.js +0 -108
- package/libs/src/shared-utils/animationFrame/BetterTween.js +0 -59
- package/libs/src/shared-utils/animationFrame/calculateProgress.js +0 -23
- package/libs/src/shared-utils/animationFrame/formatRad.js +0 -20
- package/libs/src/shared-utils/animationFrame/index.js +0 -48
- package/libs/src/shared-utils/animationFrame/tween.js +0 -44
- package/libs/src/shared-utils/changeModelCanvasOpacity.js +0 -15
- package/libs/src/shared-utils/createCanvasTextTexture.js +0 -20
- package/libs/src/shared-utils/createLine/index.js +0 -8
- package/libs/src/shared-utils/debounce.js +0 -14
- package/libs/src/shared-utils/equal.js +0 -84
- package/libs/src/shared-utils/filter.js +0 -53
- package/libs/src/shared-utils/five/changeMode.js +0 -36
- package/libs/src/shared-utils/formatRad.js +0 -10
- package/libs/src/shared-utils/getPxmm.js +0 -39
- package/libs/src/shared-utils/getRandomColor.js +0 -10
- package/libs/src/shared-utils/index.js +0 -1
- package/libs/src/shared-utils/isNil.js +0 -14
- package/libs/src/shared-utils/isTruelyObject.js +0 -20
- package/libs/src/shared-utils/logger.js +0 -47
- package/libs/src/shared-utils/math/Interval.js +0 -40
- package/libs/src/shared-utils/math/Rectangle.js +0 -50
- package/libs/src/shared-utils/math/evenNumber.js +0 -4
- package/libs/src/shared-utils/math/index.js +0 -2
- package/libs/src/shared-utils/math/planimetry.js +0 -288
- package/libs/src/shared-utils/math/rad2Deg.js +0 -3
- package/libs/src/shared-utils/nearlyEqual.js +0 -9
- package/libs/src/shared-utils/nextFrame.js +0 -6
- package/libs/src/shared-utils/noop.js +0 -7
- package/libs/src/shared-utils/object3d2LocalMatrix.js +0 -29
- package/libs/src/shared-utils/px2rem.js +0 -4
- package/libs/src/shared-utils/removeArrayItem.js +0 -12
- package/libs/src/shared-utils/tap.js +0 -12
- package/libs/src/shared-utils/three/centerPoint.js +0 -4
- package/libs/src/shared-utils/three/getExtraModelLoader.js +0 -18
- package/libs/src/shared-utils/three/getNormal.js +0 -6
- package/libs/src/shared-utils/three/getTextureLoader.js +0 -17
- package/libs/src/shared-utils/three/loadFbxObj.js +0 -13
- package/libs/src/shared-utils/three/loadTexture.js +0 -10
- package/libs/src/shared-utils/three/transformPositionToVector3.js +0 -3
- package/libs/src/shared-utils/three/transfromToMeshBasicMaterial.js +0 -15
- package/libs/src/shared-utils/throttle.js +0 -18
- package/libs/src/shared-utils/tinyEJSrender.js +0 -210
- package/libs/src/shared-utils/to.js +0 -18
- package/libs/src/shared-utils/uuid.js +0 -12
- package/libs/src/shared-utils/vectorTocoordinates.js +0 -9
- package/libs/src/typings/math.type.js +0 -1
- package/libs/src/typings/utils.type.js +0 -1
package/dist/index.js
CHANGED
|
@@ -488,13 +488,13 @@ const PanoCursorRaycasterPlugin = (five) => {
|
|
|
488
488
|
|
|
489
489
|
const ROOM_LABEL_BG = 'data:image/png;base64,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';
|
|
490
490
|
|
|
491
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.
|
|
491
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.48.0 */
|
|
492
492
|
|
|
493
|
-
function add_css$
|
|
493
|
+
function add_css$q(target) {
|
|
494
494
|
internal.append_styles(target, "svelte-877671", ".room-label-item.svelte-877671{position:absolute;font-size:0.41667rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-877671{position:absolute;left:0;top:-3.33333rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.04167rem;min-width:1.66667rem;padding:0 0.3125rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-877671{position:absolute;top:-2.29167rem;height:2.5rem;width:1px;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-877671{font-size:0.52083rem}");
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
function create_fragment$
|
|
497
|
+
function create_fragment$v(ctx) {
|
|
498
498
|
let div1;
|
|
499
499
|
let span;
|
|
500
500
|
let t0_value = /*roomLabel*/ ctx[0].name + "";
|
|
@@ -561,7 +561,7 @@ function create_fragment$u(ctx) {
|
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
function instance$
|
|
564
|
+
function instance$v($$self, $$props, $$invalidate) {
|
|
565
565
|
let { five } = $$props;
|
|
566
566
|
let { roomLabel } = $$props;
|
|
567
567
|
|
|
@@ -584,15 +584,15 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
584
584
|
class RoomLabelItem extends internal.SvelteComponent {
|
|
585
585
|
constructor(options) {
|
|
586
586
|
super();
|
|
587
|
-
internal.init(this, options, instance$
|
|
587
|
+
internal.init(this, options, instance$v, create_fragment$v, internal.safe_not_equal, { five: 2, roomLabel: 0 }, add_css$q);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.
|
|
591
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.48.0 */
|
|
592
592
|
|
|
593
593
|
const { Map: Map_1 } = internal.globals;
|
|
594
594
|
|
|
595
|
-
function add_css$
|
|
595
|
+
function add_css$p(target) {
|
|
596
596
|
internal.append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
597
597
|
}
|
|
598
598
|
|
|
@@ -651,7 +651,7 @@ function create_each_block$c(key_1, ctx) {
|
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
function create_fragment$
|
|
654
|
+
function create_fragment$u(ctx) {
|
|
655
655
|
let div;
|
|
656
656
|
let each_blocks = [];
|
|
657
657
|
let each_1_lookup = new Map_1();
|
|
@@ -723,7 +723,7 @@ function create_fragment$t(ctx) {
|
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
725
|
|
|
726
|
-
function instance$
|
|
726
|
+
function instance$u($$self, $$props, $$invalidate) {
|
|
727
727
|
let rendererSize;
|
|
728
728
|
let { five } = $$props;
|
|
729
729
|
let { roomLabels } = $$props;
|
|
@@ -848,7 +848,7 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
|
848
848
|
class RoomLabelItems extends internal.SvelteComponent {
|
|
849
849
|
constructor(options) {
|
|
850
850
|
super();
|
|
851
|
-
internal.init(this, options, instance$
|
|
851
|
+
internal.init(this, options, instance$u, create_fragment$u, internal.safe_not_equal, { five: 1, roomLabels: 0 }, add_css$p);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
|
|
@@ -1134,13 +1134,13 @@ function rad2Deg$1(rad) {
|
|
|
1134
1134
|
return (rad * 180) / Math.PI;
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
|
-
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.
|
|
1137
|
+
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.48.0 */
|
|
1138
1138
|
|
|
1139
|
-
function add_css$
|
|
1139
|
+
function add_css$o(target) {
|
|
1140
1140
|
internal.append_styles(target, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
|
-
function create_fragment$
|
|
1143
|
+
function create_fragment$t(ctx) {
|
|
1144
1144
|
let div1;
|
|
1145
1145
|
let div0;
|
|
1146
1146
|
|
|
@@ -1177,7 +1177,7 @@ function create_fragment$s(ctx) {
|
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
|
-
function instance$
|
|
1180
|
+
function instance$t($$self, $$props, $$invalidate) {
|
|
1181
1181
|
let { panoIndex } = $$props;
|
|
1182
1182
|
let { floorplanData } = $$props;
|
|
1183
1183
|
let { lastPanoramaLongitude } = $$props;
|
|
@@ -1223,8 +1223,8 @@ class Camera$1 extends internal.SvelteComponent {
|
|
|
1223
1223
|
internal.init(
|
|
1224
1224
|
this,
|
|
1225
1225
|
options,
|
|
1226
|
-
instance$
|
|
1227
|
-
create_fragment$
|
|
1226
|
+
instance$t,
|
|
1227
|
+
create_fragment$t,
|
|
1228
1228
|
internal.safe_not_equal,
|
|
1229
1229
|
{
|
|
1230
1230
|
panoIndex: 5,
|
|
@@ -1232,16 +1232,16 @@ class Camera$1 extends internal.SvelteComponent {
|
|
|
1232
1232
|
lastPanoramaLongitude: 7,
|
|
1233
1233
|
cameraImageUrl: 0
|
|
1234
1234
|
},
|
|
1235
|
-
add_css$
|
|
1235
|
+
add_css$o
|
|
1236
1236
|
);
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
1240
|
const COMPASS_IMAGE = 'data:image/png;base64,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';
|
|
1241
1241
|
|
|
1242
|
-
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.
|
|
1242
|
+
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.48.0 */
|
|
1243
1243
|
|
|
1244
|
-
function add_css$
|
|
1244
|
+
function add_css$n(target) {
|
|
1245
1245
|
internal.append_styles(target, "svelte-z9kwkx", ".floorplan-plugin__compass.svelte-z9kwkx{position:absolute;left:50%;top:-2.39583rem;width:12.03125rem;height:2.13542rem;will-change:opacity;transform-origin:center 9.58333rem}.floorplan-plugin__compass-image.svelte-z9kwkx{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-z9kwkx{position:absolute;left:50%;top:0.78125rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.52083rem;color:#fff}");
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
@@ -1282,7 +1282,7 @@ function create_if_block$b(ctx) {
|
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
|
-
function create_fragment$
|
|
1285
|
+
function create_fragment$s(ctx) {
|
|
1286
1286
|
let if_block_anchor;
|
|
1287
1287
|
let if_block = /*canCompassShow*/ ctx[1] && create_if_block$b(ctx);
|
|
1288
1288
|
|
|
@@ -1311,7 +1311,7 @@ function rad2Deg(rad) {
|
|
|
1311
1311
|
return rad / Math.PI * 180;
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
|
-
function instance$
|
|
1314
|
+
function instance$s($$self, $$props, $$invalidate) {
|
|
1315
1315
|
var _a;
|
|
1316
1316
|
let { floorplanData } = $$props;
|
|
1317
1317
|
let { northDesc } = $$props;
|
|
@@ -1335,17 +1335,17 @@ function instance$r($$self, $$props, $$invalidate) {
|
|
|
1335
1335
|
class Compass extends internal.SvelteComponent {
|
|
1336
1336
|
constructor(options) {
|
|
1337
1337
|
super();
|
|
1338
|
-
internal.init(this, options, instance$
|
|
1338
|
+
internal.init(this, options, instance$s, create_fragment$s, internal.safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$n);
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
|
-
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.
|
|
1342
|
+
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.48.0 */
|
|
1343
1343
|
|
|
1344
|
-
function add_css$
|
|
1344
|
+
function add_css$m(target) {
|
|
1345
1345
|
internal.append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
|
-
function create_fragment$
|
|
1348
|
+
function create_fragment$r(ctx) {
|
|
1349
1349
|
let img;
|
|
1350
1350
|
let img_src_value;
|
|
1351
1351
|
|
|
@@ -1372,7 +1372,7 @@ function create_fragment$q(ctx) {
|
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
|
-
function instance$
|
|
1375
|
+
function instance$r($$self, $$props, $$invalidate) {
|
|
1376
1376
|
let { url } = $$props;
|
|
1377
1377
|
|
|
1378
1378
|
$$self.$$set = $$props => {
|
|
@@ -1385,17 +1385,17 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
1385
1385
|
class Normalmage extends internal.SvelteComponent {
|
|
1386
1386
|
constructor(options) {
|
|
1387
1387
|
super();
|
|
1388
|
-
internal.init(this, options, instance$
|
|
1388
|
+
internal.init(this, options, instance$r, create_fragment$r, internal.safe_not_equal, { url: 0 }, add_css$m);
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
1392
|
-
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.
|
|
1392
|
+
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.48.0 */
|
|
1393
1393
|
|
|
1394
|
-
function add_css$
|
|
1394
|
+
function add_css$l(target) {
|
|
1395
1395
|
internal.append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
1396
1396
|
}
|
|
1397
1397
|
|
|
1398
|
-
function create_fragment$
|
|
1398
|
+
function create_fragment$q(ctx) {
|
|
1399
1399
|
let div;
|
|
1400
1400
|
let html_tag;
|
|
1401
1401
|
let t;
|
|
@@ -1428,7 +1428,7 @@ function create_fragment$p(ctx) {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
|
-
function instance$
|
|
1431
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
1432
1432
|
let { content } = $$props;
|
|
1433
1433
|
|
|
1434
1434
|
const svgStyle = `
|
|
@@ -1452,18 +1452,18 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
1452
1452
|
class SvgImage extends internal.SvelteComponent {
|
|
1453
1453
|
constructor(options) {
|
|
1454
1454
|
super();
|
|
1455
|
-
internal.init(this, options, instance$
|
|
1455
|
+
internal.init(this, options, instance$q, create_fragment$q, internal.safe_not_equal, { content: 0 }, add_css$l);
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
|
-
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.
|
|
1459
|
+
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.48.0 */
|
|
1460
1460
|
|
|
1461
|
-
function add_css$
|
|
1461
|
+
function add_css$k(target) {
|
|
1462
1462
|
internal.append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
1463
1463
|
}
|
|
1464
1464
|
|
|
1465
1465
|
// (13:22)
|
|
1466
|
-
function create_if_block_1$
|
|
1466
|
+
function create_if_block_1$6(ctx) {
|
|
1467
1467
|
let normalimage;
|
|
1468
1468
|
let current;
|
|
1469
1469
|
normalimage = new Normalmage({ props: { url: /*imageData*/ ctx[1].url } });
|
|
@@ -1533,12 +1533,12 @@ function create_if_block$a(ctx) {
|
|
|
1533
1533
|
};
|
|
1534
1534
|
}
|
|
1535
1535
|
|
|
1536
|
-
function create_fragment$
|
|
1536
|
+
function create_fragment$p(ctx) {
|
|
1537
1537
|
let div;
|
|
1538
1538
|
let current_block_type_index;
|
|
1539
1539
|
let if_block;
|
|
1540
1540
|
let current;
|
|
1541
|
-
const if_block_creators = [create_if_block$a, create_if_block_1$
|
|
1541
|
+
const if_block_creators = [create_if_block$a, create_if_block_1$6];
|
|
1542
1542
|
const if_blocks = [];
|
|
1543
1543
|
|
|
1544
1544
|
function select_block_type(ctx, dirty) {
|
|
@@ -1621,7 +1621,7 @@ function create_fragment$o(ctx) {
|
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
|
|
1624
|
-
function instance$
|
|
1624
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
1625
1625
|
let imageData;
|
|
1626
1626
|
let svgContent;
|
|
1627
1627
|
var _a, _b;
|
|
@@ -1653,18 +1653,18 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1653
1653
|
class BaseImage extends internal.SvelteComponent {
|
|
1654
1654
|
constructor(options) {
|
|
1655
1655
|
super();
|
|
1656
|
-
internal.init(this, options, instance$
|
|
1656
|
+
internal.init(this, options, instance$p, create_fragment$p, internal.safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$k);
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
1659
1659
|
|
|
1660
|
-
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.
|
|
1660
|
+
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.48.0 */
|
|
1661
1661
|
|
|
1662
|
-
function add_css$
|
|
1662
|
+
function add_css$j(target) {
|
|
1663
1663
|
internal.append_styles(target, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
|
|
1664
1664
|
}
|
|
1665
1665
|
|
|
1666
1666
|
// (95:30)
|
|
1667
|
-
function create_if_block_1$
|
|
1667
|
+
function create_if_block_1$5(ctx) {
|
|
1668
1668
|
let html_tag;
|
|
1669
1669
|
let raw_value = /*userConfigElement*/ ctx[4].outerHTML + "";
|
|
1670
1670
|
let html_anchor;
|
|
@@ -1724,12 +1724,12 @@ function create_if_block$9(ctx) {
|
|
|
1724
1724
|
};
|
|
1725
1725
|
}
|
|
1726
1726
|
|
|
1727
|
-
function create_fragment$
|
|
1727
|
+
function create_fragment$o(ctx) {
|
|
1728
1728
|
let div;
|
|
1729
1729
|
|
|
1730
1730
|
function select_block_type(ctx, dirty) {
|
|
1731
1731
|
if (/*getLabelElement*/ ctx[1] === undefined) return create_if_block$9;
|
|
1732
|
-
if (/*userConfigElement*/ ctx[4]) return create_if_block_1$
|
|
1732
|
+
if (/*userConfigElement*/ ctx[4]) return create_if_block_1$5;
|
|
1733
1733
|
}
|
|
1734
1734
|
|
|
1735
1735
|
let current_block_type = select_block_type(ctx);
|
|
@@ -1798,7 +1798,7 @@ function isPointInPolygon(point, polygon) {
|
|
|
1798
1798
|
return inside;
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
|
-
function instance$
|
|
1801
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
1802
1802
|
let isLabelInRoom;
|
|
1803
1803
|
let userConfigElement;
|
|
1804
1804
|
let labelVisible;
|
|
@@ -1942,8 +1942,8 @@ class RoomLabel extends internal.SvelteComponent {
|
|
|
1942
1942
|
internal.init(
|
|
1943
1943
|
this,
|
|
1944
1944
|
options,
|
|
1945
|
-
instance$
|
|
1946
|
-
create_fragment$
|
|
1945
|
+
instance$o,
|
|
1946
|
+
create_fragment$o,
|
|
1947
1947
|
internal.safe_not_equal,
|
|
1948
1948
|
{
|
|
1949
1949
|
pxmm: 9,
|
|
@@ -1952,14 +1952,14 @@ class RoomLabel extends internal.SvelteComponent {
|
|
|
1952
1952
|
getLabelElement: 1,
|
|
1953
1953
|
adaptiveRoomLabelVisibleEnable: 11
|
|
1954
1954
|
},
|
|
1955
|
-
add_css$
|
|
1955
|
+
add_css$j
|
|
1956
1956
|
);
|
|
1957
1957
|
}
|
|
1958
1958
|
}
|
|
1959
1959
|
|
|
1960
|
-
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.
|
|
1960
|
+
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.48.0 */
|
|
1961
1961
|
|
|
1962
|
-
function add_css$
|
|
1962
|
+
function add_css$i(target) {
|
|
1963
1963
|
internal.append_styles(target, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
1964
1964
|
}
|
|
1965
1965
|
|
|
@@ -2112,7 +2112,7 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
|
-
function create_fragment$
|
|
2115
|
+
function create_fragment$n(ctx) {
|
|
2116
2116
|
let if_block_anchor;
|
|
2117
2117
|
let current;
|
|
2118
2118
|
let if_block = /*rooms*/ ctx[5] && create_if_block$8(ctx);
|
|
@@ -2167,7 +2167,7 @@ function create_fragment$m(ctx) {
|
|
|
2167
2167
|
};
|
|
2168
2168
|
}
|
|
2169
2169
|
|
|
2170
|
-
function instance$
|
|
2170
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
2171
2171
|
let rooms;
|
|
2172
2172
|
let { floorIndex } = $$props;
|
|
2173
2173
|
let { floorplanData } = $$props;
|
|
@@ -2224,8 +2224,8 @@ class RoomLabels extends internal.SvelteComponent {
|
|
|
2224
2224
|
internal.init(
|
|
2225
2225
|
this,
|
|
2226
2226
|
options,
|
|
2227
|
-
instance$
|
|
2228
|
-
create_fragment$
|
|
2227
|
+
instance$n,
|
|
2228
|
+
create_fragment$n,
|
|
2229
2229
|
internal.safe_not_equal,
|
|
2230
2230
|
{
|
|
2231
2231
|
floorIndex: 6,
|
|
@@ -2234,14 +2234,14 @@ class RoomLabels extends internal.SvelteComponent {
|
|
|
2234
2234
|
getLabelElement: 1,
|
|
2235
2235
|
adaptiveRoomLabelVisibleEnable: 2
|
|
2236
2236
|
},
|
|
2237
|
-
add_css$
|
|
2237
|
+
add_css$i
|
|
2238
2238
|
);
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
2241
|
|
|
2242
|
-
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.
|
|
2242
|
+
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.48.0 */
|
|
2243
2243
|
|
|
2244
|
-
function add_css$
|
|
2244
|
+
function add_css$h(target) {
|
|
2245
2245
|
internal.append_styles(target, "svelte-xt7p1v", ".floorplan-plugin__rule-labels.svelte-xt7p1v.svelte-xt7p1v{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-xt7p1v.svelte-xt7p1v{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v.svelte-xt7p1v{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v.svelte-xt7p1v{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v.svelte-xt7p1v{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-xt7p1v.svelte-xt7p1v{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale-wrapper.svelte-xt7p1v{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-xt7p1v.svelte-xt7p1v{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-scale.svelte-xt7p1v{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-xt7p1v.svelte-xt7p1v{position:absolute}.floorplan-plugin__rule-labels--top.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-xt7p1v .floorplan-plugin__rule-text-wrapper.svelte-xt7p1v{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-xt7p1v.svelte-xt7p1v{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-xt7p1v .floorplan-plugin__rule-text-item.svelte-xt7p1v{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-xt7p1v.svelte-xt7p1v{width:-webkit-max-content;width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
@@ -2317,7 +2317,7 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2317
2317
|
};
|
|
2318
2318
|
}
|
|
2319
2319
|
|
|
2320
|
-
function create_fragment$
|
|
2320
|
+
function create_fragment$m(ctx) {
|
|
2321
2321
|
let div3;
|
|
2322
2322
|
let div0;
|
|
2323
2323
|
let t0;
|
|
@@ -2440,7 +2440,7 @@ function create_fragment$l(ctx) {
|
|
|
2440
2440
|
const padding$1 = 1000;
|
|
2441
2441
|
const exteriorWallOffset$1 = 180;
|
|
2442
2442
|
|
|
2443
|
-
function instance$
|
|
2443
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
2444
2444
|
let { type } = $$props;
|
|
2445
2445
|
let { data } = $$props;
|
|
2446
2446
|
let { bounding } = $$props;
|
|
@@ -2499,13 +2499,13 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2499
2499
|
class RuleItem extends internal.SvelteComponent {
|
|
2500
2500
|
constructor(options) {
|
|
2501
2501
|
super();
|
|
2502
|
-
internal.init(this, options, instance$
|
|
2502
|
+
internal.init(this, options, instance$m, create_fragment$m, internal.safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$h);
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
2505
|
|
|
2506
|
-
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.
|
|
2506
|
+
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.48.0 */
|
|
2507
2507
|
|
|
2508
|
-
function add_css$
|
|
2508
|
+
function add_css$g(target) {
|
|
2509
2509
|
internal.append_styles(target, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
|
|
2510
2510
|
}
|
|
2511
2511
|
|
|
@@ -2582,7 +2582,7 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
2584
|
|
|
2585
|
-
function create_fragment$
|
|
2585
|
+
function create_fragment$l(ctx) {
|
|
2586
2586
|
let div;
|
|
2587
2587
|
let each_blocks = [];
|
|
2588
2588
|
let each_1_lookup = new Map();
|
|
@@ -2662,7 +2662,7 @@ function create_fragment$k(ctx) {
|
|
|
2662
2662
|
const padding = 1000;
|
|
2663
2663
|
const exteriorWallOffset = 180;
|
|
2664
2664
|
|
|
2665
|
-
function instance$
|
|
2665
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
2666
2666
|
let bounding;
|
|
2667
2667
|
let ruleLabelData;
|
|
2668
2668
|
let ruleLabelDataKeys;
|
|
@@ -2742,7 +2742,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
2742
2742
|
class RuleLabels extends internal.SvelteComponent {
|
|
2743
2743
|
constructor(options) {
|
|
2744
2744
|
super();
|
|
2745
|
-
internal.init(this, options, instance$
|
|
2745
|
+
internal.init(this, options, instance$l, create_fragment$l, internal.safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$g);
|
|
2746
2746
|
}
|
|
2747
2747
|
}
|
|
2748
2748
|
|
|
@@ -2797,9 +2797,9 @@ function getFloorIndexFromModelPosition(position, five) {
|
|
|
2797
2797
|
return floorIndex;
|
|
2798
2798
|
}
|
|
2799
2799
|
|
|
2800
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.
|
|
2800
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.48.0 */
|
|
2801
2801
|
|
|
2802
|
-
function create_fragment$
|
|
2802
|
+
function create_fragment$k(ctx) {
|
|
2803
2803
|
let path_1;
|
|
2804
2804
|
|
|
2805
2805
|
return {
|
|
@@ -2824,7 +2824,7 @@ function create_fragment$j(ctx) {
|
|
|
2824
2824
|
};
|
|
2825
2825
|
}
|
|
2826
2826
|
|
|
2827
|
-
function instance$
|
|
2827
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
2828
2828
|
let d;
|
|
2829
2829
|
let { path } = $$props;
|
|
2830
2830
|
|
|
@@ -2844,13 +2844,13 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
2844
2844
|
class RoomMaterial_0 extends internal.SvelteComponent {
|
|
2845
2845
|
constructor(options) {
|
|
2846
2846
|
super();
|
|
2847
|
-
internal.init(this, options, instance$
|
|
2847
|
+
internal.init(this, options, instance$k, create_fragment$k, internal.safe_not_equal, { path: 1 });
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
2850
2850
|
|
|
2851
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.
|
|
2851
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.48.0 */
|
|
2852
2852
|
|
|
2853
|
-
function create_fragment$
|
|
2853
|
+
function create_fragment$j(ctx) {
|
|
2854
2854
|
let defs;
|
|
2855
2855
|
let pattern;
|
|
2856
2856
|
let rect;
|
|
@@ -2911,7 +2911,7 @@ function create_fragment$i(ctx) {
|
|
|
2911
2911
|
|
|
2912
2912
|
const halfWidth = 6;
|
|
2913
2913
|
|
|
2914
|
-
function instance$
|
|
2914
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
2915
2915
|
let d;
|
|
2916
2916
|
let { path } = $$props;
|
|
2917
2917
|
const width = halfWidth * 2;
|
|
@@ -2933,13 +2933,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
2933
2933
|
class RoomMaterial_1 extends internal.SvelteComponent {
|
|
2934
2934
|
constructor(options) {
|
|
2935
2935
|
super();
|
|
2936
|
-
internal.init(this, options, instance$
|
|
2936
|
+
internal.init(this, options, instance$j, create_fragment$j, internal.safe_not_equal, { path: 3 });
|
|
2937
2937
|
}
|
|
2938
2938
|
}
|
|
2939
2939
|
|
|
2940
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.
|
|
2940
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.48.0 */
|
|
2941
2941
|
|
|
2942
|
-
function create_fragment$
|
|
2942
|
+
function create_fragment$i(ctx) {
|
|
2943
2943
|
let defs;
|
|
2944
2944
|
let pattern0;
|
|
2945
2945
|
let rect0;
|
|
@@ -3040,7 +3040,7 @@ function create_fragment$h(ctx) {
|
|
|
3040
3040
|
};
|
|
3041
3041
|
}
|
|
3042
3042
|
|
|
3043
|
-
function instance$
|
|
3043
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
3044
3044
|
let d;
|
|
3045
3045
|
let { path } = $$props;
|
|
3046
3046
|
|
|
@@ -3060,13 +3060,13 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3060
3060
|
class RoomMaterial_2 extends internal.SvelteComponent {
|
|
3061
3061
|
constructor(options) {
|
|
3062
3062
|
super();
|
|
3063
|
-
internal.init(this, options, instance$
|
|
3063
|
+
internal.init(this, options, instance$i, create_fragment$i, internal.safe_not_equal, { path: 1 });
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
|
|
3067
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.
|
|
3067
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.48.0 */
|
|
3068
3068
|
|
|
3069
|
-
function add_css$
|
|
3069
|
+
function add_css$f(target) {
|
|
3070
3070
|
internal.append_styles(target, "svelte-1dykexu", ".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}");
|
|
3071
3071
|
}
|
|
3072
3072
|
|
|
@@ -3077,7 +3077,7 @@ function get_each_context$8(ctx, list, i) {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
|
|
3079
3079
|
// (19:6) {:else}
|
|
3080
|
-
function create_else_block$
|
|
3080
|
+
function create_else_block$2(ctx) {
|
|
3081
3081
|
let roommaterial_1;
|
|
3082
3082
|
let current;
|
|
3083
3083
|
roommaterial_1 = new RoomMaterial_1({ props: { path: /*room*/ ctx[5].path } });
|
|
@@ -3111,7 +3111,7 @@ function create_else_block$1(ctx) {
|
|
|
3111
3111
|
}
|
|
3112
3112
|
|
|
3113
3113
|
// (17:37)
|
|
3114
|
-
function create_if_block_1$
|
|
3114
|
+
function create_if_block_1$4(ctx) {
|
|
3115
3115
|
let roommaterial_2;
|
|
3116
3116
|
let current;
|
|
3117
3117
|
roommaterial_2 = new RoomMaterial_2({ props: { path: /*room*/ ctx[5].path } });
|
|
@@ -3184,7 +3184,7 @@ function create_each_block$8(ctx) {
|
|
|
3184
3184
|
let current_block_type_index;
|
|
3185
3185
|
let if_block;
|
|
3186
3186
|
let current;
|
|
3187
|
-
const if_block_creators = [create_if_block$7, create_if_block_1$
|
|
3187
|
+
const if_block_creators = [create_if_block$7, create_if_block_1$4, create_else_block$2];
|
|
3188
3188
|
const if_blocks = [];
|
|
3189
3189
|
|
|
3190
3190
|
function select_block_type(ctx, dirty) {
|
|
@@ -3253,7 +3253,7 @@ function create_each_block$8(ctx) {
|
|
|
3253
3253
|
};
|
|
3254
3254
|
}
|
|
3255
3255
|
|
|
3256
|
-
function create_fragment$
|
|
3256
|
+
function create_fragment$h(ctx) {
|
|
3257
3257
|
let div;
|
|
3258
3258
|
let current;
|
|
3259
3259
|
let each_value = /*rooms*/ ctx[0];
|
|
@@ -3339,7 +3339,7 @@ function create_fragment$g(ctx) {
|
|
|
3339
3339
|
};
|
|
3340
3340
|
}
|
|
3341
3341
|
|
|
3342
|
-
function instance$
|
|
3342
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
3343
3343
|
let rooms;
|
|
3344
3344
|
let { floorIndex } = $$props;
|
|
3345
3345
|
let { floorplanData } = $$props;
|
|
@@ -3365,17 +3365,17 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
3365
3365
|
class RoomMaterial extends internal.SvelteComponent {
|
|
3366
3366
|
constructor(options) {
|
|
3367
3367
|
super();
|
|
3368
|
-
internal.init(this, options, instance$
|
|
3368
|
+
internal.init(this, options, instance$h, create_fragment$h, internal.safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$f);
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
3371
|
|
|
3372
|
-
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.
|
|
3372
|
+
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.48.0 */
|
|
3373
3373
|
|
|
3374
|
-
function add_css$
|
|
3374
|
+
function add_css$e(target) {
|
|
3375
3375
|
internal.append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
3376
3376
|
}
|
|
3377
3377
|
|
|
3378
|
-
function create_fragment$
|
|
3378
|
+
function create_fragment$g(ctx) {
|
|
3379
3379
|
let path;
|
|
3380
3380
|
let mounted;
|
|
3381
3381
|
let dispose;
|
|
@@ -3410,7 +3410,7 @@ function create_fragment$f(ctx) {
|
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
3412
|
|
|
3413
|
-
function instance$
|
|
3413
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
3414
3414
|
let { room } = $$props;
|
|
3415
3415
|
let { floorplanData } = $$props;
|
|
3416
3416
|
let { hoveredRoom } = $$props;
|
|
@@ -3446,22 +3446,22 @@ class Room extends internal.SvelteComponent {
|
|
|
3446
3446
|
internal.init(
|
|
3447
3447
|
this,
|
|
3448
3448
|
options,
|
|
3449
|
-
instance$
|
|
3450
|
-
create_fragment$
|
|
3449
|
+
instance$g,
|
|
3450
|
+
create_fragment$g,
|
|
3451
3451
|
internal.safe_not_equal,
|
|
3452
3452
|
{
|
|
3453
3453
|
room: 3,
|
|
3454
3454
|
floorplanData: 4,
|
|
3455
3455
|
hoveredRoom: 5
|
|
3456
3456
|
},
|
|
3457
|
-
add_css$
|
|
3457
|
+
add_css$e
|
|
3458
3458
|
);
|
|
3459
3459
|
}
|
|
3460
3460
|
}
|
|
3461
3461
|
|
|
3462
|
-
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.
|
|
3462
|
+
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.48.0 */
|
|
3463
3463
|
|
|
3464
|
-
function add_css$
|
|
3464
|
+
function add_css$d(target) {
|
|
3465
3465
|
internal.append_styles(target, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
|
|
3466
3466
|
}
|
|
3467
3467
|
|
|
@@ -3537,7 +3537,7 @@ function create_each_block$7(key_1, ctx) {
|
|
|
3537
3537
|
};
|
|
3538
3538
|
}
|
|
3539
3539
|
|
|
3540
|
-
function create_fragment$
|
|
3540
|
+
function create_fragment$f(ctx) {
|
|
3541
3541
|
let div;
|
|
3542
3542
|
let svg;
|
|
3543
3543
|
let each_blocks = [];
|
|
@@ -3611,7 +3611,7 @@ function create_fragment$e(ctx) {
|
|
|
3611
3611
|
};
|
|
3612
3612
|
}
|
|
3613
3613
|
|
|
3614
|
-
function instance$
|
|
3614
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
3615
3615
|
let { floorIndex } = $$props;
|
|
3616
3616
|
let { floorplanData } = $$props;
|
|
3617
3617
|
let { hoveredRoom } = $$props;
|
|
@@ -3634,22 +3634,22 @@ class RoomHighlight extends internal.SvelteComponent {
|
|
|
3634
3634
|
internal.init(
|
|
3635
3635
|
this,
|
|
3636
3636
|
options,
|
|
3637
|
-
instance$
|
|
3638
|
-
create_fragment$
|
|
3637
|
+
instance$f,
|
|
3638
|
+
create_fragment$f,
|
|
3639
3639
|
internal.safe_not_equal,
|
|
3640
3640
|
{
|
|
3641
3641
|
floorIndex: 0,
|
|
3642
3642
|
floorplanData: 1,
|
|
3643
3643
|
hoveredRoom: 2
|
|
3644
3644
|
},
|
|
3645
|
-
add_css$
|
|
3645
|
+
add_css$d
|
|
3646
3646
|
);
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
3649
|
|
|
3650
|
-
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.
|
|
3650
|
+
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.48.0 */
|
|
3651
3651
|
|
|
3652
|
-
function add_css$
|
|
3652
|
+
function add_css$c(target) {
|
|
3653
3653
|
internal.append_styles(target, "svelte-bl8zrz", ".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}");
|
|
3654
3654
|
}
|
|
3655
3655
|
|
|
@@ -3711,7 +3711,7 @@ function create_if_block_2(ctx) {
|
|
|
3711
3711
|
}
|
|
3712
3712
|
|
|
3713
3713
|
// (24:2) {#if roomLabelsEnable}
|
|
3714
|
-
function create_if_block_1$
|
|
3714
|
+
function create_if_block_1$3(ctx) {
|
|
3715
3715
|
let roomlabels;
|
|
3716
3716
|
let current;
|
|
3717
3717
|
|
|
@@ -3826,7 +3826,7 @@ function create_if_block$6(ctx) {
|
|
|
3826
3826
|
};
|
|
3827
3827
|
}
|
|
3828
3828
|
|
|
3829
|
-
function create_fragment$
|
|
3829
|
+
function create_fragment$e(ctx) {
|
|
3830
3830
|
let div;
|
|
3831
3831
|
let roommaterial;
|
|
3832
3832
|
let t0;
|
|
@@ -3867,7 +3867,7 @@ function create_fragment$d(ctx) {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
|
|
3869
3869
|
baseimage = new BaseImage({ props: baseimage_props });
|
|
3870
|
-
let if_block1 = /*roomLabelsEnable*/ ctx[3] && create_if_block_1$
|
|
3870
|
+
let if_block1 = /*roomLabelsEnable*/ ctx[3] && create_if_block_1$3(ctx);
|
|
3871
3871
|
let if_block2 = /*ruleLabelsEnable*/ ctx[4] && create_if_block$6(ctx);
|
|
3872
3872
|
|
|
3873
3873
|
return {
|
|
@@ -3954,7 +3954,7 @@ function create_fragment$d(ctx) {
|
|
|
3954
3954
|
internal.transition_in(if_block1, 1);
|
|
3955
3955
|
}
|
|
3956
3956
|
} else {
|
|
3957
|
-
if_block1 = create_if_block_1$
|
|
3957
|
+
if_block1 = create_if_block_1$3(ctx);
|
|
3958
3958
|
if_block1.c();
|
|
3959
3959
|
internal.transition_in(if_block1, 1);
|
|
3960
3960
|
if_block1.m(div, t3);
|
|
@@ -4026,7 +4026,7 @@ function create_fragment$d(ctx) {
|
|
|
4026
4026
|
};
|
|
4027
4027
|
}
|
|
4028
4028
|
|
|
4029
|
-
function instance$
|
|
4029
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
4030
4030
|
let { isCurrent } = $$props;
|
|
4031
4031
|
let { floorIndex } = $$props;
|
|
4032
4032
|
let { hoverEnable } = $$props;
|
|
@@ -4068,8 +4068,8 @@ class CurrentFloor$1 extends internal.SvelteComponent {
|
|
|
4068
4068
|
internal.init(
|
|
4069
4069
|
this,
|
|
4070
4070
|
options,
|
|
4071
|
-
instance$
|
|
4072
|
-
create_fragment$
|
|
4071
|
+
instance$e,
|
|
4072
|
+
create_fragment$e,
|
|
4073
4073
|
internal.safe_not_equal,
|
|
4074
4074
|
{
|
|
4075
4075
|
isCurrent: 0,
|
|
@@ -4081,14 +4081,14 @@ class CurrentFloor$1 extends internal.SvelteComponent {
|
|
|
4081
4081
|
getLabelElement: 6,
|
|
4082
4082
|
adaptiveRoomLabelVisibleEnable: 7
|
|
4083
4083
|
},
|
|
4084
|
-
add_css$
|
|
4084
|
+
add_css$c
|
|
4085
4085
|
);
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
|
|
4089
|
-
/* src/floorplan/Components/Main.svelte generated by Svelte v3.
|
|
4089
|
+
/* src/floorplan/Components/Main.svelte generated by Svelte v3.48.0 */
|
|
4090
4090
|
|
|
4091
|
-
function add_css$
|
|
4091
|
+
function add_css$b(target) {
|
|
4092
4092
|
internal.append_styles(target, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
|
|
4093
4093
|
}
|
|
4094
4094
|
|
|
@@ -4133,7 +4133,7 @@ function create_if_block$5(ctx) {
|
|
|
4133
4133
|
}
|
|
4134
4134
|
|
|
4135
4135
|
camera = new Camera$1({ props: camera_props });
|
|
4136
|
-
let if_block = /*compassEnable*/ ctx[6] && create_if_block_1$
|
|
4136
|
+
let if_block = /*compassEnable*/ ctx[6] && create_if_block_1$2(ctx);
|
|
4137
4137
|
|
|
4138
4138
|
return {
|
|
4139
4139
|
c() {
|
|
@@ -4213,7 +4213,7 @@ function create_if_block$5(ctx) {
|
|
|
4213
4213
|
internal.transition_in(if_block, 1);
|
|
4214
4214
|
}
|
|
4215
4215
|
} else {
|
|
4216
|
-
if_block = create_if_block_1$
|
|
4216
|
+
if_block = create_if_block_1$2(ctx);
|
|
4217
4217
|
if_block.c();
|
|
4218
4218
|
internal.transition_in(if_block, 1);
|
|
4219
4219
|
if_block.m(div, null);
|
|
@@ -4347,7 +4347,7 @@ function create_each_block$6(ctx) {
|
|
|
4347
4347
|
}
|
|
4348
4348
|
|
|
4349
4349
|
// (39:4) {#if compassEnable}
|
|
4350
|
-
function create_if_block_1$
|
|
4350
|
+
function create_if_block_1$2(ctx) {
|
|
4351
4351
|
let compass;
|
|
4352
4352
|
let current;
|
|
4353
4353
|
|
|
@@ -4387,7 +4387,7 @@ function create_if_block_1$1(ctx) {
|
|
|
4387
4387
|
};
|
|
4388
4388
|
}
|
|
4389
4389
|
|
|
4390
|
-
function create_fragment$
|
|
4390
|
+
function create_fragment$d(ctx) {
|
|
4391
4391
|
let if_block_anchor;
|
|
4392
4392
|
let current;
|
|
4393
4393
|
let if_block = /*visible*/ ctx[1] && create_if_block$5(ctx);
|
|
@@ -4442,7 +4442,7 @@ function create_fragment$c(ctx) {
|
|
|
4442
4442
|
};
|
|
4443
4443
|
}
|
|
4444
4444
|
|
|
4445
|
-
function instance$
|
|
4445
|
+
function instance$d($$self, $$props, $$invalidate) {
|
|
4446
4446
|
let { duration = 0 } = $$props;
|
|
4447
4447
|
let { visible } = $$props;
|
|
4448
4448
|
let { northDesc } = $$props;
|
|
@@ -4500,8 +4500,8 @@ class Main$1 extends internal.SvelteComponent {
|
|
|
4500
4500
|
internal.init(
|
|
4501
4501
|
this,
|
|
4502
4502
|
options,
|
|
4503
|
-
instance$
|
|
4504
|
-
create_fragment$
|
|
4503
|
+
instance$d,
|
|
4504
|
+
create_fragment$d,
|
|
4505
4505
|
internal.safe_not_equal,
|
|
4506
4506
|
{
|
|
4507
4507
|
duration: 0,
|
|
@@ -4519,7 +4519,7 @@ class Main$1 extends internal.SvelteComponent {
|
|
|
4519
4519
|
getLabelElement: 12,
|
|
4520
4520
|
adaptiveRoomLabelVisibleEnable: 13
|
|
4521
4521
|
},
|
|
4522
|
-
add_css$
|
|
4522
|
+
add_css$b
|
|
4523
4523
|
);
|
|
4524
4524
|
}
|
|
4525
4525
|
}
|
|
@@ -5280,13 +5280,13 @@ function throttle(func, wait = 200) {
|
|
|
5280
5280
|
};
|
|
5281
5281
|
}
|
|
5282
5282
|
|
|
5283
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.
|
|
5283
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.48.0 */
|
|
5284
5284
|
|
|
5285
|
-
function add_css$
|
|
5285
|
+
function add_css$a(target) {
|
|
5286
5286
|
internal.append_styles(target, "svelte-1ty3s4p", ".plugin-radar__camera-wrapper.svelte-1ty3s4p{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1ty3s4p{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1ty3s4p{position:absolute;left:-0.78125rem;top:-0.78125rem;width:0.88542rem;height:0.88542rem;transform-origin:0.78125rem 0.78125rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
|
|
5287
5287
|
}
|
|
5288
5288
|
|
|
5289
|
-
function create_fragment$
|
|
5289
|
+
function create_fragment$c(ctx) {
|
|
5290
5290
|
let div2;
|
|
5291
5291
|
let div1;
|
|
5292
5292
|
let div0;
|
|
@@ -5336,7 +5336,7 @@ function getCameraRotateTransform(longitude) {
|
|
|
5336
5336
|
return `rotate(${rotate}deg)`;
|
|
5337
5337
|
}
|
|
5338
5338
|
|
|
5339
|
-
function instance$
|
|
5339
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
5340
5340
|
let positionTransform;
|
|
5341
5341
|
let rotateTransform;
|
|
5342
5342
|
let { five } = $$props;
|
|
@@ -5416,8 +5416,8 @@ class Camera extends internal.SvelteComponent {
|
|
|
5416
5416
|
internal.init(
|
|
5417
5417
|
this,
|
|
5418
5418
|
options,
|
|
5419
|
-
instance$
|
|
5420
|
-
create_fragment$
|
|
5419
|
+
instance$c,
|
|
5420
|
+
create_fragment$c,
|
|
5421
5421
|
internal.safe_not_equal,
|
|
5422
5422
|
{
|
|
5423
5423
|
five: 3,
|
|
@@ -5425,14 +5425,14 @@ class Camera extends internal.SvelteComponent {
|
|
|
5425
5425
|
floorplanData: 5,
|
|
5426
5426
|
cameraImageUrl: 0
|
|
5427
5427
|
},
|
|
5428
|
-
add_css$
|
|
5428
|
+
add_css$a
|
|
5429
5429
|
);
|
|
5430
5430
|
}
|
|
5431
5431
|
}
|
|
5432
5432
|
|
|
5433
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.
|
|
5433
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.48.0 */
|
|
5434
5434
|
|
|
5435
|
-
function add_css$
|
|
5435
|
+
function add_css$9(target) {
|
|
5436
5436
|
internal.append_styles(target, "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%)}");
|
|
5437
5437
|
}
|
|
5438
5438
|
|
|
@@ -5502,7 +5502,7 @@ function create_each_block$5(key_1, ctx) {
|
|
|
5502
5502
|
};
|
|
5503
5503
|
}
|
|
5504
5504
|
|
|
5505
|
-
function create_fragment$
|
|
5505
|
+
function create_fragment$b(ctx) {
|
|
5506
5506
|
let div;
|
|
5507
5507
|
let each_blocks = [];
|
|
5508
5508
|
let each_1_lookup = new Map();
|
|
@@ -5550,7 +5550,7 @@ function create_fragment$a(ctx) {
|
|
|
5550
5550
|
};
|
|
5551
5551
|
}
|
|
5552
5552
|
|
|
5553
|
-
function instance$
|
|
5553
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
5554
5554
|
let { extraObjects = [] } = $$props;
|
|
5555
5555
|
|
|
5556
5556
|
$$self.$$set = $$props => {
|
|
@@ -5563,11 +5563,11 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
5563
5563
|
class ExtraObjects extends internal.SvelteComponent {
|
|
5564
5564
|
constructor(options) {
|
|
5565
5565
|
super();
|
|
5566
|
-
internal.init(this, options, instance$
|
|
5566
|
+
internal.init(this, options, instance$b, create_fragment$b, internal.safe_not_equal, { extraObjects: 0 }, add_css$9);
|
|
5567
5567
|
}
|
|
5568
5568
|
}
|
|
5569
5569
|
|
|
5570
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.
|
|
5570
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.48.0 */
|
|
5571
5571
|
|
|
5572
5572
|
function create_if_block$4(ctx) {
|
|
5573
5573
|
let highlight;
|
|
@@ -5629,7 +5629,7 @@ function create_if_block$4(ctx) {
|
|
|
5629
5629
|
};
|
|
5630
5630
|
}
|
|
5631
5631
|
|
|
5632
|
-
function create_fragment$
|
|
5632
|
+
function create_fragment$a(ctx) {
|
|
5633
5633
|
let baseimage;
|
|
5634
5634
|
let t0;
|
|
5635
5635
|
let extraobjects;
|
|
@@ -5740,7 +5740,7 @@ function create_fragment$9(ctx) {
|
|
|
5740
5740
|
};
|
|
5741
5741
|
}
|
|
5742
5742
|
|
|
5743
|
-
function instance$
|
|
5743
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
5744
5744
|
let currentFloorExtraObjects;
|
|
5745
5745
|
let { five } = $$props;
|
|
5746
5746
|
let { pxmm } = $$props;
|
|
@@ -5783,7 +5783,7 @@ class CurrentFloor extends internal.SvelteComponent {
|
|
|
5783
5783
|
constructor(options) {
|
|
5784
5784
|
super();
|
|
5785
5785
|
|
|
5786
|
-
internal.init(this, options, instance$
|
|
5786
|
+
internal.init(this, options, instance$a, create_fragment$a, internal.safe_not_equal, {
|
|
5787
5787
|
five: 0,
|
|
5788
5788
|
pxmm: 1,
|
|
5789
5789
|
floorIndex: 2,
|
|
@@ -5794,9 +5794,9 @@ class CurrentFloor extends internal.SvelteComponent {
|
|
|
5794
5794
|
}
|
|
5795
5795
|
}
|
|
5796
5796
|
|
|
5797
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.
|
|
5797
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.48.0 */
|
|
5798
5798
|
|
|
5799
|
-
function add_css$
|
|
5799
|
+
function add_css$8(target) {
|
|
5800
5800
|
internal.append_styles(target, "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}");
|
|
5801
5801
|
}
|
|
5802
5802
|
|
|
@@ -5805,7 +5805,7 @@ function create_if_block$3(ctx) {
|
|
|
5805
5805
|
let div;
|
|
5806
5806
|
let div_resize_listener;
|
|
5807
5807
|
let current;
|
|
5808
|
-
let if_block = /*clientWidth*/ ctx[6] !== 0 && create_if_block_1(ctx);
|
|
5808
|
+
let if_block = /*clientWidth*/ ctx[6] !== 0 && create_if_block_1$1(ctx);
|
|
5809
5809
|
|
|
5810
5810
|
return {
|
|
5811
5811
|
c() {
|
|
@@ -5829,7 +5829,7 @@ function create_if_block$3(ctx) {
|
|
|
5829
5829
|
internal.transition_in(if_block, 1);
|
|
5830
5830
|
}
|
|
5831
5831
|
} else {
|
|
5832
|
-
if_block = create_if_block_1(ctx);
|
|
5832
|
+
if_block = create_if_block_1$1(ctx);
|
|
5833
5833
|
if_block.c();
|
|
5834
5834
|
internal.transition_in(if_block, 1);
|
|
5835
5835
|
if_block.m(div, null);
|
|
@@ -5862,7 +5862,7 @@ function create_if_block$3(ctx) {
|
|
|
5862
5862
|
}
|
|
5863
5863
|
|
|
5864
5864
|
// (43:4) {#if clientWidth !== 0}
|
|
5865
|
-
function create_if_block_1(ctx) {
|
|
5865
|
+
function create_if_block_1$1(ctx) {
|
|
5866
5866
|
let div;
|
|
5867
5867
|
let currentfloor;
|
|
5868
5868
|
let t;
|
|
@@ -5980,7 +5980,7 @@ function create_if_block_1(ctx) {
|
|
|
5980
5980
|
};
|
|
5981
5981
|
}
|
|
5982
5982
|
|
|
5983
|
-
function create_fragment$
|
|
5983
|
+
function create_fragment$9(ctx) {
|
|
5984
5984
|
let if_block_anchor;
|
|
5985
5985
|
let current;
|
|
5986
5986
|
let if_block = /*visible*/ ctx[1] && create_if_block$3(ctx);
|
|
@@ -6035,7 +6035,7 @@ function create_fragment$8(ctx) {
|
|
|
6035
6035
|
};
|
|
6036
6036
|
}
|
|
6037
6037
|
|
|
6038
|
-
function instance$
|
|
6038
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
6039
6039
|
let { five } = $$props;
|
|
6040
6040
|
let { visible } = $$props;
|
|
6041
6041
|
let { hoverEnable } = $$props;
|
|
@@ -6121,8 +6121,8 @@ class Main extends internal.SvelteComponent {
|
|
|
6121
6121
|
internal.init(
|
|
6122
6122
|
this,
|
|
6123
6123
|
options,
|
|
6124
|
-
instance$
|
|
6125
|
-
create_fragment$
|
|
6124
|
+
instance$9,
|
|
6125
|
+
create_fragment$9,
|
|
6126
6126
|
internal.safe_not_equal,
|
|
6127
6127
|
{
|
|
6128
6128
|
five: 0,
|
|
@@ -6132,7 +6132,7 @@ class Main extends internal.SvelteComponent {
|
|
|
6132
6132
|
cameraImageUrl: 4,
|
|
6133
6133
|
extraObjects: 5
|
|
6134
6134
|
},
|
|
6135
|
-
add_css$
|
|
6135
|
+
add_css$8
|
|
6136
6136
|
);
|
|
6137
6137
|
}
|
|
6138
6138
|
}
|
|
@@ -7990,7 +7990,7 @@ const PanoRulerStyle = `<style type="text/css">
|
|
|
7990
7990
|
</style>
|
|
7991
7991
|
`;
|
|
7992
7992
|
|
|
7993
|
-
const getDistance = (p1, p2) => {
|
|
7993
|
+
const getDistance$1 = (p1, p2) => {
|
|
7994
7994
|
return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
|
|
7995
7995
|
};
|
|
7996
7996
|
const getRoomHeightInfo = (roomInfo, five) => {
|
|
@@ -8097,7 +8097,7 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
8097
8097
|
y: position.y,
|
|
8098
8098
|
z: position.z,
|
|
8099
8099
|
};
|
|
8100
|
-
const distance = getDistance({ x, z }, observerPoint);
|
|
8100
|
+
const distance = getDistance$1({ x, z }, observerPoint);
|
|
8101
8101
|
if (medianFloorHeight) {
|
|
8102
8102
|
// 取最近点时排除高度与房间平均高度差大于0.3米的点
|
|
8103
8103
|
if (distance < minDistance && Math.abs(observerPoint.y - medianFloorHeight) < 0.3) {
|
|
@@ -8377,9 +8377,9 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
8377
8377
|
};
|
|
8378
8378
|
};
|
|
8379
8379
|
|
|
8380
|
-
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.
|
|
8380
|
+
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.48.0 */
|
|
8381
8381
|
|
|
8382
|
-
function add_css$
|
|
8382
|
+
function add_css$7(target) {
|
|
8383
8383
|
internal.append_styles(target, "svelte-qy4ud2", ".PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2.svelte-qy4ud2::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;-webkit-animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;animation:svelte-qy4ud2-viewport-rule-point 0.1s 1.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-qy4ud2 em.svelte-qy4ud2{display:block;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-qy4ud2.svelte-qy4ud2{display:flex;height:0.0625rem;-webkit-animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;animation:svelte-qy4ud2-viewport-rule-line 0.5s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;align-items:center}.em-solid.svelte-qy4ud2.svelte-qy4ud2{height:100%;background:#ffffff}.em-dotted.svelte-qy4ud2.svelte-qy4ud2{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-qy4ud2.svelte-qy4ud2{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-qy4ud2.svelte-qy4ud2{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;-webkit-animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;animation:svelte-qy4ud2-viewport-rule-label 0.25s ease 1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@-webkit-keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-qy4ud2-viewport-rule-line{0%{width:0%}100%{width:100%}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@-webkit-keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}@keyframes svelte-qy4ud2-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}");
|
|
8384
8384
|
}
|
|
8385
8385
|
|
|
@@ -8390,7 +8390,7 @@ function get_each_context$4(ctx, list, i) {
|
|
|
8390
8390
|
}
|
|
8391
8391
|
|
|
8392
8392
|
// (28:2) {:else}
|
|
8393
|
-
function create_else_block(ctx) {
|
|
8393
|
+
function create_else_block$1(ctx) {
|
|
8394
8394
|
let div;
|
|
8395
8395
|
let each_value = /*rulerItemProp*/ ctx[0].children;
|
|
8396
8396
|
let each_blocks = [];
|
|
@@ -8517,7 +8517,7 @@ function create_each_block$4(ctx) {
|
|
|
8517
8517
|
};
|
|
8518
8518
|
}
|
|
8519
8519
|
|
|
8520
|
-
function create_fragment$
|
|
8520
|
+
function create_fragment$8(ctx) {
|
|
8521
8521
|
let div2;
|
|
8522
8522
|
let t0;
|
|
8523
8523
|
let div1;
|
|
@@ -8533,7 +8533,7 @@ function create_fragment$7(ctx) {
|
|
|
8533
8533
|
|
|
8534
8534
|
function select_block_type(ctx, dirty) {
|
|
8535
8535
|
if (/*rulerItemProp*/ ctx[0].children.length === 0) return create_if_block$2;
|
|
8536
|
-
return create_else_block;
|
|
8536
|
+
return create_else_block$1;
|
|
8537
8537
|
}
|
|
8538
8538
|
|
|
8539
8539
|
let current_block_type = select_block_type(ctx);
|
|
@@ -8631,7 +8631,7 @@ function create_fragment$7(ctx) {
|
|
|
8631
8631
|
};
|
|
8632
8632
|
}
|
|
8633
8633
|
|
|
8634
|
-
function instance$
|
|
8634
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
8635
8635
|
let vars;
|
|
8636
8636
|
let { rulerItemProp } = $$props;
|
|
8637
8637
|
let _visible = true;
|
|
@@ -8666,11 +8666,11 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
8666
8666
|
class RulerItem extends internal.SvelteComponent {
|
|
8667
8667
|
constructor(options) {
|
|
8668
8668
|
super();
|
|
8669
|
-
internal.init(this, options, instance$
|
|
8669
|
+
internal.init(this, options, instance$8, create_fragment$8, internal.safe_not_equal, { rulerItemProp: 0 }, add_css$7);
|
|
8670
8670
|
}
|
|
8671
8671
|
}
|
|
8672
8672
|
|
|
8673
|
-
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.
|
|
8673
|
+
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.48.0 */
|
|
8674
8674
|
|
|
8675
8675
|
function get_each_context$3(ctx, list, i) {
|
|
8676
8676
|
const child_ctx = ctx.slice();
|
|
@@ -8715,7 +8715,7 @@ function create_each_block$3(ctx) {
|
|
|
8715
8715
|
};
|
|
8716
8716
|
}
|
|
8717
8717
|
|
|
8718
|
-
function create_fragment$
|
|
8718
|
+
function create_fragment$7(ctx) {
|
|
8719
8719
|
let div;
|
|
8720
8720
|
let current;
|
|
8721
8721
|
let each_value = /*rulerItemProp*/ ctx[0];
|
|
@@ -8799,7 +8799,7 @@ function create_fragment$6(ctx) {
|
|
|
8799
8799
|
};
|
|
8800
8800
|
}
|
|
8801
8801
|
|
|
8802
|
-
function instance$
|
|
8802
|
+
function instance$7($$self, $$props, $$invalidate) {
|
|
8803
8803
|
var _a, _b, _c, _d;
|
|
8804
8804
|
let { five: five$1 } = $$props;
|
|
8805
8805
|
let { rulerDatas } = $$props;
|
|
@@ -9017,7 +9017,7 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
9017
9017
|
class RulerItems extends internal.SvelteComponent {
|
|
9018
9018
|
constructor(options) {
|
|
9019
9019
|
super();
|
|
9020
|
-
internal.init(this, options, instance$
|
|
9020
|
+
internal.init(this, options, instance$7, create_fragment$7, internal.safe_not_equal, { five: 1, rulerDatas: 2, options: 3 });
|
|
9021
9021
|
}
|
|
9022
9022
|
}
|
|
9023
9023
|
|
|
@@ -9256,7 +9256,7 @@ function tweenProgress(duration, easing = TWEEN__default["default"].Easing.Linea
|
|
|
9256
9256
|
return tween;
|
|
9257
9257
|
}
|
|
9258
9258
|
|
|
9259
|
-
const defaultBaseOptions = { userAction: true };
|
|
9259
|
+
const defaultBaseOptions$1 = { userAction: true };
|
|
9260
9260
|
class PanoCompassController extends Controller$4 {
|
|
9261
9261
|
constructor(five$1, config) {
|
|
9262
9262
|
super(five$1);
|
|
@@ -9543,7 +9543,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9543
9543
|
* 启用插件,响应用户操作并展示UI
|
|
9544
9544
|
* @param options
|
|
9545
9545
|
*/
|
|
9546
|
-
enable(options = defaultBaseOptions) {
|
|
9546
|
+
enable(options = defaultBaseOptions$1) {
|
|
9547
9547
|
this.setState({
|
|
9548
9548
|
enabled: true,
|
|
9549
9549
|
}, options);
|
|
@@ -9552,7 +9552,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9552
9552
|
* 禁用插件,禁止响应用户操作并隐藏UI
|
|
9553
9553
|
* @param options
|
|
9554
9554
|
*/
|
|
9555
|
-
disable(options = defaultBaseOptions) {
|
|
9555
|
+
disable(options = defaultBaseOptions$1) {
|
|
9556
9556
|
this.setState({
|
|
9557
9557
|
enabled: false,
|
|
9558
9558
|
}, options);
|
|
@@ -9563,7 +9563,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9563
9563
|
* @returns
|
|
9564
9564
|
* @todo 需要考虑动画
|
|
9565
9565
|
*/
|
|
9566
|
-
show(options = defaultBaseOptions) {
|
|
9566
|
+
show(options = defaultBaseOptions$1) {
|
|
9567
9567
|
if (!this.state.enabled)
|
|
9568
9568
|
return;
|
|
9569
9569
|
this.setState({
|
|
@@ -9577,7 +9577,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9577
9577
|
* @returns
|
|
9578
9578
|
* @todo 需要考虑动画
|
|
9579
9579
|
*/
|
|
9580
|
-
hide(options = defaultBaseOptions) {
|
|
9580
|
+
hide(options = defaultBaseOptions$1) {
|
|
9581
9581
|
if (!this.state.enabled)
|
|
9582
9582
|
return;
|
|
9583
9583
|
this.setState({
|
|
@@ -13748,9 +13748,9 @@ const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|
|
|
13748
13748
|
|
|
13749
13749
|
const currentTarget = store.writable(null);
|
|
13750
13750
|
|
|
13751
|
-
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.
|
|
13751
|
+
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.48.0 */
|
|
13752
13752
|
|
|
13753
|
-
function add_css$
|
|
13753
|
+
function add_css$6(target) {
|
|
13754
13754
|
internal.append_styles(target, "svelte-1kuu68s", ".PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-1kuu68s{transform:translate(-50%, -50%) scale(0.6);-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
13755
13755
|
}
|
|
13756
13756
|
|
|
@@ -13817,7 +13817,7 @@ function create_each_block$2(ctx) {
|
|
|
13817
13817
|
};
|
|
13818
13818
|
}
|
|
13819
13819
|
|
|
13820
|
-
function create_fragment$
|
|
13820
|
+
function create_fragment$6(ctx) {
|
|
13821
13821
|
let each_1_anchor;
|
|
13822
13822
|
let each_value = /*origins*/ ctx[0];
|
|
13823
13823
|
let each_blocks = [];
|
|
@@ -13874,7 +13874,7 @@ function create_fragment$5(ctx) {
|
|
|
13874
13874
|
};
|
|
13875
13875
|
}
|
|
13876
13876
|
|
|
13877
|
-
function instance$
|
|
13877
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
13878
13878
|
let { origins } = $$props;
|
|
13879
13879
|
|
|
13880
13880
|
const handleClick = id => {
|
|
@@ -13893,17 +13893,17 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
13893
13893
|
class Origins extends internal.SvelteComponent {
|
|
13894
13894
|
constructor(options) {
|
|
13895
13895
|
super();
|
|
13896
|
-
internal.init(this, options, instance$
|
|
13896
|
+
internal.init(this, options, instance$6, create_fragment$6, internal.safe_not_equal, { origins: 0 }, add_css$6);
|
|
13897
13897
|
}
|
|
13898
13898
|
}
|
|
13899
13899
|
|
|
13900
|
-
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.
|
|
13900
|
+
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.48.0 */
|
|
13901
13901
|
|
|
13902
|
-
function add_css$
|
|
13902
|
+
function add_css$5(target) {
|
|
13903
13903
|
internal.append_styles(target, "svelte-eb8bdm", ".PanoSpatialTagPlugin__tag-x.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm.svelte-eb8bdm{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-eb8bdm.svelte-eb8bdm{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm.svelte-eb8bdm{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line.svelte-eb8bdm{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm.svelte-eb8bdm{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-animate.svelte-eb8bdm{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-eb8bdm.svelte-eb8bdm{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-flagpole.svelte-eb8bdm{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-shadow.svelte-eb8bdm{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content.svelte-eb8bdm{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-content .svelte-eb8bdm{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line1.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-eb8bdm .PanoSpatialTagPlugin__tag-line2.svelte-eb8bdm{opacity:0.5;transform:translate(-50%, 0) scaleY(0);-webkit-animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;animation:svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@-webkit-keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-eb8bdm-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
13904
13904
|
}
|
|
13905
13905
|
|
|
13906
|
-
function create_fragment$
|
|
13906
|
+
function create_fragment$5(ctx) {
|
|
13907
13907
|
let div4;
|
|
13908
13908
|
let div0;
|
|
13909
13909
|
let t0;
|
|
@@ -14018,7 +14018,7 @@ function create_fragment$4(ctx) {
|
|
|
14018
14018
|
};
|
|
14019
14019
|
}
|
|
14020
14020
|
|
|
14021
|
-
function instance$
|
|
14021
|
+
function instance$5($$self, $$props, $$invalidate) {
|
|
14022
14022
|
let { id } = $$props;
|
|
14023
14023
|
let { upsideDown } = $$props;
|
|
14024
14024
|
let { content } = $$props;
|
|
@@ -14155,8 +14155,8 @@ class Tag extends internal.SvelteComponent {
|
|
|
14155
14155
|
internal.init(
|
|
14156
14156
|
this,
|
|
14157
14157
|
options,
|
|
14158
|
-
instance$
|
|
14159
|
-
create_fragment$
|
|
14158
|
+
instance$5,
|
|
14159
|
+
create_fragment$5,
|
|
14160
14160
|
internal.safe_not_equal,
|
|
14161
14161
|
{
|
|
14162
14162
|
id: 0,
|
|
@@ -14171,7 +14171,7 @@ class Tag extends internal.SvelteComponent {
|
|
|
14171
14171
|
events: 14,
|
|
14172
14172
|
hooks: 15
|
|
14173
14173
|
},
|
|
14174
|
-
add_css$
|
|
14174
|
+
add_css$5
|
|
14175
14175
|
);
|
|
14176
14176
|
}
|
|
14177
14177
|
}
|
|
@@ -14823,13 +14823,13 @@ exports.DISPLAY_STRATEGY_TYPE = void 0;
|
|
|
14823
14823
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14824
14824
|
})(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
|
|
14825
14825
|
|
|
14826
|
-
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
14826
|
+
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.48.0 */
|
|
14827
14827
|
|
|
14828
|
-
function add_css$
|
|
14828
|
+
function add_css$4(target) {
|
|
14829
14829
|
internal.append_styles(target, "svelte-n1c1kg", ".item-label-item.svelte-n1c1kg{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-n1c1kg{opacity:1;-webkit-animation:svelte-n1c1kg-fadeIn .3s ease-in;animation:svelte-n1c1kg-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-n1c1kg::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(0.83333rem);z-index:-1}.item-label-item__text-wrap.svelte-n1c1kg{padding:0.3125rem 0.3125rem 0;position:absolute;height:1.04167rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.52083rem;font-size:0.57292rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-n1c1kg{padding-bottom:0.20833rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:1px solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-n1c1kg{position:absolute;bottom:0;width:1px;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@-webkit-keyframes svelte-n1c1kg-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-n1c1kg-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
14830
14830
|
}
|
|
14831
14831
|
|
|
14832
|
-
function create_fragment$
|
|
14832
|
+
function create_fragment$4(ctx) {
|
|
14833
14833
|
let div2;
|
|
14834
14834
|
let div0;
|
|
14835
14835
|
let span;
|
|
@@ -14910,7 +14910,7 @@ function create_fragment$3(ctx) {
|
|
|
14910
14910
|
};
|
|
14911
14911
|
}
|
|
14912
14912
|
|
|
14913
|
-
function instance$
|
|
14913
|
+
function instance$4($$self, $$props, $$invalidate) {
|
|
14914
14914
|
let { itemLabel } = $$props;
|
|
14915
14915
|
let { hooks } = $$props;
|
|
14916
14916
|
|
|
@@ -14930,7 +14930,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
14930
14930
|
class ItemLabelItem$1 extends internal.SvelteComponent {
|
|
14931
14931
|
constructor(options) {
|
|
14932
14932
|
super();
|
|
14933
|
-
internal.init(this, options, instance$
|
|
14933
|
+
internal.init(this, options, instance$4, create_fragment$4, internal.safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$4);
|
|
14934
14934
|
}
|
|
14935
14935
|
}
|
|
14936
14936
|
|
|
@@ -14949,9 +14949,9 @@ function debounce(func, wait = 200) {
|
|
|
14949
14949
|
};
|
|
14950
14950
|
}
|
|
14951
14951
|
|
|
14952
|
-
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
14952
|
+
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.48.0 */
|
|
14953
14953
|
|
|
14954
|
-
function add_css$
|
|
14954
|
+
function add_css$3(target) {
|
|
14955
14955
|
internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
14956
14956
|
}
|
|
14957
14957
|
|
|
@@ -15010,7 +15010,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
15010
15010
|
};
|
|
15011
15011
|
}
|
|
15012
15012
|
|
|
15013
|
-
function create_fragment$
|
|
15013
|
+
function create_fragment$3(ctx) {
|
|
15014
15014
|
let div;
|
|
15015
15015
|
let each_blocks = [];
|
|
15016
15016
|
let each_1_lookup = new Map();
|
|
@@ -15090,7 +15090,7 @@ function create_fragment$2(ctx) {
|
|
|
15090
15090
|
let cssHeight = 26;
|
|
15091
15091
|
let basicWidth$1 = 11;
|
|
15092
15092
|
|
|
15093
|
-
function instance$
|
|
15093
|
+
function instance$3($$self, $$props, $$invalidate) {
|
|
15094
15094
|
const { Raycaster, Vector3 } = THREE__namespace;
|
|
15095
15095
|
let { five } = $$props;
|
|
15096
15096
|
let { modelOcclusionEnable } = $$props;
|
|
@@ -15292,8 +15292,8 @@ class ItemLabelComponent$1 extends internal.SvelteComponent {
|
|
|
15292
15292
|
internal.init(
|
|
15293
15293
|
this,
|
|
15294
15294
|
options,
|
|
15295
|
-
instance$
|
|
15296
|
-
create_fragment$
|
|
15295
|
+
instance$3,
|
|
15296
|
+
create_fragment$3,
|
|
15297
15297
|
internal.safe_not_equal,
|
|
15298
15298
|
{
|
|
15299
15299
|
five: 5,
|
|
@@ -15302,7 +15302,7 @@ class ItemLabelComponent$1 extends internal.SvelteComponent {
|
|
|
15302
15302
|
hooks: 0,
|
|
15303
15303
|
displayStrategyType: 8
|
|
15304
15304
|
},
|
|
15305
|
-
add_css$
|
|
15305
|
+
add_css$3
|
|
15306
15306
|
);
|
|
15307
15307
|
}
|
|
15308
15308
|
}
|
|
@@ -15714,55 +15714,16 @@ exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = void 0;
|
|
|
15714
15714
|
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
15715
15715
|
})(exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
|
|
15716
15716
|
|
|
15717
|
-
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
15718
|
-
|
|
15719
|
-
function add_css$1(target) {
|
|
15720
|
-
internal.append_styles(target, "svelte-dka7wz", ".item-label-item.svelte-dka7wz.svelte-dka7wz{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-animation:svelte-dka7wz-fadeIn .3s ease-in;animation:svelte-dka7wz-fadeIn .3s ease-in}.item-label-item.fold.svelte-dka7wz>.item-label-item__text-wrap.svelte-dka7wz{visibility:hidden}.item-label-item.fold.svelte-dka7wz>.item-label-item__bar.anchor.svelte-dka7wz{visibility:hidden}.item-label-item.fold.svelte-dka7wz>.item-label-item__bar.anchor.svelte-dka7wz:after{visibility:visible}.item-label-item__text-wrap.svelte-dka7wz.svelte-dka7wz{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:1.5px solid rgba(255, 255, 255, .65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.icon-wrap.svelte-dka7wz.svelte-dka7wz{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-dka7wz.svelte-dka7wz{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-dka7wz.svelte-dka7wz{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 1px;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-dka7wz.svelte-dka7wz{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-dka7wz.svelte-dka7wz{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-dka7wz.svelte-dka7wz{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-dka7wz.svelte-dka7wz:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url(\"//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png \");background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@-webkit-keyframes svelte-dka7wz-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-dka7wz-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
15721
|
-
}
|
|
15722
|
-
|
|
15723
|
-
// (21:2) {#if itemLabel.icon}
|
|
15724
|
-
function create_if_block$1(ctx) {
|
|
15725
|
-
let div1;
|
|
15726
|
-
let div0;
|
|
15727
|
-
let div0_style_value;
|
|
15728
|
-
let mounted;
|
|
15729
|
-
let dispose;
|
|
15730
|
-
|
|
15731
|
-
return {
|
|
15732
|
-
c() {
|
|
15733
|
-
div1 = internal.element("div");
|
|
15734
|
-
div0 = internal.element("div");
|
|
15735
|
-
internal.attr(div0, "class", "icon svelte-dka7wz");
|
|
15736
|
-
internal.attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`);
|
|
15737
|
-
internal.attr(div1, "class", "icon-wrap svelte-dka7wz");
|
|
15738
|
-
},
|
|
15739
|
-
m(target, anchor) {
|
|
15740
|
-
internal.insert(target, div1, anchor);
|
|
15741
|
-
internal.append(div1, div0);
|
|
15717
|
+
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.48.0 */
|
|
15742
15718
|
|
|
15743
|
-
|
|
15744
|
-
|
|
15745
|
-
mounted = true;
|
|
15746
|
-
}
|
|
15747
|
-
},
|
|
15748
|
-
p(ctx, dirty) {
|
|
15749
|
-
if (dirty & /*itemLabel*/ 1 && div0_style_value !== (div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`)) {
|
|
15750
|
-
internal.attr(div0, "style", div0_style_value);
|
|
15751
|
-
}
|
|
15752
|
-
},
|
|
15753
|
-
d(detaching) {
|
|
15754
|
-
if (detaching) internal.detach(div1);
|
|
15755
|
-
mounted = false;
|
|
15756
|
-
dispose();
|
|
15757
|
-
}
|
|
15758
|
-
};
|
|
15719
|
+
function add_css$2(target) {
|
|
15720
|
+
internal.append_styles(target, "svelte-1mppr0a", ".item-label-item.svelte-1mppr0a.svelte-1mppr0a{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-animation:svelte-1mppr0a-fadeIn .3s ease-in;animation:svelte-1mppr0a-fadeIn .3s ease-in}.item-label-item.fold.svelte-1mppr0a>.item-label-item__text-wrap.svelte-1mppr0a{visibility:hidden}.item-label-item.fold.svelte-1mppr0a>.item-label-item__bar.anchor.svelte-1mppr0a{visibility:hidden}.item-label-item.fold.svelte-1mppr0a>.item-label-item__bar.anchor.svelte-1mppr0a:after{visibility:visible}.item-label-item__text-wrap.svelte-1mppr0a.svelte-1mppr0a{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:1.5px solid rgba(255, 255, 255, .65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-1mppr0a.svelte-1mppr0a{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-1mppr0a.svelte-1mppr0a{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-1mppr0a.svelte-1mppr0a{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-1mppr0a.svelte-1mppr0a{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 1px;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-1mppr0a.svelte-1mppr0a{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-1mppr0a.svelte-1mppr0a{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-1mppr0a.svelte-1mppr0a{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-1mppr0a.svelte-1mppr0a:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url(\"//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png \");background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@-webkit-keyframes svelte-1mppr0a-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-1mppr0a-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
15759
15721
|
}
|
|
15760
15722
|
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
let div1;
|
|
15723
|
+
// (34:8) {:else}
|
|
15724
|
+
function create_else_block(ctx) {
|
|
15764
15725
|
let t0;
|
|
15765
|
-
let
|
|
15726
|
+
let div;
|
|
15766
15727
|
let span0;
|
|
15767
15728
|
let t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "";
|
|
15768
15729
|
let t1;
|
|
@@ -15770,66 +15731,40 @@ function create_fragment$1(ctx) {
|
|
|
15770
15731
|
let span1;
|
|
15771
15732
|
let t3_value = /*itemLabel*/ ctx[0].name + "";
|
|
15772
15733
|
let t3;
|
|
15773
|
-
let
|
|
15774
|
-
let div2;
|
|
15775
|
-
let div2_class_value;
|
|
15776
|
-
let div3_class_value;
|
|
15777
|
-
let mounted;
|
|
15778
|
-
let dispose;
|
|
15779
|
-
let if_block = /*itemLabel*/ ctx[0].icon && create_if_block$1(ctx);
|
|
15734
|
+
let if_block = /*itemLabel*/ ctx[0].icon && create_if_block_1(ctx);
|
|
15780
15735
|
|
|
15781
15736
|
return {
|
|
15782
15737
|
c() {
|
|
15783
|
-
div3 = internal.element("div");
|
|
15784
|
-
div1 = internal.element("div");
|
|
15785
15738
|
if (if_block) if_block.c();
|
|
15786
15739
|
t0 = internal.space();
|
|
15787
|
-
|
|
15740
|
+
div = internal.element("div");
|
|
15788
15741
|
span0 = internal.element("span");
|
|
15789
15742
|
t1 = internal.text(t1_value);
|
|
15790
15743
|
t2 = internal.space();
|
|
15791
15744
|
span1 = internal.element("span");
|
|
15792
15745
|
t3 = internal.text(t3_value);
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
internal.attr(
|
|
15796
|
-
internal.attr(span1, "class", "item-name svelte-dka7wz");
|
|
15797
|
-
internal.attr(div0, "class", "item-label-text svelte-dka7wz");
|
|
15798
|
-
internal.attr(div1, "class", "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__text-wrap")) + " svelte-dka7wz"));
|
|
15799
|
-
internal.set_style(div1, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15800
|
-
internal.attr(div2, "class", div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-dka7wz"));
|
|
15801
|
-
internal.set_style(div2, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15802
|
-
internal.attr(div3, "class", div3_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-dka7wz"));
|
|
15803
|
-
internal.set_style(div3, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
15804
|
-
internal.set_style(div3, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
15746
|
+
internal.attr(span0, "class", "item-model svelte-1mppr0a");
|
|
15747
|
+
internal.attr(span1, "class", "item-name svelte-1mppr0a");
|
|
15748
|
+
internal.attr(div, "class", "item-label-text svelte-1mppr0a");
|
|
15805
15749
|
},
|
|
15806
15750
|
m(target, anchor) {
|
|
15807
|
-
|
|
15808
|
-
internal.
|
|
15809
|
-
|
|
15810
|
-
internal.append(
|
|
15811
|
-
internal.append(div1, div0);
|
|
15812
|
-
internal.append(div0, span0);
|
|
15751
|
+
if (if_block) if_block.m(target, anchor);
|
|
15752
|
+
internal.insert(target, t0, anchor);
|
|
15753
|
+
internal.insert(target, div, anchor);
|
|
15754
|
+
internal.append(div, span0);
|
|
15813
15755
|
internal.append(span0, t1);
|
|
15814
|
-
internal.append(
|
|
15815
|
-
internal.append(
|
|
15756
|
+
internal.append(div, t2);
|
|
15757
|
+
internal.append(div, span1);
|
|
15816
15758
|
internal.append(span1, t3);
|
|
15817
|
-
internal.append(div3, t4);
|
|
15818
|
-
internal.append(div3, div2);
|
|
15819
|
-
|
|
15820
|
-
if (!mounted) {
|
|
15821
|
-
dispose = internal.listen(div1, "click", /*onClick*/ ctx[3]);
|
|
15822
|
-
mounted = true;
|
|
15823
|
-
}
|
|
15824
15759
|
},
|
|
15825
|
-
p(ctx,
|
|
15760
|
+
p(ctx, dirty) {
|
|
15826
15761
|
if (/*itemLabel*/ ctx[0].icon) {
|
|
15827
15762
|
if (if_block) {
|
|
15828
15763
|
if_block.p(ctx, dirty);
|
|
15829
15764
|
} else {
|
|
15830
|
-
if_block =
|
|
15765
|
+
if_block = create_if_block_1(ctx);
|
|
15831
15766
|
if_block.c();
|
|
15832
|
-
if_block.m(
|
|
15767
|
+
if_block.m(t0.parentNode, t0);
|
|
15833
15768
|
}
|
|
15834
15769
|
} else if (if_block) {
|
|
15835
15770
|
if_block.d(1);
|
|
@@ -15838,43 +15773,181 @@ function create_fragment$1(ctx) {
|
|
|
15838
15773
|
|
|
15839
15774
|
if (dirty & /*itemLabel*/ 1 && t1_value !== (t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "")) internal.set_data(t1, t1_value);
|
|
15840
15775
|
if (dirty & /*itemLabel*/ 1 && t3_value !== (t3_value = /*itemLabel*/ ctx[0].name + "")) internal.set_data(t3, t3_value);
|
|
15776
|
+
},
|
|
15777
|
+
d(detaching) {
|
|
15778
|
+
if (if_block) if_block.d(detaching);
|
|
15779
|
+
if (detaching) internal.detach(t0);
|
|
15780
|
+
if (detaching) internal.detach(div);
|
|
15781
|
+
}
|
|
15782
|
+
};
|
|
15783
|
+
}
|
|
15784
|
+
|
|
15785
|
+
// (32:8) {#if Boolean(typeof itemLabel.render === 'function')}
|
|
15786
|
+
function create_if_block$1(ctx) {
|
|
15787
|
+
let div;
|
|
15788
|
+
|
|
15789
|
+
return {
|
|
15790
|
+
c() {
|
|
15791
|
+
div = internal.element("div");
|
|
15792
|
+
},
|
|
15793
|
+
m(target, anchor) {
|
|
15794
|
+
internal.insert(target, div, anchor);
|
|
15795
|
+
/*div_binding*/ ctx[6](div);
|
|
15796
|
+
},
|
|
15797
|
+
p: internal.noop,
|
|
15798
|
+
d(detaching) {
|
|
15799
|
+
if (detaching) internal.detach(div);
|
|
15800
|
+
/*div_binding*/ ctx[6](null);
|
|
15801
|
+
}
|
|
15802
|
+
};
|
|
15803
|
+
}
|
|
15804
|
+
|
|
15805
|
+
// (35:12) {#if itemLabel.icon}
|
|
15806
|
+
function create_if_block_1(ctx) {
|
|
15807
|
+
let div1;
|
|
15808
|
+
let div0;
|
|
15809
|
+
let div0_style_value;
|
|
15810
|
+
let mounted;
|
|
15811
|
+
let dispose;
|
|
15812
|
+
|
|
15813
|
+
return {
|
|
15814
|
+
c() {
|
|
15815
|
+
div1 = internal.element("div");
|
|
15816
|
+
div0 = internal.element("div");
|
|
15817
|
+
internal.attr(div0, "class", "icon svelte-1mppr0a");
|
|
15818
|
+
internal.attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`);
|
|
15819
|
+
internal.attr(div1, "class", "icon-wrap svelte-1mppr0a");
|
|
15820
|
+
},
|
|
15821
|
+
m(target, anchor) {
|
|
15822
|
+
internal.insert(target, div1, anchor);
|
|
15823
|
+
internal.append(div1, div0);
|
|
15824
|
+
|
|
15825
|
+
if (!mounted) {
|
|
15826
|
+
dispose = internal.listen(div1, "click", /*click_handler*/ ctx[7]);
|
|
15827
|
+
mounted = true;
|
|
15828
|
+
}
|
|
15829
|
+
},
|
|
15830
|
+
p(ctx, dirty) {
|
|
15831
|
+
if (dirty & /*itemLabel*/ 1 && div0_style_value !== (div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`)) {
|
|
15832
|
+
internal.attr(div0, "style", div0_style_value);
|
|
15833
|
+
}
|
|
15834
|
+
},
|
|
15835
|
+
d(detaching) {
|
|
15836
|
+
if (detaching) internal.detach(div1);
|
|
15837
|
+
mounted = false;
|
|
15838
|
+
dispose();
|
|
15839
|
+
}
|
|
15840
|
+
};
|
|
15841
|
+
}
|
|
15842
|
+
|
|
15843
|
+
function create_fragment$2(ctx) {
|
|
15844
|
+
let div2;
|
|
15845
|
+
let div0;
|
|
15846
|
+
let show_if;
|
|
15847
|
+
let div0_class_value;
|
|
15848
|
+
let t;
|
|
15849
|
+
let div1;
|
|
15850
|
+
let div1_class_value;
|
|
15851
|
+
let div2_class_value;
|
|
15852
|
+
let mounted;
|
|
15853
|
+
let dispose;
|
|
15854
|
+
|
|
15855
|
+
function select_block_type(ctx, dirty) {
|
|
15856
|
+
if (dirty & /*itemLabel*/ 1) show_if = null;
|
|
15857
|
+
if (show_if == null) show_if = !!Boolean(typeof /*itemLabel*/ ctx[0].render === 'function');
|
|
15858
|
+
if (show_if) return create_if_block$1;
|
|
15859
|
+
return create_else_block;
|
|
15860
|
+
}
|
|
15861
|
+
|
|
15862
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
15863
|
+
let if_block = current_block_type(ctx);
|
|
15864
|
+
|
|
15865
|
+
return {
|
|
15866
|
+
c() {
|
|
15867
|
+
div2 = internal.element("div");
|
|
15868
|
+
div0 = internal.element("div");
|
|
15869
|
+
if_block.c();
|
|
15870
|
+
t = internal.space();
|
|
15871
|
+
div1 = internal.element("div");
|
|
15872
|
+
|
|
15873
|
+
internal.attr(div0, "class", div0_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__text-wrap", {
|
|
15874
|
+
'item-label-item__custom': Boolean(typeof /*itemLabel*/ ctx[0].render === 'function')
|
|
15875
|
+
})) + " svelte-1mppr0a"));
|
|
15876
|
+
|
|
15877
|
+
internal.set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15878
|
+
internal.attr(div1, "class", div1_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1mppr0a"));
|
|
15879
|
+
internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15880
|
+
internal.attr(div2, "class", div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-1mppr0a"));
|
|
15881
|
+
internal.set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
15882
|
+
internal.set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
15883
|
+
},
|
|
15884
|
+
m(target, anchor) {
|
|
15885
|
+
internal.insert(target, div2, anchor);
|
|
15886
|
+
internal.append(div2, div0);
|
|
15887
|
+
if_block.m(div0, null);
|
|
15888
|
+
internal.append(div2, t);
|
|
15889
|
+
internal.append(div2, div1);
|
|
15890
|
+
|
|
15891
|
+
if (!mounted) {
|
|
15892
|
+
dispose = internal.listen(div0, "click", /*onClick*/ ctx[4]);
|
|
15893
|
+
mounted = true;
|
|
15894
|
+
}
|
|
15895
|
+
},
|
|
15896
|
+
p(ctx, [dirty]) {
|
|
15897
|
+
if (current_block_type === (current_block_type = select_block_type(ctx, dirty)) && if_block) {
|
|
15898
|
+
if_block.p(ctx, dirty);
|
|
15899
|
+
} else {
|
|
15900
|
+
if_block.d(1);
|
|
15901
|
+
if_block = current_block_type(ctx);
|
|
15902
|
+
|
|
15903
|
+
if (if_block) {
|
|
15904
|
+
if_block.c();
|
|
15905
|
+
if_block.m(div0, null);
|
|
15906
|
+
}
|
|
15907
|
+
}
|
|
15908
|
+
|
|
15909
|
+
if (dirty & /*itemLabel*/ 1 && div0_class_value !== (div0_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__text-wrap", {
|
|
15910
|
+
'item-label-item__custom': Boolean(typeof /*itemLabel*/ ctx[0].render === 'function')
|
|
15911
|
+
})) + " svelte-1mppr0a"))) {
|
|
15912
|
+
internal.attr(div0, "class", div0_class_value);
|
|
15913
|
+
}
|
|
15841
15914
|
|
|
15842
15915
|
if (dirty & /*itemLabel*/ 1) {
|
|
15843
|
-
internal.set_style(
|
|
15916
|
+
internal.set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15844
15917
|
}
|
|
15845
15918
|
|
|
15846
|
-
if (dirty & /*anchorEnabled*/ 2 &&
|
|
15847
|
-
internal.attr(
|
|
15919
|
+
if (dirty & /*anchorEnabled*/ 2 && div1_class_value !== (div1_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1mppr0a"))) {
|
|
15920
|
+
internal.attr(div1, "class", div1_class_value);
|
|
15848
15921
|
}
|
|
15849
15922
|
|
|
15850
15923
|
if (dirty & /*itemLabel*/ 1) {
|
|
15851
|
-
internal.set_style(
|
|
15924
|
+
internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15852
15925
|
}
|
|
15853
15926
|
|
|
15854
|
-
if (dirty & /*itemLabel*/ 1 &&
|
|
15855
|
-
internal.attr(
|
|
15927
|
+
if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-1mppr0a"))) {
|
|
15928
|
+
internal.attr(div2, "class", div2_class_value);
|
|
15856
15929
|
}
|
|
15857
15930
|
|
|
15858
15931
|
if (dirty & /*itemLabel*/ 1) {
|
|
15859
|
-
internal.set_style(
|
|
15932
|
+
internal.set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
15860
15933
|
}
|
|
15861
15934
|
|
|
15862
15935
|
if (dirty & /*itemLabel*/ 1) {
|
|
15863
|
-
internal.set_style(
|
|
15936
|
+
internal.set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
15864
15937
|
}
|
|
15865
15938
|
},
|
|
15866
15939
|
i: internal.noop,
|
|
15867
15940
|
o: internal.noop,
|
|
15868
15941
|
d(detaching) {
|
|
15869
|
-
if (detaching) internal.detach(
|
|
15870
|
-
|
|
15942
|
+
if (detaching) internal.detach(div2);
|
|
15943
|
+
if_block.d();
|
|
15871
15944
|
mounted = false;
|
|
15872
15945
|
dispose();
|
|
15873
15946
|
}
|
|
15874
15947
|
};
|
|
15875
15948
|
}
|
|
15876
15949
|
|
|
15877
|
-
function instance$
|
|
15950
|
+
function instance$2($$self, $$props, $$invalidate) {
|
|
15878
15951
|
let { itemLabel } = $$props;
|
|
15879
15952
|
let { hooks } = $$props;
|
|
15880
15953
|
let { anchorEnabled } = $$props;
|
|
@@ -15885,16 +15958,50 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
15885
15958
|
hooks.emit('onLabelClick', itemLabel);
|
|
15886
15959
|
}
|
|
15887
15960
|
|
|
15961
|
+
let customElement;
|
|
15962
|
+
|
|
15963
|
+
function div_binding($$value) {
|
|
15964
|
+
internal.binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
15965
|
+
customElement = $$value;
|
|
15966
|
+
$$invalidate(3, customElement);
|
|
15967
|
+
});
|
|
15968
|
+
}
|
|
15969
|
+
|
|
15888
15970
|
const click_handler = e => onIconClick(itemLabel);
|
|
15889
15971
|
|
|
15890
15972
|
$$self.$$set = $$props => {
|
|
15891
15973
|
if ('itemLabel' in $$props) $$invalidate(0, itemLabel = $$props.itemLabel);
|
|
15892
|
-
if ('hooks' in $$props) $$invalidate(
|
|
15974
|
+
if ('hooks' in $$props) $$invalidate(5, hooks = $$props.hooks);
|
|
15893
15975
|
if ('anchorEnabled' in $$props) $$invalidate(1, anchorEnabled = $$props.anchorEnabled);
|
|
15894
15976
|
if ('onIconClick' in $$props) $$invalidate(2, onIconClick = $$props.onIconClick);
|
|
15895
15977
|
};
|
|
15896
15978
|
|
|
15897
|
-
|
|
15979
|
+
$$self.$$.update = () => {
|
|
15980
|
+
if ($$self.$$.dirty & /*itemLabel, customElement*/ 9) {
|
|
15981
|
+
{
|
|
15982
|
+
if (typeof itemLabel.render === 'function' && customElement) {
|
|
15983
|
+
if (customElement.children.length === 0) {
|
|
15984
|
+
const child = itemLabel.render(itemLabel);
|
|
15985
|
+
|
|
15986
|
+
if (child) {
|
|
15987
|
+
customElement.appendChild(child);
|
|
15988
|
+
}
|
|
15989
|
+
}
|
|
15990
|
+
}
|
|
15991
|
+
}
|
|
15992
|
+
}
|
|
15993
|
+
};
|
|
15994
|
+
|
|
15995
|
+
return [
|
|
15996
|
+
itemLabel,
|
|
15997
|
+
anchorEnabled,
|
|
15998
|
+
onIconClick,
|
|
15999
|
+
customElement,
|
|
16000
|
+
onClick,
|
|
16001
|
+
hooks,
|
|
16002
|
+
div_binding,
|
|
16003
|
+
click_handler
|
|
16004
|
+
];
|
|
15898
16005
|
}
|
|
15899
16006
|
|
|
15900
16007
|
class ItemLabelItem extends internal.SvelteComponent {
|
|
@@ -15904,16 +16011,16 @@ class ItemLabelItem extends internal.SvelteComponent {
|
|
|
15904
16011
|
internal.init(
|
|
15905
16012
|
this,
|
|
15906
16013
|
options,
|
|
15907
|
-
instance$
|
|
15908
|
-
create_fragment$
|
|
16014
|
+
instance$2,
|
|
16015
|
+
create_fragment$2,
|
|
15909
16016
|
internal.safe_not_equal,
|
|
15910
16017
|
{
|
|
15911
16018
|
itemLabel: 0,
|
|
15912
|
-
hooks:
|
|
16019
|
+
hooks: 5,
|
|
15913
16020
|
anchorEnabled: 1,
|
|
15914
16021
|
onIconClick: 2
|
|
15915
16022
|
},
|
|
15916
|
-
add_css$
|
|
16023
|
+
add_css$2
|
|
15917
16024
|
);
|
|
15918
16025
|
}
|
|
15919
16026
|
}
|
|
@@ -15956,9 +16063,9 @@ function transform2RenderData(data) {
|
|
|
15956
16063
|
return data.map(label => (Object.assign({ observerIndex: undefined, visible: false, isFold: false }, label)));
|
|
15957
16064
|
}
|
|
15958
16065
|
|
|
15959
|
-
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
16066
|
+
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.48.0 */
|
|
15960
16067
|
|
|
15961
|
-
function add_css(target) {
|
|
16068
|
+
function add_css$1(target) {
|
|
15962
16069
|
internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
15963
16070
|
}
|
|
15964
16071
|
|
|
@@ -16077,7 +16184,7 @@ function create_each_block(key_1, ctx) {
|
|
|
16077
16184
|
};
|
|
16078
16185
|
}
|
|
16079
16186
|
|
|
16080
|
-
function create_fragment(ctx) {
|
|
16187
|
+
function create_fragment$1(ctx) {
|
|
16081
16188
|
let div;
|
|
16082
16189
|
let each_blocks = [];
|
|
16083
16190
|
let each_1_lookup = new Map();
|
|
@@ -16155,7 +16262,7 @@ function create_fragment(ctx) {
|
|
|
16155
16262
|
}
|
|
16156
16263
|
let basicWidth = 11;
|
|
16157
16264
|
|
|
16158
|
-
function instance($$self, $$props, $$invalidate) {
|
|
16265
|
+
function instance$1($$self, $$props, $$invalidate) {
|
|
16159
16266
|
const { Raycaster, Vector3 } = THREE__namespace;
|
|
16160
16267
|
let { five: five$1 } = $$props;
|
|
16161
16268
|
let { modelOcclusionEnable } = $$props;
|
|
@@ -16448,8 +16555,8 @@ class ItemLabelComponent extends internal.SvelteComponent {
|
|
|
16448
16555
|
internal.init(
|
|
16449
16556
|
this,
|
|
16450
16557
|
options,
|
|
16451
|
-
instance,
|
|
16452
|
-
create_fragment,
|
|
16558
|
+
instance$1,
|
|
16559
|
+
create_fragment$1,
|
|
16453
16560
|
internal.safe_not_equal,
|
|
16454
16561
|
{
|
|
16455
16562
|
five: 7,
|
|
@@ -16460,7 +16567,7 @@ class ItemLabelComponent extends internal.SvelteComponent {
|
|
|
16460
16567
|
displayStrategyType: 11,
|
|
16461
16568
|
maxVisibleDistance: 12
|
|
16462
16569
|
},
|
|
16463
|
-
add_css,
|
|
16570
|
+
add_css$1,
|
|
16464
16571
|
[-1, -1]
|
|
16465
16572
|
);
|
|
16466
16573
|
}
|
|
@@ -16598,7 +16705,737 @@ const itemLabelPluginServerParams = {
|
|
|
16598
16705
|
version: 0,
|
|
16599
16706
|
};
|
|
16600
16707
|
|
|
16601
|
-
|
|
16708
|
+
/**
|
|
16709
|
+
* pano plugin controller 基类
|
|
16710
|
+
* @author kyleju
|
|
16711
|
+
*/
|
|
16712
|
+
class BasePanoPluginController extends Controller$5 {
|
|
16713
|
+
constructor(five) {
|
|
16714
|
+
super(five);
|
|
16715
|
+
Object.defineProperty(this, "state", {
|
|
16716
|
+
enumerable: true,
|
|
16717
|
+
configurable: true,
|
|
16718
|
+
writable: true,
|
|
16719
|
+
value: void 0
|
|
16720
|
+
});
|
|
16721
|
+
Object.defineProperty(this, "container", {
|
|
16722
|
+
enumerable: true,
|
|
16723
|
+
configurable: true,
|
|
16724
|
+
writable: true,
|
|
16725
|
+
value: void 0
|
|
16726
|
+
});
|
|
16727
|
+
Object.defineProperty(this, "enabled", {
|
|
16728
|
+
enumerable: true,
|
|
16729
|
+
configurable: true,
|
|
16730
|
+
writable: true,
|
|
16731
|
+
value: void 0
|
|
16732
|
+
});
|
|
16733
|
+
this.five = five;
|
|
16734
|
+
this.five.once('dispose', this.dispose);
|
|
16735
|
+
this.enabled = true;
|
|
16736
|
+
this.state = this.initState();
|
|
16737
|
+
console.log('base controller');
|
|
16738
|
+
}
|
|
16739
|
+
/**
|
|
16740
|
+
* 启用组件
|
|
16741
|
+
* @param options
|
|
16742
|
+
*/
|
|
16743
|
+
enable(options) {
|
|
16744
|
+
this.enabled = true;
|
|
16745
|
+
this.updateState(Object.assign(Object.assign({}, options), { userAction: true }));
|
|
16746
|
+
}
|
|
16747
|
+
/**
|
|
16748
|
+
* 禁用组件
|
|
16749
|
+
* @param options
|
|
16750
|
+
*/
|
|
16751
|
+
disable(options) {
|
|
16752
|
+
this.enabled = false;
|
|
16753
|
+
this.updateState(Object.assign(Object.assign({}, options), { userAction: true }));
|
|
16754
|
+
}
|
|
16755
|
+
/**
|
|
16756
|
+
* 显示 UI
|
|
16757
|
+
* @param options
|
|
16758
|
+
* @returns
|
|
16759
|
+
*/
|
|
16760
|
+
show(options) {
|
|
16761
|
+
if (!this.state.enabled)
|
|
16762
|
+
return;
|
|
16763
|
+
this.setState(Object.assign(Object.assign({}, this.state), { visible: true }), options);
|
|
16764
|
+
return Promise.resolve();
|
|
16765
|
+
}
|
|
16766
|
+
/**
|
|
16767
|
+
* 隐藏 UI
|
|
16768
|
+
* @param options
|
|
16769
|
+
* @returns
|
|
16770
|
+
*/
|
|
16771
|
+
hide(options) {
|
|
16772
|
+
if (!this.state.enabled)
|
|
16773
|
+
return;
|
|
16774
|
+
this.setState(Object.assign(Object.assign({}, this.state), { visible: false }), options);
|
|
16775
|
+
return Promise.resolve();
|
|
16776
|
+
}
|
|
16777
|
+
/**
|
|
16778
|
+
* 销毁对象
|
|
16779
|
+
*/
|
|
16780
|
+
dispose() {
|
|
16781
|
+
this.container.remove();
|
|
16782
|
+
}
|
|
16783
|
+
/**
|
|
16784
|
+
* 设置状态
|
|
16785
|
+
* @param state @T 状态
|
|
16786
|
+
* @param options @BaseOptions 可选配置
|
|
16787
|
+
* @returns
|
|
16788
|
+
*/
|
|
16789
|
+
setState(state, options) {
|
|
16790
|
+
if (!this.enabled)
|
|
16791
|
+
return;
|
|
16792
|
+
const prevState = Object.assign({}, this.state);
|
|
16793
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), options);
|
|
16794
|
+
this.stateChangedCallback(prevState, options);
|
|
16795
|
+
}
|
|
16796
|
+
get visible() {
|
|
16797
|
+
return this.five.state.mode === five.Five.Mode.Panorama;
|
|
16798
|
+
}
|
|
16799
|
+
appendTo(container) {
|
|
16800
|
+
if (!this.enabled)
|
|
16801
|
+
return;
|
|
16802
|
+
this.container = container;
|
|
16803
|
+
this.render();
|
|
16804
|
+
}
|
|
16805
|
+
updateState(options) {
|
|
16806
|
+
this.setState(Object.assign(Object.assign({}, this.state), { enabled: this.enabled, visible: this.visible }), options);
|
|
16807
|
+
}
|
|
16808
|
+
}
|
|
16809
|
+
|
|
16810
|
+
/* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.48.0 */
|
|
16811
|
+
|
|
16812
|
+
function add_css(target) {
|
|
16813
|
+
internal.append_styles(target, "svelte-6rn4em", ".plugin-DoorLabelPlugin-item.svelte-6rn4em.svelte-6rn4em{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.625rem;padding:0.3125rem;white-space:nowrap;font-size:0.625rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em::after{content:\"\";display:block;position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:0.125rem;border:1px solid rgba(0, 0, 0, 0);-o-border-image:url(\"//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png\") 4;border-image:url(\"//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png\") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em:active,.plugin-DoorLabelPlugin-cnt.svelte-6rn4em.svelte-6rn4em:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-6rn4em.svelte-6rn4em{background:url(\"//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg\") no-repeat;background-size:100%;display:inline-block;width:0.52083rem;height:0.52083rem;margin-left:0.20833rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-6rn4em .plugin-DoorLabelPlugin-txt.svelte-6rn4em{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{transform:rotate(-90deg);margin-left:0;margin-right:0.20833rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em.svelte-6rn4em{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em .plugin-DoorLabelPlugin-icon.svelte-6rn4em{background:url(\"//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg\") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em.svelte-6rn4em:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-6rn4em.svelte-6rn4em:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}");
|
|
16814
|
+
}
|
|
16815
|
+
|
|
16816
|
+
function create_fragment(ctx) {
|
|
16817
|
+
let div1;
|
|
16818
|
+
let div0;
|
|
16819
|
+
let span;
|
|
16820
|
+
let t1;
|
|
16821
|
+
let i;
|
|
16822
|
+
let div0_class_value;
|
|
16823
|
+
let mounted;
|
|
16824
|
+
let dispose;
|
|
16825
|
+
|
|
16826
|
+
return {
|
|
16827
|
+
c() {
|
|
16828
|
+
div1 = internal.element("div");
|
|
16829
|
+
div0 = internal.element("div");
|
|
16830
|
+
span = internal.element("span");
|
|
16831
|
+
span.textContent = `${/*name*/ ctx[8]}`;
|
|
16832
|
+
t1 = internal.space();
|
|
16833
|
+
i = internal.element("i");
|
|
16834
|
+
internal.attr(span, "class", "plugin-DoorLabelPlugin-txt svelte-6rn4em");
|
|
16835
|
+
internal.attr(i, "class", "plugin-DoorLabelPlugin-icon svelte-6rn4em");
|
|
16836
|
+
internal.attr(div0, "class", div0_class_value = "" + (internal.null_to_empty(classNames__default["default"]('plugin-DoorLabelPlugin-cnt', /*props*/ ctx[0].toward)) + " svelte-6rn4em"));
|
|
16837
|
+
internal.attr(div0, "style", `transform: ${/*transform*/ ctx[6] || 'initial'};pointerEvents: ${/*inSight*/ ctx[5] ? 'auto' : 'none'};opacity: ${/*inSight*/ ctx[5] ? 1 : 0}`);
|
|
16838
|
+
internal.attr(div0, "data-camera-toward", /*cameraToward*/ ctx[7]);
|
|
16839
|
+
internal.attr(div1, "style", `left: ${/*left*/ ctx[3] || 0}%;top: ${/*top*/ ctx[4] || 0}%;opacity: ${/*inSight*/ ctx[5] ? 1 : 0}`);
|
|
16840
|
+
internal.attr(div1, "class", "plugin-DoorLabelPlugin-item svelte-6rn4em");
|
|
16841
|
+
},
|
|
16842
|
+
m(target, anchor) {
|
|
16843
|
+
internal.insert(target, div1, anchor);
|
|
16844
|
+
internal.append(div1, div0);
|
|
16845
|
+
internal.append(div0, span);
|
|
16846
|
+
internal.append(div0, t1);
|
|
16847
|
+
internal.append(div0, i);
|
|
16848
|
+
/*div1_binding*/ ctx[10](div1);
|
|
16849
|
+
|
|
16850
|
+
if (!mounted) {
|
|
16851
|
+
dispose = internal.listen(div0, "click", /*click_handler*/ ctx[9]);
|
|
16852
|
+
mounted = true;
|
|
16853
|
+
}
|
|
16854
|
+
},
|
|
16855
|
+
p(ctx, [dirty]) {
|
|
16856
|
+
if (dirty & /*props*/ 1 && div0_class_value !== (div0_class_value = "" + (internal.null_to_empty(classNames__default["default"]('plugin-DoorLabelPlugin-cnt', /*props*/ ctx[0].toward)) + " svelte-6rn4em"))) {
|
|
16857
|
+
internal.attr(div0, "class", div0_class_value);
|
|
16858
|
+
}
|
|
16859
|
+
},
|
|
16860
|
+
i: internal.noop,
|
|
16861
|
+
o: internal.noop,
|
|
16862
|
+
d(detaching) {
|
|
16863
|
+
if (detaching) internal.detach(div1);
|
|
16864
|
+
/*div1_binding*/ ctx[10](null);
|
|
16865
|
+
mounted = false;
|
|
16866
|
+
dispose();
|
|
16867
|
+
}
|
|
16868
|
+
};
|
|
16869
|
+
}
|
|
16870
|
+
|
|
16871
|
+
function instance($$self, $$props, $$invalidate) {
|
|
16872
|
+
let { props } = $$props;
|
|
16873
|
+
let { onClick } = $$props;
|
|
16874
|
+
let divElement;
|
|
16875
|
+
let { left, top, inSight, transform, panoIndex, cameraToward, name } = props;
|
|
16876
|
+
let prevPanoIndexRef = 0;
|
|
16877
|
+
|
|
16878
|
+
const initPanoIndex = () => {
|
|
16879
|
+
if (!left || !top || !inSight) {
|
|
16880
|
+
return;
|
|
16881
|
+
}
|
|
16882
|
+
|
|
16883
|
+
if (!divElement) return;
|
|
16884
|
+
const _width = divElement.current.clientWidth / window.innerWidth * 100;
|
|
16885
|
+
const _height = divElement.current.clientHeight / window.innerHeight * 100;
|
|
16886
|
+
|
|
16887
|
+
if (left <= _width / 2 || left >= 100 - _width / 2) {
|
|
16888
|
+
return;
|
|
16889
|
+
}
|
|
16890
|
+
|
|
16891
|
+
if (top <= _height / 2 || top >= 100 - _height / 2) {
|
|
16892
|
+
return;
|
|
16893
|
+
}
|
|
16894
|
+
|
|
16895
|
+
const prevPanoIndex = prevPanoIndexRef;
|
|
16896
|
+
|
|
16897
|
+
if (panoIndex !== prevPanoIndex) {
|
|
16898
|
+
// 触发埋点
|
|
16899
|
+
console.log('panoDoorLabelPlugin', panoIndex, '触发埋点');
|
|
16900
|
+
|
|
16901
|
+
// 这里触发曝光埋点
|
|
16902
|
+
prevPanoIndexRef = panoIndex;
|
|
16903
|
+
}
|
|
16904
|
+
};
|
|
16905
|
+
|
|
16906
|
+
const click_handler = e => {
|
|
16907
|
+
if (onClick) onClick();
|
|
16908
|
+
};
|
|
16909
|
+
|
|
16910
|
+
function div1_binding($$value) {
|
|
16911
|
+
internal.binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
16912
|
+
divElement = $$value;
|
|
16913
|
+
$$invalidate(2, divElement);
|
|
16914
|
+
});
|
|
16915
|
+
}
|
|
16916
|
+
|
|
16917
|
+
$$self.$$set = $$props => {
|
|
16918
|
+
if ('props' in $$props) $$invalidate(0, props = $$props.props);
|
|
16919
|
+
if ('onClick' in $$props) $$invalidate(1, onClick = $$props.onClick);
|
|
16920
|
+
};
|
|
16921
|
+
|
|
16922
|
+
{
|
|
16923
|
+
initPanoIndex();
|
|
16924
|
+
}
|
|
16925
|
+
|
|
16926
|
+
return [
|
|
16927
|
+
props,
|
|
16928
|
+
onClick,
|
|
16929
|
+
divElement,
|
|
16930
|
+
left,
|
|
16931
|
+
top,
|
|
16932
|
+
inSight,
|
|
16933
|
+
transform,
|
|
16934
|
+
cameraToward,
|
|
16935
|
+
name,
|
|
16936
|
+
click_handler,
|
|
16937
|
+
div1_binding
|
|
16938
|
+
];
|
|
16939
|
+
}
|
|
16940
|
+
|
|
16941
|
+
class DoorLabelItem extends internal.SvelteComponent {
|
|
16942
|
+
constructor(options) {
|
|
16943
|
+
super();
|
|
16944
|
+
internal.init(this, options, instance, create_fragment, internal.safe_not_equal, { props: 0, onClick: 1 }, add_css);
|
|
16945
|
+
}
|
|
16946
|
+
}
|
|
16947
|
+
|
|
16948
|
+
function isTwoRectOverlaped(rect1, rect2) {
|
|
16949
|
+
// 两矩形的中心点水平及垂直距离
|
|
16950
|
+
const verticalDistance = Math.abs(rect1.top + rect1.height / 2 - rect2.top - rect2.height / 2);
|
|
16951
|
+
const horizontalDistance = Math.abs(rect1.left + rect1.width / 2 - rect2.left - rect2.width / 2);
|
|
16952
|
+
const verticalThreshold = (rect1.height + rect2.height) / 2;
|
|
16953
|
+
const horizontalThroshold = (rect1.width + rect2.width) / 2;
|
|
16954
|
+
if (verticalDistance > verticalThreshold && horizontalDistance > horizontalThroshold) {
|
|
16955
|
+
return false;
|
|
16956
|
+
}
|
|
16957
|
+
return true;
|
|
16958
|
+
}
|
|
16959
|
+
function getCameraToward(five) {
|
|
16960
|
+
const { camera } = five;
|
|
16961
|
+
const cameraDirection = camera.getWorldDirection(new THREE.Vector3());
|
|
16962
|
+
let angel = (Math.atan(cameraDirection.z / cameraDirection.x) * 180) / Math.PI;
|
|
16963
|
+
let toward = '';
|
|
16964
|
+
if (cameraDirection.x < 0)
|
|
16965
|
+
angel += 180;
|
|
16966
|
+
if (angel < 0)
|
|
16967
|
+
angel += 360;
|
|
16968
|
+
if (angel > 315 || angel <= 45) {
|
|
16969
|
+
toward = 'right';
|
|
16970
|
+
}
|
|
16971
|
+
else if (angel > 45 && angel <= 135) {
|
|
16972
|
+
toward = 'back';
|
|
16973
|
+
}
|
|
16974
|
+
else if (angel > 135 && angel <= 225) {
|
|
16975
|
+
toward = 'left';
|
|
16976
|
+
}
|
|
16977
|
+
else if (angel > 225 && angel <= 315) {
|
|
16978
|
+
toward = 'forward';
|
|
16979
|
+
}
|
|
16980
|
+
return toward;
|
|
16981
|
+
}
|
|
16982
|
+
function getDistance(p1, p2) {
|
|
16983
|
+
return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
|
|
16984
|
+
}
|
|
16985
|
+
// left、right、forward、back 是 roomLabel 的朝向
|
|
16986
|
+
function getToward(rad) {
|
|
16987
|
+
const pi_4 = Math.PI / 4;
|
|
16988
|
+
if (rad > -pi_4 && rad <= pi_4) {
|
|
16989
|
+
return 'left';
|
|
16990
|
+
}
|
|
16991
|
+
else if (rad > pi_4 * 3 || rad <= -pi_4 * 3) {
|
|
16992
|
+
return 'right';
|
|
16993
|
+
}
|
|
16994
|
+
else if (rad > -pi_4 * 3 && rad <= -pi_4) {
|
|
16995
|
+
return 'forward';
|
|
16996
|
+
}
|
|
16997
|
+
else if (rad > pi_4 && rad <= pi_4 * 3) {
|
|
16998
|
+
return 'back';
|
|
16999
|
+
}
|
|
17000
|
+
return '';
|
|
17001
|
+
}
|
|
17002
|
+
|
|
17003
|
+
const defaultBaseOptions = { userAction: true };
|
|
17004
|
+
/**
|
|
17005
|
+
* 分间标签插件
|
|
17006
|
+
* @author kyleju
|
|
17007
|
+
*/
|
|
17008
|
+
class PanoDoorLabelPluginController extends BasePanoPluginController {
|
|
17009
|
+
constructor(five) {
|
|
17010
|
+
super(five);
|
|
17011
|
+
Object.defineProperty(this, "MinVisibledistance", {
|
|
17012
|
+
enumerable: true,
|
|
17013
|
+
configurable: true,
|
|
17014
|
+
writable: true,
|
|
17015
|
+
value: 1.8
|
|
17016
|
+
});
|
|
17017
|
+
Object.defineProperty(this, "MaxVisibledistance", {
|
|
17018
|
+
enumerable: true,
|
|
17019
|
+
configurable: true,
|
|
17020
|
+
writable: true,
|
|
17021
|
+
value: 6
|
|
17022
|
+
});
|
|
17023
|
+
Object.defineProperty(this, "OffsetHeight", {
|
|
17024
|
+
enumerable: true,
|
|
17025
|
+
configurable: true,
|
|
17026
|
+
writable: true,
|
|
17027
|
+
value: -1.3
|
|
17028
|
+
}); // 标签页面高度偏移值
|
|
17029
|
+
Object.defineProperty(this, "rooms", {
|
|
17030
|
+
enumerable: true,
|
|
17031
|
+
configurable: true,
|
|
17032
|
+
writable: true,
|
|
17033
|
+
value: void 0
|
|
17034
|
+
});
|
|
17035
|
+
Object.defineProperty(this, "floorplanServerData", {
|
|
17036
|
+
enumerable: true,
|
|
17037
|
+
configurable: true,
|
|
17038
|
+
writable: true,
|
|
17039
|
+
value: void 0
|
|
17040
|
+
});
|
|
17041
|
+
/** 标签项 */
|
|
17042
|
+
Object.defineProperty(this, "doorLabelItems", {
|
|
17043
|
+
enumerable: true,
|
|
17044
|
+
configurable: true,
|
|
17045
|
+
writable: true,
|
|
17046
|
+
value: void 0
|
|
17047
|
+
});
|
|
17048
|
+
/** 每个点位 visible 标签的缓存 */
|
|
17049
|
+
Object.defineProperty(this, "visibleLabelMap", {
|
|
17050
|
+
enumerable: true,
|
|
17051
|
+
configurable: true,
|
|
17052
|
+
writable: true,
|
|
17053
|
+
value: new Map()
|
|
17054
|
+
});
|
|
17055
|
+
/** 标签项Prop值 */
|
|
17056
|
+
Object.defineProperty(this, "labelItems", {
|
|
17057
|
+
enumerable: true,
|
|
17058
|
+
configurable: true,
|
|
17059
|
+
writable: true,
|
|
17060
|
+
value: []
|
|
17061
|
+
});
|
|
17062
|
+
/** 数据 */
|
|
17063
|
+
Object.defineProperty(this, "doorLabels", {
|
|
17064
|
+
enumerable: true,
|
|
17065
|
+
configurable: true,
|
|
17066
|
+
writable: true,
|
|
17067
|
+
value: void 0
|
|
17068
|
+
});
|
|
17069
|
+
Object.defineProperty(this, "roomObservers", {
|
|
17070
|
+
enumerable: true,
|
|
17071
|
+
configurable: true,
|
|
17072
|
+
writable: true,
|
|
17073
|
+
value: void 0
|
|
17074
|
+
});
|
|
17075
|
+
Object.defineProperty(this, "loadData", {
|
|
17076
|
+
enumerable: true,
|
|
17077
|
+
configurable: true,
|
|
17078
|
+
writable: true,
|
|
17079
|
+
value: (floorplanServerData) => {
|
|
17080
|
+
if (this.doorLabelItems && this.doorLabelItems.length > 0) {
|
|
17081
|
+
this.doorLabelItems.forEach((doorItem) => {
|
|
17082
|
+
doorItem.$destroy();
|
|
17083
|
+
});
|
|
17084
|
+
}
|
|
17085
|
+
this.labelItems = [];
|
|
17086
|
+
this.doorLabels = [];
|
|
17087
|
+
this.doorLabelItems = [];
|
|
17088
|
+
this.floorplanServerData = floorplanServerData;
|
|
17089
|
+
this.five.once('panoArrived', () => {
|
|
17090
|
+
console.log('doorplugin', 'panoArrived');
|
|
17091
|
+
this.initData();
|
|
17092
|
+
});
|
|
17093
|
+
}
|
|
17094
|
+
});
|
|
17095
|
+
Object.defineProperty(this, "initRoomObservers", {
|
|
17096
|
+
enumerable: true,
|
|
17097
|
+
configurable: true,
|
|
17098
|
+
writable: true,
|
|
17099
|
+
value: () => {
|
|
17100
|
+
var _a, _b;
|
|
17101
|
+
const floorDatas = this.floorplanServerData.computed_data.floor_datas || [];
|
|
17102
|
+
const observers = ((_b = (_a = this.five) === null || _a === void 0 ? void 0 : _a.work) === null || _b === void 0 ? void 0 : _b.observers) || [];
|
|
17103
|
+
const roomObservers = observers
|
|
17104
|
+
// eslint-disable-next-line array-callback-return
|
|
17105
|
+
.map((ob) => {
|
|
17106
|
+
const panoIndex = ob.panoIndex;
|
|
17107
|
+
const floorIndex = ob.floorIndex;
|
|
17108
|
+
const floor = floorDatas === null || floorDatas === void 0 ? void 0 : floorDatas.find((d) => d.floor_index === floorIndex);
|
|
17109
|
+
if (floor) {
|
|
17110
|
+
const room = floor.rooms.find((r) => r.observer_indexs.includes(panoIndex));
|
|
17111
|
+
if (room) {
|
|
17112
|
+
return { panoIndex, floorIndex, name: room.name };
|
|
17113
|
+
}
|
|
17114
|
+
}
|
|
17115
|
+
})
|
|
17116
|
+
.filter(Boolean);
|
|
17117
|
+
this.roomObservers = roomObservers;
|
|
17118
|
+
}
|
|
17119
|
+
});
|
|
17120
|
+
Object.defineProperty(this, "hideAllLabels", {
|
|
17121
|
+
enumerable: true,
|
|
17122
|
+
configurable: true,
|
|
17123
|
+
writable: true,
|
|
17124
|
+
value: () => {
|
|
17125
|
+
this.labelItems.forEach((item) => {
|
|
17126
|
+
item.visible = false;
|
|
17127
|
+
item.inSight = false;
|
|
17128
|
+
});
|
|
17129
|
+
this.render();
|
|
17130
|
+
}
|
|
17131
|
+
});
|
|
17132
|
+
Object.defineProperty(this, "fixDoorVisibleAndPosition", {
|
|
17133
|
+
enumerable: true,
|
|
17134
|
+
configurable: true,
|
|
17135
|
+
writable: true,
|
|
17136
|
+
value: () => {
|
|
17137
|
+
this.initRoomObservers();
|
|
17138
|
+
const { panoIndex } = this.five;
|
|
17139
|
+
if (!this.visible)
|
|
17140
|
+
return;
|
|
17141
|
+
if (this.five.model.empty)
|
|
17142
|
+
return;
|
|
17143
|
+
if (panoIndex === null)
|
|
17144
|
+
return;
|
|
17145
|
+
if (!this.roomObservers.find((item) => item.panoIndex === panoIndex))
|
|
17146
|
+
return;
|
|
17147
|
+
const roomObserver = this.roomObservers.find((item) => {
|
|
17148
|
+
return item.panoIndex === panoIndex;
|
|
17149
|
+
});
|
|
17150
|
+
const position = this.five.work.observers.find((item) => item.panoIndex === panoIndex).position;
|
|
17151
|
+
const targetPoint = position.clone();
|
|
17152
|
+
const visibleLabelIds = (() => {
|
|
17153
|
+
if (this.visibleLabelMap.has(panoIndex)) {
|
|
17154
|
+
/** 使用缓存 */
|
|
17155
|
+
return this.visibleLabelMap.get(panoIndex);
|
|
17156
|
+
}
|
|
17157
|
+
else {
|
|
17158
|
+
const visibleDoorIds = [];
|
|
17159
|
+
this.doorLabels.forEach((doorLabelItem, index) => {
|
|
17160
|
+
// step1 校验分间
|
|
17161
|
+
if (doorLabelItem.roomName === roomObserver.name)
|
|
17162
|
+
return;
|
|
17163
|
+
// step2 校验最大最小值
|
|
17164
|
+
const doorPosition = doorLabelItem.position.clone();
|
|
17165
|
+
const distance = doorPosition.distanceTo(targetPoint);
|
|
17166
|
+
if (distance < this.MinVisibledistance || distance > this.MaxVisibledistance)
|
|
17167
|
+
return;
|
|
17168
|
+
// step3 碰撞检测是否有遮挡
|
|
17169
|
+
const raycaster = new THREE.Raycaster();
|
|
17170
|
+
const direction = doorPosition.clone().sub(targetPoint).normalize();
|
|
17171
|
+
raycaster.set(targetPoint, direction);
|
|
17172
|
+
const [intersection] = this.five.model.intersectRaycaster(raycaster);
|
|
17173
|
+
if (intersection && intersection.distance + 0.1 < distance)
|
|
17174
|
+
return;
|
|
17175
|
+
// 🥳 最终剩下的就是当前点位可见的标签
|
|
17176
|
+
visibleDoorIds.push(index);
|
|
17177
|
+
});
|
|
17178
|
+
this.visibleLabelMap.set(panoIndex, visibleDoorIds);
|
|
17179
|
+
return visibleDoorIds;
|
|
17180
|
+
}
|
|
17181
|
+
})();
|
|
17182
|
+
this.labelItems.forEach((data, index) => {
|
|
17183
|
+
data.visible = visibleLabelIds.includes(index);
|
|
17184
|
+
});
|
|
17185
|
+
this.fixDoorPosition();
|
|
17186
|
+
}
|
|
17187
|
+
});
|
|
17188
|
+
Object.defineProperty(this, "fixDoorPosition", {
|
|
17189
|
+
enumerable: true,
|
|
17190
|
+
configurable: true,
|
|
17191
|
+
writable: true,
|
|
17192
|
+
value: () => {
|
|
17193
|
+
const { panoIndex, camera } = this.five;
|
|
17194
|
+
if (panoIndex === null)
|
|
17195
|
+
return;
|
|
17196
|
+
if (this.five.currentMode !== 'Panorama')
|
|
17197
|
+
return this.hideAllLabels();
|
|
17198
|
+
const fiveElement = this.five.getElement();
|
|
17199
|
+
const canvasWidth = fiveElement.clientWidth;
|
|
17200
|
+
const canvasHeight = fiveElement.clientHeight;
|
|
17201
|
+
const cameraDirection = camera.getWorldDirection(new THREE.Vector3());
|
|
17202
|
+
const neverOverlapLabels = [];
|
|
17203
|
+
const labelItems = [...this.labelItems];
|
|
17204
|
+
labelItems.forEach((doorLabel, index) => {
|
|
17205
|
+
if (doorLabel.visible) {
|
|
17206
|
+
const disFromCameraToLabel = camera.position.distanceTo(doorLabel.position);
|
|
17207
|
+
const labelPosition = doorLabel.position.clone().add(new THREE.Vector3(0, this.OffsetHeight, 0));
|
|
17208
|
+
const direction = labelPosition.clone().sub(camera.position).normalize();
|
|
17209
|
+
const angle = direction.angleTo(cameraDirection);
|
|
17210
|
+
const mouse = labelPosition.clone().project(camera);
|
|
17211
|
+
const left = ((mouse.x + 1) / 2.2) * 100;
|
|
17212
|
+
const top = ((-mouse.y + 1) / 2.2) * 100;
|
|
17213
|
+
const visible = left >= 0 &&
|
|
17214
|
+
left <= 100 &&
|
|
17215
|
+
top >= 0 &&
|
|
17216
|
+
top <= 100 &&
|
|
17217
|
+
disFromCameraToLabel > this.MinVisibledistance &&
|
|
17218
|
+
disFromCameraToLabel <= this.MaxVisibledistance;
|
|
17219
|
+
doorLabel.left = left;
|
|
17220
|
+
doorLabel.top = top;
|
|
17221
|
+
doorLabel.inSight = visible && angle < Math.PI / 2;
|
|
17222
|
+
doorLabel.cameraToward = getCameraToward(this.five);
|
|
17223
|
+
if (visible)
|
|
17224
|
+
neverOverlapLabels.push({ disFromCameraToLabel, left, top, index });
|
|
17225
|
+
else
|
|
17226
|
+
doorLabel.transform = 'translate(-50%, -50%)';
|
|
17227
|
+
}
|
|
17228
|
+
else {
|
|
17229
|
+
doorLabel.inSight = false;
|
|
17230
|
+
}
|
|
17231
|
+
});
|
|
17232
|
+
// 视线内多标签防重叠单独处理
|
|
17233
|
+
if (neverOverlapLabels.length > 1) {
|
|
17234
|
+
let heightLevel = 0;
|
|
17235
|
+
neverOverlapLabels.sort((a, b) => b.disFromCameraToLabel - a.disFromCameraToLabel);
|
|
17236
|
+
for (let i = 1; i < neverOverlapLabels.length; i++) {
|
|
17237
|
+
const { index: idx1, left: l1, top: t1 } = neverOverlapLabels[i - 1];
|
|
17238
|
+
const { index: idx2, left: l2, top: t2 } = neverOverlapLabels[i];
|
|
17239
|
+
const rectDom1 = this.container.children[idx1];
|
|
17240
|
+
const rectDom2 = this.container.children[idx2];
|
|
17241
|
+
if (!rectDom1 || !rectDom2)
|
|
17242
|
+
return;
|
|
17243
|
+
const rect1 = {
|
|
17244
|
+
left: (canvasWidth * l1) / 100,
|
|
17245
|
+
top: (canvasHeight * t1) / 100,
|
|
17246
|
+
width: rectDom1.children[0].clientWidth,
|
|
17247
|
+
height: rectDom1.children[0].clientHeight,
|
|
17248
|
+
};
|
|
17249
|
+
const rect2 = {
|
|
17250
|
+
left: (canvasWidth * l2) / 100,
|
|
17251
|
+
top: (canvasHeight * t2) / 100,
|
|
17252
|
+
width: rectDom2.children[0].clientWidth,
|
|
17253
|
+
height: rectDom2.children[0].clientHeight,
|
|
17254
|
+
};
|
|
17255
|
+
if (isTwoRectOverlaped(rect1, rect2)) {
|
|
17256
|
+
heightLevel++;
|
|
17257
|
+
labelItems[idx1].transform = `translate(-50%, ${(heightLevel - 1) * 100 - 50}%)`;
|
|
17258
|
+
labelItems[idx2].transform = `translate(-50%, ${heightLevel * 100 - 50}%)`;
|
|
17259
|
+
}
|
|
17260
|
+
}
|
|
17261
|
+
}
|
|
17262
|
+
this.labelItems = labelItems;
|
|
17263
|
+
this.render();
|
|
17264
|
+
}
|
|
17265
|
+
});
|
|
17266
|
+
Object.defineProperty(this, "onClick", {
|
|
17267
|
+
enumerable: true,
|
|
17268
|
+
configurable: true,
|
|
17269
|
+
writable: true,
|
|
17270
|
+
value: (roomName, position) => {
|
|
17271
|
+
if (!this.rooms)
|
|
17272
|
+
return;
|
|
17273
|
+
const { work } = this.five;
|
|
17274
|
+
let nearestIndex;
|
|
17275
|
+
let nearestVector;
|
|
17276
|
+
let minDistance = Infinity;
|
|
17277
|
+
for (let index = 0; index < work.observers.length; index++) {
|
|
17278
|
+
if (this.rooms[index].name !== roomName)
|
|
17279
|
+
continue;
|
|
17280
|
+
const observer = work.observers[index];
|
|
17281
|
+
const observerPoint = observer.standingPosition;
|
|
17282
|
+
const distance = position.distanceTo(observerPoint);
|
|
17283
|
+
if (distance < minDistance) {
|
|
17284
|
+
nearestIndex = index;
|
|
17285
|
+
nearestVector = observerPoint.clone().sub(position).normalize();
|
|
17286
|
+
minDistance = distance;
|
|
17287
|
+
}
|
|
17288
|
+
}
|
|
17289
|
+
if (nearestVector !== null && nearestIndex !== null) {
|
|
17290
|
+
const options = {};
|
|
17291
|
+
if (minDistance > 0) {
|
|
17292
|
+
const fromVector = new THREE.Vector3(0, 0, -1);
|
|
17293
|
+
const toVector = nearestVector.clone();
|
|
17294
|
+
const quaternion = new THREE.Quaternion();
|
|
17295
|
+
quaternion.setFromUnitVectors(fromVector, toVector);
|
|
17296
|
+
const euler = new THREE.Euler();
|
|
17297
|
+
euler.setFromQuaternion(quaternion, 'YXZ');
|
|
17298
|
+
options.longitude = euler.y;
|
|
17299
|
+
}
|
|
17300
|
+
const canceled = this.five.emit('wantsToMoveToPano', nearestIndex, {}, true);
|
|
17301
|
+
if (!canceled) {
|
|
17302
|
+
this.five.moveToPano(nearestIndex, { longitude: options.longitude });
|
|
17303
|
+
}
|
|
17304
|
+
}
|
|
17305
|
+
}
|
|
17306
|
+
});
|
|
17307
|
+
Object.defineProperty(this, "initData", {
|
|
17308
|
+
enumerable: true,
|
|
17309
|
+
configurable: true,
|
|
17310
|
+
writable: true,
|
|
17311
|
+
value: () => {
|
|
17312
|
+
var _a;
|
|
17313
|
+
this.doorLabels = [];
|
|
17314
|
+
const pano_index = this.five.panoIndex;
|
|
17315
|
+
const floor_index = this.floorplanServerData.computed_data.observers[pano_index].floor_index;
|
|
17316
|
+
const rooms = floor_index !== undefined &&
|
|
17317
|
+
((_a = this.floorplanServerData.computed_data.floor_datas[floor_index]) === null || _a === void 0 ? void 0 : _a.rooms);
|
|
17318
|
+
this.rooms = rooms;
|
|
17319
|
+
if (this.rooms && this.rooms.length > 0) {
|
|
17320
|
+
this.rooms.forEach((room) => {
|
|
17321
|
+
var _a;
|
|
17322
|
+
const doors = (_a = this.floorplanServerData.computed_data.doors) === null || _a === void 0 ? void 0 : _a.filter((doorItem) => {
|
|
17323
|
+
if (doorItem && doorItem.name === room.name) {
|
|
17324
|
+
return true;
|
|
17325
|
+
}
|
|
17326
|
+
return false;
|
|
17327
|
+
});
|
|
17328
|
+
const observersInRoom = this.five.work.observers.filter((observer, index) => {
|
|
17329
|
+
if (room.observer_indexs.find((item) => item === index))
|
|
17330
|
+
return true;
|
|
17331
|
+
return false;
|
|
17332
|
+
});
|
|
17333
|
+
if (doors) {
|
|
17334
|
+
doors.forEach((door) => {
|
|
17335
|
+
const doorPoint = door.position;
|
|
17336
|
+
let minDistance = Infinity;
|
|
17337
|
+
let nearestPoint;
|
|
17338
|
+
// 遍历门所在房间所有的点,找到离门最近的点
|
|
17339
|
+
observersInRoom.forEach((observer) => {
|
|
17340
|
+
const position = observer.standingPosition;
|
|
17341
|
+
const observerPoint = {
|
|
17342
|
+
x: position.x,
|
|
17343
|
+
y: position.y,
|
|
17344
|
+
z: position.z,
|
|
17345
|
+
};
|
|
17346
|
+
const distance = getDistance(doorPoint, observerPoint);
|
|
17347
|
+
if (distance < minDistance) {
|
|
17348
|
+
minDistance = distance;
|
|
17349
|
+
nearestPoint = observerPoint;
|
|
17350
|
+
}
|
|
17351
|
+
});
|
|
17352
|
+
if (nearestPoint)
|
|
17353
|
+
doorPoint.y = nearestPoint.y + 0.01;
|
|
17354
|
+
const position = new THREE.Vector3(doorPoint.x, doorPoint.y, doorPoint.z);
|
|
17355
|
+
position.add(new THREE.Vector3(-0.2, 1.8, 0).applyEuler(new THREE.Euler(0, door.rad, 0)));
|
|
17356
|
+
this.doorLabels.push({
|
|
17357
|
+
roomName: room.name,
|
|
17358
|
+
name: door.name,
|
|
17359
|
+
position,
|
|
17360
|
+
toward: getToward(door.rad),
|
|
17361
|
+
});
|
|
17362
|
+
});
|
|
17363
|
+
}
|
|
17364
|
+
});
|
|
17365
|
+
}
|
|
17366
|
+
this.labelItems = this.doorLabels.map((data) => (Object.assign(Object.assign({}, data), { left: 0, top: 0, visible: false, inSight: false, transform: '', cameraToward: '' })));
|
|
17367
|
+
console.log('doorplugin', 'labelItems', this.labelItems);
|
|
17368
|
+
this.five.on('wantsToMoveToPano', this.hideAllLabels);
|
|
17369
|
+
this.five.on('modelLoaded', this.fixDoorVisibleAndPosition);
|
|
17370
|
+
this.five.on('panoArrived', this.fixDoorVisibleAndPosition);
|
|
17371
|
+
this.five.on('initAnimationEnded', this.fixDoorPosition);
|
|
17372
|
+
this.five.on('cameraUpdate', this.fixDoorPosition);
|
|
17373
|
+
this.five.on('mouseWheel', this.fixDoorPosition);
|
|
17374
|
+
this.five.on('pinchGesture', this.fixDoorPosition);
|
|
17375
|
+
this.fixDoorVisibleAndPosition();
|
|
17376
|
+
}
|
|
17377
|
+
});
|
|
17378
|
+
}
|
|
17379
|
+
stateChangedCallback(prevState, options) {
|
|
17380
|
+
if (this.hooks.hasListener('stateChange')) {
|
|
17381
|
+
const optionParams = {
|
|
17382
|
+
state: this.state,
|
|
17383
|
+
prevState,
|
|
17384
|
+
userAction: options ? options.userAction : defaultBaseOptions.userAction,
|
|
17385
|
+
};
|
|
17386
|
+
this.hooks.emit('stateChange', optionParams);
|
|
17387
|
+
}
|
|
17388
|
+
}
|
|
17389
|
+
render() {
|
|
17390
|
+
if (!this.enabled) {
|
|
17391
|
+
this.doorLabelItems &&
|
|
17392
|
+
this.doorLabelItems.length > 0 &&
|
|
17393
|
+
this.doorLabelItems.forEach((item) => {
|
|
17394
|
+
item === null || item === void 0 ? void 0 : item.$destroy();
|
|
17395
|
+
});
|
|
17396
|
+
this.doorLabels = undefined;
|
|
17397
|
+
return;
|
|
17398
|
+
}
|
|
17399
|
+
if (this.doorLabelItems) {
|
|
17400
|
+
this.doorLabelItems.forEach((item) => {
|
|
17401
|
+
item.$destroy();
|
|
17402
|
+
});
|
|
17403
|
+
}
|
|
17404
|
+
this.doorLabelItems = [];
|
|
17405
|
+
this.labelItems.forEach((item) => {
|
|
17406
|
+
this.doorLabelItems.push(new DoorLabelItem({
|
|
17407
|
+
target: this.container,
|
|
17408
|
+
props: {
|
|
17409
|
+
props: item,
|
|
17410
|
+
onClick: () => {
|
|
17411
|
+
this.onClick(item.name, item.position);
|
|
17412
|
+
},
|
|
17413
|
+
},
|
|
17414
|
+
}));
|
|
17415
|
+
});
|
|
17416
|
+
}
|
|
17417
|
+
initState() {
|
|
17418
|
+
return { enabled: true, visible: true };
|
|
17419
|
+
}
|
|
17420
|
+
dispose() {
|
|
17421
|
+
if (this.five) {
|
|
17422
|
+
this.five.off('wantsToMoveToPano', this.hideAllLabels);
|
|
17423
|
+
this.five.off('modelLoaded', this.fixDoorVisibleAndPosition);
|
|
17424
|
+
this.five.off('panoArrived', this.fixDoorVisibleAndPosition);
|
|
17425
|
+
this.five.off('initAnimationEnded', this.fixDoorPosition);
|
|
17426
|
+
this.five.off('cameraUpdate', this.fixDoorPosition);
|
|
17427
|
+
this.five.off('mouseWheel', this.fixDoorPosition);
|
|
17428
|
+
this.five.off('pinchGesture', this.fixDoorPosition);
|
|
17429
|
+
super.dispose();
|
|
17430
|
+
}
|
|
17431
|
+
}
|
|
17432
|
+
}
|
|
17433
|
+
|
|
17434
|
+
const PanoDoorLabelPlugin = (five) => {
|
|
17435
|
+
return new PanoDoorLabelPluginController(five);
|
|
17436
|
+
};
|
|
17437
|
+
|
|
17438
|
+
const DnalogelVersion = '2.0.0-alpha.43';
|
|
16602
17439
|
|
|
16603
17440
|
exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
|
|
16604
17441
|
exports.CameraMovementPlugin = CameraMovementPlugin;
|
|
@@ -16615,6 +17452,7 @@ exports.ModelTVVideoPlugin = ModelTVVideoPlugin;
|
|
|
16615
17452
|
exports.ModelViewPlugin = ModelViewPlugin;
|
|
16616
17453
|
exports.PanoCompassPlugin = PanoCompassPlugin;
|
|
16617
17454
|
exports.PanoCursorRaycasterPlugin = PanoCursorRaycasterPlugin;
|
|
17455
|
+
exports.PanoDoorLabelPlugin = PanoDoorLabelPlugin;
|
|
16618
17456
|
exports.PanoFloorplanRadarPlugin = PanoFloorplanRadarPlugin;
|
|
16619
17457
|
exports.PanoMeasurePlugin = PanoMeasurePlugin;
|
|
16620
17458
|
exports.PanoRulerPlugin = PanoRulerPlugin;
|