@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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { Vector3 as Vector3$1, Scene, Group, Raycaster as Raycaster$1, MeshBasicMaterial, CanvasTexture, AnimationMixer, Color, TextureLoader, Vector2 as Vector2$1, PlaneGeometry, sRGBEncoding, Mesh, CurvePath, LineCurve3, TubeGeometry, ShaderMaterial, SphereGeometry, DoubleSide, RingGeometry } from 'three';
|
|
2
|
+
import { Vector3 as Vector3$1, Scene, Group, Raycaster as Raycaster$1, MeshBasicMaterial, CanvasTexture, AnimationMixer, Color, TextureLoader, Vector2 as Vector2$1, PlaneGeometry, sRGBEncoding, Mesh, CurvePath, LineCurve3, TubeGeometry, ShaderMaterial, SphereGeometry, DoubleSide, RingGeometry, Quaternion, Euler } from 'three';
|
|
3
3
|
import { CSS3DRenderer, CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
4
4
|
import { Line as Line$1 } from '@realsee/five/line';
|
|
5
5
|
import { SvelteComponent, init, safe_not_equal, append_styles, element, text, space, attr, set_style, toggle_class, insert, append, listen, set_data, noop as noop$1, detach, add_render_callback, add_resize_listener, group_outros, update_keyed_each, outro_and_destroy_block, check_outros, transition_in, transition_out, globals, empty, create_component, mount_component, destroy_component, src_url_equal, HtmlTag, binding_callbacks, assign, get_spread_update, destroy_block, destroy_each, svg_element, run_all, null_to_empty, create_in_transition } from 'svelte/internal';
|
|
@@ -460,13 +460,13 @@ const PanoCursorRaycasterPlugin = (five) => {
|
|
|
460
460
|
|
|
461
461
|
const ROOM_LABEL_BG = 'data:image/png;base64,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';
|
|
462
462
|
|
|
463
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.
|
|
463
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.48.0 */
|
|
464
464
|
|
|
465
|
-
function add_css$
|
|
465
|
+
function add_css$q(target) {
|
|
466
466
|
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}");
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
function create_fragment$
|
|
469
|
+
function create_fragment$v(ctx) {
|
|
470
470
|
let div1;
|
|
471
471
|
let span;
|
|
472
472
|
let t0_value = /*roomLabel*/ ctx[0].name + "";
|
|
@@ -533,7 +533,7 @@ function create_fragment$u(ctx) {
|
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
-
function instance$
|
|
536
|
+
function instance$v($$self, $$props, $$invalidate) {
|
|
537
537
|
let { five } = $$props;
|
|
538
538
|
let { roomLabel } = $$props;
|
|
539
539
|
|
|
@@ -556,15 +556,15 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
556
556
|
class RoomLabelItem extends SvelteComponent {
|
|
557
557
|
constructor(options) {
|
|
558
558
|
super();
|
|
559
|
-
init(this, options, instance$
|
|
559
|
+
init(this, options, instance$v, create_fragment$v, safe_not_equal, { five: 2, roomLabel: 0 }, add_css$q);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.
|
|
563
|
+
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.48.0 */
|
|
564
564
|
|
|
565
565
|
const { Map: Map_1 } = globals;
|
|
566
566
|
|
|
567
|
-
function add_css$
|
|
567
|
+
function add_css$p(target) {
|
|
568
568
|
append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
569
569
|
}
|
|
570
570
|
|
|
@@ -623,7 +623,7 @@ function create_each_block$c(key_1, ctx) {
|
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
function create_fragment$
|
|
626
|
+
function create_fragment$u(ctx) {
|
|
627
627
|
let div;
|
|
628
628
|
let each_blocks = [];
|
|
629
629
|
let each_1_lookup = new Map_1();
|
|
@@ -695,7 +695,7 @@ function create_fragment$t(ctx) {
|
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
function instance$
|
|
698
|
+
function instance$u($$self, $$props, $$invalidate) {
|
|
699
699
|
let rendererSize;
|
|
700
700
|
let { five } = $$props;
|
|
701
701
|
let { roomLabels } = $$props;
|
|
@@ -820,7 +820,7 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
|
820
820
|
class RoomLabelItems extends SvelteComponent {
|
|
821
821
|
constructor(options) {
|
|
822
822
|
super();
|
|
823
|
-
init(this, options, instance$
|
|
823
|
+
init(this, options, instance$u, create_fragment$u, safe_not_equal, { five: 1, roomLabels: 0 }, add_css$p);
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
826
|
|
|
@@ -1106,13 +1106,13 @@ function rad2Deg$1(rad) {
|
|
|
1106
1106
|
return (rad * 180) / Math.PI;
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
-
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.
|
|
1109
|
+
/* src/floorplan/Components/Camera.svelte generated by Svelte v3.48.0 */
|
|
1110
1110
|
|
|
1111
|
-
function add_css$
|
|
1111
|
+
function add_css$o(target) {
|
|
1112
1112
|
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%}");
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
|
-
function create_fragment$
|
|
1115
|
+
function create_fragment$t(ctx) {
|
|
1116
1116
|
let div1;
|
|
1117
1117
|
let div0;
|
|
1118
1118
|
|
|
@@ -1149,7 +1149,7 @@ function create_fragment$s(ctx) {
|
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
|
-
function instance$
|
|
1152
|
+
function instance$t($$self, $$props, $$invalidate) {
|
|
1153
1153
|
let { panoIndex } = $$props;
|
|
1154
1154
|
let { floorplanData } = $$props;
|
|
1155
1155
|
let { lastPanoramaLongitude } = $$props;
|
|
@@ -1195,8 +1195,8 @@ class Camera$1 extends SvelteComponent {
|
|
|
1195
1195
|
init(
|
|
1196
1196
|
this,
|
|
1197
1197
|
options,
|
|
1198
|
-
instance$
|
|
1199
|
-
create_fragment$
|
|
1198
|
+
instance$t,
|
|
1199
|
+
create_fragment$t,
|
|
1200
1200
|
safe_not_equal,
|
|
1201
1201
|
{
|
|
1202
1202
|
panoIndex: 5,
|
|
@@ -1204,16 +1204,16 @@ class Camera$1 extends SvelteComponent {
|
|
|
1204
1204
|
lastPanoramaLongitude: 7,
|
|
1205
1205
|
cameraImageUrl: 0
|
|
1206
1206
|
},
|
|
1207
|
-
add_css$
|
|
1207
|
+
add_css$o
|
|
1208
1208
|
);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
1212
|
const COMPASS_IMAGE = 'data:image/png;base64,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';
|
|
1213
1213
|
|
|
1214
|
-
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.
|
|
1214
|
+
/* src/floorplan/Components/Compass.svelte generated by Svelte v3.48.0 */
|
|
1215
1215
|
|
|
1216
|
-
function add_css$
|
|
1216
|
+
function add_css$n(target) {
|
|
1217
1217
|
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}");
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
@@ -1254,7 +1254,7 @@ function create_if_block$b(ctx) {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
|
-
function create_fragment$
|
|
1257
|
+
function create_fragment$s(ctx) {
|
|
1258
1258
|
let if_block_anchor;
|
|
1259
1259
|
let if_block = /*canCompassShow*/ ctx[1] && create_if_block$b(ctx);
|
|
1260
1260
|
|
|
@@ -1283,7 +1283,7 @@ function rad2Deg(rad) {
|
|
|
1283
1283
|
return rad / Math.PI * 180;
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
|
-
function instance$
|
|
1286
|
+
function instance$s($$self, $$props, $$invalidate) {
|
|
1287
1287
|
var _a;
|
|
1288
1288
|
let { floorplanData } = $$props;
|
|
1289
1289
|
let { northDesc } = $$props;
|
|
@@ -1307,17 +1307,17 @@ function instance$r($$self, $$props, $$invalidate) {
|
|
|
1307
1307
|
class Compass extends SvelteComponent {
|
|
1308
1308
|
constructor(options) {
|
|
1309
1309
|
super();
|
|
1310
|
-
init(this, options, instance$
|
|
1310
|
+
init(this, options, instance$s, create_fragment$s, safe_not_equal, { floorplanData: 3, northDesc: 0 }, add_css$n);
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
|
-
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.
|
|
1314
|
+
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.48.0 */
|
|
1315
1315
|
|
|
1316
|
-
function add_css$
|
|
1316
|
+
function add_css$m(target) {
|
|
1317
1317
|
append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
-
function create_fragment$
|
|
1320
|
+
function create_fragment$r(ctx) {
|
|
1321
1321
|
let img;
|
|
1322
1322
|
let img_src_value;
|
|
1323
1323
|
|
|
@@ -1344,7 +1344,7 @@ function create_fragment$q(ctx) {
|
|
|
1344
1344
|
};
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
|
-
function instance$
|
|
1347
|
+
function instance$r($$self, $$props, $$invalidate) {
|
|
1348
1348
|
let { url } = $$props;
|
|
1349
1349
|
|
|
1350
1350
|
$$self.$$set = $$props => {
|
|
@@ -1357,17 +1357,17 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
1357
1357
|
class Normalmage extends SvelteComponent {
|
|
1358
1358
|
constructor(options) {
|
|
1359
1359
|
super();
|
|
1360
|
-
init(this, options, instance$
|
|
1360
|
+
init(this, options, instance$r, create_fragment$r, safe_not_equal, { url: 0 }, add_css$m);
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
|
-
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.
|
|
1364
|
+
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.48.0 */
|
|
1365
1365
|
|
|
1366
|
-
function add_css$
|
|
1366
|
+
function add_css$l(target) {
|
|
1367
1367
|
append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
|
-
function create_fragment$
|
|
1370
|
+
function create_fragment$q(ctx) {
|
|
1371
1371
|
let div;
|
|
1372
1372
|
let html_tag;
|
|
1373
1373
|
let t;
|
|
@@ -1400,7 +1400,7 @@ function create_fragment$p(ctx) {
|
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
1403
|
-
function instance$
|
|
1403
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
1404
1404
|
let { content } = $$props;
|
|
1405
1405
|
|
|
1406
1406
|
const svgStyle = `
|
|
@@ -1424,18 +1424,18 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
1424
1424
|
class SvgImage extends SvelteComponent {
|
|
1425
1425
|
constructor(options) {
|
|
1426
1426
|
super();
|
|
1427
|
-
init(this, options, instance$
|
|
1427
|
+
init(this, options, instance$q, create_fragment$q, safe_not_equal, { content: 0 }, add_css$l);
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
|
-
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.
|
|
1431
|
+
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.48.0 */
|
|
1432
1432
|
|
|
1433
|
-
function add_css$
|
|
1433
|
+
function add_css$k(target) {
|
|
1434
1434
|
append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
1435
1435
|
}
|
|
1436
1436
|
|
|
1437
1437
|
// (13:22)
|
|
1438
|
-
function create_if_block_1$
|
|
1438
|
+
function create_if_block_1$6(ctx) {
|
|
1439
1439
|
let normalimage;
|
|
1440
1440
|
let current;
|
|
1441
1441
|
normalimage = new Normalmage({ props: { url: /*imageData*/ ctx[1].url } });
|
|
@@ -1505,12 +1505,12 @@ function create_if_block$a(ctx) {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
|
-
function create_fragment$
|
|
1508
|
+
function create_fragment$p(ctx) {
|
|
1509
1509
|
let div;
|
|
1510
1510
|
let current_block_type_index;
|
|
1511
1511
|
let if_block;
|
|
1512
1512
|
let current;
|
|
1513
|
-
const if_block_creators = [create_if_block$a, create_if_block_1$
|
|
1513
|
+
const if_block_creators = [create_if_block$a, create_if_block_1$6];
|
|
1514
1514
|
const if_blocks = [];
|
|
1515
1515
|
|
|
1516
1516
|
function select_block_type(ctx, dirty) {
|
|
@@ -1593,7 +1593,7 @@ function create_fragment$o(ctx) {
|
|
|
1593
1593
|
};
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
|
-
function instance$
|
|
1596
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
1597
1597
|
let imageData;
|
|
1598
1598
|
let svgContent;
|
|
1599
1599
|
var _a, _b;
|
|
@@ -1625,18 +1625,18 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
1625
1625
|
class BaseImage extends SvelteComponent {
|
|
1626
1626
|
constructor(options) {
|
|
1627
1627
|
super();
|
|
1628
|
-
init(this, options, instance$
|
|
1628
|
+
init(this, options, instance$p, create_fragment$p, safe_not_equal, { floorIndex: 2, floorplanData: 3 }, add_css$k);
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
|
-
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.
|
|
1632
|
+
/* src/floorplan/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.48.0 */
|
|
1633
1633
|
|
|
1634
|
-
function add_css$
|
|
1634
|
+
function add_css$j(target) {
|
|
1635
1635
|
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}");
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
1638
|
// (95:30)
|
|
1639
|
-
function create_if_block_1$
|
|
1639
|
+
function create_if_block_1$5(ctx) {
|
|
1640
1640
|
let html_tag;
|
|
1641
1641
|
let raw_value = /*userConfigElement*/ ctx[4].outerHTML + "";
|
|
1642
1642
|
let html_anchor;
|
|
@@ -1696,12 +1696,12 @@ function create_if_block$9(ctx) {
|
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
|
-
function create_fragment$
|
|
1699
|
+
function create_fragment$o(ctx) {
|
|
1700
1700
|
let div;
|
|
1701
1701
|
|
|
1702
1702
|
function select_block_type(ctx, dirty) {
|
|
1703
1703
|
if (/*getLabelElement*/ ctx[1] === undefined) return create_if_block$9;
|
|
1704
|
-
if (/*userConfigElement*/ ctx[4]) return create_if_block_1$
|
|
1704
|
+
if (/*userConfigElement*/ ctx[4]) return create_if_block_1$5;
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
1707
|
let current_block_type = select_block_type(ctx);
|
|
@@ -1770,7 +1770,7 @@ function isPointInPolygon(point, polygon) {
|
|
|
1770
1770
|
return inside;
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
-
function instance$
|
|
1773
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
1774
1774
|
let isLabelInRoom;
|
|
1775
1775
|
let userConfigElement;
|
|
1776
1776
|
let labelVisible;
|
|
@@ -1914,8 +1914,8 @@ class RoomLabel extends SvelteComponent {
|
|
|
1914
1914
|
init(
|
|
1915
1915
|
this,
|
|
1916
1916
|
options,
|
|
1917
|
-
instance$
|
|
1918
|
-
create_fragment$
|
|
1917
|
+
instance$o,
|
|
1918
|
+
create_fragment$o,
|
|
1919
1919
|
safe_not_equal,
|
|
1920
1920
|
{
|
|
1921
1921
|
pxmm: 9,
|
|
@@ -1924,14 +1924,14 @@ class RoomLabel extends SvelteComponent {
|
|
|
1924
1924
|
getLabelElement: 1,
|
|
1925
1925
|
adaptiveRoomLabelVisibleEnable: 11
|
|
1926
1926
|
},
|
|
1927
|
-
add_css$
|
|
1927
|
+
add_css$j
|
|
1928
1928
|
);
|
|
1929
1929
|
}
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
|
-
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.
|
|
1932
|
+
/* src/floorplan/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.48.0 */
|
|
1933
1933
|
|
|
1934
|
-
function add_css$
|
|
1934
|
+
function add_css$i(target) {
|
|
1935
1935
|
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}");
|
|
1936
1936
|
}
|
|
1937
1937
|
|
|
@@ -2084,7 +2084,7 @@ function create_each_block$b(key_1, ctx) {
|
|
|
2084
2084
|
};
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
|
-
function create_fragment$
|
|
2087
|
+
function create_fragment$n(ctx) {
|
|
2088
2088
|
let if_block_anchor;
|
|
2089
2089
|
let current;
|
|
2090
2090
|
let if_block = /*rooms*/ ctx[5] && create_if_block$8(ctx);
|
|
@@ -2139,7 +2139,7 @@ function create_fragment$m(ctx) {
|
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
2141
|
|
|
2142
|
-
function instance$
|
|
2142
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
2143
2143
|
let rooms;
|
|
2144
2144
|
let { floorIndex } = $$props;
|
|
2145
2145
|
let { floorplanData } = $$props;
|
|
@@ -2196,8 +2196,8 @@ class RoomLabels extends SvelteComponent {
|
|
|
2196
2196
|
init(
|
|
2197
2197
|
this,
|
|
2198
2198
|
options,
|
|
2199
|
-
instance$
|
|
2200
|
-
create_fragment$
|
|
2199
|
+
instance$n,
|
|
2200
|
+
create_fragment$n,
|
|
2201
2201
|
safe_not_equal,
|
|
2202
2202
|
{
|
|
2203
2203
|
floorIndex: 6,
|
|
@@ -2206,14 +2206,14 @@ class RoomLabels extends SvelteComponent {
|
|
|
2206
2206
|
getLabelElement: 1,
|
|
2207
2207
|
adaptiveRoomLabelVisibleEnable: 2
|
|
2208
2208
|
},
|
|
2209
|
-
add_css$
|
|
2209
|
+
add_css$i
|
|
2210
2210
|
);
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
2213
|
|
|
2214
|
-
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.
|
|
2214
|
+
/* src/floorplan/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.48.0 */
|
|
2215
2215
|
|
|
2216
|
-
function add_css$
|
|
2216
|
+
function add_css$h(target) {
|
|
2217
2217
|
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}");
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
@@ -2289,7 +2289,7 @@ function create_each_block$a(key_1, ctx) {
|
|
|
2289
2289
|
};
|
|
2290
2290
|
}
|
|
2291
2291
|
|
|
2292
|
-
function create_fragment$
|
|
2292
|
+
function create_fragment$m(ctx) {
|
|
2293
2293
|
let div3;
|
|
2294
2294
|
let div0;
|
|
2295
2295
|
let t0;
|
|
@@ -2412,7 +2412,7 @@ function create_fragment$l(ctx) {
|
|
|
2412
2412
|
const padding$1 = 1000;
|
|
2413
2413
|
const exteriorWallOffset$1 = 180;
|
|
2414
2414
|
|
|
2415
|
-
function instance$
|
|
2415
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
2416
2416
|
let { type } = $$props;
|
|
2417
2417
|
let { data } = $$props;
|
|
2418
2418
|
let { bounding } = $$props;
|
|
@@ -2471,13 +2471,13 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
2471
2471
|
class RuleItem extends SvelteComponent {
|
|
2472
2472
|
constructor(options) {
|
|
2473
2473
|
super();
|
|
2474
|
-
init(this, options, instance$
|
|
2474
|
+
init(this, options, instance$m, create_fragment$m, safe_not_equal, { type: 0, data: 4, bounding: 5 }, add_css$h);
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
2477
|
|
|
2478
|
-
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.
|
|
2478
|
+
/* src/floorplan/Components/RuleLabels/RuleLabels.svelte generated by Svelte v3.48.0 */
|
|
2479
2479
|
|
|
2480
|
-
function add_css$
|
|
2480
|
+
function add_css$g(target) {
|
|
2481
2481
|
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}");
|
|
2482
2482
|
}
|
|
2483
2483
|
|
|
@@ -2554,7 +2554,7 @@ function create_each_block$9(key_1, ctx) {
|
|
|
2554
2554
|
};
|
|
2555
2555
|
}
|
|
2556
2556
|
|
|
2557
|
-
function create_fragment$
|
|
2557
|
+
function create_fragment$l(ctx) {
|
|
2558
2558
|
let div;
|
|
2559
2559
|
let each_blocks = [];
|
|
2560
2560
|
let each_1_lookup = new Map();
|
|
@@ -2634,7 +2634,7 @@ function create_fragment$k(ctx) {
|
|
|
2634
2634
|
const padding = 1000;
|
|
2635
2635
|
const exteriorWallOffset = 180;
|
|
2636
2636
|
|
|
2637
|
-
function instance$
|
|
2637
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
2638
2638
|
let bounding;
|
|
2639
2639
|
let ruleLabelData;
|
|
2640
2640
|
let ruleLabelDataKeys;
|
|
@@ -2714,7 +2714,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
2714
2714
|
class RuleLabels extends SvelteComponent {
|
|
2715
2715
|
constructor(options) {
|
|
2716
2716
|
super();
|
|
2717
|
-
init(this, options, instance$
|
|
2717
|
+
init(this, options, instance$l, create_fragment$l, safe_not_equal, { floorIndex: 4, floorplanData: 5 }, add_css$g);
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
2720
|
|
|
@@ -2769,9 +2769,9 @@ function getFloorIndexFromModelPosition(position, five) {
|
|
|
2769
2769
|
return floorIndex;
|
|
2770
2770
|
}
|
|
2771
2771
|
|
|
2772
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.
|
|
2772
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte generated by Svelte v3.48.0 */
|
|
2773
2773
|
|
|
2774
|
-
function create_fragment$
|
|
2774
|
+
function create_fragment$k(ctx) {
|
|
2775
2775
|
let path_1;
|
|
2776
2776
|
|
|
2777
2777
|
return {
|
|
@@ -2796,7 +2796,7 @@ function create_fragment$j(ctx) {
|
|
|
2796
2796
|
};
|
|
2797
2797
|
}
|
|
2798
2798
|
|
|
2799
|
-
function instance$
|
|
2799
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
2800
2800
|
let d;
|
|
2801
2801
|
let { path } = $$props;
|
|
2802
2802
|
|
|
@@ -2816,13 +2816,13 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
2816
2816
|
class RoomMaterial_0 extends SvelteComponent {
|
|
2817
2817
|
constructor(options) {
|
|
2818
2818
|
super();
|
|
2819
|
-
init(this, options, instance$
|
|
2819
|
+
init(this, options, instance$k, create_fragment$k, safe_not_equal, { path: 1 });
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
|
|
2823
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.
|
|
2823
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte generated by Svelte v3.48.0 */
|
|
2824
2824
|
|
|
2825
|
-
function create_fragment$
|
|
2825
|
+
function create_fragment$j(ctx) {
|
|
2826
2826
|
let defs;
|
|
2827
2827
|
let pattern;
|
|
2828
2828
|
let rect;
|
|
@@ -2883,7 +2883,7 @@ function create_fragment$i(ctx) {
|
|
|
2883
2883
|
|
|
2884
2884
|
const halfWidth = 6;
|
|
2885
2885
|
|
|
2886
|
-
function instance$
|
|
2886
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
2887
2887
|
let d;
|
|
2888
2888
|
let { path } = $$props;
|
|
2889
2889
|
const width = halfWidth * 2;
|
|
@@ -2905,13 +2905,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
2905
2905
|
class RoomMaterial_1 extends SvelteComponent {
|
|
2906
2906
|
constructor(options) {
|
|
2907
2907
|
super();
|
|
2908
|
-
init(this, options, instance$
|
|
2908
|
+
init(this, options, instance$j, create_fragment$j, safe_not_equal, { path: 3 });
|
|
2909
2909
|
}
|
|
2910
2910
|
}
|
|
2911
2911
|
|
|
2912
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.
|
|
2912
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte generated by Svelte v3.48.0 */
|
|
2913
2913
|
|
|
2914
|
-
function create_fragment$
|
|
2914
|
+
function create_fragment$i(ctx) {
|
|
2915
2915
|
let defs;
|
|
2916
2916
|
let pattern0;
|
|
2917
2917
|
let rect0;
|
|
@@ -3012,7 +3012,7 @@ function create_fragment$h(ctx) {
|
|
|
3012
3012
|
};
|
|
3013
3013
|
}
|
|
3014
3014
|
|
|
3015
|
-
function instance$
|
|
3015
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
3016
3016
|
let d;
|
|
3017
3017
|
let { path } = $$props;
|
|
3018
3018
|
|
|
@@ -3032,13 +3032,13 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3032
3032
|
class RoomMaterial_2 extends SvelteComponent {
|
|
3033
3033
|
constructor(options) {
|
|
3034
3034
|
super();
|
|
3035
|
-
init(this, options, instance$
|
|
3035
|
+
init(this, options, instance$i, create_fragment$i, safe_not_equal, { path: 1 });
|
|
3036
3036
|
}
|
|
3037
3037
|
}
|
|
3038
3038
|
|
|
3039
|
-
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.
|
|
3039
|
+
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.48.0 */
|
|
3040
3040
|
|
|
3041
|
-
function add_css$
|
|
3041
|
+
function add_css$f(target) {
|
|
3042
3042
|
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}");
|
|
3043
3043
|
}
|
|
3044
3044
|
|
|
@@ -3049,7 +3049,7 @@ function get_each_context$8(ctx, list, i) {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
|
|
3051
3051
|
// (19:6) {:else}
|
|
3052
|
-
function create_else_block$
|
|
3052
|
+
function create_else_block$2(ctx) {
|
|
3053
3053
|
let roommaterial_1;
|
|
3054
3054
|
let current;
|
|
3055
3055
|
roommaterial_1 = new RoomMaterial_1({ props: { path: /*room*/ ctx[5].path } });
|
|
@@ -3083,7 +3083,7 @@ function create_else_block$1(ctx) {
|
|
|
3083
3083
|
}
|
|
3084
3084
|
|
|
3085
3085
|
// (17:37)
|
|
3086
|
-
function create_if_block_1$
|
|
3086
|
+
function create_if_block_1$4(ctx) {
|
|
3087
3087
|
let roommaterial_2;
|
|
3088
3088
|
let current;
|
|
3089
3089
|
roommaterial_2 = new RoomMaterial_2({ props: { path: /*room*/ ctx[5].path } });
|
|
@@ -3156,7 +3156,7 @@ function create_each_block$8(ctx) {
|
|
|
3156
3156
|
let current_block_type_index;
|
|
3157
3157
|
let if_block;
|
|
3158
3158
|
let current;
|
|
3159
|
-
const if_block_creators = [create_if_block$7, create_if_block_1$
|
|
3159
|
+
const if_block_creators = [create_if_block$7, create_if_block_1$4, create_else_block$2];
|
|
3160
3160
|
const if_blocks = [];
|
|
3161
3161
|
|
|
3162
3162
|
function select_block_type(ctx, dirty) {
|
|
@@ -3225,7 +3225,7 @@ function create_each_block$8(ctx) {
|
|
|
3225
3225
|
};
|
|
3226
3226
|
}
|
|
3227
3227
|
|
|
3228
|
-
function create_fragment$
|
|
3228
|
+
function create_fragment$h(ctx) {
|
|
3229
3229
|
let div;
|
|
3230
3230
|
let current;
|
|
3231
3231
|
let each_value = /*rooms*/ ctx[0];
|
|
@@ -3311,7 +3311,7 @@ function create_fragment$g(ctx) {
|
|
|
3311
3311
|
};
|
|
3312
3312
|
}
|
|
3313
3313
|
|
|
3314
|
-
function instance$
|
|
3314
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
3315
3315
|
let rooms;
|
|
3316
3316
|
let { floorIndex } = $$props;
|
|
3317
3317
|
let { floorplanData } = $$props;
|
|
@@ -3337,17 +3337,17 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
3337
3337
|
class RoomMaterial extends SvelteComponent {
|
|
3338
3338
|
constructor(options) {
|
|
3339
3339
|
super();
|
|
3340
|
-
init(this, options, instance$
|
|
3340
|
+
init(this, options, instance$h, create_fragment$h, safe_not_equal, { floorIndex: 3, floorplanData: 4 }, add_css$f);
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
3343
|
|
|
3344
|
-
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.
|
|
3344
|
+
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.48.0 */
|
|
3345
3345
|
|
|
3346
|
-
function add_css$
|
|
3346
|
+
function add_css$e(target) {
|
|
3347
3347
|
append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
3348
3348
|
}
|
|
3349
3349
|
|
|
3350
|
-
function create_fragment$
|
|
3350
|
+
function create_fragment$g(ctx) {
|
|
3351
3351
|
let path;
|
|
3352
3352
|
let mounted;
|
|
3353
3353
|
let dispose;
|
|
@@ -3382,7 +3382,7 @@ function create_fragment$f(ctx) {
|
|
|
3382
3382
|
};
|
|
3383
3383
|
}
|
|
3384
3384
|
|
|
3385
|
-
function instance$
|
|
3385
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
3386
3386
|
let { room } = $$props;
|
|
3387
3387
|
let { floorplanData } = $$props;
|
|
3388
3388
|
let { hoveredRoom } = $$props;
|
|
@@ -3418,22 +3418,22 @@ class Room extends SvelteComponent {
|
|
|
3418
3418
|
init(
|
|
3419
3419
|
this,
|
|
3420
3420
|
options,
|
|
3421
|
-
instance$
|
|
3422
|
-
create_fragment$
|
|
3421
|
+
instance$g,
|
|
3422
|
+
create_fragment$g,
|
|
3423
3423
|
safe_not_equal,
|
|
3424
3424
|
{
|
|
3425
3425
|
room: 3,
|
|
3426
3426
|
floorplanData: 4,
|
|
3427
3427
|
hoveredRoom: 5
|
|
3428
3428
|
},
|
|
3429
|
-
add_css$
|
|
3429
|
+
add_css$e
|
|
3430
3430
|
);
|
|
3431
3431
|
}
|
|
3432
3432
|
}
|
|
3433
3433
|
|
|
3434
|
-
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.
|
|
3434
|
+
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.48.0 */
|
|
3435
3435
|
|
|
3436
|
-
function add_css$
|
|
3436
|
+
function add_css$d(target) {
|
|
3437
3437
|
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}");
|
|
3438
3438
|
}
|
|
3439
3439
|
|
|
@@ -3509,7 +3509,7 @@ function create_each_block$7(key_1, ctx) {
|
|
|
3509
3509
|
};
|
|
3510
3510
|
}
|
|
3511
3511
|
|
|
3512
|
-
function create_fragment$
|
|
3512
|
+
function create_fragment$f(ctx) {
|
|
3513
3513
|
let div;
|
|
3514
3514
|
let svg;
|
|
3515
3515
|
let each_blocks = [];
|
|
@@ -3583,7 +3583,7 @@ function create_fragment$e(ctx) {
|
|
|
3583
3583
|
};
|
|
3584
3584
|
}
|
|
3585
3585
|
|
|
3586
|
-
function instance$
|
|
3586
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
3587
3587
|
let { floorIndex } = $$props;
|
|
3588
3588
|
let { floorplanData } = $$props;
|
|
3589
3589
|
let { hoveredRoom } = $$props;
|
|
@@ -3606,22 +3606,22 @@ class RoomHighlight extends SvelteComponent {
|
|
|
3606
3606
|
init(
|
|
3607
3607
|
this,
|
|
3608
3608
|
options,
|
|
3609
|
-
instance$
|
|
3610
|
-
create_fragment$
|
|
3609
|
+
instance$f,
|
|
3610
|
+
create_fragment$f,
|
|
3611
3611
|
safe_not_equal,
|
|
3612
3612
|
{
|
|
3613
3613
|
floorIndex: 0,
|
|
3614
3614
|
floorplanData: 1,
|
|
3615
3615
|
hoveredRoom: 2
|
|
3616
3616
|
},
|
|
3617
|
-
add_css$
|
|
3617
|
+
add_css$d
|
|
3618
3618
|
);
|
|
3619
3619
|
}
|
|
3620
3620
|
}
|
|
3621
3621
|
|
|
3622
|
-
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.
|
|
3622
|
+
/* src/floorplan/Components/CurrentFloor.svelte generated by Svelte v3.48.0 */
|
|
3623
3623
|
|
|
3624
|
-
function add_css$
|
|
3624
|
+
function add_css$c(target) {
|
|
3625
3625
|
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}");
|
|
3626
3626
|
}
|
|
3627
3627
|
|
|
@@ -3683,7 +3683,7 @@ function create_if_block_2(ctx) {
|
|
|
3683
3683
|
}
|
|
3684
3684
|
|
|
3685
3685
|
// (24:2) {#if roomLabelsEnable}
|
|
3686
|
-
function create_if_block_1$
|
|
3686
|
+
function create_if_block_1$3(ctx) {
|
|
3687
3687
|
let roomlabels;
|
|
3688
3688
|
let current;
|
|
3689
3689
|
|
|
@@ -3798,7 +3798,7 @@ function create_if_block$6(ctx) {
|
|
|
3798
3798
|
};
|
|
3799
3799
|
}
|
|
3800
3800
|
|
|
3801
|
-
function create_fragment$
|
|
3801
|
+
function create_fragment$e(ctx) {
|
|
3802
3802
|
let div;
|
|
3803
3803
|
let roommaterial;
|
|
3804
3804
|
let t0;
|
|
@@ -3839,7 +3839,7 @@ function create_fragment$d(ctx) {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
|
|
3841
3841
|
baseimage = new BaseImage({ props: baseimage_props });
|
|
3842
|
-
let if_block1 = /*roomLabelsEnable*/ ctx[3] && create_if_block_1$
|
|
3842
|
+
let if_block1 = /*roomLabelsEnable*/ ctx[3] && create_if_block_1$3(ctx);
|
|
3843
3843
|
let if_block2 = /*ruleLabelsEnable*/ ctx[4] && create_if_block$6(ctx);
|
|
3844
3844
|
|
|
3845
3845
|
return {
|
|
@@ -3926,7 +3926,7 @@ function create_fragment$d(ctx) {
|
|
|
3926
3926
|
transition_in(if_block1, 1);
|
|
3927
3927
|
}
|
|
3928
3928
|
} else {
|
|
3929
|
-
if_block1 = create_if_block_1$
|
|
3929
|
+
if_block1 = create_if_block_1$3(ctx);
|
|
3930
3930
|
if_block1.c();
|
|
3931
3931
|
transition_in(if_block1, 1);
|
|
3932
3932
|
if_block1.m(div, t3);
|
|
@@ -3998,7 +3998,7 @@ function create_fragment$d(ctx) {
|
|
|
3998
3998
|
};
|
|
3999
3999
|
}
|
|
4000
4000
|
|
|
4001
|
-
function instance$
|
|
4001
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
4002
4002
|
let { isCurrent } = $$props;
|
|
4003
4003
|
let { floorIndex } = $$props;
|
|
4004
4004
|
let { hoverEnable } = $$props;
|
|
@@ -4040,8 +4040,8 @@ class CurrentFloor$1 extends SvelteComponent {
|
|
|
4040
4040
|
init(
|
|
4041
4041
|
this,
|
|
4042
4042
|
options,
|
|
4043
|
-
instance$
|
|
4044
|
-
create_fragment$
|
|
4043
|
+
instance$e,
|
|
4044
|
+
create_fragment$e,
|
|
4045
4045
|
safe_not_equal,
|
|
4046
4046
|
{
|
|
4047
4047
|
isCurrent: 0,
|
|
@@ -4053,14 +4053,14 @@ class CurrentFloor$1 extends SvelteComponent {
|
|
|
4053
4053
|
getLabelElement: 6,
|
|
4054
4054
|
adaptiveRoomLabelVisibleEnable: 7
|
|
4055
4055
|
},
|
|
4056
|
-
add_css$
|
|
4056
|
+
add_css$c
|
|
4057
4057
|
);
|
|
4058
4058
|
}
|
|
4059
4059
|
}
|
|
4060
4060
|
|
|
4061
|
-
/* src/floorplan/Components/Main.svelte generated by Svelte v3.
|
|
4061
|
+
/* src/floorplan/Components/Main.svelte generated by Svelte v3.48.0 */
|
|
4062
4062
|
|
|
4063
|
-
function add_css$
|
|
4063
|
+
function add_css$b(target) {
|
|
4064
4064
|
append_styles(target, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
|
|
4065
4065
|
}
|
|
4066
4066
|
|
|
@@ -4105,7 +4105,7 @@ function create_if_block$5(ctx) {
|
|
|
4105
4105
|
}
|
|
4106
4106
|
|
|
4107
4107
|
camera = new Camera$1({ props: camera_props });
|
|
4108
|
-
let if_block = /*compassEnable*/ ctx[6] && create_if_block_1$
|
|
4108
|
+
let if_block = /*compassEnable*/ ctx[6] && create_if_block_1$2(ctx);
|
|
4109
4109
|
|
|
4110
4110
|
return {
|
|
4111
4111
|
c() {
|
|
@@ -4185,7 +4185,7 @@ function create_if_block$5(ctx) {
|
|
|
4185
4185
|
transition_in(if_block, 1);
|
|
4186
4186
|
}
|
|
4187
4187
|
} else {
|
|
4188
|
-
if_block = create_if_block_1$
|
|
4188
|
+
if_block = create_if_block_1$2(ctx);
|
|
4189
4189
|
if_block.c();
|
|
4190
4190
|
transition_in(if_block, 1);
|
|
4191
4191
|
if_block.m(div, null);
|
|
@@ -4319,7 +4319,7 @@ function create_each_block$6(ctx) {
|
|
|
4319
4319
|
}
|
|
4320
4320
|
|
|
4321
4321
|
// (39:4) {#if compassEnable}
|
|
4322
|
-
function create_if_block_1$
|
|
4322
|
+
function create_if_block_1$2(ctx) {
|
|
4323
4323
|
let compass;
|
|
4324
4324
|
let current;
|
|
4325
4325
|
|
|
@@ -4359,7 +4359,7 @@ function create_if_block_1$1(ctx) {
|
|
|
4359
4359
|
};
|
|
4360
4360
|
}
|
|
4361
4361
|
|
|
4362
|
-
function create_fragment$
|
|
4362
|
+
function create_fragment$d(ctx) {
|
|
4363
4363
|
let if_block_anchor;
|
|
4364
4364
|
let current;
|
|
4365
4365
|
let if_block = /*visible*/ ctx[1] && create_if_block$5(ctx);
|
|
@@ -4414,7 +4414,7 @@ function create_fragment$c(ctx) {
|
|
|
4414
4414
|
};
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
4417
|
-
function instance$
|
|
4417
|
+
function instance$d($$self, $$props, $$invalidate) {
|
|
4418
4418
|
let { duration = 0 } = $$props;
|
|
4419
4419
|
let { visible } = $$props;
|
|
4420
4420
|
let { northDesc } = $$props;
|
|
@@ -4472,8 +4472,8 @@ class Main$1 extends SvelteComponent {
|
|
|
4472
4472
|
init(
|
|
4473
4473
|
this,
|
|
4474
4474
|
options,
|
|
4475
|
-
instance$
|
|
4476
|
-
create_fragment$
|
|
4475
|
+
instance$d,
|
|
4476
|
+
create_fragment$d,
|
|
4477
4477
|
safe_not_equal,
|
|
4478
4478
|
{
|
|
4479
4479
|
duration: 0,
|
|
@@ -4491,7 +4491,7 @@ class Main$1 extends SvelteComponent {
|
|
|
4491
4491
|
getLabelElement: 12,
|
|
4492
4492
|
adaptiveRoomLabelVisibleEnable: 13
|
|
4493
4493
|
},
|
|
4494
|
-
add_css$
|
|
4494
|
+
add_css$b
|
|
4495
4495
|
);
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
@@ -5252,13 +5252,13 @@ function throttle(func, wait = 200) {
|
|
|
5252
5252
|
};
|
|
5253
5253
|
}
|
|
5254
5254
|
|
|
5255
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.
|
|
5255
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.48.0 */
|
|
5256
5256
|
|
|
5257
|
-
function add_css$
|
|
5257
|
+
function add_css$a(target) {
|
|
5258
5258
|
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%}");
|
|
5259
5259
|
}
|
|
5260
5260
|
|
|
5261
|
-
function create_fragment$
|
|
5261
|
+
function create_fragment$c(ctx) {
|
|
5262
5262
|
let div2;
|
|
5263
5263
|
let div1;
|
|
5264
5264
|
let div0;
|
|
@@ -5308,7 +5308,7 @@ function getCameraRotateTransform(longitude) {
|
|
|
5308
5308
|
return `rotate(${rotate}deg)`;
|
|
5309
5309
|
}
|
|
5310
5310
|
|
|
5311
|
-
function instance$
|
|
5311
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
5312
5312
|
let positionTransform;
|
|
5313
5313
|
let rotateTransform;
|
|
5314
5314
|
let { five } = $$props;
|
|
@@ -5388,8 +5388,8 @@ class Camera extends SvelteComponent {
|
|
|
5388
5388
|
init(
|
|
5389
5389
|
this,
|
|
5390
5390
|
options,
|
|
5391
|
-
instance$
|
|
5392
|
-
create_fragment$
|
|
5391
|
+
instance$c,
|
|
5392
|
+
create_fragment$c,
|
|
5393
5393
|
safe_not_equal,
|
|
5394
5394
|
{
|
|
5395
5395
|
five: 3,
|
|
@@ -5397,14 +5397,14 @@ class Camera extends SvelteComponent {
|
|
|
5397
5397
|
floorplanData: 5,
|
|
5398
5398
|
cameraImageUrl: 0
|
|
5399
5399
|
},
|
|
5400
|
-
add_css$
|
|
5400
|
+
add_css$a
|
|
5401
5401
|
);
|
|
5402
5402
|
}
|
|
5403
5403
|
}
|
|
5404
5404
|
|
|
5405
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.
|
|
5405
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.48.0 */
|
|
5406
5406
|
|
|
5407
|
-
function add_css$
|
|
5407
|
+
function add_css$9(target) {
|
|
5408
5408
|
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%)}");
|
|
5409
5409
|
}
|
|
5410
5410
|
|
|
@@ -5474,7 +5474,7 @@ function create_each_block$5(key_1, ctx) {
|
|
|
5474
5474
|
};
|
|
5475
5475
|
}
|
|
5476
5476
|
|
|
5477
|
-
function create_fragment$
|
|
5477
|
+
function create_fragment$b(ctx) {
|
|
5478
5478
|
let div;
|
|
5479
5479
|
let each_blocks = [];
|
|
5480
5480
|
let each_1_lookup = new Map();
|
|
@@ -5522,7 +5522,7 @@ function create_fragment$a(ctx) {
|
|
|
5522
5522
|
};
|
|
5523
5523
|
}
|
|
5524
5524
|
|
|
5525
|
-
function instance$
|
|
5525
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
5526
5526
|
let { extraObjects = [] } = $$props;
|
|
5527
5527
|
|
|
5528
5528
|
$$self.$$set = $$props => {
|
|
@@ -5535,11 +5535,11 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
5535
5535
|
class ExtraObjects extends SvelteComponent {
|
|
5536
5536
|
constructor(options) {
|
|
5537
5537
|
super();
|
|
5538
|
-
init(this, options, instance$
|
|
5538
|
+
init(this, options, instance$b, create_fragment$b, safe_not_equal, { extraObjects: 0 }, add_css$9);
|
|
5539
5539
|
}
|
|
5540
5540
|
}
|
|
5541
5541
|
|
|
5542
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.
|
|
5542
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.48.0 */
|
|
5543
5543
|
|
|
5544
5544
|
function create_if_block$4(ctx) {
|
|
5545
5545
|
let highlight;
|
|
@@ -5601,7 +5601,7 @@ function create_if_block$4(ctx) {
|
|
|
5601
5601
|
};
|
|
5602
5602
|
}
|
|
5603
5603
|
|
|
5604
|
-
function create_fragment$
|
|
5604
|
+
function create_fragment$a(ctx) {
|
|
5605
5605
|
let baseimage;
|
|
5606
5606
|
let t0;
|
|
5607
5607
|
let extraobjects;
|
|
@@ -5712,7 +5712,7 @@ function create_fragment$9(ctx) {
|
|
|
5712
5712
|
};
|
|
5713
5713
|
}
|
|
5714
5714
|
|
|
5715
|
-
function instance$
|
|
5715
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
5716
5716
|
let currentFloorExtraObjects;
|
|
5717
5717
|
let { five } = $$props;
|
|
5718
5718
|
let { pxmm } = $$props;
|
|
@@ -5755,7 +5755,7 @@ class CurrentFloor extends SvelteComponent {
|
|
|
5755
5755
|
constructor(options) {
|
|
5756
5756
|
super();
|
|
5757
5757
|
|
|
5758
|
-
init(this, options, instance$
|
|
5758
|
+
init(this, options, instance$a, create_fragment$a, safe_not_equal, {
|
|
5759
5759
|
five: 0,
|
|
5760
5760
|
pxmm: 1,
|
|
5761
5761
|
floorIndex: 2,
|
|
@@ -5766,9 +5766,9 @@ class CurrentFloor extends SvelteComponent {
|
|
|
5766
5766
|
}
|
|
5767
5767
|
}
|
|
5768
5768
|
|
|
5769
|
-
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.
|
|
5769
|
+
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.48.0 */
|
|
5770
5770
|
|
|
5771
|
-
function add_css$
|
|
5771
|
+
function add_css$8(target) {
|
|
5772
5772
|
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}");
|
|
5773
5773
|
}
|
|
5774
5774
|
|
|
@@ -5777,7 +5777,7 @@ function create_if_block$3(ctx) {
|
|
|
5777
5777
|
let div;
|
|
5778
5778
|
let div_resize_listener;
|
|
5779
5779
|
let current;
|
|
5780
|
-
let if_block = /*clientWidth*/ ctx[6] !== 0 && create_if_block_1(ctx);
|
|
5780
|
+
let if_block = /*clientWidth*/ ctx[6] !== 0 && create_if_block_1$1(ctx);
|
|
5781
5781
|
|
|
5782
5782
|
return {
|
|
5783
5783
|
c() {
|
|
@@ -5801,7 +5801,7 @@ function create_if_block$3(ctx) {
|
|
|
5801
5801
|
transition_in(if_block, 1);
|
|
5802
5802
|
}
|
|
5803
5803
|
} else {
|
|
5804
|
-
if_block = create_if_block_1(ctx);
|
|
5804
|
+
if_block = create_if_block_1$1(ctx);
|
|
5805
5805
|
if_block.c();
|
|
5806
5806
|
transition_in(if_block, 1);
|
|
5807
5807
|
if_block.m(div, null);
|
|
@@ -5834,7 +5834,7 @@ function create_if_block$3(ctx) {
|
|
|
5834
5834
|
}
|
|
5835
5835
|
|
|
5836
5836
|
// (43:4) {#if clientWidth !== 0}
|
|
5837
|
-
function create_if_block_1(ctx) {
|
|
5837
|
+
function create_if_block_1$1(ctx) {
|
|
5838
5838
|
let div;
|
|
5839
5839
|
let currentfloor;
|
|
5840
5840
|
let t;
|
|
@@ -5952,7 +5952,7 @@ function create_if_block_1(ctx) {
|
|
|
5952
5952
|
};
|
|
5953
5953
|
}
|
|
5954
5954
|
|
|
5955
|
-
function create_fragment$
|
|
5955
|
+
function create_fragment$9(ctx) {
|
|
5956
5956
|
let if_block_anchor;
|
|
5957
5957
|
let current;
|
|
5958
5958
|
let if_block = /*visible*/ ctx[1] && create_if_block$3(ctx);
|
|
@@ -6007,7 +6007,7 @@ function create_fragment$8(ctx) {
|
|
|
6007
6007
|
};
|
|
6008
6008
|
}
|
|
6009
6009
|
|
|
6010
|
-
function instance$
|
|
6010
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
6011
6011
|
let { five } = $$props;
|
|
6012
6012
|
let { visible } = $$props;
|
|
6013
6013
|
let { hoverEnable } = $$props;
|
|
@@ -6093,8 +6093,8 @@ class Main extends SvelteComponent {
|
|
|
6093
6093
|
init(
|
|
6094
6094
|
this,
|
|
6095
6095
|
options,
|
|
6096
|
-
instance$
|
|
6097
|
-
create_fragment$
|
|
6096
|
+
instance$9,
|
|
6097
|
+
create_fragment$9,
|
|
6098
6098
|
safe_not_equal,
|
|
6099
6099
|
{
|
|
6100
6100
|
five: 0,
|
|
@@ -6104,7 +6104,7 @@ class Main extends SvelteComponent {
|
|
|
6104
6104
|
cameraImageUrl: 4,
|
|
6105
6105
|
extraObjects: 5
|
|
6106
6106
|
},
|
|
6107
|
-
add_css$
|
|
6107
|
+
add_css$8
|
|
6108
6108
|
);
|
|
6109
6109
|
}
|
|
6110
6110
|
}
|
|
@@ -7962,7 +7962,7 @@ const PanoRulerStyle = `<style type="text/css">
|
|
|
7962
7962
|
</style>
|
|
7963
7963
|
`;
|
|
7964
7964
|
|
|
7965
|
-
const getDistance = (p1, p2) => {
|
|
7965
|
+
const getDistance$1 = (p1, p2) => {
|
|
7966
7966
|
return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
|
|
7967
7967
|
};
|
|
7968
7968
|
const getRoomHeightInfo = (roomInfo, five) => {
|
|
@@ -8069,7 +8069,7 @@ const PanoRulerPlugin = (five, params) => {
|
|
|
8069
8069
|
y: position.y,
|
|
8070
8070
|
z: position.z,
|
|
8071
8071
|
};
|
|
8072
|
-
const distance = getDistance({ x, z }, observerPoint);
|
|
8072
|
+
const distance = getDistance$1({ x, z }, observerPoint);
|
|
8073
8073
|
if (medianFloorHeight) {
|
|
8074
8074
|
// 取最近点时排除高度与房间平均高度差大于0.3米的点
|
|
8075
8075
|
if (distance < minDistance && Math.abs(observerPoint.y - medianFloorHeight) < 0.3) {
|
|
@@ -8349,9 +8349,9 @@ const PanoRulerPlugin = (five, params) => {
|
|
|
8349
8349
|
};
|
|
8350
8350
|
};
|
|
8351
8351
|
|
|
8352
|
-
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.
|
|
8352
|
+
/* src/PanoRulerProPlugin/RulerItem.svelte generated by Svelte v3.48.0 */
|
|
8353
8353
|
|
|
8354
|
-
function add_css$
|
|
8354
|
+
function add_css$7(target) {
|
|
8355
8355
|
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)}}");
|
|
8356
8356
|
}
|
|
8357
8357
|
|
|
@@ -8362,7 +8362,7 @@ function get_each_context$4(ctx, list, i) {
|
|
|
8362
8362
|
}
|
|
8363
8363
|
|
|
8364
8364
|
// (28:2) {:else}
|
|
8365
|
-
function create_else_block(ctx) {
|
|
8365
|
+
function create_else_block$1(ctx) {
|
|
8366
8366
|
let div;
|
|
8367
8367
|
let each_value = /*rulerItemProp*/ ctx[0].children;
|
|
8368
8368
|
let each_blocks = [];
|
|
@@ -8489,7 +8489,7 @@ function create_each_block$4(ctx) {
|
|
|
8489
8489
|
};
|
|
8490
8490
|
}
|
|
8491
8491
|
|
|
8492
|
-
function create_fragment$
|
|
8492
|
+
function create_fragment$8(ctx) {
|
|
8493
8493
|
let div2;
|
|
8494
8494
|
let t0;
|
|
8495
8495
|
let div1;
|
|
@@ -8505,7 +8505,7 @@ function create_fragment$7(ctx) {
|
|
|
8505
8505
|
|
|
8506
8506
|
function select_block_type(ctx, dirty) {
|
|
8507
8507
|
if (/*rulerItemProp*/ ctx[0].children.length === 0) return create_if_block$2;
|
|
8508
|
-
return create_else_block;
|
|
8508
|
+
return create_else_block$1;
|
|
8509
8509
|
}
|
|
8510
8510
|
|
|
8511
8511
|
let current_block_type = select_block_type(ctx);
|
|
@@ -8603,7 +8603,7 @@ function create_fragment$7(ctx) {
|
|
|
8603
8603
|
};
|
|
8604
8604
|
}
|
|
8605
8605
|
|
|
8606
|
-
function instance$
|
|
8606
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
8607
8607
|
let vars;
|
|
8608
8608
|
let { rulerItemProp } = $$props;
|
|
8609
8609
|
let _visible = true;
|
|
@@ -8638,11 +8638,11 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
8638
8638
|
class RulerItem extends SvelteComponent {
|
|
8639
8639
|
constructor(options) {
|
|
8640
8640
|
super();
|
|
8641
|
-
init(this, options, instance$
|
|
8641
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { rulerItemProp: 0 }, add_css$7);
|
|
8642
8642
|
}
|
|
8643
8643
|
}
|
|
8644
8644
|
|
|
8645
|
-
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.
|
|
8645
|
+
/* src/PanoRulerProPlugin/RulerItems.svelte generated by Svelte v3.48.0 */
|
|
8646
8646
|
|
|
8647
8647
|
function get_each_context$3(ctx, list, i) {
|
|
8648
8648
|
const child_ctx = ctx.slice();
|
|
@@ -8687,7 +8687,7 @@ function create_each_block$3(ctx) {
|
|
|
8687
8687
|
};
|
|
8688
8688
|
}
|
|
8689
8689
|
|
|
8690
|
-
function create_fragment$
|
|
8690
|
+
function create_fragment$7(ctx) {
|
|
8691
8691
|
let div;
|
|
8692
8692
|
let current;
|
|
8693
8693
|
let each_value = /*rulerItemProp*/ ctx[0];
|
|
@@ -8771,7 +8771,7 @@ function create_fragment$6(ctx) {
|
|
|
8771
8771
|
};
|
|
8772
8772
|
}
|
|
8773
8773
|
|
|
8774
|
-
function instance$
|
|
8774
|
+
function instance$7($$self, $$props, $$invalidate) {
|
|
8775
8775
|
var _a, _b, _c, _d;
|
|
8776
8776
|
let { five } = $$props;
|
|
8777
8777
|
let { rulerDatas } = $$props;
|
|
@@ -8989,7 +8989,7 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
8989
8989
|
class RulerItems extends SvelteComponent {
|
|
8990
8990
|
constructor(options) {
|
|
8991
8991
|
super();
|
|
8992
|
-
init(this, options, instance$
|
|
8992
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { five: 1, rulerDatas: 2, options: 3 });
|
|
8993
8993
|
}
|
|
8994
8994
|
}
|
|
8995
8995
|
|
|
@@ -9228,7 +9228,7 @@ function tweenProgress(duration, easing = TWEEN__default.Easing.Linear.None) {
|
|
|
9228
9228
|
return tween;
|
|
9229
9229
|
}
|
|
9230
9230
|
|
|
9231
|
-
const defaultBaseOptions = { userAction: true };
|
|
9231
|
+
const defaultBaseOptions$1 = { userAction: true };
|
|
9232
9232
|
class PanoCompassController extends Controller$4 {
|
|
9233
9233
|
constructor(five, config) {
|
|
9234
9234
|
super(five);
|
|
@@ -9515,7 +9515,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9515
9515
|
* 启用插件,响应用户操作并展示UI
|
|
9516
9516
|
* @param options
|
|
9517
9517
|
*/
|
|
9518
|
-
enable(options = defaultBaseOptions) {
|
|
9518
|
+
enable(options = defaultBaseOptions$1) {
|
|
9519
9519
|
this.setState({
|
|
9520
9520
|
enabled: true,
|
|
9521
9521
|
}, options);
|
|
@@ -9524,7 +9524,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9524
9524
|
* 禁用插件,禁止响应用户操作并隐藏UI
|
|
9525
9525
|
* @param options
|
|
9526
9526
|
*/
|
|
9527
|
-
disable(options = defaultBaseOptions) {
|
|
9527
|
+
disable(options = defaultBaseOptions$1) {
|
|
9528
9528
|
this.setState({
|
|
9529
9529
|
enabled: false,
|
|
9530
9530
|
}, options);
|
|
@@ -9535,7 +9535,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9535
9535
|
* @returns
|
|
9536
9536
|
* @todo 需要考虑动画
|
|
9537
9537
|
*/
|
|
9538
|
-
show(options = defaultBaseOptions) {
|
|
9538
|
+
show(options = defaultBaseOptions$1) {
|
|
9539
9539
|
if (!this.state.enabled)
|
|
9540
9540
|
return;
|
|
9541
9541
|
this.setState({
|
|
@@ -9549,7 +9549,7 @@ class PanoCompassController extends Controller$4 {
|
|
|
9549
9549
|
* @returns
|
|
9550
9550
|
* @todo 需要考虑动画
|
|
9551
9551
|
*/
|
|
9552
|
-
hide(options = defaultBaseOptions) {
|
|
9552
|
+
hide(options = defaultBaseOptions$1) {
|
|
9553
9553
|
if (!this.state.enabled)
|
|
9554
9554
|
return;
|
|
9555
9555
|
this.setState({
|
|
@@ -13720,9 +13720,9 @@ const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|
|
|
13720
13720
|
|
|
13721
13721
|
const currentTarget = writable(null);
|
|
13722
13722
|
|
|
13723
|
-
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.
|
|
13723
|
+
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.48.0 */
|
|
13724
13724
|
|
|
13725
|
-
function add_css$
|
|
13725
|
+
function add_css$6(target) {
|
|
13726
13726
|
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}}");
|
|
13727
13727
|
}
|
|
13728
13728
|
|
|
@@ -13789,7 +13789,7 @@ function create_each_block$2(ctx) {
|
|
|
13789
13789
|
};
|
|
13790
13790
|
}
|
|
13791
13791
|
|
|
13792
|
-
function create_fragment$
|
|
13792
|
+
function create_fragment$6(ctx) {
|
|
13793
13793
|
let each_1_anchor;
|
|
13794
13794
|
let each_value = /*origins*/ ctx[0];
|
|
13795
13795
|
let each_blocks = [];
|
|
@@ -13846,7 +13846,7 @@ function create_fragment$5(ctx) {
|
|
|
13846
13846
|
};
|
|
13847
13847
|
}
|
|
13848
13848
|
|
|
13849
|
-
function instance$
|
|
13849
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
13850
13850
|
let { origins } = $$props;
|
|
13851
13851
|
|
|
13852
13852
|
const handleClick = id => {
|
|
@@ -13865,17 +13865,17 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
13865
13865
|
class Origins extends SvelteComponent {
|
|
13866
13866
|
constructor(options) {
|
|
13867
13867
|
super();
|
|
13868
|
-
init(this, options, instance$
|
|
13868
|
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, { origins: 0 }, add_css$6);
|
|
13869
13869
|
}
|
|
13870
13870
|
}
|
|
13871
13871
|
|
|
13872
|
-
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.
|
|
13872
|
+
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.48.0 */
|
|
13873
13873
|
|
|
13874
|
-
function add_css$
|
|
13874
|
+
function add_css$5(target) {
|
|
13875
13875
|
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)}}");
|
|
13876
13876
|
}
|
|
13877
13877
|
|
|
13878
|
-
function create_fragment$
|
|
13878
|
+
function create_fragment$5(ctx) {
|
|
13879
13879
|
let div4;
|
|
13880
13880
|
let div0;
|
|
13881
13881
|
let t0;
|
|
@@ -13990,7 +13990,7 @@ function create_fragment$4(ctx) {
|
|
|
13990
13990
|
};
|
|
13991
13991
|
}
|
|
13992
13992
|
|
|
13993
|
-
function instance$
|
|
13993
|
+
function instance$5($$self, $$props, $$invalidate) {
|
|
13994
13994
|
let { id } = $$props;
|
|
13995
13995
|
let { upsideDown } = $$props;
|
|
13996
13996
|
let { content } = $$props;
|
|
@@ -14127,8 +14127,8 @@ class Tag extends SvelteComponent {
|
|
|
14127
14127
|
init(
|
|
14128
14128
|
this,
|
|
14129
14129
|
options,
|
|
14130
|
-
instance$
|
|
14131
|
-
create_fragment$
|
|
14130
|
+
instance$5,
|
|
14131
|
+
create_fragment$5,
|
|
14132
14132
|
safe_not_equal,
|
|
14133
14133
|
{
|
|
14134
14134
|
id: 0,
|
|
@@ -14143,7 +14143,7 @@ class Tag extends SvelteComponent {
|
|
|
14143
14143
|
events: 14,
|
|
14144
14144
|
hooks: 15
|
|
14145
14145
|
},
|
|
14146
|
-
add_css$
|
|
14146
|
+
add_css$5
|
|
14147
14147
|
);
|
|
14148
14148
|
}
|
|
14149
14149
|
}
|
|
@@ -14795,13 +14795,13 @@ var DISPLAY_STRATEGY_TYPE;
|
|
|
14795
14795
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14796
14796
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14797
14797
|
|
|
14798
|
-
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
14798
|
+
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.48.0 */
|
|
14799
14799
|
|
|
14800
|
-
function add_css$
|
|
14800
|
+
function add_css$4(target) {
|
|
14801
14801
|
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 }}");
|
|
14802
14802
|
}
|
|
14803
14803
|
|
|
14804
|
-
function create_fragment$
|
|
14804
|
+
function create_fragment$4(ctx) {
|
|
14805
14805
|
let div2;
|
|
14806
14806
|
let div0;
|
|
14807
14807
|
let span;
|
|
@@ -14882,7 +14882,7 @@ function create_fragment$3(ctx) {
|
|
|
14882
14882
|
};
|
|
14883
14883
|
}
|
|
14884
14884
|
|
|
14885
|
-
function instance$
|
|
14885
|
+
function instance$4($$self, $$props, $$invalidate) {
|
|
14886
14886
|
let { itemLabel } = $$props;
|
|
14887
14887
|
let { hooks } = $$props;
|
|
14888
14888
|
|
|
@@ -14902,7 +14902,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
14902
14902
|
class ItemLabelItem$1 extends SvelteComponent {
|
|
14903
14903
|
constructor(options) {
|
|
14904
14904
|
super();
|
|
14905
|
-
init(this, options, instance$
|
|
14905
|
+
init(this, options, instance$4, create_fragment$4, safe_not_equal, { itemLabel: 0, hooks: 2 }, add_css$4);
|
|
14906
14906
|
}
|
|
14907
14907
|
}
|
|
14908
14908
|
|
|
@@ -14921,9 +14921,9 @@ function debounce(func, wait = 200) {
|
|
|
14921
14921
|
};
|
|
14922
14922
|
}
|
|
14923
14923
|
|
|
14924
|
-
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
14924
|
+
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.48.0 */
|
|
14925
14925
|
|
|
14926
|
-
function add_css$
|
|
14926
|
+
function add_css$3(target) {
|
|
14927
14927
|
append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
14928
14928
|
}
|
|
14929
14929
|
|
|
@@ -14982,7 +14982,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
14982
14982
|
};
|
|
14983
14983
|
}
|
|
14984
14984
|
|
|
14985
|
-
function create_fragment$
|
|
14985
|
+
function create_fragment$3(ctx) {
|
|
14986
14986
|
let div;
|
|
14987
14987
|
let each_blocks = [];
|
|
14988
14988
|
let each_1_lookup = new Map();
|
|
@@ -15062,7 +15062,7 @@ function create_fragment$2(ctx) {
|
|
|
15062
15062
|
let cssHeight = 26;
|
|
15063
15063
|
let basicWidth$1 = 11;
|
|
15064
15064
|
|
|
15065
|
-
function instance$
|
|
15065
|
+
function instance$3($$self, $$props, $$invalidate) {
|
|
15066
15066
|
const { Raycaster, Vector3 } = THREE;
|
|
15067
15067
|
let { five } = $$props;
|
|
15068
15068
|
let { modelOcclusionEnable } = $$props;
|
|
@@ -15264,8 +15264,8 @@ class ItemLabelComponent$1 extends SvelteComponent {
|
|
|
15264
15264
|
init(
|
|
15265
15265
|
this,
|
|
15266
15266
|
options,
|
|
15267
|
-
instance$
|
|
15268
|
-
create_fragment$
|
|
15267
|
+
instance$3,
|
|
15268
|
+
create_fragment$3,
|
|
15269
15269
|
safe_not_equal,
|
|
15270
15270
|
{
|
|
15271
15271
|
five: 5,
|
|
@@ -15274,7 +15274,7 @@ class ItemLabelComponent$1 extends SvelteComponent {
|
|
|
15274
15274
|
hooks: 0,
|
|
15275
15275
|
displayStrategyType: 8
|
|
15276
15276
|
},
|
|
15277
|
-
add_css$
|
|
15277
|
+
add_css$3
|
|
15278
15278
|
);
|
|
15279
15279
|
}
|
|
15280
15280
|
}
|
|
@@ -15686,55 +15686,16 @@ var ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE;
|
|
|
15686
15686
|
ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
15687
15687
|
})(ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE || (ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = {}));
|
|
15688
15688
|
|
|
15689
|
-
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.
|
|
15690
|
-
|
|
15691
|
-
function add_css$1(target) {
|
|
15692
|
-
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 }}");
|
|
15693
|
-
}
|
|
15694
|
-
|
|
15695
|
-
// (21:2) {#if itemLabel.icon}
|
|
15696
|
-
function create_if_block$1(ctx) {
|
|
15697
|
-
let div1;
|
|
15698
|
-
let div0;
|
|
15699
|
-
let div0_style_value;
|
|
15700
|
-
let mounted;
|
|
15701
|
-
let dispose;
|
|
15702
|
-
|
|
15703
|
-
return {
|
|
15704
|
-
c() {
|
|
15705
|
-
div1 = element("div");
|
|
15706
|
-
div0 = element("div");
|
|
15707
|
-
attr(div0, "class", "icon svelte-dka7wz");
|
|
15708
|
-
attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`);
|
|
15709
|
-
attr(div1, "class", "icon-wrap svelte-dka7wz");
|
|
15710
|
-
},
|
|
15711
|
-
m(target, anchor) {
|
|
15712
|
-
insert(target, div1, anchor);
|
|
15713
|
-
append(div1, div0);
|
|
15689
|
+
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.48.0 */
|
|
15714
15690
|
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
mounted = true;
|
|
15718
|
-
}
|
|
15719
|
-
},
|
|
15720
|
-
p(ctx, dirty) {
|
|
15721
|
-
if (dirty & /*itemLabel*/ 1 && div0_style_value !== (div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`)) {
|
|
15722
|
-
attr(div0, "style", div0_style_value);
|
|
15723
|
-
}
|
|
15724
|
-
},
|
|
15725
|
-
d(detaching) {
|
|
15726
|
-
if (detaching) detach(div1);
|
|
15727
|
-
mounted = false;
|
|
15728
|
-
dispose();
|
|
15729
|
-
}
|
|
15730
|
-
};
|
|
15691
|
+
function add_css$2(target) {
|
|
15692
|
+
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 }}");
|
|
15731
15693
|
}
|
|
15732
15694
|
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
let div1;
|
|
15695
|
+
// (34:8) {:else}
|
|
15696
|
+
function create_else_block(ctx) {
|
|
15736
15697
|
let t0;
|
|
15737
|
-
let
|
|
15698
|
+
let div;
|
|
15738
15699
|
let span0;
|
|
15739
15700
|
let t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "";
|
|
15740
15701
|
let t1;
|
|
@@ -15742,66 +15703,40 @@ function create_fragment$1(ctx) {
|
|
|
15742
15703
|
let span1;
|
|
15743
15704
|
let t3_value = /*itemLabel*/ ctx[0].name + "";
|
|
15744
15705
|
let t3;
|
|
15745
|
-
let
|
|
15746
|
-
let div2;
|
|
15747
|
-
let div2_class_value;
|
|
15748
|
-
let div3_class_value;
|
|
15749
|
-
let mounted;
|
|
15750
|
-
let dispose;
|
|
15751
|
-
let if_block = /*itemLabel*/ ctx[0].icon && create_if_block$1(ctx);
|
|
15706
|
+
let if_block = /*itemLabel*/ ctx[0].icon && create_if_block_1(ctx);
|
|
15752
15707
|
|
|
15753
15708
|
return {
|
|
15754
15709
|
c() {
|
|
15755
|
-
div3 = element("div");
|
|
15756
|
-
div1 = element("div");
|
|
15757
15710
|
if (if_block) if_block.c();
|
|
15758
15711
|
t0 = space();
|
|
15759
|
-
|
|
15712
|
+
div = element("div");
|
|
15760
15713
|
span0 = element("span");
|
|
15761
15714
|
t1 = text(t1_value);
|
|
15762
15715
|
t2 = space();
|
|
15763
15716
|
span1 = element("span");
|
|
15764
15717
|
t3 = text(t3_value);
|
|
15765
|
-
|
|
15766
|
-
|
|
15767
|
-
attr(
|
|
15768
|
-
attr(span1, "class", "item-name svelte-dka7wz");
|
|
15769
|
-
attr(div0, "class", "item-label-text svelte-dka7wz");
|
|
15770
|
-
attr(div1, "class", "" + (null_to_empty(classNames("item-label-item__text-wrap")) + " svelte-dka7wz"));
|
|
15771
|
-
set_style(div1, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15772
|
-
attr(div2, "class", div2_class_value = "" + (null_to_empty(classNames("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-dka7wz"));
|
|
15773
|
-
set_style(div2, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15774
|
-
attr(div3, "class", div3_class_value = "" + (null_to_empty(classNames("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-dka7wz"));
|
|
15775
|
-
set_style(div3, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
15776
|
-
set_style(div3, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
15718
|
+
attr(span0, "class", "item-model svelte-1mppr0a");
|
|
15719
|
+
attr(span1, "class", "item-name svelte-1mppr0a");
|
|
15720
|
+
attr(div, "class", "item-label-text svelte-1mppr0a");
|
|
15777
15721
|
},
|
|
15778
15722
|
m(target, anchor) {
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
append(
|
|
15783
|
-
append(div1, div0);
|
|
15784
|
-
append(div0, span0);
|
|
15723
|
+
if (if_block) if_block.m(target, anchor);
|
|
15724
|
+
insert(target, t0, anchor);
|
|
15725
|
+
insert(target, div, anchor);
|
|
15726
|
+
append(div, span0);
|
|
15785
15727
|
append(span0, t1);
|
|
15786
|
-
append(
|
|
15787
|
-
append(
|
|
15728
|
+
append(div, t2);
|
|
15729
|
+
append(div, span1);
|
|
15788
15730
|
append(span1, t3);
|
|
15789
|
-
append(div3, t4);
|
|
15790
|
-
append(div3, div2);
|
|
15791
|
-
|
|
15792
|
-
if (!mounted) {
|
|
15793
|
-
dispose = listen(div1, "click", /*onClick*/ ctx[3]);
|
|
15794
|
-
mounted = true;
|
|
15795
|
-
}
|
|
15796
15731
|
},
|
|
15797
|
-
p(ctx,
|
|
15732
|
+
p(ctx, dirty) {
|
|
15798
15733
|
if (/*itemLabel*/ ctx[0].icon) {
|
|
15799
15734
|
if (if_block) {
|
|
15800
15735
|
if_block.p(ctx, dirty);
|
|
15801
15736
|
} else {
|
|
15802
|
-
if_block =
|
|
15737
|
+
if_block = create_if_block_1(ctx);
|
|
15803
15738
|
if_block.c();
|
|
15804
|
-
if_block.m(
|
|
15739
|
+
if_block.m(t0.parentNode, t0);
|
|
15805
15740
|
}
|
|
15806
15741
|
} else if (if_block) {
|
|
15807
15742
|
if_block.d(1);
|
|
@@ -15810,43 +15745,181 @@ function create_fragment$1(ctx) {
|
|
|
15810
15745
|
|
|
15811
15746
|
if (dirty & /*itemLabel*/ 1 && t1_value !== (t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "")) set_data(t1, t1_value);
|
|
15812
15747
|
if (dirty & /*itemLabel*/ 1 && t3_value !== (t3_value = /*itemLabel*/ ctx[0].name + "")) set_data(t3, t3_value);
|
|
15748
|
+
},
|
|
15749
|
+
d(detaching) {
|
|
15750
|
+
if (if_block) if_block.d(detaching);
|
|
15751
|
+
if (detaching) detach(t0);
|
|
15752
|
+
if (detaching) detach(div);
|
|
15753
|
+
}
|
|
15754
|
+
};
|
|
15755
|
+
}
|
|
15756
|
+
|
|
15757
|
+
// (32:8) {#if Boolean(typeof itemLabel.render === 'function')}
|
|
15758
|
+
function create_if_block$1(ctx) {
|
|
15759
|
+
let div;
|
|
15760
|
+
|
|
15761
|
+
return {
|
|
15762
|
+
c() {
|
|
15763
|
+
div = element("div");
|
|
15764
|
+
},
|
|
15765
|
+
m(target, anchor) {
|
|
15766
|
+
insert(target, div, anchor);
|
|
15767
|
+
/*div_binding*/ ctx[6](div);
|
|
15768
|
+
},
|
|
15769
|
+
p: noop$1,
|
|
15770
|
+
d(detaching) {
|
|
15771
|
+
if (detaching) detach(div);
|
|
15772
|
+
/*div_binding*/ ctx[6](null);
|
|
15773
|
+
}
|
|
15774
|
+
};
|
|
15775
|
+
}
|
|
15776
|
+
|
|
15777
|
+
// (35:12) {#if itemLabel.icon}
|
|
15778
|
+
function create_if_block_1(ctx) {
|
|
15779
|
+
let div1;
|
|
15780
|
+
let div0;
|
|
15781
|
+
let div0_style_value;
|
|
15782
|
+
let mounted;
|
|
15783
|
+
let dispose;
|
|
15784
|
+
|
|
15785
|
+
return {
|
|
15786
|
+
c() {
|
|
15787
|
+
div1 = element("div");
|
|
15788
|
+
div0 = element("div");
|
|
15789
|
+
attr(div0, "class", "icon svelte-1mppr0a");
|
|
15790
|
+
attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`);
|
|
15791
|
+
attr(div1, "class", "icon-wrap svelte-1mppr0a");
|
|
15792
|
+
},
|
|
15793
|
+
m(target, anchor) {
|
|
15794
|
+
insert(target, div1, anchor);
|
|
15795
|
+
append(div1, div0);
|
|
15796
|
+
|
|
15797
|
+
if (!mounted) {
|
|
15798
|
+
dispose = listen(div1, "click", /*click_handler*/ ctx[7]);
|
|
15799
|
+
mounted = true;
|
|
15800
|
+
}
|
|
15801
|
+
},
|
|
15802
|
+
p(ctx, dirty) {
|
|
15803
|
+
if (dirty & /*itemLabel*/ 1 && div0_style_value !== (div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`)) {
|
|
15804
|
+
attr(div0, "style", div0_style_value);
|
|
15805
|
+
}
|
|
15806
|
+
},
|
|
15807
|
+
d(detaching) {
|
|
15808
|
+
if (detaching) detach(div1);
|
|
15809
|
+
mounted = false;
|
|
15810
|
+
dispose();
|
|
15811
|
+
}
|
|
15812
|
+
};
|
|
15813
|
+
}
|
|
15814
|
+
|
|
15815
|
+
function create_fragment$2(ctx) {
|
|
15816
|
+
let div2;
|
|
15817
|
+
let div0;
|
|
15818
|
+
let show_if;
|
|
15819
|
+
let div0_class_value;
|
|
15820
|
+
let t;
|
|
15821
|
+
let div1;
|
|
15822
|
+
let div1_class_value;
|
|
15823
|
+
let div2_class_value;
|
|
15824
|
+
let mounted;
|
|
15825
|
+
let dispose;
|
|
15826
|
+
|
|
15827
|
+
function select_block_type(ctx, dirty) {
|
|
15828
|
+
if (dirty & /*itemLabel*/ 1) show_if = null;
|
|
15829
|
+
if (show_if == null) show_if = !!Boolean(typeof /*itemLabel*/ ctx[0].render === 'function');
|
|
15830
|
+
if (show_if) return create_if_block$1;
|
|
15831
|
+
return create_else_block;
|
|
15832
|
+
}
|
|
15833
|
+
|
|
15834
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
15835
|
+
let if_block = current_block_type(ctx);
|
|
15836
|
+
|
|
15837
|
+
return {
|
|
15838
|
+
c() {
|
|
15839
|
+
div2 = element("div");
|
|
15840
|
+
div0 = element("div");
|
|
15841
|
+
if_block.c();
|
|
15842
|
+
t = space();
|
|
15843
|
+
div1 = element("div");
|
|
15844
|
+
|
|
15845
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(classNames("item-label-item__text-wrap", {
|
|
15846
|
+
'item-label-item__custom': Boolean(typeof /*itemLabel*/ ctx[0].render === 'function')
|
|
15847
|
+
})) + " svelte-1mppr0a"));
|
|
15848
|
+
|
|
15849
|
+
set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15850
|
+
attr(div1, "class", div1_class_value = "" + (null_to_empty(classNames("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1mppr0a"));
|
|
15851
|
+
set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15852
|
+
attr(div2, "class", div2_class_value = "" + (null_to_empty(classNames("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-1mppr0a"));
|
|
15853
|
+
set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
15854
|
+
set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
15855
|
+
},
|
|
15856
|
+
m(target, anchor) {
|
|
15857
|
+
insert(target, div2, anchor);
|
|
15858
|
+
append(div2, div0);
|
|
15859
|
+
if_block.m(div0, null);
|
|
15860
|
+
append(div2, t);
|
|
15861
|
+
append(div2, div1);
|
|
15862
|
+
|
|
15863
|
+
if (!mounted) {
|
|
15864
|
+
dispose = listen(div0, "click", /*onClick*/ ctx[4]);
|
|
15865
|
+
mounted = true;
|
|
15866
|
+
}
|
|
15867
|
+
},
|
|
15868
|
+
p(ctx, [dirty]) {
|
|
15869
|
+
if (current_block_type === (current_block_type = select_block_type(ctx, dirty)) && if_block) {
|
|
15870
|
+
if_block.p(ctx, dirty);
|
|
15871
|
+
} else {
|
|
15872
|
+
if_block.d(1);
|
|
15873
|
+
if_block = current_block_type(ctx);
|
|
15874
|
+
|
|
15875
|
+
if (if_block) {
|
|
15876
|
+
if_block.c();
|
|
15877
|
+
if_block.m(div0, null);
|
|
15878
|
+
}
|
|
15879
|
+
}
|
|
15880
|
+
|
|
15881
|
+
if (dirty & /*itemLabel*/ 1 && div0_class_value !== (div0_class_value = "" + (null_to_empty(classNames("item-label-item__text-wrap", {
|
|
15882
|
+
'item-label-item__custom': Boolean(typeof /*itemLabel*/ ctx[0].render === 'function')
|
|
15883
|
+
})) + " svelte-1mppr0a"))) {
|
|
15884
|
+
attr(div0, "class", div0_class_value);
|
|
15885
|
+
}
|
|
15813
15886
|
|
|
15814
15887
|
if (dirty & /*itemLabel*/ 1) {
|
|
15815
|
-
set_style(
|
|
15888
|
+
set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15816
15889
|
}
|
|
15817
15890
|
|
|
15818
|
-
if (dirty & /*anchorEnabled*/ 2 &&
|
|
15819
|
-
attr(
|
|
15891
|
+
if (dirty & /*anchorEnabled*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(classNames("item-label-item__bar", { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-1mppr0a"))) {
|
|
15892
|
+
attr(div1, "class", div1_class_value);
|
|
15820
15893
|
}
|
|
15821
15894
|
|
|
15822
15895
|
if (dirty & /*itemLabel*/ 1) {
|
|
15823
|
-
set_style(
|
|
15896
|
+
set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
15824
15897
|
}
|
|
15825
15898
|
|
|
15826
|
-
if (dirty & /*itemLabel*/ 1 &&
|
|
15827
|
-
attr(
|
|
15899
|
+
if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (null_to_empty(classNames("item-label-item", { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-1mppr0a"))) {
|
|
15900
|
+
attr(div2, "class", div2_class_value);
|
|
15828
15901
|
}
|
|
15829
15902
|
|
|
15830
15903
|
if (dirty & /*itemLabel*/ 1) {
|
|
15831
|
-
set_style(
|
|
15904
|
+
set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
15832
15905
|
}
|
|
15833
15906
|
|
|
15834
15907
|
if (dirty & /*itemLabel*/ 1) {
|
|
15835
|
-
set_style(
|
|
15908
|
+
set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
15836
15909
|
}
|
|
15837
15910
|
},
|
|
15838
15911
|
i: noop$1,
|
|
15839
15912
|
o: noop$1,
|
|
15840
15913
|
d(detaching) {
|
|
15841
|
-
if (detaching) detach(
|
|
15842
|
-
|
|
15914
|
+
if (detaching) detach(div2);
|
|
15915
|
+
if_block.d();
|
|
15843
15916
|
mounted = false;
|
|
15844
15917
|
dispose();
|
|
15845
15918
|
}
|
|
15846
15919
|
};
|
|
15847
15920
|
}
|
|
15848
15921
|
|
|
15849
|
-
function instance$
|
|
15922
|
+
function instance$2($$self, $$props, $$invalidate) {
|
|
15850
15923
|
let { itemLabel } = $$props;
|
|
15851
15924
|
let { hooks } = $$props;
|
|
15852
15925
|
let { anchorEnabled } = $$props;
|
|
@@ -15857,16 +15930,50 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
15857
15930
|
hooks.emit('onLabelClick', itemLabel);
|
|
15858
15931
|
}
|
|
15859
15932
|
|
|
15933
|
+
let customElement;
|
|
15934
|
+
|
|
15935
|
+
function div_binding($$value) {
|
|
15936
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
15937
|
+
customElement = $$value;
|
|
15938
|
+
$$invalidate(3, customElement);
|
|
15939
|
+
});
|
|
15940
|
+
}
|
|
15941
|
+
|
|
15860
15942
|
const click_handler = e => onIconClick(itemLabel);
|
|
15861
15943
|
|
|
15862
15944
|
$$self.$$set = $$props => {
|
|
15863
15945
|
if ('itemLabel' in $$props) $$invalidate(0, itemLabel = $$props.itemLabel);
|
|
15864
|
-
if ('hooks' in $$props) $$invalidate(
|
|
15946
|
+
if ('hooks' in $$props) $$invalidate(5, hooks = $$props.hooks);
|
|
15865
15947
|
if ('anchorEnabled' in $$props) $$invalidate(1, anchorEnabled = $$props.anchorEnabled);
|
|
15866
15948
|
if ('onIconClick' in $$props) $$invalidate(2, onIconClick = $$props.onIconClick);
|
|
15867
15949
|
};
|
|
15868
15950
|
|
|
15869
|
-
|
|
15951
|
+
$$self.$$.update = () => {
|
|
15952
|
+
if ($$self.$$.dirty & /*itemLabel, customElement*/ 9) {
|
|
15953
|
+
{
|
|
15954
|
+
if (typeof itemLabel.render === 'function' && customElement) {
|
|
15955
|
+
if (customElement.children.length === 0) {
|
|
15956
|
+
const child = itemLabel.render(itemLabel);
|
|
15957
|
+
|
|
15958
|
+
if (child) {
|
|
15959
|
+
customElement.appendChild(child);
|
|
15960
|
+
}
|
|
15961
|
+
}
|
|
15962
|
+
}
|
|
15963
|
+
}
|
|
15964
|
+
}
|
|
15965
|
+
};
|
|
15966
|
+
|
|
15967
|
+
return [
|
|
15968
|
+
itemLabel,
|
|
15969
|
+
anchorEnabled,
|
|
15970
|
+
onIconClick,
|
|
15971
|
+
customElement,
|
|
15972
|
+
onClick,
|
|
15973
|
+
hooks,
|
|
15974
|
+
div_binding,
|
|
15975
|
+
click_handler
|
|
15976
|
+
];
|
|
15870
15977
|
}
|
|
15871
15978
|
|
|
15872
15979
|
class ItemLabelItem extends SvelteComponent {
|
|
@@ -15876,16 +15983,16 @@ class ItemLabelItem extends SvelteComponent {
|
|
|
15876
15983
|
init(
|
|
15877
15984
|
this,
|
|
15878
15985
|
options,
|
|
15879
|
-
instance$
|
|
15880
|
-
create_fragment$
|
|
15986
|
+
instance$2,
|
|
15987
|
+
create_fragment$2,
|
|
15881
15988
|
safe_not_equal,
|
|
15882
15989
|
{
|
|
15883
15990
|
itemLabel: 0,
|
|
15884
|
-
hooks:
|
|
15991
|
+
hooks: 5,
|
|
15885
15992
|
anchorEnabled: 1,
|
|
15886
15993
|
onIconClick: 2
|
|
15887
15994
|
},
|
|
15888
|
-
add_css$
|
|
15995
|
+
add_css$2
|
|
15889
15996
|
);
|
|
15890
15997
|
}
|
|
15891
15998
|
}
|
|
@@ -15928,9 +16035,9 @@ function transform2RenderData(data) {
|
|
|
15928
16035
|
return data.map(label => (Object.assign({ observerIndex: undefined, visible: false, isFold: false }, label)));
|
|
15929
16036
|
}
|
|
15930
16037
|
|
|
15931
|
-
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.
|
|
16038
|
+
/* src/ItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.48.0 */
|
|
15932
16039
|
|
|
15933
|
-
function add_css(target) {
|
|
16040
|
+
function add_css$1(target) {
|
|
15934
16041
|
append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
15935
16042
|
}
|
|
15936
16043
|
|
|
@@ -16049,7 +16156,7 @@ function create_each_block(key_1, ctx) {
|
|
|
16049
16156
|
};
|
|
16050
16157
|
}
|
|
16051
16158
|
|
|
16052
|
-
function create_fragment(ctx) {
|
|
16159
|
+
function create_fragment$1(ctx) {
|
|
16053
16160
|
let div;
|
|
16054
16161
|
let each_blocks = [];
|
|
16055
16162
|
let each_1_lookup = new Map();
|
|
@@ -16127,7 +16234,7 @@ function create_fragment(ctx) {
|
|
|
16127
16234
|
}
|
|
16128
16235
|
let basicWidth = 11;
|
|
16129
16236
|
|
|
16130
|
-
function instance($$self, $$props, $$invalidate) {
|
|
16237
|
+
function instance$1($$self, $$props, $$invalidate) {
|
|
16131
16238
|
const { Raycaster, Vector3 } = THREE;
|
|
16132
16239
|
let { five } = $$props;
|
|
16133
16240
|
let { modelOcclusionEnable } = $$props;
|
|
@@ -16420,8 +16527,8 @@ class ItemLabelComponent extends SvelteComponent {
|
|
|
16420
16527
|
init(
|
|
16421
16528
|
this,
|
|
16422
16529
|
options,
|
|
16423
|
-
instance,
|
|
16424
|
-
create_fragment,
|
|
16530
|
+
instance$1,
|
|
16531
|
+
create_fragment$1,
|
|
16425
16532
|
safe_not_equal,
|
|
16426
16533
|
{
|
|
16427
16534
|
five: 7,
|
|
@@ -16432,7 +16539,7 @@ class ItemLabelComponent extends SvelteComponent {
|
|
|
16432
16539
|
displayStrategyType: 11,
|
|
16433
16540
|
maxVisibleDistance: 12
|
|
16434
16541
|
},
|
|
16435
|
-
add_css,
|
|
16542
|
+
add_css$1,
|
|
16436
16543
|
[-1, -1]
|
|
16437
16544
|
);
|
|
16438
16545
|
}
|
|
@@ -16570,6 +16677,736 @@ const itemLabelPluginServerParams = {
|
|
|
16570
16677
|
version: 0,
|
|
16571
16678
|
};
|
|
16572
16679
|
|
|
16573
|
-
|
|
16680
|
+
/**
|
|
16681
|
+
* pano plugin controller 基类
|
|
16682
|
+
* @author kyleju
|
|
16683
|
+
*/
|
|
16684
|
+
class BasePanoPluginController extends Controller$5 {
|
|
16685
|
+
constructor(five) {
|
|
16686
|
+
super(five);
|
|
16687
|
+
Object.defineProperty(this, "state", {
|
|
16688
|
+
enumerable: true,
|
|
16689
|
+
configurable: true,
|
|
16690
|
+
writable: true,
|
|
16691
|
+
value: void 0
|
|
16692
|
+
});
|
|
16693
|
+
Object.defineProperty(this, "container", {
|
|
16694
|
+
enumerable: true,
|
|
16695
|
+
configurable: true,
|
|
16696
|
+
writable: true,
|
|
16697
|
+
value: void 0
|
|
16698
|
+
});
|
|
16699
|
+
Object.defineProperty(this, "enabled", {
|
|
16700
|
+
enumerable: true,
|
|
16701
|
+
configurable: true,
|
|
16702
|
+
writable: true,
|
|
16703
|
+
value: void 0
|
|
16704
|
+
});
|
|
16705
|
+
this.five = five;
|
|
16706
|
+
this.five.once('dispose', this.dispose);
|
|
16707
|
+
this.enabled = true;
|
|
16708
|
+
this.state = this.initState();
|
|
16709
|
+
console.log('base controller');
|
|
16710
|
+
}
|
|
16711
|
+
/**
|
|
16712
|
+
* 启用组件
|
|
16713
|
+
* @param options
|
|
16714
|
+
*/
|
|
16715
|
+
enable(options) {
|
|
16716
|
+
this.enabled = true;
|
|
16717
|
+
this.updateState(Object.assign(Object.assign({}, options), { userAction: true }));
|
|
16718
|
+
}
|
|
16719
|
+
/**
|
|
16720
|
+
* 禁用组件
|
|
16721
|
+
* @param options
|
|
16722
|
+
*/
|
|
16723
|
+
disable(options) {
|
|
16724
|
+
this.enabled = false;
|
|
16725
|
+
this.updateState(Object.assign(Object.assign({}, options), { userAction: true }));
|
|
16726
|
+
}
|
|
16727
|
+
/**
|
|
16728
|
+
* 显示 UI
|
|
16729
|
+
* @param options
|
|
16730
|
+
* @returns
|
|
16731
|
+
*/
|
|
16732
|
+
show(options) {
|
|
16733
|
+
if (!this.state.enabled)
|
|
16734
|
+
return;
|
|
16735
|
+
this.setState(Object.assign(Object.assign({}, this.state), { visible: true }), options);
|
|
16736
|
+
return Promise.resolve();
|
|
16737
|
+
}
|
|
16738
|
+
/**
|
|
16739
|
+
* 隐藏 UI
|
|
16740
|
+
* @param options
|
|
16741
|
+
* @returns
|
|
16742
|
+
*/
|
|
16743
|
+
hide(options) {
|
|
16744
|
+
if (!this.state.enabled)
|
|
16745
|
+
return;
|
|
16746
|
+
this.setState(Object.assign(Object.assign({}, this.state), { visible: false }), options);
|
|
16747
|
+
return Promise.resolve();
|
|
16748
|
+
}
|
|
16749
|
+
/**
|
|
16750
|
+
* 销毁对象
|
|
16751
|
+
*/
|
|
16752
|
+
dispose() {
|
|
16753
|
+
this.container.remove();
|
|
16754
|
+
}
|
|
16755
|
+
/**
|
|
16756
|
+
* 设置状态
|
|
16757
|
+
* @param state @T 状态
|
|
16758
|
+
* @param options @BaseOptions 可选配置
|
|
16759
|
+
* @returns
|
|
16760
|
+
*/
|
|
16761
|
+
setState(state, options) {
|
|
16762
|
+
if (!this.enabled)
|
|
16763
|
+
return;
|
|
16764
|
+
const prevState = Object.assign({}, this.state);
|
|
16765
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), options);
|
|
16766
|
+
this.stateChangedCallback(prevState, options);
|
|
16767
|
+
}
|
|
16768
|
+
get visible() {
|
|
16769
|
+
return this.five.state.mode === Five.Mode.Panorama;
|
|
16770
|
+
}
|
|
16771
|
+
appendTo(container) {
|
|
16772
|
+
if (!this.enabled)
|
|
16773
|
+
return;
|
|
16774
|
+
this.container = container;
|
|
16775
|
+
this.render();
|
|
16776
|
+
}
|
|
16777
|
+
updateState(options) {
|
|
16778
|
+
this.setState(Object.assign(Object.assign({}, this.state), { enabled: this.enabled, visible: this.visible }), options);
|
|
16779
|
+
}
|
|
16780
|
+
}
|
|
16781
|
+
|
|
16782
|
+
/* src/PanoDoorLabelPlugin/DoorLabelItem.svelte generated by Svelte v3.48.0 */
|
|
16783
|
+
|
|
16784
|
+
function add_css(target) {
|
|
16785
|
+
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)}");
|
|
16786
|
+
}
|
|
16787
|
+
|
|
16788
|
+
function create_fragment(ctx) {
|
|
16789
|
+
let div1;
|
|
16790
|
+
let div0;
|
|
16791
|
+
let span;
|
|
16792
|
+
let t1;
|
|
16793
|
+
let i;
|
|
16794
|
+
let div0_class_value;
|
|
16795
|
+
let mounted;
|
|
16796
|
+
let dispose;
|
|
16797
|
+
|
|
16798
|
+
return {
|
|
16799
|
+
c() {
|
|
16800
|
+
div1 = element("div");
|
|
16801
|
+
div0 = element("div");
|
|
16802
|
+
span = element("span");
|
|
16803
|
+
span.textContent = `${/*name*/ ctx[8]}`;
|
|
16804
|
+
t1 = space();
|
|
16805
|
+
i = element("i");
|
|
16806
|
+
attr(span, "class", "plugin-DoorLabelPlugin-txt svelte-6rn4em");
|
|
16807
|
+
attr(i, "class", "plugin-DoorLabelPlugin-icon svelte-6rn4em");
|
|
16808
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(classNames('plugin-DoorLabelPlugin-cnt', /*props*/ ctx[0].toward)) + " svelte-6rn4em"));
|
|
16809
|
+
attr(div0, "style", `transform: ${/*transform*/ ctx[6] || 'initial'};pointerEvents: ${/*inSight*/ ctx[5] ? 'auto' : 'none'};opacity: ${/*inSight*/ ctx[5] ? 1 : 0}`);
|
|
16810
|
+
attr(div0, "data-camera-toward", /*cameraToward*/ ctx[7]);
|
|
16811
|
+
attr(div1, "style", `left: ${/*left*/ ctx[3] || 0}%;top: ${/*top*/ ctx[4] || 0}%;opacity: ${/*inSight*/ ctx[5] ? 1 : 0}`);
|
|
16812
|
+
attr(div1, "class", "plugin-DoorLabelPlugin-item svelte-6rn4em");
|
|
16813
|
+
},
|
|
16814
|
+
m(target, anchor) {
|
|
16815
|
+
insert(target, div1, anchor);
|
|
16816
|
+
append(div1, div0);
|
|
16817
|
+
append(div0, span);
|
|
16818
|
+
append(div0, t1);
|
|
16819
|
+
append(div0, i);
|
|
16820
|
+
/*div1_binding*/ ctx[10](div1);
|
|
16821
|
+
|
|
16822
|
+
if (!mounted) {
|
|
16823
|
+
dispose = listen(div0, "click", /*click_handler*/ ctx[9]);
|
|
16824
|
+
mounted = true;
|
|
16825
|
+
}
|
|
16826
|
+
},
|
|
16827
|
+
p(ctx, [dirty]) {
|
|
16828
|
+
if (dirty & /*props*/ 1 && div0_class_value !== (div0_class_value = "" + (null_to_empty(classNames('plugin-DoorLabelPlugin-cnt', /*props*/ ctx[0].toward)) + " svelte-6rn4em"))) {
|
|
16829
|
+
attr(div0, "class", div0_class_value);
|
|
16830
|
+
}
|
|
16831
|
+
},
|
|
16832
|
+
i: noop$1,
|
|
16833
|
+
o: noop$1,
|
|
16834
|
+
d(detaching) {
|
|
16835
|
+
if (detaching) detach(div1);
|
|
16836
|
+
/*div1_binding*/ ctx[10](null);
|
|
16837
|
+
mounted = false;
|
|
16838
|
+
dispose();
|
|
16839
|
+
}
|
|
16840
|
+
};
|
|
16841
|
+
}
|
|
16842
|
+
|
|
16843
|
+
function instance($$self, $$props, $$invalidate) {
|
|
16844
|
+
let { props } = $$props;
|
|
16845
|
+
let { onClick } = $$props;
|
|
16846
|
+
let divElement;
|
|
16847
|
+
let { left, top, inSight, transform, panoIndex, cameraToward, name } = props;
|
|
16848
|
+
let prevPanoIndexRef = 0;
|
|
16849
|
+
|
|
16850
|
+
const initPanoIndex = () => {
|
|
16851
|
+
if (!left || !top || !inSight) {
|
|
16852
|
+
return;
|
|
16853
|
+
}
|
|
16854
|
+
|
|
16855
|
+
if (!divElement) return;
|
|
16856
|
+
const _width = divElement.current.clientWidth / window.innerWidth * 100;
|
|
16857
|
+
const _height = divElement.current.clientHeight / window.innerHeight * 100;
|
|
16858
|
+
|
|
16859
|
+
if (left <= _width / 2 || left >= 100 - _width / 2) {
|
|
16860
|
+
return;
|
|
16861
|
+
}
|
|
16862
|
+
|
|
16863
|
+
if (top <= _height / 2 || top >= 100 - _height / 2) {
|
|
16864
|
+
return;
|
|
16865
|
+
}
|
|
16866
|
+
|
|
16867
|
+
const prevPanoIndex = prevPanoIndexRef;
|
|
16868
|
+
|
|
16869
|
+
if (panoIndex !== prevPanoIndex) {
|
|
16870
|
+
// 触发埋点
|
|
16871
|
+
console.log('panoDoorLabelPlugin', panoIndex, '触发埋点');
|
|
16872
|
+
|
|
16873
|
+
// 这里触发曝光埋点
|
|
16874
|
+
prevPanoIndexRef = panoIndex;
|
|
16875
|
+
}
|
|
16876
|
+
};
|
|
16877
|
+
|
|
16878
|
+
const click_handler = e => {
|
|
16879
|
+
if (onClick) onClick();
|
|
16880
|
+
};
|
|
16881
|
+
|
|
16882
|
+
function div1_binding($$value) {
|
|
16883
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
16884
|
+
divElement = $$value;
|
|
16885
|
+
$$invalidate(2, divElement);
|
|
16886
|
+
});
|
|
16887
|
+
}
|
|
16888
|
+
|
|
16889
|
+
$$self.$$set = $$props => {
|
|
16890
|
+
if ('props' in $$props) $$invalidate(0, props = $$props.props);
|
|
16891
|
+
if ('onClick' in $$props) $$invalidate(1, onClick = $$props.onClick);
|
|
16892
|
+
};
|
|
16893
|
+
|
|
16894
|
+
{
|
|
16895
|
+
initPanoIndex();
|
|
16896
|
+
}
|
|
16897
|
+
|
|
16898
|
+
return [
|
|
16899
|
+
props,
|
|
16900
|
+
onClick,
|
|
16901
|
+
divElement,
|
|
16902
|
+
left,
|
|
16903
|
+
top,
|
|
16904
|
+
inSight,
|
|
16905
|
+
transform,
|
|
16906
|
+
cameraToward,
|
|
16907
|
+
name,
|
|
16908
|
+
click_handler,
|
|
16909
|
+
div1_binding
|
|
16910
|
+
];
|
|
16911
|
+
}
|
|
16912
|
+
|
|
16913
|
+
class DoorLabelItem extends SvelteComponent {
|
|
16914
|
+
constructor(options) {
|
|
16915
|
+
super();
|
|
16916
|
+
init(this, options, instance, create_fragment, safe_not_equal, { props: 0, onClick: 1 }, add_css);
|
|
16917
|
+
}
|
|
16918
|
+
}
|
|
16919
|
+
|
|
16920
|
+
function isTwoRectOverlaped(rect1, rect2) {
|
|
16921
|
+
// 两矩形的中心点水平及垂直距离
|
|
16922
|
+
const verticalDistance = Math.abs(rect1.top + rect1.height / 2 - rect2.top - rect2.height / 2);
|
|
16923
|
+
const horizontalDistance = Math.abs(rect1.left + rect1.width / 2 - rect2.left - rect2.width / 2);
|
|
16924
|
+
const verticalThreshold = (rect1.height + rect2.height) / 2;
|
|
16925
|
+
const horizontalThroshold = (rect1.width + rect2.width) / 2;
|
|
16926
|
+
if (verticalDistance > verticalThreshold && horizontalDistance > horizontalThroshold) {
|
|
16927
|
+
return false;
|
|
16928
|
+
}
|
|
16929
|
+
return true;
|
|
16930
|
+
}
|
|
16931
|
+
function getCameraToward(five) {
|
|
16932
|
+
const { camera } = five;
|
|
16933
|
+
const cameraDirection = camera.getWorldDirection(new Vector3$1());
|
|
16934
|
+
let angel = (Math.atan(cameraDirection.z / cameraDirection.x) * 180) / Math.PI;
|
|
16935
|
+
let toward = '';
|
|
16936
|
+
if (cameraDirection.x < 0)
|
|
16937
|
+
angel += 180;
|
|
16938
|
+
if (angel < 0)
|
|
16939
|
+
angel += 360;
|
|
16940
|
+
if (angel > 315 || angel <= 45) {
|
|
16941
|
+
toward = 'right';
|
|
16942
|
+
}
|
|
16943
|
+
else if (angel > 45 && angel <= 135) {
|
|
16944
|
+
toward = 'back';
|
|
16945
|
+
}
|
|
16946
|
+
else if (angel > 135 && angel <= 225) {
|
|
16947
|
+
toward = 'left';
|
|
16948
|
+
}
|
|
16949
|
+
else if (angel > 225 && angel <= 315) {
|
|
16950
|
+
toward = 'forward';
|
|
16951
|
+
}
|
|
16952
|
+
return toward;
|
|
16953
|
+
}
|
|
16954
|
+
function getDistance(p1, p2) {
|
|
16955
|
+
return Math.sqrt(Math.pow(p1.z - p2.z, 2) + Math.pow(p1.x - p2.x, 2));
|
|
16956
|
+
}
|
|
16957
|
+
// left、right、forward、back 是 roomLabel 的朝向
|
|
16958
|
+
function getToward(rad) {
|
|
16959
|
+
const pi_4 = Math.PI / 4;
|
|
16960
|
+
if (rad > -pi_4 && rad <= pi_4) {
|
|
16961
|
+
return 'left';
|
|
16962
|
+
}
|
|
16963
|
+
else if (rad > pi_4 * 3 || rad <= -pi_4 * 3) {
|
|
16964
|
+
return 'right';
|
|
16965
|
+
}
|
|
16966
|
+
else if (rad > -pi_4 * 3 && rad <= -pi_4) {
|
|
16967
|
+
return 'forward';
|
|
16968
|
+
}
|
|
16969
|
+
else if (rad > pi_4 && rad <= pi_4 * 3) {
|
|
16970
|
+
return 'back';
|
|
16971
|
+
}
|
|
16972
|
+
return '';
|
|
16973
|
+
}
|
|
16974
|
+
|
|
16975
|
+
const defaultBaseOptions = { userAction: true };
|
|
16976
|
+
/**
|
|
16977
|
+
* 分间标签插件
|
|
16978
|
+
* @author kyleju
|
|
16979
|
+
*/
|
|
16980
|
+
class PanoDoorLabelPluginController extends BasePanoPluginController {
|
|
16981
|
+
constructor(five) {
|
|
16982
|
+
super(five);
|
|
16983
|
+
Object.defineProperty(this, "MinVisibledistance", {
|
|
16984
|
+
enumerable: true,
|
|
16985
|
+
configurable: true,
|
|
16986
|
+
writable: true,
|
|
16987
|
+
value: 1.8
|
|
16988
|
+
});
|
|
16989
|
+
Object.defineProperty(this, "MaxVisibledistance", {
|
|
16990
|
+
enumerable: true,
|
|
16991
|
+
configurable: true,
|
|
16992
|
+
writable: true,
|
|
16993
|
+
value: 6
|
|
16994
|
+
});
|
|
16995
|
+
Object.defineProperty(this, "OffsetHeight", {
|
|
16996
|
+
enumerable: true,
|
|
16997
|
+
configurable: true,
|
|
16998
|
+
writable: true,
|
|
16999
|
+
value: -1.3
|
|
17000
|
+
}); // 标签页面高度偏移值
|
|
17001
|
+
Object.defineProperty(this, "rooms", {
|
|
17002
|
+
enumerable: true,
|
|
17003
|
+
configurable: true,
|
|
17004
|
+
writable: true,
|
|
17005
|
+
value: void 0
|
|
17006
|
+
});
|
|
17007
|
+
Object.defineProperty(this, "floorplanServerData", {
|
|
17008
|
+
enumerable: true,
|
|
17009
|
+
configurable: true,
|
|
17010
|
+
writable: true,
|
|
17011
|
+
value: void 0
|
|
17012
|
+
});
|
|
17013
|
+
/** 标签项 */
|
|
17014
|
+
Object.defineProperty(this, "doorLabelItems", {
|
|
17015
|
+
enumerable: true,
|
|
17016
|
+
configurable: true,
|
|
17017
|
+
writable: true,
|
|
17018
|
+
value: void 0
|
|
17019
|
+
});
|
|
17020
|
+
/** 每个点位 visible 标签的缓存 */
|
|
17021
|
+
Object.defineProperty(this, "visibleLabelMap", {
|
|
17022
|
+
enumerable: true,
|
|
17023
|
+
configurable: true,
|
|
17024
|
+
writable: true,
|
|
17025
|
+
value: new Map()
|
|
17026
|
+
});
|
|
17027
|
+
/** 标签项Prop值 */
|
|
17028
|
+
Object.defineProperty(this, "labelItems", {
|
|
17029
|
+
enumerable: true,
|
|
17030
|
+
configurable: true,
|
|
17031
|
+
writable: true,
|
|
17032
|
+
value: []
|
|
17033
|
+
});
|
|
17034
|
+
/** 数据 */
|
|
17035
|
+
Object.defineProperty(this, "doorLabels", {
|
|
17036
|
+
enumerable: true,
|
|
17037
|
+
configurable: true,
|
|
17038
|
+
writable: true,
|
|
17039
|
+
value: void 0
|
|
17040
|
+
});
|
|
17041
|
+
Object.defineProperty(this, "roomObservers", {
|
|
17042
|
+
enumerable: true,
|
|
17043
|
+
configurable: true,
|
|
17044
|
+
writable: true,
|
|
17045
|
+
value: void 0
|
|
17046
|
+
});
|
|
17047
|
+
Object.defineProperty(this, "loadData", {
|
|
17048
|
+
enumerable: true,
|
|
17049
|
+
configurable: true,
|
|
17050
|
+
writable: true,
|
|
17051
|
+
value: (floorplanServerData) => {
|
|
17052
|
+
if (this.doorLabelItems && this.doorLabelItems.length > 0) {
|
|
17053
|
+
this.doorLabelItems.forEach((doorItem) => {
|
|
17054
|
+
doorItem.$destroy();
|
|
17055
|
+
});
|
|
17056
|
+
}
|
|
17057
|
+
this.labelItems = [];
|
|
17058
|
+
this.doorLabels = [];
|
|
17059
|
+
this.doorLabelItems = [];
|
|
17060
|
+
this.floorplanServerData = floorplanServerData;
|
|
17061
|
+
this.five.once('panoArrived', () => {
|
|
17062
|
+
console.log('doorplugin', 'panoArrived');
|
|
17063
|
+
this.initData();
|
|
17064
|
+
});
|
|
17065
|
+
}
|
|
17066
|
+
});
|
|
17067
|
+
Object.defineProperty(this, "initRoomObservers", {
|
|
17068
|
+
enumerable: true,
|
|
17069
|
+
configurable: true,
|
|
17070
|
+
writable: true,
|
|
17071
|
+
value: () => {
|
|
17072
|
+
var _a, _b;
|
|
17073
|
+
const floorDatas = this.floorplanServerData.computed_data.floor_datas || [];
|
|
17074
|
+
const observers = ((_b = (_a = this.five) === null || _a === void 0 ? void 0 : _a.work) === null || _b === void 0 ? void 0 : _b.observers) || [];
|
|
17075
|
+
const roomObservers = observers
|
|
17076
|
+
// eslint-disable-next-line array-callback-return
|
|
17077
|
+
.map((ob) => {
|
|
17078
|
+
const panoIndex = ob.panoIndex;
|
|
17079
|
+
const floorIndex = ob.floorIndex;
|
|
17080
|
+
const floor = floorDatas === null || floorDatas === void 0 ? void 0 : floorDatas.find((d) => d.floor_index === floorIndex);
|
|
17081
|
+
if (floor) {
|
|
17082
|
+
const room = floor.rooms.find((r) => r.observer_indexs.includes(panoIndex));
|
|
17083
|
+
if (room) {
|
|
17084
|
+
return { panoIndex, floorIndex, name: room.name };
|
|
17085
|
+
}
|
|
17086
|
+
}
|
|
17087
|
+
})
|
|
17088
|
+
.filter(Boolean);
|
|
17089
|
+
this.roomObservers = roomObservers;
|
|
17090
|
+
}
|
|
17091
|
+
});
|
|
17092
|
+
Object.defineProperty(this, "hideAllLabels", {
|
|
17093
|
+
enumerable: true,
|
|
17094
|
+
configurable: true,
|
|
17095
|
+
writable: true,
|
|
17096
|
+
value: () => {
|
|
17097
|
+
this.labelItems.forEach((item) => {
|
|
17098
|
+
item.visible = false;
|
|
17099
|
+
item.inSight = false;
|
|
17100
|
+
});
|
|
17101
|
+
this.render();
|
|
17102
|
+
}
|
|
17103
|
+
});
|
|
17104
|
+
Object.defineProperty(this, "fixDoorVisibleAndPosition", {
|
|
17105
|
+
enumerable: true,
|
|
17106
|
+
configurable: true,
|
|
17107
|
+
writable: true,
|
|
17108
|
+
value: () => {
|
|
17109
|
+
this.initRoomObservers();
|
|
17110
|
+
const { panoIndex } = this.five;
|
|
17111
|
+
if (!this.visible)
|
|
17112
|
+
return;
|
|
17113
|
+
if (this.five.model.empty)
|
|
17114
|
+
return;
|
|
17115
|
+
if (panoIndex === null)
|
|
17116
|
+
return;
|
|
17117
|
+
if (!this.roomObservers.find((item) => item.panoIndex === panoIndex))
|
|
17118
|
+
return;
|
|
17119
|
+
const roomObserver = this.roomObservers.find((item) => {
|
|
17120
|
+
return item.panoIndex === panoIndex;
|
|
17121
|
+
});
|
|
17122
|
+
const position = this.five.work.observers.find((item) => item.panoIndex === panoIndex).position;
|
|
17123
|
+
const targetPoint = position.clone();
|
|
17124
|
+
const visibleLabelIds = (() => {
|
|
17125
|
+
if (this.visibleLabelMap.has(panoIndex)) {
|
|
17126
|
+
/** 使用缓存 */
|
|
17127
|
+
return this.visibleLabelMap.get(panoIndex);
|
|
17128
|
+
}
|
|
17129
|
+
else {
|
|
17130
|
+
const visibleDoorIds = [];
|
|
17131
|
+
this.doorLabels.forEach((doorLabelItem, index) => {
|
|
17132
|
+
// step1 校验分间
|
|
17133
|
+
if (doorLabelItem.roomName === roomObserver.name)
|
|
17134
|
+
return;
|
|
17135
|
+
// step2 校验最大最小值
|
|
17136
|
+
const doorPosition = doorLabelItem.position.clone();
|
|
17137
|
+
const distance = doorPosition.distanceTo(targetPoint);
|
|
17138
|
+
if (distance < this.MinVisibledistance || distance > this.MaxVisibledistance)
|
|
17139
|
+
return;
|
|
17140
|
+
// step3 碰撞检测是否有遮挡
|
|
17141
|
+
const raycaster = new Raycaster$1();
|
|
17142
|
+
const direction = doorPosition.clone().sub(targetPoint).normalize();
|
|
17143
|
+
raycaster.set(targetPoint, direction);
|
|
17144
|
+
const [intersection] = this.five.model.intersectRaycaster(raycaster);
|
|
17145
|
+
if (intersection && intersection.distance + 0.1 < distance)
|
|
17146
|
+
return;
|
|
17147
|
+
// 🥳 最终剩下的就是当前点位可见的标签
|
|
17148
|
+
visibleDoorIds.push(index);
|
|
17149
|
+
});
|
|
17150
|
+
this.visibleLabelMap.set(panoIndex, visibleDoorIds);
|
|
17151
|
+
return visibleDoorIds;
|
|
17152
|
+
}
|
|
17153
|
+
})();
|
|
17154
|
+
this.labelItems.forEach((data, index) => {
|
|
17155
|
+
data.visible = visibleLabelIds.includes(index);
|
|
17156
|
+
});
|
|
17157
|
+
this.fixDoorPosition();
|
|
17158
|
+
}
|
|
17159
|
+
});
|
|
17160
|
+
Object.defineProperty(this, "fixDoorPosition", {
|
|
17161
|
+
enumerable: true,
|
|
17162
|
+
configurable: true,
|
|
17163
|
+
writable: true,
|
|
17164
|
+
value: () => {
|
|
17165
|
+
const { panoIndex, camera } = this.five;
|
|
17166
|
+
if (panoIndex === null)
|
|
17167
|
+
return;
|
|
17168
|
+
if (this.five.currentMode !== 'Panorama')
|
|
17169
|
+
return this.hideAllLabels();
|
|
17170
|
+
const fiveElement = this.five.getElement();
|
|
17171
|
+
const canvasWidth = fiveElement.clientWidth;
|
|
17172
|
+
const canvasHeight = fiveElement.clientHeight;
|
|
17173
|
+
const cameraDirection = camera.getWorldDirection(new Vector3$1());
|
|
17174
|
+
const neverOverlapLabels = [];
|
|
17175
|
+
const labelItems = [...this.labelItems];
|
|
17176
|
+
labelItems.forEach((doorLabel, index) => {
|
|
17177
|
+
if (doorLabel.visible) {
|
|
17178
|
+
const disFromCameraToLabel = camera.position.distanceTo(doorLabel.position);
|
|
17179
|
+
const labelPosition = doorLabel.position.clone().add(new Vector3$1(0, this.OffsetHeight, 0));
|
|
17180
|
+
const direction = labelPosition.clone().sub(camera.position).normalize();
|
|
17181
|
+
const angle = direction.angleTo(cameraDirection);
|
|
17182
|
+
const mouse = labelPosition.clone().project(camera);
|
|
17183
|
+
const left = ((mouse.x + 1) / 2.2) * 100;
|
|
17184
|
+
const top = ((-mouse.y + 1) / 2.2) * 100;
|
|
17185
|
+
const visible = left >= 0 &&
|
|
17186
|
+
left <= 100 &&
|
|
17187
|
+
top >= 0 &&
|
|
17188
|
+
top <= 100 &&
|
|
17189
|
+
disFromCameraToLabel > this.MinVisibledistance &&
|
|
17190
|
+
disFromCameraToLabel <= this.MaxVisibledistance;
|
|
17191
|
+
doorLabel.left = left;
|
|
17192
|
+
doorLabel.top = top;
|
|
17193
|
+
doorLabel.inSight = visible && angle < Math.PI / 2;
|
|
17194
|
+
doorLabel.cameraToward = getCameraToward(this.five);
|
|
17195
|
+
if (visible)
|
|
17196
|
+
neverOverlapLabels.push({ disFromCameraToLabel, left, top, index });
|
|
17197
|
+
else
|
|
17198
|
+
doorLabel.transform = 'translate(-50%, -50%)';
|
|
17199
|
+
}
|
|
17200
|
+
else {
|
|
17201
|
+
doorLabel.inSight = false;
|
|
17202
|
+
}
|
|
17203
|
+
});
|
|
17204
|
+
// 视线内多标签防重叠单独处理
|
|
17205
|
+
if (neverOverlapLabels.length > 1) {
|
|
17206
|
+
let heightLevel = 0;
|
|
17207
|
+
neverOverlapLabels.sort((a, b) => b.disFromCameraToLabel - a.disFromCameraToLabel);
|
|
17208
|
+
for (let i = 1; i < neverOverlapLabels.length; i++) {
|
|
17209
|
+
const { index: idx1, left: l1, top: t1 } = neverOverlapLabels[i - 1];
|
|
17210
|
+
const { index: idx2, left: l2, top: t2 } = neverOverlapLabels[i];
|
|
17211
|
+
const rectDom1 = this.container.children[idx1];
|
|
17212
|
+
const rectDom2 = this.container.children[idx2];
|
|
17213
|
+
if (!rectDom1 || !rectDom2)
|
|
17214
|
+
return;
|
|
17215
|
+
const rect1 = {
|
|
17216
|
+
left: (canvasWidth * l1) / 100,
|
|
17217
|
+
top: (canvasHeight * t1) / 100,
|
|
17218
|
+
width: rectDom1.children[0].clientWidth,
|
|
17219
|
+
height: rectDom1.children[0].clientHeight,
|
|
17220
|
+
};
|
|
17221
|
+
const rect2 = {
|
|
17222
|
+
left: (canvasWidth * l2) / 100,
|
|
17223
|
+
top: (canvasHeight * t2) / 100,
|
|
17224
|
+
width: rectDom2.children[0].clientWidth,
|
|
17225
|
+
height: rectDom2.children[0].clientHeight,
|
|
17226
|
+
};
|
|
17227
|
+
if (isTwoRectOverlaped(rect1, rect2)) {
|
|
17228
|
+
heightLevel++;
|
|
17229
|
+
labelItems[idx1].transform = `translate(-50%, ${(heightLevel - 1) * 100 - 50}%)`;
|
|
17230
|
+
labelItems[idx2].transform = `translate(-50%, ${heightLevel * 100 - 50}%)`;
|
|
17231
|
+
}
|
|
17232
|
+
}
|
|
17233
|
+
}
|
|
17234
|
+
this.labelItems = labelItems;
|
|
17235
|
+
this.render();
|
|
17236
|
+
}
|
|
17237
|
+
});
|
|
17238
|
+
Object.defineProperty(this, "onClick", {
|
|
17239
|
+
enumerable: true,
|
|
17240
|
+
configurable: true,
|
|
17241
|
+
writable: true,
|
|
17242
|
+
value: (roomName, position) => {
|
|
17243
|
+
if (!this.rooms)
|
|
17244
|
+
return;
|
|
17245
|
+
const { work } = this.five;
|
|
17246
|
+
let nearestIndex;
|
|
17247
|
+
let nearestVector;
|
|
17248
|
+
let minDistance = Infinity;
|
|
17249
|
+
for (let index = 0; index < work.observers.length; index++) {
|
|
17250
|
+
if (this.rooms[index].name !== roomName)
|
|
17251
|
+
continue;
|
|
17252
|
+
const observer = work.observers[index];
|
|
17253
|
+
const observerPoint = observer.standingPosition;
|
|
17254
|
+
const distance = position.distanceTo(observerPoint);
|
|
17255
|
+
if (distance < minDistance) {
|
|
17256
|
+
nearestIndex = index;
|
|
17257
|
+
nearestVector = observerPoint.clone().sub(position).normalize();
|
|
17258
|
+
minDistance = distance;
|
|
17259
|
+
}
|
|
17260
|
+
}
|
|
17261
|
+
if (nearestVector !== null && nearestIndex !== null) {
|
|
17262
|
+
const options = {};
|
|
17263
|
+
if (minDistance > 0) {
|
|
17264
|
+
const fromVector = new Vector3$1(0, 0, -1);
|
|
17265
|
+
const toVector = nearestVector.clone();
|
|
17266
|
+
const quaternion = new Quaternion();
|
|
17267
|
+
quaternion.setFromUnitVectors(fromVector, toVector);
|
|
17268
|
+
const euler = new Euler();
|
|
17269
|
+
euler.setFromQuaternion(quaternion, 'YXZ');
|
|
17270
|
+
options.longitude = euler.y;
|
|
17271
|
+
}
|
|
17272
|
+
const canceled = this.five.emit('wantsToMoveToPano', nearestIndex, {}, true);
|
|
17273
|
+
if (!canceled) {
|
|
17274
|
+
this.five.moveToPano(nearestIndex, { longitude: options.longitude });
|
|
17275
|
+
}
|
|
17276
|
+
}
|
|
17277
|
+
}
|
|
17278
|
+
});
|
|
17279
|
+
Object.defineProperty(this, "initData", {
|
|
17280
|
+
enumerable: true,
|
|
17281
|
+
configurable: true,
|
|
17282
|
+
writable: true,
|
|
17283
|
+
value: () => {
|
|
17284
|
+
var _a;
|
|
17285
|
+
this.doorLabels = [];
|
|
17286
|
+
const pano_index = this.five.panoIndex;
|
|
17287
|
+
const floor_index = this.floorplanServerData.computed_data.observers[pano_index].floor_index;
|
|
17288
|
+
const rooms = floor_index !== undefined &&
|
|
17289
|
+
((_a = this.floorplanServerData.computed_data.floor_datas[floor_index]) === null || _a === void 0 ? void 0 : _a.rooms);
|
|
17290
|
+
this.rooms = rooms;
|
|
17291
|
+
if (this.rooms && this.rooms.length > 0) {
|
|
17292
|
+
this.rooms.forEach((room) => {
|
|
17293
|
+
var _a;
|
|
17294
|
+
const doors = (_a = this.floorplanServerData.computed_data.doors) === null || _a === void 0 ? void 0 : _a.filter((doorItem) => {
|
|
17295
|
+
if (doorItem && doorItem.name === room.name) {
|
|
17296
|
+
return true;
|
|
17297
|
+
}
|
|
17298
|
+
return false;
|
|
17299
|
+
});
|
|
17300
|
+
const observersInRoom = this.five.work.observers.filter((observer, index) => {
|
|
17301
|
+
if (room.observer_indexs.find((item) => item === index))
|
|
17302
|
+
return true;
|
|
17303
|
+
return false;
|
|
17304
|
+
});
|
|
17305
|
+
if (doors) {
|
|
17306
|
+
doors.forEach((door) => {
|
|
17307
|
+
const doorPoint = door.position;
|
|
17308
|
+
let minDistance = Infinity;
|
|
17309
|
+
let nearestPoint;
|
|
17310
|
+
// 遍历门所在房间所有的点,找到离门最近的点
|
|
17311
|
+
observersInRoom.forEach((observer) => {
|
|
17312
|
+
const position = observer.standingPosition;
|
|
17313
|
+
const observerPoint = {
|
|
17314
|
+
x: position.x,
|
|
17315
|
+
y: position.y,
|
|
17316
|
+
z: position.z,
|
|
17317
|
+
};
|
|
17318
|
+
const distance = getDistance(doorPoint, observerPoint);
|
|
17319
|
+
if (distance < minDistance) {
|
|
17320
|
+
minDistance = distance;
|
|
17321
|
+
nearestPoint = observerPoint;
|
|
17322
|
+
}
|
|
17323
|
+
});
|
|
17324
|
+
if (nearestPoint)
|
|
17325
|
+
doorPoint.y = nearestPoint.y + 0.01;
|
|
17326
|
+
const position = new Vector3$1(doorPoint.x, doorPoint.y, doorPoint.z);
|
|
17327
|
+
position.add(new Vector3$1(-0.2, 1.8, 0).applyEuler(new Euler(0, door.rad, 0)));
|
|
17328
|
+
this.doorLabels.push({
|
|
17329
|
+
roomName: room.name,
|
|
17330
|
+
name: door.name,
|
|
17331
|
+
position,
|
|
17332
|
+
toward: getToward(door.rad),
|
|
17333
|
+
});
|
|
17334
|
+
});
|
|
17335
|
+
}
|
|
17336
|
+
});
|
|
17337
|
+
}
|
|
17338
|
+
this.labelItems = this.doorLabels.map((data) => (Object.assign(Object.assign({}, data), { left: 0, top: 0, visible: false, inSight: false, transform: '', cameraToward: '' })));
|
|
17339
|
+
console.log('doorplugin', 'labelItems', this.labelItems);
|
|
17340
|
+
this.five.on('wantsToMoveToPano', this.hideAllLabels);
|
|
17341
|
+
this.five.on('modelLoaded', this.fixDoorVisibleAndPosition);
|
|
17342
|
+
this.five.on('panoArrived', this.fixDoorVisibleAndPosition);
|
|
17343
|
+
this.five.on('initAnimationEnded', this.fixDoorPosition);
|
|
17344
|
+
this.five.on('cameraUpdate', this.fixDoorPosition);
|
|
17345
|
+
this.five.on('mouseWheel', this.fixDoorPosition);
|
|
17346
|
+
this.five.on('pinchGesture', this.fixDoorPosition);
|
|
17347
|
+
this.fixDoorVisibleAndPosition();
|
|
17348
|
+
}
|
|
17349
|
+
});
|
|
17350
|
+
}
|
|
17351
|
+
stateChangedCallback(prevState, options) {
|
|
17352
|
+
if (this.hooks.hasListener('stateChange')) {
|
|
17353
|
+
const optionParams = {
|
|
17354
|
+
state: this.state,
|
|
17355
|
+
prevState,
|
|
17356
|
+
userAction: options ? options.userAction : defaultBaseOptions.userAction,
|
|
17357
|
+
};
|
|
17358
|
+
this.hooks.emit('stateChange', optionParams);
|
|
17359
|
+
}
|
|
17360
|
+
}
|
|
17361
|
+
render() {
|
|
17362
|
+
if (!this.enabled) {
|
|
17363
|
+
this.doorLabelItems &&
|
|
17364
|
+
this.doorLabelItems.length > 0 &&
|
|
17365
|
+
this.doorLabelItems.forEach((item) => {
|
|
17366
|
+
item === null || item === void 0 ? void 0 : item.$destroy();
|
|
17367
|
+
});
|
|
17368
|
+
this.doorLabels = undefined;
|
|
17369
|
+
return;
|
|
17370
|
+
}
|
|
17371
|
+
if (this.doorLabelItems) {
|
|
17372
|
+
this.doorLabelItems.forEach((item) => {
|
|
17373
|
+
item.$destroy();
|
|
17374
|
+
});
|
|
17375
|
+
}
|
|
17376
|
+
this.doorLabelItems = [];
|
|
17377
|
+
this.labelItems.forEach((item) => {
|
|
17378
|
+
this.doorLabelItems.push(new DoorLabelItem({
|
|
17379
|
+
target: this.container,
|
|
17380
|
+
props: {
|
|
17381
|
+
props: item,
|
|
17382
|
+
onClick: () => {
|
|
17383
|
+
this.onClick(item.name, item.position);
|
|
17384
|
+
},
|
|
17385
|
+
},
|
|
17386
|
+
}));
|
|
17387
|
+
});
|
|
17388
|
+
}
|
|
17389
|
+
initState() {
|
|
17390
|
+
return { enabled: true, visible: true };
|
|
17391
|
+
}
|
|
17392
|
+
dispose() {
|
|
17393
|
+
if (this.five) {
|
|
17394
|
+
this.five.off('wantsToMoveToPano', this.hideAllLabels);
|
|
17395
|
+
this.five.off('modelLoaded', this.fixDoorVisibleAndPosition);
|
|
17396
|
+
this.five.off('panoArrived', this.fixDoorVisibleAndPosition);
|
|
17397
|
+
this.five.off('initAnimationEnded', this.fixDoorPosition);
|
|
17398
|
+
this.five.off('cameraUpdate', this.fixDoorPosition);
|
|
17399
|
+
this.five.off('mouseWheel', this.fixDoorPosition);
|
|
17400
|
+
this.five.off('pinchGesture', this.fixDoorPosition);
|
|
17401
|
+
super.dispose();
|
|
17402
|
+
}
|
|
17403
|
+
}
|
|
17404
|
+
}
|
|
17405
|
+
|
|
17406
|
+
const PanoDoorLabelPlugin = (five) => {
|
|
17407
|
+
return new PanoDoorLabelPluginController(five);
|
|
17408
|
+
};
|
|
17409
|
+
|
|
17410
|
+
const DnalogelVersion = '2.0.0-alpha.43';
|
|
16574
17411
|
|
|
16575
|
-
export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, DnalogelVersion, FLOOR_PLAN_ATTACHED_TO, FLOOR_TYPE_MAP, ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE, Plugin as ItemLabelPlugin, Magnifier, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoRulerProPlugin, PanoSpatialTagPlugin, ROOM_FETILE_TYPE_MAP, ROOM_TYPE_MAP, Rotation, TopviewFloorplanPlugin, itemLabelPluginServerParams, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams };
|
|
17412
|
+
export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, DnalogelVersion, FLOOR_PLAN_ATTACHED_TO, FLOOR_TYPE_MAP, ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE, Plugin as ItemLabelPlugin, Magnifier, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoDoorLabelPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoRulerProPlugin, PanoSpatialTagPlugin, ROOM_FETILE_TYPE_MAP, ROOM_TYPE_MAP, Rotation, TopviewFloorplanPlugin, itemLabelPluginServerParams, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams };
|