@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.2
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/README.md +3 -12
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +6 -11
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -331
- package/libs/CSS3DRenderPlugin/Controller.js +1 -84
- package/libs/CSS3DRenderPlugin/index.js +1 -6
- package/libs/CSS3DRenderPlugin/typing.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -88
- package/libs/CameraMovementPlugin/index.js +1 -0
- package/libs/CameraMovementPlugin/typing.js +1 -5
- package/libs/CruisePlugin/Controller.js +1 -484
- package/libs/CruisePlugin/index.js +1 -8
- package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -8
- package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
- package/libs/CruisePlugin/utils/formatRad.js +1 -7
- package/libs/CruisePlugin/utils/linerValue.js +1 -7
- package/libs/CruisePlugin/utils/safeCall.js +1 -28
- package/libs/CruisePlugin/utils/sleep.js +1 -10
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
- package/libs/GuideLinePlugin/Controller.js +1 -144
- package/libs/GuideLinePlugin/index.js +1 -6
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -64
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -271
- package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
- package/libs/ItemLabelPlugin/Plugin.js +2 -76
- package/libs/ItemLabelPlugin/index.js +1 -12
- package/libs/ItemLabelPlugin/typings.js +1 -4
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
- package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
- package/libs/ItemLabelPlugin/utils/parseData.js +1 -21
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -21
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -71
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -78
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -212
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -74
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.js +1 -12
- package/libs/ModelItemLabelPlugin/typings.js +1 -4
- package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -19
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -60
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -162
- package/libs/ModelRoomLabelPlugin/index.js +1 -10
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -164
- package/libs/ModelTVVideoPlugin/index.js +1 -0
- package/libs/ModelTVVideoPlugin/typings.js +1 -4
- package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
- package/libs/ModelViewPlugin/Plugin.js +1 -107
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +1 -145
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -32
- package/libs/Object3DHelperPlugin/index.js +1 -10
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -224
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
- package/libs/PanoCompassPlugin/index.js +1 -6
- package/libs/PanoCursorRaycasterPlugin/index.js +1 -59
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -59
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -219
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
- package/libs/PanoDoorLabelPlugin/index.js +1 -6
- package/libs/PanoDoorLabelPlugin/utils.js +1 -23
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -53
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -102
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -125
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -90
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -154
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -140
- package/libs/PanoMeasurePlugin/Model/index.js +1 -92
- package/libs/PanoMeasurePlugin/Model/line.js +1 -56
- package/libs/PanoMeasurePlugin/Model/point.js +1 -30
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -62
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -130
- package/libs/PanoMeasurePlugin/index.js +1 -11
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
- package/libs/PanoMeasurePlugin/utils/constants.js +1 -36
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -15
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
- package/libs/PanoMeasurePlugin/utils/line.js +1 -18
- package/libs/PanoMeasurePlugin/utils/math.js +1 -13
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
- package/libs/PanoRulerPlugin/Plugin.js +2 -263
- package/libs/PanoRulerPlugin/index.js +1 -0
- package/libs/PanoRulerPlugin/style.js +2 -5
- package/libs/PanoRulerProPlugin/Controller.js +1 -93
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -128
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -180
- package/libs/PanoRulerProPlugin/index.js +1 -6
- package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -81
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -247
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -5
- package/libs/PanoSpatialTagPlugin/style.js +1 -11
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -166
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -90
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -393
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -51
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -51
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -166
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -124
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -131
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -134
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -73
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -192
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -126
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -258
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -87
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -122
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -289
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -156
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -153
- package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -31
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -264
- package/libs/PanoTagPlugin/controller/index.js +1 -377
- package/libs/PanoTagPlugin/index.js +1 -9
- package/libs/PanoTagPlugin/tag.config.js +1 -44
- package/libs/PanoTagPlugin/typings/controller.js +1 -0
- package/libs/PanoTagPlugin/typings/index.js +1 -0
- package/libs/PanoTagPlugin/typings/tag.js +1 -7
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
- package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
- package/libs/PanoTagPlugin/utils/constants.js +1 -8
- package/libs/PanoTagPlugin/utils/debounce.js +1 -12
- package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
- package/libs/PanoTagPlugin/utils/index.js +1 -0
- package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
- package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
- package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
- package/libs/PanoTagPlugin/utils/search.js +1 -15
- package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
- package/libs/PanoTagPlugin/utils/throttle.js +1 -11
- package/libs/base/BasePlugin.js +1 -18
- package/libs/base/BasePluginWithData.js +1 -6
- package/libs/components/PaintBrush/Controller.js +1 -308
- package/libs/components/PaintBrush/Subscribe.js +1 -47
- package/libs/components/PaintBrush/index.js +1 -45
- package/libs/components/PaintBrush/style.js +2 -5
- package/libs/components/PaintBrush/tween.js +1 -11
- package/libs/components/PaintBrush/typings.js +1 -4
- package/libs/components/PaintBrush/utils.js +1 -45
- package/libs/components/index.js +1 -0
- package/libs/floorplan/Assets/camera.js +1 -4
- package/libs/floorplan/Assets/compass.js +1 -4
- package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
- package/libs/floorplan/Components/BaseImage.js +1 -103
- package/libs/floorplan/Components/Camera.js +1 -62
- package/libs/floorplan/Components/Compass.js +1 -60
- package/libs/floorplan/Components/CurrentFloor.js +1 -246
- package/libs/floorplan/Components/Main.js +1 -264
- package/libs/floorplan/Components/Normalmage.js +1 -37
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -121
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -153
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -196
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
- package/libs/floorplan/Components/SvgImage.js +2 -39
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -321
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -316
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -85
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -129
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -183
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -164
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -6
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -273
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/constant.js +1 -4
- package/libs/floorplan/index.js +1 -0
- package/libs/floorplan/typings/floorplanData.js +1 -0
- package/libs/floorplan/typings/floorplanServerData.js +1 -101
- package/libs/floorplan/utils/constant.js +1 -7
- package/libs/floorplan/utils/correctFiveState.js +1 -54
- package/libs/floorplan/utils/formatData.js +1 -104
- package/libs/floorplan/utils/formatPosition.js +1 -35
- package/libs/index.js +1 -92
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -152
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
- package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -18
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -66
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -109
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -134
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -79
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -41
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -30
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -2
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -137
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -136
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/index.js +1 -169
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
- package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -22
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
- package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
- package/libs/shared-utils/Subscribe.js +1 -50
- package/libs/shared-utils/animationFrame/BetterTween.js +1 -26
- package/libs/shared-utils/animationFrame/calculateProgress.js +1 -6
- package/libs/shared-utils/animationFrame/formatRad.js +1 -11
- package/libs/shared-utils/animationFrame/index.js +1 -31
- package/libs/shared-utils/animationFrame/tween.js +1 -30
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
- package/libs/shared-utils/createCanvasTextTexture.js +1 -11
- package/libs/shared-utils/createLine/index.js +1 -9
- package/libs/shared-utils/debounce.js +1 -11
- package/libs/shared-utils/equal.js +1 -54
- package/libs/shared-utils/filter.js +1 -10
- package/libs/shared-utils/five/changeMode.js +1 -39
- package/libs/shared-utils/getPxmm.js +1 -21
- package/libs/shared-utils/index.js +1 -31
- package/libs/shared-utils/isNil.js +1 -10
- package/libs/shared-utils/isTruelyObject.js +1 -6
- package/libs/shared-utils/math/Interval.js +1 -23
- package/libs/shared-utils/math/Rectangle.js +1 -23
- package/libs/shared-utils/math/index.js +1 -0
- package/libs/shared-utils/math/planimetry.js +1 -48
- package/libs/shared-utils/math/rad2Deg.js +1 -6
- package/libs/shared-utils/nearlyEqual.js +1 -6
- package/libs/shared-utils/nextFrame.js +1 -6
- package/libs/shared-utils/noop.js +1 -5
- package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
- package/libs/shared-utils/removeArrayItem.js +1 -8
- package/libs/shared-utils/tap.js +1 -6
- package/libs/shared-utils/three/Assets/index.js +1 -4
- package/libs/shared-utils/three/FivePointSelector.js +1 -49
- package/libs/shared-utils/three/Magnifier.js +1 -104
- package/libs/shared-utils/three/PointDomHelper.js +1 -60
- package/libs/shared-utils/three/PointHelper.js +3 -60
- package/libs/shared-utils/three/getCoords.js +1 -13
- package/libs/shared-utils/three/getIntersect.js +1 -8
- package/libs/shared-utils/three/getRaycaster.js +1 -12
- package/libs/shared-utils/three/index.js +1 -0
- package/libs/shared-utils/three/loadTexture.js +1 -28
- package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -24
- package/libs/shared-utils/throttle.js +1 -11
- package/libs/shared-utils/tinyEJSrender.js +14 -138
- package/libs/shared-utils/to.js +1 -29
- package/libs/shared-utils/uuid.js +1 -10
- package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
- package/libs/vendor/swiper/components-shared/get-params.js +1 -0
- package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/params-list.js +1 -0
- package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/utils.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
- package/libs/vendor/swiper/svelte/swiper.js +1 -0
- package/package.json +187 -17
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +0 -29
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +0 -23
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +0 -14
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +0 -120
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +0 -36
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +0 -32
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +0 -182
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +0 -254
|
@@ -1,174 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import F from "./RoomLabel.js";
|
|
3
|
-
function G(r) {
|
|
4
|
-
D(r, "svelte-13xux0b", ".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}");
|
|
5
|
-
}
|
|
6
|
-
function g(r, e, o) {
|
|
7
|
-
const t = r.slice();
|
|
8
|
-
return t[10] = e[o], t;
|
|
9
|
-
}
|
|
10
|
-
function R(r) {
|
|
11
|
-
let e, o = [], t = /* @__PURE__ */ new Map(), i, m, s = r[6];
|
|
12
|
-
const a = (l) => l[10].id;
|
|
13
|
-
for (let l = 0; l < s.length; l += 1) {
|
|
14
|
-
let n = g(r, s, l), u = a(n);
|
|
15
|
-
t.set(u, o[l] = p(u, n));
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
c() {
|
|
19
|
-
e = z("div");
|
|
20
|
-
for (let l = 0; l < o.length; l += 1)
|
|
21
|
-
o[l].c();
|
|
22
|
-
I(e, "class", "floorplan-plugin__room-labels svelte-13xux0b"), w(() => r[9].call(e));
|
|
23
|
-
},
|
|
24
|
-
m(l, n) {
|
|
25
|
-
b(l, e, n);
|
|
26
|
-
for (let u = 0; u < o.length; u += 1)
|
|
27
|
-
o[u].m(e, null);
|
|
28
|
-
i = W(e, r[9].bind(e)), m = !0;
|
|
29
|
-
},
|
|
30
|
-
p(l, n) {
|
|
31
|
-
n & 111 && (s = l[6], L(), o = q(o, n, a, 1, l, s, t, e, C, p, null, g), k());
|
|
32
|
-
},
|
|
33
|
-
i(l) {
|
|
34
|
-
if (!m) {
|
|
35
|
-
for (let n = 0; n < s.length; n += 1)
|
|
36
|
-
_(o[n]);
|
|
37
|
-
m = !0;
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
o(l) {
|
|
41
|
-
for (let n = 0; n < o.length; n += 1)
|
|
42
|
-
d(o[n]);
|
|
43
|
-
m = !1;
|
|
44
|
-
},
|
|
45
|
-
d(l) {
|
|
46
|
-
l && c(e);
|
|
47
|
-
for (let n = 0; n < o.length; n += 1)
|
|
48
|
-
o[n].d();
|
|
49
|
-
i();
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function p(r, e) {
|
|
54
|
-
let o, t, i;
|
|
55
|
-
const m = [
|
|
56
|
-
{
|
|
57
|
-
pxmm: e[5],
|
|
58
|
-
room: e[10],
|
|
59
|
-
getLabelElement: e[2],
|
|
60
|
-
getRoomAreaText: e[1],
|
|
61
|
-
hoveredRoom: e[0],
|
|
62
|
-
adaptiveRoomLabelVisibleEnable: e[3]
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
let s = {};
|
|
66
|
-
for (let a = 0; a < m.length; a += 1)
|
|
67
|
-
s = M(s, m[a]);
|
|
68
|
-
return t = new F({ props: s }), {
|
|
69
|
-
key: r,
|
|
70
|
-
first: null,
|
|
71
|
-
c() {
|
|
72
|
-
o = v(), N(t.$$.fragment), this.first = o;
|
|
73
|
-
},
|
|
74
|
-
m(a, l) {
|
|
75
|
-
b(a, o, l), S(t, a, l), i = !0;
|
|
76
|
-
},
|
|
77
|
-
p(a, l) {
|
|
78
|
-
e = a;
|
|
79
|
-
const n = l & 111 ? j(m, [
|
|
80
|
-
{
|
|
81
|
-
pxmm: e[5],
|
|
82
|
-
room: e[10],
|
|
83
|
-
getLabelElement: e[2],
|
|
84
|
-
getRoomAreaText: e[1],
|
|
85
|
-
hoveredRoom: e[0],
|
|
86
|
-
adaptiveRoomLabelVisibleEnable: e[3]
|
|
87
|
-
}
|
|
88
|
-
]) : {};
|
|
89
|
-
t.$set(n);
|
|
90
|
-
},
|
|
91
|
-
i(a) {
|
|
92
|
-
i || (_(t.$$.fragment, a), i = !0);
|
|
93
|
-
},
|
|
94
|
-
o(a) {
|
|
95
|
-
d(t.$$.fragment, a), i = !1;
|
|
96
|
-
},
|
|
97
|
-
d(a) {
|
|
98
|
-
a && c(o), B(t, a);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function H(r) {
|
|
103
|
-
let e, o, t = r[6] && R(r);
|
|
104
|
-
return {
|
|
105
|
-
c() {
|
|
106
|
-
t && t.c(), e = v();
|
|
107
|
-
},
|
|
108
|
-
m(i, m) {
|
|
109
|
-
t && t.m(i, m), b(i, e, m), o = !0;
|
|
110
|
-
},
|
|
111
|
-
p(i, [m]) {
|
|
112
|
-
i[6] ? t ? (t.p(i, m), m & 64 && _(t, 1)) : (t = R(i), t.c(), _(t, 1), t.m(e.parentNode, e)) : t && (L(), d(t, 1, 1, () => {
|
|
113
|
-
t = null;
|
|
114
|
-
}), k());
|
|
115
|
-
},
|
|
116
|
-
i(i) {
|
|
117
|
-
o || (_(t), o = !0);
|
|
118
|
-
},
|
|
119
|
-
o(i) {
|
|
120
|
-
d(t), o = !1;
|
|
121
|
-
},
|
|
122
|
-
d(i) {
|
|
123
|
-
t && t.d(i), i && c(e);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function J(r, e, o) {
|
|
128
|
-
let t, { floorIndex: i } = e, { floorplanData: m } = e, { hoveredRoom: s } = e, { getRoomAreaText: a } = e, { getLabelElement: l } = e, { adaptiveRoomLabelVisibleEnable: n } = e, u = 0, h = 0;
|
|
129
|
-
function E() {
|
|
130
|
-
u = this.clientWidth, o(4, u);
|
|
131
|
-
}
|
|
132
|
-
return r.$$set = (f) => {
|
|
133
|
-
"floorIndex" in f && o(7, i = f.floorIndex), "floorplanData" in f && o(8, m = f.floorplanData), "hoveredRoom" in f && o(0, s = f.hoveredRoom), "getRoomAreaText" in f && o(1, a = f.getRoomAreaText), "getLabelElement" in f && o(2, l = f.getLabelElement), "adaptiveRoomLabelVisibleEnable" in f && o(3, n = f.adaptiveRoomLabelVisibleEnable);
|
|
134
|
-
}, r.$$.update = () => {
|
|
135
|
-
if (r.$$.dirty & 384 && o(6, t = m.floorDatas[i].rooms), r.$$.dirty & 272) {
|
|
136
|
-
const { max: f, min: x } = m.bounding, y = f.x - x.x;
|
|
137
|
-
o(5, h = u / y);
|
|
138
|
-
}
|
|
139
|
-
}, [
|
|
140
|
-
s,
|
|
141
|
-
a,
|
|
142
|
-
l,
|
|
143
|
-
n,
|
|
144
|
-
u,
|
|
145
|
-
h,
|
|
146
|
-
t,
|
|
147
|
-
i,
|
|
148
|
-
m,
|
|
149
|
-
E
|
|
150
|
-
];
|
|
151
|
-
}
|
|
152
|
-
class P extends A {
|
|
153
|
-
constructor(e) {
|
|
154
|
-
super(), T(
|
|
155
|
-
this,
|
|
156
|
-
e,
|
|
157
|
-
J,
|
|
158
|
-
H,
|
|
159
|
-
V,
|
|
160
|
-
{
|
|
161
|
-
floorIndex: 7,
|
|
162
|
-
floorplanData: 8,
|
|
163
|
-
hoveredRoom: 0,
|
|
164
|
-
getRoomAreaText: 1,
|
|
165
|
-
getLabelElement: 2,
|
|
166
|
-
adaptiveRoomLabelVisibleEnable: 3
|
|
167
|
-
},
|
|
168
|
-
G
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
export {
|
|
173
|
-
P as default
|
|
174
|
-
};
|
|
1
|
+
"use strict";const t=require("svelte/internal"),p=require("./RoomLabel.js");function v(s){t.append_styles(s,"svelte-13xux0b",".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}")}function b(s,e,l){const o=s.slice();return o[10]=e[l],o}function d(s){let e,l=[],o=new Map,r,m,f=s[6];const a=n=>n[10].id;for(let n=0;n<f.length;n+=1){let i=b(s,f,n),u=a(i);o.set(u,l[n]=h(u,i))}return{c(){e=t.element("div");for(let n=0;n<l.length;n+=1)l[n].c();t.attr(e,"class","floorplan-plugin__room-labels svelte-13xux0b"),t.add_render_callback(()=>s[9].call(e))},m(n,i){t.insert(n,e,i);for(let u=0;u<l.length;u+=1)l[u].m(e,null);r=t.add_resize_listener(e,s[9].bind(e)),m=!0},p(n,i){i&111&&(f=n[6],t.group_outros(),l=t.update_keyed_each(l,i,a,1,n,f,o,e,t.outro_and_destroy_block,h,null,b),t.check_outros())},i(n){if(!m){for(let i=0;i<f.length;i+=1)t.transition_in(l[i]);m=!0}},o(n){for(let i=0;i<l.length;i+=1)t.transition_out(l[i]);m=!1},d(n){n&&t.detach(e);for(let i=0;i<l.length;i+=1)l[i].d();r()}}}function h(s,e){let l,o,r;const m=[{pxmm:e[5],room:e[10],getLabelElement:e[2],getRoomAreaText:e[1],hoveredRoom:e[0],adaptiveRoomLabelVisibleEnable:e[3]}];let f={};for(let a=0;a<m.length;a+=1)f=t.assign(f,m[a]);return o=new p.RoomLabel({props:f}),{key:s,first:null,c(){l=t.empty(),t.create_component(o.$$.fragment),this.first=l},m(a,n){t.insert(a,l,n),t.mount_component(o,a,n),r=!0},p(a,n){e=a;const i=n&111?t.get_spread_update(m,[{pxmm:e[5],room:e[10],getLabelElement:e[2],getRoomAreaText:e[1],hoveredRoom:e[0],adaptiveRoomLabelVisibleEnable:e[3]}]):{};o.$set(i)},i(a){r||(t.transition_in(o.$$.fragment,a),r=!0)},o(a){t.transition_out(o.$$.fragment,a),r=!1},d(a){a&&t.detach(l),t.destroy_component(o,a)}}}function k(s){let e,l,o=s[6]&&d(s);return{c(){o&&o.c(),e=t.empty()},m(r,m){o&&o.m(r,m),t.insert(r,e,m),l=!0},p(r,[m]){r[6]?o?(o.p(r,m),m&64&&t.transition_in(o,1)):(o=d(r),o.c(),t.transition_in(o,1),o.m(e.parentNode,e)):o&&(t.group_outros(),t.transition_out(o,1,1,()=>{o=null}),t.check_outros())},i(r){l||(t.transition_in(o),l=!0)},o(r){t.transition_out(o),l=!1},d(r){o&&o.d(r),r&&t.detach(e)}}}function E(s,e,l){let o,{floorIndex:r}=e,{floorplanData:m}=e,{hoveredRoom:f}=e,{getRoomAreaText:a}=e,{getLabelElement:n}=e,{adaptiveRoomLabelVisibleEnable:i}=e,u=0,c=0;function g(){u=this.clientWidth,l(4,u)}return s.$$set=_=>{"floorIndex"in _&&l(7,r=_.floorIndex),"floorplanData"in _&&l(8,m=_.floorplanData),"hoveredRoom"in _&&l(0,f=_.hoveredRoom),"getRoomAreaText"in _&&l(1,a=_.getRoomAreaText),"getLabelElement"in _&&l(2,n=_.getLabelElement),"adaptiveRoomLabelVisibleEnable"in _&&l(3,i=_.adaptiveRoomLabelVisibleEnable)},s.$$.update=()=>{if(s.$$.dirty&384&&l(6,o=m.floorDatas[r].rooms),s.$$.dirty&272){const{max:_,min:R}=m.bounding,L=_.x-R.x;l(5,c=u/L)}},[f,a,n,i,u,c,o,r,m,g]}class y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,E,k,t.safe_not_equal,{floorIndex:7,floorplanData:8,hoveredRoom:0,getRoomAreaText:1,getLabelElement:2,adaptiveRoomLabelVisibleEnable:3},v)}}exports.RoomLabels=y;
|
|
@@ -1,196 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var B = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var d = Object.getOwnPropertySymbols;
|
|
4
|
-
var T = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var b = (l, e, o) => e in l ? M(l, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[e] = o, k = (l, e) => {
|
|
6
|
-
for (var o in e || (e = {}))
|
|
7
|
-
T.call(e, o) && b(l, o, e[o]);
|
|
8
|
-
if (d)
|
|
9
|
-
for (var o of d(e))
|
|
10
|
-
q.call(e, o) && b(l, o, e[o]);
|
|
11
|
-
return l;
|
|
12
|
-
}, v = (l, e) => R(l, B(e));
|
|
13
|
-
import { SvelteComponent as C, init as F, safe_not_equal as H, append_styles as P, element as S, attr as m, insert as x, transition_in as c, group_outros as w, check_outros as D, transition_out as s, detach as I, destroy_each as W, svg_element as j, create_component as p, mount_component as h, destroy_component as g } from "svelte/internal";
|
|
14
|
-
import z from "../../utils/formatPosition.js";
|
|
15
|
-
import A from "./RoomMaterial_0.js";
|
|
16
|
-
import E from "./RoomMaterial_1.js";
|
|
17
|
-
import G from "./RoomMaterial_2.js";
|
|
18
|
-
function J(l) {
|
|
19
|
-
P(l, "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}");
|
|
20
|
-
}
|
|
21
|
-
function y(l, e, o) {
|
|
22
|
-
const t = l.slice();
|
|
23
|
-
return t[5] = e[o], t;
|
|
24
|
-
}
|
|
25
|
-
function K(l) {
|
|
26
|
-
let e, o;
|
|
27
|
-
return e = new E({ props: { path: l[5].path } }), {
|
|
28
|
-
c() {
|
|
29
|
-
p(e.$$.fragment);
|
|
30
|
-
},
|
|
31
|
-
m(t, n) {
|
|
32
|
-
h(e, t, n), o = !0;
|
|
33
|
-
},
|
|
34
|
-
p(t, n) {
|
|
35
|
-
const i = {};
|
|
36
|
-
n & 1 && (i.path = t[5].path), e.$set(i);
|
|
37
|
-
},
|
|
38
|
-
i(t) {
|
|
39
|
-
o || (c(e.$$.fragment, t), o = !0);
|
|
40
|
-
},
|
|
41
|
-
o(t) {
|
|
42
|
-
s(e.$$.fragment, t), o = !1;
|
|
43
|
-
},
|
|
44
|
-
d(t) {
|
|
45
|
-
g(e, t);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function L(l) {
|
|
50
|
-
let e, o;
|
|
51
|
-
return e = new G({ props: { path: l[5].path } }), {
|
|
52
|
-
c() {
|
|
53
|
-
p(e.$$.fragment);
|
|
54
|
-
},
|
|
55
|
-
m(t, n) {
|
|
56
|
-
h(e, t, n), o = !0;
|
|
57
|
-
},
|
|
58
|
-
p(t, n) {
|
|
59
|
-
const i = {};
|
|
60
|
-
n & 1 && (i.path = t[5].path), e.$set(i);
|
|
61
|
-
},
|
|
62
|
-
i(t) {
|
|
63
|
-
o || (c(e.$$.fragment, t), o = !0);
|
|
64
|
-
},
|
|
65
|
-
o(t) {
|
|
66
|
-
s(e.$$.fragment, t), o = !1;
|
|
67
|
-
},
|
|
68
|
-
d(t) {
|
|
69
|
-
g(e, t);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function N(l) {
|
|
74
|
-
let e, o;
|
|
75
|
-
return e = new A({ props: { path: l[5].path } }), {
|
|
76
|
-
c() {
|
|
77
|
-
p(e.$$.fragment);
|
|
78
|
-
},
|
|
79
|
-
m(t, n) {
|
|
80
|
-
h(e, t, n), o = !0;
|
|
81
|
-
},
|
|
82
|
-
p(t, n) {
|
|
83
|
-
const i = {};
|
|
84
|
-
n & 1 && (i.path = t[5].path), e.$set(i);
|
|
85
|
-
},
|
|
86
|
-
i(t) {
|
|
87
|
-
o || (c(e.$$.fragment, t), o = !0);
|
|
88
|
-
},
|
|
89
|
-
o(t) {
|
|
90
|
-
s(e.$$.fragment, t), o = !1;
|
|
91
|
-
},
|
|
92
|
-
d(t) {
|
|
93
|
-
g(e, t);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function $(l) {
|
|
98
|
-
let e, o, t, n;
|
|
99
|
-
const i = [N, L, K], a = [];
|
|
100
|
-
function f(r, u) {
|
|
101
|
-
return r[5].floorType === 1 ? 0 : r[5].floorType === 0 ? 1 : 2;
|
|
102
|
-
}
|
|
103
|
-
return o = f(l), t = a[o] = i[o](l), {
|
|
104
|
-
c() {
|
|
105
|
-
e = j("svg"), t.c(), m(e, "width", "100%"), m(e, "height", "100%"), m(e, "viewBox", `0 0 ${l[1]} ${l[2]}`), m(e, "class", "svelte-1dykexu");
|
|
106
|
-
},
|
|
107
|
-
m(r, u) {
|
|
108
|
-
x(r, e, u), a[o].m(e, null), n = !0;
|
|
109
|
-
},
|
|
110
|
-
p(r, u) {
|
|
111
|
-
let _ = o;
|
|
112
|
-
o = f(r), o === _ ? a[o].p(r, u) : (w(), s(a[_], 1, 1, () => {
|
|
113
|
-
a[_] = null;
|
|
114
|
-
}), D(), t = a[o], t ? t.p(r, u) : (t = a[o] = i[o](r), t.c()), c(t, 1), t.m(e, null));
|
|
115
|
-
},
|
|
116
|
-
i(r) {
|
|
117
|
-
n || (c(t), n = !0);
|
|
118
|
-
},
|
|
119
|
-
o(r) {
|
|
120
|
-
s(t), n = !1;
|
|
121
|
-
},
|
|
122
|
-
d(r) {
|
|
123
|
-
r && I(e), a[o].d();
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function O(l) {
|
|
128
|
-
let e, o, t = l[0], n = [];
|
|
129
|
-
for (let a = 0; a < t.length; a += 1)
|
|
130
|
-
n[a] = $(y(l, t, a));
|
|
131
|
-
const i = (a) => s(n[a], 1, 1, () => {
|
|
132
|
-
n[a] = null;
|
|
133
|
-
});
|
|
134
|
-
return {
|
|
135
|
-
c() {
|
|
136
|
-
e = S("div");
|
|
137
|
-
for (let a = 0; a < n.length; a += 1)
|
|
138
|
-
n[a].c();
|
|
139
|
-
m(e, "class", "floorplan-plugin__room-material svelte-1dykexu");
|
|
140
|
-
},
|
|
141
|
-
m(a, f) {
|
|
142
|
-
x(a, e, f);
|
|
143
|
-
for (let r = 0; r < n.length; r += 1)
|
|
144
|
-
n[r].m(e, null);
|
|
145
|
-
o = !0;
|
|
146
|
-
},
|
|
147
|
-
p(a, [f]) {
|
|
148
|
-
if (f & 7) {
|
|
149
|
-
t = a[0];
|
|
150
|
-
let r;
|
|
151
|
-
for (r = 0; r < t.length; r += 1) {
|
|
152
|
-
const u = y(a, t, r);
|
|
153
|
-
n[r] ? (n[r].p(u, f), c(n[r], 1)) : (n[r] = $(u), n[r].c(), c(n[r], 1), n[r].m(e, null));
|
|
154
|
-
}
|
|
155
|
-
for (w(), r = t.length; r < n.length; r += 1)
|
|
156
|
-
i(r);
|
|
157
|
-
D();
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
i(a) {
|
|
161
|
-
if (!o) {
|
|
162
|
-
for (let f = 0; f < t.length; f += 1)
|
|
163
|
-
c(n[f]);
|
|
164
|
-
o = !0;
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
o(a) {
|
|
168
|
-
n = n.filter(Boolean);
|
|
169
|
-
for (let f = 0; f < n.length; f += 1)
|
|
170
|
-
s(n[f]);
|
|
171
|
-
o = !1;
|
|
172
|
-
},
|
|
173
|
-
d(a) {
|
|
174
|
-
a && I(e), W(n, a);
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
function Q(l, e, o) {
|
|
179
|
-
let t, { floorIndex: n } = e, { floorplanData: i } = e;
|
|
180
|
-
const a = i.bounding.max.x - i.bounding.min.x, f = i.bounding.max.y - i.bounding.min.y;
|
|
181
|
-
return l.$$set = (r) => {
|
|
182
|
-
"floorIndex" in r && o(3, n = r.floorIndex), "floorplanData" in r && o(4, i = r.floorplanData);
|
|
183
|
-
}, l.$$.update = () => {
|
|
184
|
-
l.$$.dirty & 24 && o(0, t = i.floorDatas[n].rooms.map((r) => v(k({}, r), {
|
|
185
|
-
path: r.path.map((u) => z(u, i.bounding))
|
|
186
|
-
})));
|
|
187
|
-
}, [t, a, f, n, i];
|
|
188
|
-
}
|
|
189
|
-
class te extends C {
|
|
190
|
-
constructor(e) {
|
|
191
|
-
super(), F(this, e, Q, O, H, { floorIndex: 3, floorplanData: 4 }, J);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
export {
|
|
195
|
-
te as default
|
|
196
|
-
};
|
|
1
|
+
"use strict";var b=Object.defineProperty,k=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var m=(a,t,o)=>t in a?b(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,p=(a,t)=>{for(var o in t||(t={}))y.call(t,o)&&m(a,o,t[o]);if(f)for(var o of f(t))M.call(t,o)&&m(a,o,t[o]);return a},h=(a,t)=>k(a,v(t));const n=require("svelte/internal"),R=require("../../utils/formatPosition.js"),$=require("./RoomMaterial_0.js"),x=require("./RoomMaterial_1.js"),w=require("./RoomMaterial_2.js");function q(a){n.append_styles(a,"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}")}function d(a,t,o){const e=a.slice();return e[5]=t[o],e}function D(a){let t,o;return t=new x.RoomMaterial_1({props:{path:a[5].path}}),{c(){n.create_component(t.$$.fragment)},m(e,r){n.mount_component(t,e,r),o=!0},p(e,r){const s={};r&1&&(s.path=e[5].path),t.$set(s)},i(e){o||(n.transition_in(t.$$.fragment,e),o=!0)},o(e){n.transition_out(t.$$.fragment,e),o=!1},d(e){n.destroy_component(t,e)}}}function j(a){let t,o;return t=new w.RoomMaterial_2({props:{path:a[5].path}}),{c(){n.create_component(t.$$.fragment)},m(e,r){n.mount_component(t,e,r),o=!0},p(e,r){const s={};r&1&&(s.path=e[5].path),t.$set(s)},i(e){o||(n.transition_in(t.$$.fragment,e),o=!0)},o(e){n.transition_out(t.$$.fragment,e),o=!1},d(e){n.destroy_component(t,e)}}}function C(a){let t,o;return t=new $.RoomMaterial_0({props:{path:a[5].path}}),{c(){n.create_component(t.$$.fragment)},m(e,r){n.mount_component(t,e,r),o=!0},p(e,r){const s={};r&1&&(s.path=e[5].path),t.$set(s)},i(e){o||(n.transition_in(t.$$.fragment,e),o=!0)},o(e){n.transition_out(t.$$.fragment,e),o=!1},d(e){n.destroy_component(t,e)}}}function g(a){let t,o,e,r;const s=[C,j,D],l=[];function _(i,u){return i[5].floorType===1?0:i[5].floorType===0?1:2}return o=_(a),e=l[o]=s[o](a),{c(){t=n.svg_element("svg"),e.c(),n.attr(t,"width","100%"),n.attr(t,"height","100%"),n.attr(t,"viewBox",`0 0 ${a[1]} ${a[2]}`),n.attr(t,"class","svelte-1dykexu")},m(i,u){n.insert(i,t,u),l[o].m(t,null),r=!0},p(i,u){let c=o;o=_(i),o===c?l[o].p(i,u):(n.group_outros(),n.transition_out(l[c],1,1,()=>{l[c]=null}),n.check_outros(),e=l[o],e?e.p(i,u):(e=l[o]=s[o](i),e.c()),n.transition_in(e,1),e.m(t,null))},i(i){r||(n.transition_in(e),r=!0)},o(i){n.transition_out(e),r=!1},d(i){i&&n.detach(t),l[o].d()}}}function I(a){let t,o,e=a[0],r=[];for(let l=0;l<e.length;l+=1)r[l]=g(d(a,e,l));const s=l=>n.transition_out(r[l],1,1,()=>{r[l]=null});return{c(){t=n.element("div");for(let l=0;l<r.length;l+=1)r[l].c();n.attr(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(l,_){n.insert(l,t,_);for(let i=0;i<r.length;i+=1)r[i].m(t,null);o=!0},p(l,[_]){if(_&7){e=l[0];let i;for(i=0;i<e.length;i+=1){const u=d(l,e,i);r[i]?(r[i].p(u,_),n.transition_in(r[i],1)):(r[i]=g(u),r[i].c(),n.transition_in(r[i],1),r[i].m(t,null))}for(n.group_outros(),i=e.length;i<r.length;i+=1)s(i);n.check_outros()}},i(l){if(!o){for(let _=0;_<e.length;_+=1)n.transition_in(r[_]);o=!0}},o(l){r=r.filter(Boolean);for(let _=0;_<r.length;_+=1)n.transition_out(r[_]);o=!1},d(l){l&&n.detach(t),n.destroy_each(r,l)}}}function P(a,t,o){let e,{floorIndex:r}=t,{floorplanData:s}=t;const l=s.bounding.max.x-s.bounding.min.x,_=s.bounding.max.y-s.bounding.min.y;return a.$$set=i=>{"floorIndex"in i&&o(3,r=i.floorIndex),"floorplanData"in i&&o(4,s=i.floorplanData)},a.$$.update=()=>{a.$$.dirty&24&&o(0,e=s.floorDatas[r].rooms.map(i=>h(p({},i),{path:i.path.map(u=>R.formatFloorplanPoint(u,s.bounding))})))},[e,l,_,r,s]}class B extends n.SvelteComponent{constructor(t){super(),n.init(this,t,P,I,n.safe_not_equal,{floorIndex:3,floorplanData:4},q)}}exports.RoomMaterial=B;
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { pathD as s } from "../../utils/formatPosition.js";
|
|
3
|
-
function l(n) {
|
|
4
|
-
let t;
|
|
5
|
-
return {
|
|
6
|
-
c() {
|
|
7
|
-
t = d("path"), i(t, "d", n[0]), i(t, "fill", "#2F313A");
|
|
8
|
-
},
|
|
9
|
-
m(e, a) {
|
|
10
|
-
h(e, t, a);
|
|
11
|
-
},
|
|
12
|
-
p(e, [a]) {
|
|
13
|
-
a & 1 && i(t, "d", e[0]);
|
|
14
|
-
},
|
|
15
|
-
i: p,
|
|
16
|
-
o: p,
|
|
17
|
-
d(e) {
|
|
18
|
-
e && m(t);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function _(n, t, e) {
|
|
23
|
-
let a, { path: r } = t;
|
|
24
|
-
return n.$$set = (o) => {
|
|
25
|
-
"path" in o && e(1, r = o.path);
|
|
26
|
-
}, n.$$.update = () => {
|
|
27
|
-
n.$$.dirty & 2 && e(0, a = s(r, { needZ: !0 }));
|
|
28
|
-
}, [a, r];
|
|
29
|
-
}
|
|
30
|
-
class q extends f {
|
|
31
|
-
constructor(t) {
|
|
32
|
-
super(), u(this, t, _, l, c, { path: 1 });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
q as default
|
|
37
|
-
};
|
|
1
|
+
"use strict";const t=require("svelte/internal"),s=require("../../utils/formatPosition.js");function l(i){let e;return{c(){e=t.svg_element("path"),t.attr(e,"d",i[0]),t.attr(e,"fill","#2F313A")},m(n,r){t.insert(n,e,r)},p(n,[r]){r&1&&t.attr(e,"d",n[0])},i:t.noop,o:t.noop,d(n){n&&t.detach(e)}}}function u(i,e,n){let r,{path:a}=e;return i.$$set=o=>{"path"in o&&n(1,a=o.path)},i.$$.update=()=>{i.$$.dirty&2&&n(0,r=s.pathD(a,{needZ:!0}))},[r,a]}class c extends t.SvelteComponent{constructor(e){super(),t.init(this,e,u,l,t.safe_not_equal,{path:1})}}exports.RoomMaterial_0=c;
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { pathD as M } from "../../utils/formatPosition.js";
|
|
3
|
-
function v(n) {
|
|
4
|
-
let i, e, p, a, f, o;
|
|
5
|
-
return {
|
|
6
|
-
c() {
|
|
7
|
-
i = l("defs"), e = l("pattern"), p = l("rect"), a = l("path"), f = k(), o = l("path"), t(p, "x", "0"), t(p, "y", "0"), t(p, "width", n[1]), t(p, "height", n[1]), t(p, "fill", "#323747"), t(a, "d", n[2]), t(a, "stroke", "#ffffff"), t(a, "stroke-opacity", "0.06"), t(a, "stroke-width", "0.5"), t(a, "fill", "none"), t(e, "id", "fpm-room-pattern-0"), t(e, "x", "0"), t(e, "y", "0"), t(e, "width", n[1]), t(e, "height", n[1]), t(e, "patternUnits", "userSpaceOnUse"), t(e, "patternTransform", "scale(50 50)"), t(o, "d", n[0]), t(o, "fill", "url(#fpm-room-pattern-0)");
|
|
8
|
-
},
|
|
9
|
-
m(r, s) {
|
|
10
|
-
h(r, i, s), d(i, e), d(e, p), d(e, a), h(r, f, s), h(r, o, s);
|
|
11
|
-
},
|
|
12
|
-
p(r, [s]) {
|
|
13
|
-
s & 1 && t(o, "d", r[0]);
|
|
14
|
-
},
|
|
15
|
-
i: c,
|
|
16
|
-
o: c,
|
|
17
|
-
d(r) {
|
|
18
|
-
r && m(i), r && m(f), r && m(o);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const u = 6;
|
|
23
|
-
function D(n, i, e) {
|
|
24
|
-
let p, { path: a } = i;
|
|
25
|
-
const f = u * 2, o = `M0 ${u} h ${f} M${u} 0 v ${f}`;
|
|
26
|
-
return n.$$set = (r) => {
|
|
27
|
-
"path" in r && e(3, a = r.path);
|
|
28
|
-
}, n.$$.update = () => {
|
|
29
|
-
n.$$.dirty & 8 && e(0, p = M(a, { needZ: !0 }));
|
|
30
|
-
}, [p, f, o, a];
|
|
31
|
-
}
|
|
32
|
-
class $ extends _ {
|
|
33
|
-
constructor(i) {
|
|
34
|
-
super(), w(this, i, D, v, y, { path: 3 });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
$ as default
|
|
39
|
-
};
|
|
1
|
+
"use strict";const t=require("svelte/internal"),h=require("../../utils/formatPosition.js");function d(a){let s,e,i,n,p,o;return{c(){s=t.svg_element("defs"),e=t.svg_element("pattern"),i=t.svg_element("rect"),n=t.svg_element("path"),p=t.space(),o=t.svg_element("path"),t.attr(i,"x","0"),t.attr(i,"y","0"),t.attr(i,"width",a[1]),t.attr(i,"height",a[1]),t.attr(i,"fill","#323747"),t.attr(n,"d",a[2]),t.attr(n,"stroke","#ffffff"),t.attr(n,"stroke-opacity","0.06"),t.attr(n,"stroke-width","0.5"),t.attr(n,"fill","none"),t.attr(e,"id","fpm-room-pattern-0"),t.attr(e,"x","0"),t.attr(e,"y","0"),t.attr(e,"width",a[1]),t.attr(e,"height",a[1]),t.attr(e,"patternUnits","userSpaceOnUse"),t.attr(e,"patternTransform","scale(50 50)"),t.attr(o,"d",a[0]),t.attr(o,"fill","url(#fpm-room-pattern-0)")},m(r,l){t.insert(r,s,l),t.append(s,e),t.append(e,i),t.append(e,n),t.insert(r,p,l),t.insert(r,o,l)},p(r,[l]){l&1&&t.attr(o,"d",r[0])},i:t.noop,o:t.noop,d(r){r&&t.detach(s),r&&t.detach(p),r&&t.detach(o)}}}const f=6;function m(a,s,e){let i,{path:n}=s;const p=f*2,o=`M0 ${f} h ${p} M${f} 0 v ${p}`;return a.$$set=r=>{"path"in r&&e(3,n=r.path)},a.$$.update=()=>{a.$$.dirty&8&&e(0,i=h.pathD(n,{needZ:!0}))},[i,p,o,n]}class u extends t.SvelteComponent{constructor(s){super(),t.init(this,s,m,d,t.safe_not_equal,{path:3})}}exports.RoomMaterial_1=u;
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { pathD as D } from "../../utils/formatPosition.js";
|
|
3
|
-
function O(f) {
|
|
4
|
-
let n, i, l, r, p, _, d, k, h, B, u;
|
|
5
|
-
return {
|
|
6
|
-
c() {
|
|
7
|
-
n = o("defs"), i = o("pattern"), l = o("rect"), r = o("pattern"), p = o("rect"), _ = U(), d = o("path"), k = U(), h = o("path"), B = U(), u = o("path"), t(l, "x", "0"), t(l, "y", "0"), t(l, "width", "6"), t(l, "height", "50"), t(l, "fill", "none"), t(l, "stroke", "#4B4B57"), t(l, "stroke-width", "0.5"), t(i, "id", "room-material-pattern-1"), t(i, "x", "0"), t(i, "y", "0"), t(i, "width", "12"), t(i, "height", "50"), t(i, "patternUnits", "userSpaceOnUse"), t(i, "patternTransform", "scale(50 50)"), t(p, "x", "0"), t(p, "y", "0"), t(p, "width", "6"), t(p, "height", "50"), t(p, "fill", "none"), t(p, "stroke", "#4B4B57"), t(p, "stroke-width", "0.5"), t(r, "id", "room-material-pattern-2"), t(r, "x", "6"), t(r, "y", "25"), t(r, "width", "12"), t(r, "height", "50"), t(r, "patternUnits", "userSpaceOnUse"), t(r, "patternTransform", "scale(50 50)"), t(d, "d", f[0]), t(d, "fill", "#43434D"), t(h, "d", f[0]), t(h, "fill", "url(#room-material-pattern-1)"), t(u, "d", f[0]), t(u, "fill", "url(#room-material-pattern-2)");
|
|
8
|
-
},
|
|
9
|
-
m(e, a) {
|
|
10
|
-
s(e, n, a), w(n, i), w(i, l), w(n, r), w(r, p), s(e, _, a), s(e, d, a), s(e, k, a), s(e, h, a), s(e, B, a), s(e, u, a);
|
|
11
|
-
},
|
|
12
|
-
p(e, [a]) {
|
|
13
|
-
a & 1 && t(d, "d", e[0]), a & 1 && t(h, "d", e[0]), a & 1 && t(u, "d", e[0]);
|
|
14
|
-
},
|
|
15
|
-
i: y,
|
|
16
|
-
o: y,
|
|
17
|
-
d(e) {
|
|
18
|
-
e && m(n), e && m(_), e && m(d), e && m(k), e && m(h), e && m(B), e && m(u);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function T(f, n, i) {
|
|
23
|
-
let l, { path: r } = n;
|
|
24
|
-
return f.$$set = (p) => {
|
|
25
|
-
"path" in p && i(1, r = p.path);
|
|
26
|
-
}, f.$$.update = () => {
|
|
27
|
-
f.$$.dirty & 2 && i(0, l = D(r, { needZ: !0 }));
|
|
28
|
-
}, [l, r];
|
|
29
|
-
}
|
|
30
|
-
class C extends S {
|
|
31
|
-
constructor(n) {
|
|
32
|
-
super(), c(this, n, T, O, x, { path: 1 });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
C as default
|
|
37
|
-
};
|
|
1
|
+
"use strict";const t=require("svelte/internal"),_=require("../../utils/formatPosition.js");function c(p){let l,a,n,r,i,d,o,h,f,u,m;return{c(){l=t.svg_element("defs"),a=t.svg_element("pattern"),n=t.svg_element("rect"),r=t.svg_element("pattern"),i=t.svg_element("rect"),d=t.space(),o=t.svg_element("path"),h=t.space(),f=t.svg_element("path"),u=t.space(),m=t.svg_element("path"),t.attr(n,"x","0"),t.attr(n,"y","0"),t.attr(n,"width","6"),t.attr(n,"height","50"),t.attr(n,"fill","none"),t.attr(n,"stroke","#4B4B57"),t.attr(n,"stroke-width","0.5"),t.attr(a,"id","room-material-pattern-1"),t.attr(a,"x","0"),t.attr(a,"y","0"),t.attr(a,"width","12"),t.attr(a,"height","50"),t.attr(a,"patternUnits","userSpaceOnUse"),t.attr(a,"patternTransform","scale(50 50)"),t.attr(i,"x","0"),t.attr(i,"y","0"),t.attr(i,"width","6"),t.attr(i,"height","50"),t.attr(i,"fill","none"),t.attr(i,"stroke","#4B4B57"),t.attr(i,"stroke-width","0.5"),t.attr(r,"id","room-material-pattern-2"),t.attr(r,"x","6"),t.attr(r,"y","25"),t.attr(r,"width","12"),t.attr(r,"height","50"),t.attr(r,"patternUnits","userSpaceOnUse"),t.attr(r,"patternTransform","scale(50 50)"),t.attr(o,"d",p[0]),t.attr(o,"fill","#43434D"),t.attr(f,"d",p[0]),t.attr(f,"fill","url(#room-material-pattern-1)"),t.attr(m,"d",p[0]),t.attr(m,"fill","url(#room-material-pattern-2)")},m(e,s){t.insert(e,l,s),t.append(l,a),t.append(a,n),t.append(l,r),t.append(r,i),t.insert(e,d,s),t.insert(e,o,s),t.insert(e,h,s),t.insert(e,f,s),t.insert(e,u,s),t.insert(e,m,s)},p(e,[s]){s&1&&t.attr(o,"d",e[0]),s&1&&t.attr(f,"d",e[0]),s&1&&t.attr(m,"d",e[0])},i:t.noop,o:t.noop,d(e){e&&t.detach(l),e&&t.detach(d),e&&t.detach(o),e&&t.detach(h),e&&t.detach(f),e&&t.detach(u),e&&t.detach(m)}}}function v(p,l,a){let n,{path:r}=l;return p.$$set=i=>{"path"in i&&a(1,r=i.path)},p.$$.update=()=>{p.$$.dirty&2&&a(0,n=_.pathD(r,{needZ:!0}))},[n,r]}class w extends t.SvelteComponent{constructor(l){super(),t.init(this,l,v,c,t.safe_not_equal,{path:1})}}exports.RoomMaterial_2=w;
|
|
@@ -1,134 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function F(s) {
|
|
3
|
-
S(s, "svelte-djlmk4", ".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
|
|
4
|
-
}
|
|
5
|
-
function q(s, e, n) {
|
|
6
|
-
const i = s.slice();
|
|
7
|
-
return i[11] = e[n], i[13] = n, i;
|
|
8
|
-
}
|
|
9
|
-
function C(s, e, n) {
|
|
10
|
-
const i = s.slice();
|
|
11
|
-
return i[14] = e[n], i;
|
|
12
|
-
}
|
|
13
|
-
function H(s) {
|
|
14
|
-
let e;
|
|
15
|
-
return {
|
|
16
|
-
c() {
|
|
17
|
-
e = h("div"), d(e, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), j(e, "left", s[14].left * 100 + "%", !1), j(e, "bottom", s[14].bottom * 100 + "%", !1);
|
|
18
|
-
},
|
|
19
|
-
m(n, i) {
|
|
20
|
-
D(n, e, i);
|
|
21
|
-
},
|
|
22
|
-
p: T,
|
|
23
|
-
d(n) {
|
|
24
|
-
n && z(e);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function I(s, e) {
|
|
29
|
-
let n, i, f = e[1](e[11].distance) + "", u, m;
|
|
30
|
-
return {
|
|
31
|
-
key: s,
|
|
32
|
-
first: null,
|
|
33
|
-
c() {
|
|
34
|
-
n = h("div"), i = h("div"), u = B(f), m = R(), d(i, "class", "floorplan-plugin__rule-text svelte-djlmk4"), x(i, "is-row", e[2]), d(n, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), j(n, "left", e[11].left * 100 + "%", !1), j(n, "bottom", e[11].bottom * 100 + "%", !1), this.first = n;
|
|
35
|
-
},
|
|
36
|
-
m(r, _) {
|
|
37
|
-
D(r, n, _), c(n, i), c(i, u), c(n, m);
|
|
38
|
-
},
|
|
39
|
-
p(r, _) {
|
|
40
|
-
e = r, _ & 2 && f !== (f = e[1](e[11].distance) + "") && E(u, f);
|
|
41
|
-
},
|
|
42
|
-
d(r) {
|
|
43
|
-
r && z(n);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function G(s) {
|
|
48
|
-
let e, n, i, f, u, m, r = [], _ = /* @__PURE__ */ new Map(), g, p = s[3], a = [];
|
|
49
|
-
for (let l = 0; l < p.length; l += 1)
|
|
50
|
-
a[l] = H(C(s, p, l));
|
|
51
|
-
let v = s[4];
|
|
52
|
-
const w = (l) => l[13];
|
|
53
|
-
for (let l = 0; l < v.length; l += 1) {
|
|
54
|
-
let o = q(s, v, l), t = w(o);
|
|
55
|
-
_.set(t, r[l] = I(t, o));
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
c() {
|
|
59
|
-
e = h("div"), n = h("div"), i = R(), f = h("div");
|
|
60
|
-
for (let l = 0; l < a.length; l += 1)
|
|
61
|
-
a[l].c();
|
|
62
|
-
u = R(), m = h("div");
|
|
63
|
-
for (let l = 0; l < r.length; l += 1)
|
|
64
|
-
r[l].c();
|
|
65
|
-
d(n, "class", "floorplan-plugin__rule-line svelte-djlmk4"), d(f, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), x(f, "is-row", s[2]), d(m, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), d(e, "class", g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + s[0] + " svelte-djlmk4"), x(e, "is-row", s[2]), j(e, "width", s[2] ? "100%" : 1 / 16 + "rem", !1), j(e, "height", s[2] ? 1 / 16 + "rem" : "100%", !1);
|
|
66
|
-
},
|
|
67
|
-
m(l, o) {
|
|
68
|
-
D(l, e, o), c(e, n), c(e, i), c(e, f);
|
|
69
|
-
for (let t = 0; t < a.length; t += 1)
|
|
70
|
-
a[t].m(f, null);
|
|
71
|
-
c(e, u), c(e, m);
|
|
72
|
-
for (let t = 0; t < r.length; t += 1)
|
|
73
|
-
r[t].m(m, null);
|
|
74
|
-
},
|
|
75
|
-
p(l, [o]) {
|
|
76
|
-
if (o & 8) {
|
|
77
|
-
p = l[3];
|
|
78
|
-
let t;
|
|
79
|
-
for (t = 0; t < p.length; t += 1) {
|
|
80
|
-
const y = C(l, p, t);
|
|
81
|
-
a[t] ? a[t].p(y, o) : (a[t] = H(y), a[t].c(), a[t].m(f, null));
|
|
82
|
-
}
|
|
83
|
-
for (; t < a.length; t += 1)
|
|
84
|
-
a[t].d(1);
|
|
85
|
-
a.length = p.length;
|
|
86
|
-
}
|
|
87
|
-
o & 22 && (v = l[4], r = X(r, o, w, 1, l, v, _, m, Y, I, null, q)), o & 1 && g !== (g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + l[0] + " svelte-djlmk4") && d(e, "class", g), o & 5 && x(e, "is-row", l[2]);
|
|
88
|
-
},
|
|
89
|
-
i: T,
|
|
90
|
-
o: T,
|
|
91
|
-
d(l) {
|
|
92
|
-
l && z(e), A(a, l);
|
|
93
|
-
for (let o = 0; o < r.length; o += 1)
|
|
94
|
-
r[o].d();
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
const k = 1e3, b = 180;
|
|
99
|
-
function J(s, e, n) {
|
|
100
|
-
let { type: i } = e, { data: f } = e, { bounding: u } = e, { getRuleDistanceText: m } = e;
|
|
101
|
-
const r = i === "top" || i === "bottom", _ = u.max.x - u.min.x - (k - b) * 2, g = u.max.y - u.min.y - (k - b) * 2, p = f.map(([l, o]) => r ? [l.x, o.x] : [l.y, o.y]).flat().sort().filter((l, o, t) => o === 0 ? !0 : l !== t[o - 1]), a = p.map((l) => {
|
|
102
|
-
const o = r ? (l - u.min.x - k + b) / _ : 0, t = r ? 0 : (l - u.min.y - k + b) / g;
|
|
103
|
-
return { left: o, bottom: t };
|
|
104
|
-
});
|
|
105
|
-
a.unshift({ left: 0, bottom: 0 }), a.push(r ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
106
|
-
const v = p[p.length - 1] - p[0], w = p.map((l, o, t) => {
|
|
107
|
-
const y = o === 0 ? 0 : l - t[o - 1], W = o === 0 ? 0 : (l + t[o - 1]) / 2, L = r ? (W - u.min.x - k + b) / _ : 0, M = r ? 0 : (W - u.min.y - k + b) / g;
|
|
108
|
-
return { left: L, bottom: M, distance: y };
|
|
109
|
-
}).filter(({ distance: l }) => l / v > 0.1);
|
|
110
|
-
return s.$$set = (l) => {
|
|
111
|
-
"type" in l && n(0, i = l.type), "data" in l && n(5, f = l.data), "bounding" in l && n(6, u = l.bounding), "getRuleDistanceText" in l && n(1, m = l.getRuleDistanceText);
|
|
112
|
-
}, [i, m, r, a, w, f, u];
|
|
113
|
-
}
|
|
114
|
-
class Q extends N {
|
|
115
|
-
constructor(e) {
|
|
116
|
-
super(), O(
|
|
117
|
-
this,
|
|
118
|
-
e,
|
|
119
|
-
J,
|
|
120
|
-
G,
|
|
121
|
-
P,
|
|
122
|
-
{
|
|
123
|
-
type: 0,
|
|
124
|
-
data: 5,
|
|
125
|
-
bounding: 6,
|
|
126
|
-
getRuleDistanceText: 1
|
|
127
|
-
},
|
|
128
|
-
F
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
export {
|
|
133
|
-
Q as default
|
|
134
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal");function q(r){e.append_styles(r,"svelte-djlmk4",".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}")}function w(r,t,s){const i=r.slice();return i[11]=t[s],i[13]=s,i}function y(r,t,s){const i=r.slice();return i[14]=t[s],i}function x(r){let t;return{c(){t=e.element("div"),e.attr(t,"class","floorplan-plugin__rule-scale svelte-djlmk4"),e.set_style(t,"left",r[14].left*100+"%",!1),e.set_style(t,"bottom",r[14].bottom*100+"%",!1)},m(s,i){e.insert(s,t,i)},p:e.noop,d(s){s&&e.detach(t)}}}function R(r,t){let s,i,_=t[1](t[11].distance)+"",u,m;return{key:r,first:null,c(){s=e.element("div"),i=e.element("div"),u=e.text(_),m=e.space(),e.attr(i,"class","floorplan-plugin__rule-text svelte-djlmk4"),e.toggle_class(i,"is-row",t[2]),e.attr(s,"class","floorplan-plugin__rule-text-item svelte-djlmk4"),e.set_style(s,"left",t[11].left*100+"%",!1),e.set_style(s,"bottom",t[11].bottom*100+"%",!1),this.first=s},m(a,d){e.insert(a,s,d),e.append(s,i),e.append(i,u),e.append(s,m)},p(a,d){t=a,d&2&&_!==(_=t[1](t[11].distance)+"")&&e.set_data(u,_)},d(a){a&&e.detach(s)}}}function z(r){let t,s,i,_,u,m,a=[],d=new Map,c,f=r[3],p=[];for(let l=0;l<f.length;l+=1)p[l]=x(y(r,f,l));let g=r[4];const k=l=>l[13];for(let l=0;l<g.length;l+=1){let o=w(r,g,l),n=k(o);d.set(n,a[l]=R(n,o))}return{c(){t=e.element("div"),s=e.element("div"),i=e.space(),_=e.element("div");for(let l=0;l<p.length;l+=1)p[l].c();u=e.space(),m=e.element("div");for(let l=0;l<a.length;l+=1)a[l].c();e.attr(s,"class","floorplan-plugin__rule-line svelte-djlmk4"),e.attr(_,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),e.toggle_class(_,"is-row",r[2]),e.attr(m,"class","floorplan-plugin__rule-text-wrapper svelte-djlmk4"),e.attr(t,"class",c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+r[0]+" svelte-djlmk4"),e.toggle_class(t,"is-row",r[2]),e.set_style(t,"width",r[2]?"100%":1/16+"rem",!1),e.set_style(t,"height",r[2]?1/16+"rem":"100%",!1)},m(l,o){e.insert(l,t,o),e.append(t,s),e.append(t,i),e.append(t,_);for(let n=0;n<p.length;n+=1)p[n].m(_,null);e.append(t,u),e.append(t,m);for(let n=0;n<a.length;n+=1)a[n].m(m,null)},p(l,[o]){if(o&8){f=l[3];let n;for(n=0;n<f.length;n+=1){const b=y(l,f,n);p[n]?p[n].p(b,o):(p[n]=x(b),p[n].c(),p[n].m(_,null))}for(;n<p.length;n+=1)p[n].d(1);p.length=f.length}o&22&&(g=l[4],a=e.update_keyed_each(a,o,k,1,l,g,d,m,e.destroy_block,R,null,w)),o&1&&c!==(c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+l[0]+" svelte-djlmk4")&&e.attr(t,"class",c),o&5&&e.toggle_class(t,"is-row",l[2])},i:e.noop,o:e.noop,d(l){l&&e.detach(t),e.destroy_each(p,l);for(let o=0;o<a.length;o+=1)a[o].d()}}}const h=1e3,v=180;function I(r,t,s){let{type:i}=t,{data:_}=t,{bounding:u}=t,{getRuleDistanceText:m}=t;const a=i==="top"||i==="bottom",d=u.max.x-u.min.x-(h-v)*2,c=u.max.y-u.min.y-(h-v)*2,f=_.map(([l,o])=>a?[l.x,o.x]:[l.y,o.y]).flat().sort().filter((l,o,n)=>o===0?!0:l!==n[o-1]),p=f.map(l=>{const o=a?(l-u.min.x-h+v)/d:0,n=a?0:(l-u.min.y-h+v)/c;return{left:o,bottom:n}});p.unshift({left:0,bottom:0}),p.push(a?{left:1,bottom:0}:{left:0,bottom:1});const g=f[f.length-1]-f[0],k=f.map((l,o,n)=>{const b=o===0?0:l-n[o-1],j=o===0?0:(l+n[o-1])/2,T=a?(j-u.min.x-h+v)/d:0,D=a?0:(j-u.min.y-h+v)/c;return{left:T,bottom:D,distance:b}}).filter(({distance:l})=>l/g>.1);return r.$$set=l=>{"type"in l&&s(0,i=l.type),"data"in l&&s(5,_=l.data),"bounding"in l&&s(6,u=l.bounding),"getRuleDistanceText"in l&&s(1,m=l.getRuleDistanceText)},[i,m,a,p,k,_,u]}class W extends e.SvelteComponent{constructor(t){super(),e.init(this,t,I,z,e.safe_not_equal,{type:0,data:5,bounding:6,getRuleDistanceText:1},q)}}exports.RuleItem=W;
|