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