@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,264 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { linear as X } from "svelte/easing";
|
|
3
|
-
import { fade as Y } from "svelte/transition";
|
|
4
|
-
import Z from "./Camera.js";
|
|
5
|
-
import y from "./Compass.js";
|
|
6
|
-
import x from "./CurrentFloor.js";
|
|
7
|
-
function p(a) {
|
|
8
|
-
G(a, "svelte-86bqav", ".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}");
|
|
9
|
-
}
|
|
10
|
-
function U(a, e, t) {
|
|
11
|
-
const l = a.slice();
|
|
12
|
-
return l[16] = e[t], l;
|
|
13
|
-
}
|
|
14
|
-
function V(a) {
|
|
15
|
-
let e, t, l, i, n, b, c = a[9].floorDatas, f = [];
|
|
16
|
-
for (let r = 0; r < c.length; r += 1)
|
|
17
|
-
f[r] = q(U(a, c, r));
|
|
18
|
-
const D = (r) => _(f[r], 1, 1, () => {
|
|
19
|
-
f[r] = null;
|
|
20
|
-
}), h = [
|
|
21
|
-
{
|
|
22
|
-
panoIndex: a[3],
|
|
23
|
-
floorplanData: a[9],
|
|
24
|
-
lastPanoramaLongitude: a[10],
|
|
25
|
-
cameraImageUrl: a[11]
|
|
26
|
-
}
|
|
27
|
-
];
|
|
28
|
-
let E = {};
|
|
29
|
-
for (let r = 0; r < h.length; r += 1)
|
|
30
|
-
E = M(E, h[r]);
|
|
31
|
-
l = new Z({ props: E });
|
|
32
|
-
let m = a[6] && w(a);
|
|
33
|
-
return {
|
|
34
|
-
c() {
|
|
35
|
-
e = J("div");
|
|
36
|
-
for (let r = 0; r < f.length; r += 1)
|
|
37
|
-
f[r].c();
|
|
38
|
-
t = C(), v(l.$$.fragment), i = C(), m && m.c(), K(e, "class", "floorplan-main svelte-86bqav");
|
|
39
|
-
},
|
|
40
|
-
m(r, s) {
|
|
41
|
-
B(r, e, s);
|
|
42
|
-
for (let d = 0; d < f.length; d += 1)
|
|
43
|
-
f[d].m(e, null);
|
|
44
|
-
P(e, t), T(l, e, null), P(e, i), m && m.m(e, null), b = !0;
|
|
45
|
-
},
|
|
46
|
-
p(r, s) {
|
|
47
|
-
if (a = r, s & 62384) {
|
|
48
|
-
c = a[9].floorDatas;
|
|
49
|
-
let u;
|
|
50
|
-
for (u = 0; u < c.length; u += 1) {
|
|
51
|
-
const L = U(a, c, u);
|
|
52
|
-
f[u] ? (f[u].p(L, s), g(f[u], 1)) : (f[u] = q(L), f[u].c(), g(f[u], 1), f[u].m(e, t));
|
|
53
|
-
}
|
|
54
|
-
for (I(), u = c.length; u < f.length; u += 1)
|
|
55
|
-
D(u);
|
|
56
|
-
R();
|
|
57
|
-
}
|
|
58
|
-
const d = s & 3592 ? N(h, [
|
|
59
|
-
{
|
|
60
|
-
panoIndex: a[3],
|
|
61
|
-
floorplanData: a[9],
|
|
62
|
-
lastPanoramaLongitude: a[10],
|
|
63
|
-
cameraImageUrl: a[11]
|
|
64
|
-
}
|
|
65
|
-
]) : {};
|
|
66
|
-
l.$set(d), a[6] ? m ? (m.p(a, s), s & 64 && g(m, 1)) : (m = w(a), m.c(), g(m, 1), m.m(e, null)) : m && (I(), _(m, 1, 1, () => {
|
|
67
|
-
m = null;
|
|
68
|
-
}), R());
|
|
69
|
-
},
|
|
70
|
-
i(r) {
|
|
71
|
-
if (!b) {
|
|
72
|
-
for (let s = 0; s < c.length; s += 1)
|
|
73
|
-
g(f[s]);
|
|
74
|
-
g(l.$$.fragment, r), g(m), n || O(() => {
|
|
75
|
-
n = Q(e, Y, {
|
|
76
|
-
duration: a[0],
|
|
77
|
-
easing: X
|
|
78
|
-
}), n.start();
|
|
79
|
-
}), b = !0;
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
o(r) {
|
|
83
|
-
f = f.filter(Boolean);
|
|
84
|
-
for (let s = 0; s < f.length; s += 1)
|
|
85
|
-
_(f[s]);
|
|
86
|
-
_(l.$$.fragment, r), _(m), b = !1;
|
|
87
|
-
},
|
|
88
|
-
d(r) {
|
|
89
|
-
r && F(e), W(f, r), k(l), m && m.d();
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
function q(a) {
|
|
94
|
-
let e, t;
|
|
95
|
-
const l = [
|
|
96
|
-
{
|
|
97
|
-
hoverEnable: a[5],
|
|
98
|
-
floorplanData: a[9],
|
|
99
|
-
getRoomAreaText: a[12],
|
|
100
|
-
getLabelElement: a[13],
|
|
101
|
-
getRuleDistanceText: a[14],
|
|
102
|
-
roomLabelsEnable: a[7],
|
|
103
|
-
ruleLabelsEnable: a[8],
|
|
104
|
-
adaptiveRoomLabelVisibleEnable: a[15]
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
floorIndex: a[16].floorIndex
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
isCurrent: a[16].floorIndex === a[4]
|
|
111
|
-
}
|
|
112
|
-
];
|
|
113
|
-
let i = {};
|
|
114
|
-
for (let n = 0; n < l.length; n += 1)
|
|
115
|
-
i = M(i, l[n]);
|
|
116
|
-
return e = new x({ props: i }), {
|
|
117
|
-
c() {
|
|
118
|
-
v(e.$$.fragment);
|
|
119
|
-
},
|
|
120
|
-
m(n, b) {
|
|
121
|
-
T(e, n, b), t = !0;
|
|
122
|
-
},
|
|
123
|
-
p(n, b) {
|
|
124
|
-
const c = b & 62384 ? N(l, [
|
|
125
|
-
b & 62368 && {
|
|
126
|
-
hoverEnable: n[5],
|
|
127
|
-
floorplanData: n[9],
|
|
128
|
-
getRoomAreaText: n[12],
|
|
129
|
-
getLabelElement: n[13],
|
|
130
|
-
getRuleDistanceText: n[14],
|
|
131
|
-
roomLabelsEnable: n[7],
|
|
132
|
-
ruleLabelsEnable: n[8],
|
|
133
|
-
adaptiveRoomLabelVisibleEnable: n[15]
|
|
134
|
-
},
|
|
135
|
-
b & 512 && {
|
|
136
|
-
floorIndex: n[16].floorIndex
|
|
137
|
-
},
|
|
138
|
-
b & 528 && {
|
|
139
|
-
isCurrent: n[16].floorIndex === n[4]
|
|
140
|
-
}
|
|
141
|
-
]) : {};
|
|
142
|
-
e.$set(c);
|
|
143
|
-
},
|
|
144
|
-
i(n) {
|
|
145
|
-
t || (g(e.$$.fragment, n), t = !0);
|
|
146
|
-
},
|
|
147
|
-
o(n) {
|
|
148
|
-
_(e.$$.fragment, n), t = !1;
|
|
149
|
-
},
|
|
150
|
-
d(n) {
|
|
151
|
-
k(e, n);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
function w(a) {
|
|
156
|
-
let e, t;
|
|
157
|
-
return e = new y({
|
|
158
|
-
props: {
|
|
159
|
-
floorplanData: a[9],
|
|
160
|
-
northDesc: a[2]
|
|
161
|
-
}
|
|
162
|
-
}), {
|
|
163
|
-
c() {
|
|
164
|
-
v(e.$$.fragment);
|
|
165
|
-
},
|
|
166
|
-
m(l, i) {
|
|
167
|
-
T(e, l, i), t = !0;
|
|
168
|
-
},
|
|
169
|
-
p(l, i) {
|
|
170
|
-
const n = {};
|
|
171
|
-
i & 512 && (n.floorplanData = l[9]), i & 4 && (n.northDesc = l[2]), e.$set(n);
|
|
172
|
-
},
|
|
173
|
-
i(l) {
|
|
174
|
-
t || (g(e.$$.fragment, l), t = !0);
|
|
175
|
-
},
|
|
176
|
-
o(l) {
|
|
177
|
-
_(e.$$.fragment, l), t = !1;
|
|
178
|
-
},
|
|
179
|
-
d(l) {
|
|
180
|
-
k(e, l);
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function $(a) {
|
|
185
|
-
let e, t, l = a[1] && V(a);
|
|
186
|
-
return {
|
|
187
|
-
c() {
|
|
188
|
-
l && l.c(), e = H();
|
|
189
|
-
},
|
|
190
|
-
m(i, n) {
|
|
191
|
-
l && l.m(i, n), B(i, e, n), t = !0;
|
|
192
|
-
},
|
|
193
|
-
p(i, [n]) {
|
|
194
|
-
i[1] ? l ? (l.p(i, n), n & 2 && g(l, 1)) : (l = V(i), l.c(), g(l, 1), l.m(e.parentNode, e)) : l && (I(), _(l, 1, 1, () => {
|
|
195
|
-
l = null;
|
|
196
|
-
}), R());
|
|
197
|
-
},
|
|
198
|
-
i(i) {
|
|
199
|
-
t || (g(l), t = !0);
|
|
200
|
-
},
|
|
201
|
-
o(i) {
|
|
202
|
-
_(l), t = !1;
|
|
203
|
-
},
|
|
204
|
-
d(i) {
|
|
205
|
-
l && l.d(i), i && F(e);
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
function ee(a, e, t) {
|
|
210
|
-
let { duration: l = 0 } = e, { visible: i } = e, { northDesc: n } = e, { panoIndex: b } = e, { floorIndex: c } = e, { hoverEnable: f } = e, { compassEnable: D } = e, { roomLabelsEnable: h } = e, { ruleLabelsEnable: E } = e, { floorplanData: m } = e, { lastPanoramaLongitude: r } = e, { cameraImageUrl: s } = e, { getRoomAreaText: d } = e, { getLabelElement: u } = e, { getRuleDistanceText: L } = e, { adaptiveRoomLabelVisibleEnable: A } = e;
|
|
211
|
-
return a.$$set = (o) => {
|
|
212
|
-
"duration" in o && t(0, l = o.duration), "visible" in o && t(1, i = o.visible), "northDesc" in o && t(2, n = o.northDesc), "panoIndex" in o && t(3, b = o.panoIndex), "floorIndex" in o && t(4, c = o.floorIndex), "hoverEnable" in o && t(5, f = o.hoverEnable), "compassEnable" in o && t(6, D = o.compassEnable), "roomLabelsEnable" in o && t(7, h = o.roomLabelsEnable), "ruleLabelsEnable" in o && t(8, E = o.ruleLabelsEnable), "floorplanData" in o && t(9, m = o.floorplanData), "lastPanoramaLongitude" in o && t(10, r = o.lastPanoramaLongitude), "cameraImageUrl" in o && t(11, s = o.cameraImageUrl), "getRoomAreaText" in o && t(12, d = o.getRoomAreaText), "getLabelElement" in o && t(13, u = o.getLabelElement), "getRuleDistanceText" in o && t(14, L = o.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in o && t(15, A = o.adaptiveRoomLabelVisibleEnable);
|
|
213
|
-
}, [
|
|
214
|
-
l,
|
|
215
|
-
i,
|
|
216
|
-
n,
|
|
217
|
-
b,
|
|
218
|
-
c,
|
|
219
|
-
f,
|
|
220
|
-
D,
|
|
221
|
-
h,
|
|
222
|
-
E,
|
|
223
|
-
m,
|
|
224
|
-
r,
|
|
225
|
-
s,
|
|
226
|
-
d,
|
|
227
|
-
u,
|
|
228
|
-
L,
|
|
229
|
-
A
|
|
230
|
-
];
|
|
231
|
-
}
|
|
232
|
-
class ie extends S {
|
|
233
|
-
constructor(e) {
|
|
234
|
-
super(), j(
|
|
235
|
-
this,
|
|
236
|
-
e,
|
|
237
|
-
ee,
|
|
238
|
-
$,
|
|
239
|
-
z,
|
|
240
|
-
{
|
|
241
|
-
duration: 0,
|
|
242
|
-
visible: 1,
|
|
243
|
-
northDesc: 2,
|
|
244
|
-
panoIndex: 3,
|
|
245
|
-
floorIndex: 4,
|
|
246
|
-
hoverEnable: 5,
|
|
247
|
-
compassEnable: 6,
|
|
248
|
-
roomLabelsEnable: 7,
|
|
249
|
-
ruleLabelsEnable: 8,
|
|
250
|
-
floorplanData: 9,
|
|
251
|
-
lastPanoramaLongitude: 10,
|
|
252
|
-
cameraImageUrl: 11,
|
|
253
|
-
getRoomAreaText: 12,
|
|
254
|
-
getLabelElement: 13,
|
|
255
|
-
getRuleDistanceText: 14,
|
|
256
|
-
adaptiveRoomLabelVisibleEnable: 15
|
|
257
|
-
},
|
|
258
|
-
p
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
export {
|
|
263
|
-
ie as default
|
|
264
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal"),T=require("svelte/easing"),k=require("svelte/transition"),q=require("./Camera.js"),A=require("./Compass.js"),P=require("./CurrentFloor.js");function U(a){e.append_styles(a,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function I(a,n,l){const t=a.slice();return t[16]=n[l],t}function v(a){let n,l,t,s,o,c,b=a[9].floorDatas,f=[];for(let i=0;i<b.length;i+=1)f[i]=R(I(a,b,i));const L=i=>e.transition_out(f[i],1,1,()=>{f[i]=null}),d=[{panoIndex:a[3],floorplanData:a[9],lastPanoramaLongitude:a[10],cameraImageUrl:a[11]}];let h={};for(let i=0;i<d.length;i+=1)h=e.assign(h,d[i]);t=new q.Camera({props:h});let u=a[6]&&C(a);return{c(){n=e.element("div");for(let i=0;i<f.length;i+=1)f[i].c();l=e.space(),e.create_component(t.$$.fragment),s=e.space(),u&&u.c(),e.attr(n,"class","floorplan-main svelte-86bqav")},m(i,m){e.insert(i,n,m);for(let g=0;g<f.length;g+=1)f[g].m(n,null);e.append(n,l),e.mount_component(t,n,null),e.append(n,s),u&&u.m(n,null),c=!0},p(i,m){if(a=i,m&62384){b=a[9].floorDatas;let _;for(_=0;_<b.length;_+=1){const E=I(a,b,_);f[_]?(f[_].p(E,m),e.transition_in(f[_],1)):(f[_]=R(E),f[_].c(),e.transition_in(f[_],1),f[_].m(n,l))}for(e.group_outros(),_=b.length;_<f.length;_+=1)L(_);e.check_outros()}const g=m&3592?e.get_spread_update(d,[{panoIndex:a[3],floorplanData:a[9],lastPanoramaLongitude:a[10],cameraImageUrl:a[11]}]):{};t.$set(g),a[6]?u?(u.p(a,m),m&64&&e.transition_in(u,1)):(u=C(a),u.c(),e.transition_in(u,1),u.m(n,null)):u&&(e.group_outros(),e.transition_out(u,1,1,()=>{u=null}),e.check_outros())},i(i){if(!c){for(let m=0;m<b.length;m+=1)e.transition_in(f[m]);e.transition_in(t.$$.fragment,i),e.transition_in(u),o||e.add_render_callback(()=>{o=e.create_in_transition(n,k.fade,{duration:a[0],easing:T.linear}),o.start()}),c=!0}},o(i){f=f.filter(Boolean);for(let m=0;m<f.length;m+=1)e.transition_out(f[m]);e.transition_out(t.$$.fragment,i),e.transition_out(u),c=!1},d(i){i&&e.detach(n),e.destroy_each(f,i),e.destroy_component(t),u&&u.d()}}}function R(a){let n,l;const t=[{hoverEnable:a[5],floorplanData:a[9],getRoomAreaText:a[12],getLabelElement:a[13],getRuleDistanceText:a[14],roomLabelsEnable:a[7],ruleLabelsEnable:a[8],adaptiveRoomLabelVisibleEnable:a[15]},{floorIndex:a[16].floorIndex},{isCurrent:a[16].floorIndex===a[4]}];let s={};for(let o=0;o<t.length;o+=1)s=e.assign(s,t[o]);return n=new P.CurrentFloor({props:s}),{c(){e.create_component(n.$$.fragment)},m(o,c){e.mount_component(n,o,c),l=!0},p(o,c){const b=c&62384?e.get_spread_update(t,[c&62368&&{hoverEnable:o[5],floorplanData:o[9],getRoomAreaText:o[12],getLabelElement:o[13],getRuleDistanceText:o[14],roomLabelsEnable:o[7],ruleLabelsEnable:o[8],adaptiveRoomLabelVisibleEnable:o[15]},c&512&&{floorIndex:o[16].floorIndex},c&528&&{isCurrent:o[16].floorIndex===o[4]}]):{};n.$set(b)},i(o){l||(e.transition_in(n.$$.fragment,o),l=!0)},o(o){e.transition_out(n.$$.fragment,o),l=!1},d(o){e.destroy_component(n,o)}}}function C(a){let n,l;return n=new A.Compass({props:{floorplanData:a[9],northDesc:a[2]}}),{c(){e.create_component(n.$$.fragment)},m(t,s){e.mount_component(n,t,s),l=!0},p(t,s){const o={};s&512&&(o.floorplanData=t[9]),s&4&&(o.northDesc=t[2]),n.$set(o)},i(t){l||(e.transition_in(n.$$.fragment,t),l=!0)},o(t){e.transition_out(n.$$.fragment,t),l=!1},d(t){e.destroy_component(n,t)}}}function V(a){let n,l,t=a[1]&&v(a);return{c(){t&&t.c(),n=e.empty()},m(s,o){t&&t.m(s,o),e.insert(s,n,o),l=!0},p(s,[o]){s[1]?t?(t.p(s,o),o&2&&e.transition_in(t,1)):(t=v(s),t.c(),e.transition_in(t,1),t.m(n.parentNode,n)):t&&(e.group_outros(),e.transition_out(t,1,1,()=>{t=null}),e.check_outros())},i(s){l||(e.transition_in(t),l=!0)},o(s){e.transition_out(t),l=!1},d(s){t&&t.d(s),s&&e.detach(n)}}}function w(a,n,l){let{duration:t=0}=n,{visible:s}=n,{northDesc:o}=n,{panoIndex:c}=n,{floorIndex:b}=n,{hoverEnable:f}=n,{compassEnable:L}=n,{roomLabelsEnable:d}=n,{ruleLabelsEnable:h}=n,{floorplanData:u}=n,{lastPanoramaLongitude:i}=n,{cameraImageUrl:m}=n,{getRoomAreaText:g}=n,{getLabelElement:_}=n,{getRuleDistanceText:E}=n,{adaptiveRoomLabelVisibleEnable:D}=n;return a.$$set=r=>{"duration"in r&&l(0,t=r.duration),"visible"in r&&l(1,s=r.visible),"northDesc"in r&&l(2,o=r.northDesc),"panoIndex"in r&&l(3,c=r.panoIndex),"floorIndex"in r&&l(4,b=r.floorIndex),"hoverEnable"in r&&l(5,f=r.hoverEnable),"compassEnable"in r&&l(6,L=r.compassEnable),"roomLabelsEnable"in r&&l(7,d=r.roomLabelsEnable),"ruleLabelsEnable"in r&&l(8,h=r.ruleLabelsEnable),"floorplanData"in r&&l(9,u=r.floorplanData),"lastPanoramaLongitude"in r&&l(10,i=r.lastPanoramaLongitude),"cameraImageUrl"in r&&l(11,m=r.cameraImageUrl),"getRoomAreaText"in r&&l(12,g=r.getRoomAreaText),"getLabelElement"in r&&l(13,_=r.getLabelElement),"getRuleDistanceText"in r&&l(14,E=r.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in r&&l(15,D=r.adaptiveRoomLabelVisibleEnable)},[t,s,o,c,b,f,L,d,h,u,i,m,g,_,E,D]}class j extends e.SvelteComponent{constructor(n){super(),e.init(this,n,w,V,e.safe_not_equal,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,hoverEnable:5,compassEnable:6,roomLabelsEnable:7,ruleLabelsEnable:8,floorplanData:9,lastPanoramaLongitude:10,cameraImageUrl:11,getRoomAreaText:12,getLabelElement:13,getRuleDistanceText:14,adaptiveRoomLabelVisibleEnable:15},U)}}exports.Main=j;
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function d(n) {
|
|
3
|
-
f(n, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
4
|
-
}
|
|
5
|
-
function p(n) {
|
|
6
|
-
let e, r;
|
|
7
|
-
return {
|
|
8
|
-
c() {
|
|
9
|
-
e = m("img"), l(e.src, r = n[0]) || s(e, "src", r), s(e, "alt", "floorplan iamge"), s(e, "class", "svelte-1gfoniz");
|
|
10
|
-
},
|
|
11
|
-
m(t, i) {
|
|
12
|
-
g(t, e, i);
|
|
13
|
-
},
|
|
14
|
-
p(t, [i]) {
|
|
15
|
-
i & 1 && !l(e.src, r = t[0]) && s(e, "src", r);
|
|
16
|
-
},
|
|
17
|
-
i: a,
|
|
18
|
-
o: a,
|
|
19
|
-
d(t) {
|
|
20
|
-
t && _(e);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
function h(n, e, r) {
|
|
25
|
-
let { url: t } = e;
|
|
26
|
-
return n.$$set = (i) => {
|
|
27
|
-
"url" in i && r(0, t = i.url);
|
|
28
|
-
}, [t];
|
|
29
|
-
}
|
|
30
|
-
class z extends o {
|
|
31
|
-
constructor(e) {
|
|
32
|
-
super(), c(this, e, h, p, u, { url: 0 }, d);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
z as default
|
|
37
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal");function i(n){e.append_styles(n,"svelte-1gfoniz","img.svelte-1gfoniz{width:100%;height:100%}")}function a(n){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=n[0])||e.attr(t,"src",l),e.attr(t,"alt","floorplan iamge"),e.attr(t,"class","svelte-1gfoniz")},m(r,s){e.insert(r,t,s)},p(r,[s]){s&1&&!e.src_url_equal(t.src,l=r[0])&&e.attr(t,"src",l)},i:e.noop,o:e.noop,d(r){r&&e.detach(t)}}}function c(n,t,l){let{url:r}=t;return n.$$set=s=>{"url"in s&&l(0,r=s.url)},[r]}class o extends e.SvelteComponent{constructor(t){super(),e.init(this,t,c,a,e.safe_not_equal,{url:0},i)}}exports.Normalmage=o;
|
|
@@ -1,61 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import M, { pathD as b } from "../../utils/formatPosition.js";
|
|
3
|
-
function q(t) {
|
|
4
|
-
_(t, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
5
|
-
}
|
|
6
|
-
function C(t) {
|
|
7
|
-
let e, n, a;
|
|
8
|
-
return {
|
|
9
|
-
c() {
|
|
10
|
-
e = D("path"), r(e, "d", t[2]), r(e, "fill", "#fff"), r(e, "class", "svelte-19uvvss");
|
|
11
|
-
},
|
|
12
|
-
m(s, l) {
|
|
13
|
-
R(s, e, l), n || (a = [
|
|
14
|
-
i(e, "mouseenter", t[0]),
|
|
15
|
-
i(e, "mouseleave", t[1])
|
|
16
|
-
], n = !0);
|
|
17
|
-
},
|
|
18
|
-
p: f,
|
|
19
|
-
i: f,
|
|
20
|
-
o: f,
|
|
21
|
-
d(s) {
|
|
22
|
-
s && g(e), n = !1, y(a);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function E(t, e, n) {
|
|
27
|
-
let { room: a } = e, { floorplanData: s } = e, { hoveredRoom: l } = e;
|
|
28
|
-
function u() {
|
|
29
|
-
l.set(a);
|
|
30
|
-
}
|
|
31
|
-
function m() {
|
|
32
|
-
l.set(void 0);
|
|
33
|
-
}
|
|
34
|
-
const { bounding: v } = s, c = b(a.path, {
|
|
35
|
-
needZ: !0,
|
|
36
|
-
format: (o) => M(o, v)
|
|
37
|
-
});
|
|
38
|
-
return t.$$set = (o) => {
|
|
39
|
-
"room" in o && n(3, a = o.room), "floorplanData" in o && n(4, s = o.floorplanData), "hoveredRoom" in o && n(5, l = o.hoveredRoom);
|
|
40
|
-
}, [u, m, c, a, s, l];
|
|
41
|
-
}
|
|
42
|
-
class P extends d {
|
|
43
|
-
constructor(e) {
|
|
44
|
-
super(), h(
|
|
45
|
-
this,
|
|
46
|
-
e,
|
|
47
|
-
E,
|
|
48
|
-
C,
|
|
49
|
-
p,
|
|
50
|
-
{
|
|
51
|
-
room: 3,
|
|
52
|
-
floorplanData: 4,
|
|
53
|
-
hoveredRoom: 5
|
|
54
|
-
},
|
|
55
|
-
q
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
P as default
|
|
61
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal"),i=require("../../utils/formatPosition.js");function c(o){e.append_styles(o,"svelte-19uvvss","path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}")}function d(o){let t,s,a;return{c(){t=e.svg_element("path"),e.attr(t,"d",o[2]),e.attr(t,"fill","#fff"),e.attr(t,"class","svelte-19uvvss")},m(l,r){e.insert(l,t,r),s||(a=[e.listen(t,"mouseenter",o[0]),e.listen(t,"mouseleave",o[1])],s=!0)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t),s=!1,e.run_all(a)}}}function h(o,t,s){let{room:a}=t,{floorplanData:l}=t,{hoveredRoom:r}=t;function u(){r.set(a)}function f(){r.set(void 0)}const{bounding:m}=l,v=i.pathD(a.path,{needZ:!0,format:n=>i.formatFloorplanPoint(n,m)});return o.$$set=n=>{"room"in n&&s(3,a=n.room),"floorplanData"in n&&s(4,l=n.floorplanData),"hoveredRoom"in n&&s(5,r=n.hoveredRoom)},[u,f,v,a,l,r]}class p extends e.SvelteComponent{constructor(t){super(),e.init(this,t,h,d,e.safe_not_equal,{room:3,floorplanData:4,hoveredRoom:5},c)}}exports.Room=p;
|
|
@@ -1,121 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import z from "./Room.js";
|
|
3
|
-
function A(i) {
|
|
4
|
-
y(i, "svelte-1kqo6e4", ".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}");
|
|
5
|
-
}
|
|
6
|
-
function m(i, t, r) {
|
|
7
|
-
const o = i.slice();
|
|
8
|
-
return o[5] = t[r], o;
|
|
9
|
-
}
|
|
10
|
-
function d(i, t) {
|
|
11
|
-
let r, o, a;
|
|
12
|
-
const s = [
|
|
13
|
-
{
|
|
14
|
-
room: t[5],
|
|
15
|
-
floorplanData: t[1],
|
|
16
|
-
hoveredRoom: t[2]
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
let f = {};
|
|
20
|
-
for (let l = 0; l < s.length; l += 1)
|
|
21
|
-
f = B(f, s[l]);
|
|
22
|
-
return o = new z({ props: f }), {
|
|
23
|
-
key: i,
|
|
24
|
-
first: null,
|
|
25
|
-
c() {
|
|
26
|
-
r = C(), M(o.$$.fragment), this.first = r;
|
|
27
|
-
},
|
|
28
|
-
m(l, e) {
|
|
29
|
-
_(l, r, e), S(o, l, e), a = !0;
|
|
30
|
-
},
|
|
31
|
-
p(l, e) {
|
|
32
|
-
t = l;
|
|
33
|
-
const n = e & 7 ? W(s, [
|
|
34
|
-
{
|
|
35
|
-
room: t[5],
|
|
36
|
-
floorplanData: t[1],
|
|
37
|
-
hoveredRoom: t[2]
|
|
38
|
-
}
|
|
39
|
-
]) : {};
|
|
40
|
-
o.$set(n);
|
|
41
|
-
},
|
|
42
|
-
i(l) {
|
|
43
|
-
a || (g(o.$$.fragment, l), a = !0);
|
|
44
|
-
},
|
|
45
|
-
o(l) {
|
|
46
|
-
c(o.$$.fragment, l), a = !1;
|
|
47
|
-
},
|
|
48
|
-
d(l) {
|
|
49
|
-
l && p(r), j(o, l);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function E(i) {
|
|
54
|
-
let t, r, o = [], a = /* @__PURE__ */ new Map(), s, f = i[1].floorDatas[i[0]].rooms;
|
|
55
|
-
const l = (e) => e[5].id;
|
|
56
|
-
for (let e = 0; e < f.length; e += 1) {
|
|
57
|
-
let n = m(i, f, e), h = l(n);
|
|
58
|
-
a.set(h, o[e] = d(h, n));
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
c() {
|
|
62
|
-
t = D("div"), r = R("svg");
|
|
63
|
-
for (let e = 0; e < o.length; e += 1)
|
|
64
|
-
o[e].c();
|
|
65
|
-
u(r, "width", "100%"), u(r, "height", "100%"), u(r, "viewBox", `0 0 ${i[3]} ${i[4]}`), u(r, "class", "svelte-1kqo6e4"), u(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
|
|
66
|
-
},
|
|
67
|
-
m(e, n) {
|
|
68
|
-
_(e, t, n), w(t, r);
|
|
69
|
-
for (let h = 0; h < o.length; h += 1)
|
|
70
|
-
o[h].m(r, null);
|
|
71
|
-
s = !0;
|
|
72
|
-
},
|
|
73
|
-
p(e, [n]) {
|
|
74
|
-
n & 7 && (f = e[1].floorDatas[e[0]].rooms, q(), o = I(o, n, l, 1, e, f, a, r, x, d, null, m), H());
|
|
75
|
-
},
|
|
76
|
-
i(e) {
|
|
77
|
-
if (!s) {
|
|
78
|
-
for (let n = 0; n < f.length; n += 1)
|
|
79
|
-
g(o[n]);
|
|
80
|
-
s = !0;
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
o(e) {
|
|
84
|
-
for (let n = 0; n < o.length; n += 1)
|
|
85
|
-
c(o[n]);
|
|
86
|
-
s = !1;
|
|
87
|
-
},
|
|
88
|
-
d(e) {
|
|
89
|
-
e && p(t);
|
|
90
|
-
for (let n = 0; n < o.length; n += 1)
|
|
91
|
-
o[n].d();
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function F(i, t, r) {
|
|
96
|
-
let { floorIndex: o } = t, { floorplanData: a } = t, { hoveredRoom: s } = t;
|
|
97
|
-
const f = a.bounding.max.x - a.bounding.min.x, l = a.bounding.max.y - a.bounding.min.y;
|
|
98
|
-
return i.$$set = (e) => {
|
|
99
|
-
"floorIndex" in e && r(0, o = e.floorIndex), "floorplanData" in e && r(1, a = e.floorplanData), "hoveredRoom" in e && r(2, s = e.hoveredRoom);
|
|
100
|
-
}, [o, a, s, f, l];
|
|
101
|
-
}
|
|
102
|
-
class K extends v {
|
|
103
|
-
constructor(t) {
|
|
104
|
-
super(), k(
|
|
105
|
-
this,
|
|
106
|
-
t,
|
|
107
|
-
F,
|
|
108
|
-
E,
|
|
109
|
-
b,
|
|
110
|
-
{
|
|
111
|
-
floorIndex: 0,
|
|
112
|
-
floorplanData: 1,
|
|
113
|
-
hoveredRoom: 2
|
|
114
|
-
},
|
|
115
|
-
A
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
export {
|
|
120
|
-
K as default
|
|
121
|
-
};
|
|
1
|
+
"use strict";const o=require("svelte/internal"),g=require("./Room.js");function c(a){o.append_styles(a,"svelte-1kqo6e4",".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}")}function _(a,n,i){const t=a.slice();return t[5]=n[i],t}function m(a,n){let i,t,s;const h=[{room:n[5],floorplanData:n[1],hoveredRoom:n[2]}];let f={};for(let r=0;r<h.length;r+=1)f=o.assign(f,h[r]);return t=new g.Room({props:f}),{key:a,first:null,c(){i=o.empty(),o.create_component(t.$$.fragment),this.first=i},m(r,e){o.insert(r,i,e),o.mount_component(t,r,e),s=!0},p(r,e){n=r;const l=e&7?o.get_spread_update(h,[{room:n[5],floorplanData:n[1],hoveredRoom:n[2]}]):{};t.$set(l)},i(r){s||(o.transition_in(t.$$.fragment,r),s=!0)},o(r){o.transition_out(t.$$.fragment,r),s=!1},d(r){r&&o.detach(i),o.destroy_component(t,r)}}}function d(a){let n,i,t=[],s=new Map,h,f=a[1].floorDatas[a[0]].rooms;const r=e=>e[5].id;for(let e=0;e<f.length;e+=1){let l=_(a,f,e),u=r(l);s.set(u,t[e]=m(u,l))}return{c(){n=o.element("div"),i=o.svg_element("svg");for(let e=0;e<t.length;e+=1)t[e].c();o.attr(i,"width","100%"),o.attr(i,"height","100%"),o.attr(i,"viewBox",`0 0 ${a[3]} ${a[4]}`),o.attr(i,"class","svelte-1kqo6e4"),o.attr(n,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(e,l){o.insert(e,n,l),o.append(n,i);for(let u=0;u<t.length;u+=1)t[u].m(i,null);h=!0},p(e,[l]){l&7&&(f=e[1].floorDatas[e[0]].rooms,o.group_outros(),t=o.update_keyed_each(t,l,r,1,e,f,s,i,o.outro_and_destroy_block,m,null,_),o.check_outros())},i(e){if(!h){for(let l=0;l<f.length;l+=1)o.transition_in(t[l]);h=!0}},o(e){for(let l=0;l<t.length;l+=1)o.transition_out(t[l]);h=!1},d(e){e&&o.detach(n);for(let l=0;l<t.length;l+=1)t[l].d()}}}function p(a,n,i){let{floorIndex:t}=n,{floorplanData:s}=n,{hoveredRoom:h}=n;const f=s.bounding.max.x-s.bounding.min.x,r=s.bounding.max.y-s.bounding.min.y;return a.$$set=e=>{"floorIndex"in e&&i(0,t=e.floorIndex),"floorplanData"in e&&i(1,s=e.floorplanData),"hoveredRoom"in e&&i(2,h=e.hoveredRoom)},[t,s,h,f,r]}class v extends o.SvelteComponent{constructor(n){super(),o.init(this,n,p,d,o.safe_not_equal,{floorIndex:0,floorplanData:1,hoveredRoom:2},c)}}exports.RoomHighlight=v;
|
|
@@ -1,153 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { onMount as ie } from "svelte";
|
|
3
|
-
function le(i) {
|
|
4
|
-
$(i, "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}");
|
|
5
|
-
}
|
|
6
|
-
function se(i) {
|
|
7
|
-
let e, n = i[4].outerHTML + "", l;
|
|
8
|
-
return {
|
|
9
|
-
c() {
|
|
10
|
-
e = new te(!1), l = oe(), e.a = l;
|
|
11
|
-
},
|
|
12
|
-
m(t, o) {
|
|
13
|
-
e.m(n, t, o), p(t, l, o);
|
|
14
|
-
},
|
|
15
|
-
p(t, o) {
|
|
16
|
-
o & 16 && n !== (n = t[4].outerHTML + "") && e.p(n);
|
|
17
|
-
},
|
|
18
|
-
d(t) {
|
|
19
|
-
t && g(l), t && e.d();
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function fe(i) {
|
|
24
|
-
let e, n = i[0].name + "", l, t, o, c;
|
|
25
|
-
return {
|
|
26
|
-
c() {
|
|
27
|
-
e = k("span"), l = V(n), t = ne(), o = k("span"), c = V(i[5]), C(e, "class", "floorplan-plugin__room-name"), C(o, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
28
|
-
},
|
|
29
|
-
m(a, f) {
|
|
30
|
-
p(a, e, f), A(e, l), p(a, t, f), p(a, o, f), A(o, c);
|
|
31
|
-
},
|
|
32
|
-
p(a, f) {
|
|
33
|
-
f & 1 && n !== (n = a[0].name + "") && j(l, n), f & 32 && j(c, a[5]);
|
|
34
|
-
},
|
|
35
|
-
d(a) {
|
|
36
|
-
a && g(e), a && g(t), a && g(o);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function ae(i) {
|
|
41
|
-
let e;
|
|
42
|
-
function n(o, c) {
|
|
43
|
-
if (o[1] === void 0)
|
|
44
|
-
return fe;
|
|
45
|
-
if (o[4])
|
|
46
|
-
return se;
|
|
47
|
-
}
|
|
48
|
-
let l = n(i), t = l && l(i);
|
|
49
|
-
return {
|
|
50
|
-
c() {
|
|
51
|
-
e = k("div"), t && t.c(), C(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), _(e, "left", i[6], !1), _(e, "top", i[7], !1), _(e, "font-size", i[8], !1), _(e, "opacity", i[3] ? "1" : "0", !1);
|
|
52
|
-
},
|
|
53
|
-
m(o, c) {
|
|
54
|
-
p(o, e, c), t && t.m(e, null), i[16](e);
|
|
55
|
-
},
|
|
56
|
-
p(o, [c]) {
|
|
57
|
-
l === (l = n(o)) && t ? t.p(o, c) : (t && t.d(1), t = l && l(o), t && (t.c(), t.m(e, null))), c & 8 && _(e, "opacity", o[3] ? "1" : "0", !1);
|
|
58
|
-
},
|
|
59
|
-
i: E,
|
|
60
|
-
o: E,
|
|
61
|
-
d(o) {
|
|
62
|
-
o && g(e), t && t.d(), i[16](null);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function ce(i, e) {
|
|
67
|
-
const n = i[0], l = i[1];
|
|
68
|
-
let t = !1;
|
|
69
|
-
for (let o = 0, c = e.length - 1; o < e.length; c = o++) {
|
|
70
|
-
const a = e[o][0], f = e[o][1], h = e[c][0], r = e[c][1];
|
|
71
|
-
f > l != r > l && n < (h - a) * (l - f) / (r - f) + a && (t = !t);
|
|
72
|
-
}
|
|
73
|
-
return t;
|
|
74
|
-
}
|
|
75
|
-
function re(i, e, n) {
|
|
76
|
-
let l, t, o, c, { pxmm: a } = e, { room: f } = e, { hoveredRoom: h } = e, { getRoomAreaText: r } = e, { getLabelElement: m } = e, { adaptiveRoomLabelVisibleEnable: v } = e;
|
|
77
|
-
function M(s, b) {
|
|
78
|
-
if (b.width === 0 || b.height === 0)
|
|
79
|
-
return () => !1;
|
|
80
|
-
const X = s.path.map(({ x: P, y: d }) => [P, d]), Y = s.roomLabel.position, { x: B, y: F } = Y, { width: G, height: J } = b, R = G / 2, L = J / 2;
|
|
81
|
-
return function(d) {
|
|
82
|
-
const z = B * d, w = F * d, K = X.map(([T, N]) => [T * d, N * d]);
|
|
83
|
-
return [
|
|
84
|
-
[z + R, w - L],
|
|
85
|
-
[z - R, w - L],
|
|
86
|
-
[z - R, w + L],
|
|
87
|
-
[z + R, w + L]
|
|
88
|
-
].every((T) => ce(T, K));
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
const W = document.body.clientWidth, x = document.body.clientHeight, I = f.roomLabel, D = I.positionInImage.x * 100 + "%", S = I.positionInImage.y * 100 + "%", q = (W < 500 || x < 500 ? 10 : 14) / 16 + "rem";
|
|
92
|
-
let H = !1, u, y;
|
|
93
|
-
h.subscribe(function(b) {
|
|
94
|
-
n(13, H = !!b && b.id === f.id);
|
|
95
|
-
}), ie(() => {
|
|
96
|
-
const s = u == null ? void 0 : u.getClientRects()[0];
|
|
97
|
-
n(14, y = {
|
|
98
|
-
width: s.width,
|
|
99
|
-
height: s.height
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
function U(s) {
|
|
103
|
-
ee[s ? "unshift" : "push"](() => {
|
|
104
|
-
u = s, n(2, u);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
return i.$$set = (s) => {
|
|
108
|
-
"pxmm" in s && n(9, a = s.pxmm), "room" in s && n(0, f = s.room), "hoveredRoom" in s && n(10, h = s.hoveredRoom), "getRoomAreaText" in s && n(11, r = s.getRoomAreaText), "getLabelElement" in s && n(1, m = s.getLabelElement), "adaptiveRoomLabelVisibleEnable" in s && n(12, v = s.adaptiveRoomLabelVisibleEnable);
|
|
109
|
-
}, i.$$.update = () => {
|
|
110
|
-
i.$$.dirty & 2049 && n(5, l = f.size ? r(f.size) : ""), i.$$.dirty & 16385 && n(15, t = y ? M(f, y) : void 0), i.$$.dirty & 3 && n(4, o = m == null ? void 0 : m(f)), i.$$.dirty & 45568 && n(3, c = v ? H ? !0 : !!(t != null && t(a)) : !0);
|
|
111
|
-
}, [
|
|
112
|
-
f,
|
|
113
|
-
m,
|
|
114
|
-
u,
|
|
115
|
-
c,
|
|
116
|
-
o,
|
|
117
|
-
l,
|
|
118
|
-
D,
|
|
119
|
-
S,
|
|
120
|
-
q,
|
|
121
|
-
a,
|
|
122
|
-
h,
|
|
123
|
-
r,
|
|
124
|
-
v,
|
|
125
|
-
H,
|
|
126
|
-
y,
|
|
127
|
-
t,
|
|
128
|
-
U
|
|
129
|
-
];
|
|
130
|
-
}
|
|
131
|
-
class de extends O {
|
|
132
|
-
constructor(e) {
|
|
133
|
-
super(), Q(
|
|
134
|
-
this,
|
|
135
|
-
e,
|
|
136
|
-
re,
|
|
137
|
-
ae,
|
|
138
|
-
Z,
|
|
139
|
-
{
|
|
140
|
-
pxmm: 9,
|
|
141
|
-
room: 0,
|
|
142
|
-
hoveredRoom: 10,
|
|
143
|
-
getRoomAreaText: 11,
|
|
144
|
-
getLabelElement: 1,
|
|
145
|
-
adaptiveRoomLabelVisibleEnable: 12
|
|
146
|
-
},
|
|
147
|
-
le
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
export {
|
|
152
|
-
de as default
|
|
153
|
-
};
|
|
1
|
+
"use strict";const t=require("svelte/internal"),X=require("svelte");function Y(l){t.append_styles(l,"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}")}function B(l){let e,i=l[4].outerHTML+"",s;return{c(){e=new t.HtmlTag(!1),s=t.empty(),e.a=s},m(n,o){e.m(i,n,o),t.insert(n,s,o)},p(n,o){o&16&&i!==(i=n[4].outerHTML+"")&&e.p(i)},d(n){n&&t.detach(s),n&&e.d()}}}function F(l){let e,i=l[0].name+"",s,n,o,r;return{c(){e=t.element("span"),s=t.text(i),n=t.space(),o=t.element("span"),r=t.text(l[5]),t.attr(e,"class","floorplan-plugin__room-name"),t.attr(o,"class","floorplan-plugin__room-size svelte-12pzct5")},m(f,c){t.insert(f,e,c),t.append(e,s),t.insert(f,n,c),t.insert(f,o,c),t.append(o,r)},p(f,c){c&1&&i!==(i=f[0].name+"")&&t.set_data(s,i),c&32&&t.set_data(r,f[5])},d(f){f&&t.detach(e),f&&t.detach(n),f&&t.detach(o)}}}function G(l){let e;function i(o,r){if(o[1]===void 0)return F;if(o[4])return B}let s=i(l),n=s&&s(l);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","floorplan-plugin__room-label-item svelte-12pzct5"),t.set_style(e,"left",l[6],!1),t.set_style(e,"top",l[7],!1),t.set_style(e,"font-size",l[8],!1),t.set_style(e,"opacity",l[3]?"1":"0",!1)},m(o,r){t.insert(o,e,r),n&&n.m(e,null),l[16](e)},p(o,[r]){s===(s=i(o))&&n?n.p(o,r):(n&&n.d(1),n=s&&s(o),n&&(n.c(),n.m(e,null))),r&8&&t.set_style(e,"opacity",o[3]?"1":"0",!1)},i:t.noop,o:t.noop,d(o){o&&t.detach(e),n&&n.d(),l[16](null)}}}function J(l,e){const i=l[0],s=l[1];let n=!1;for(let o=0,r=e.length-1;o<e.length;r=o++){const f=e[o][0],c=e[o][1],h=e[r][0],m=e[r][1];c>s!=m>s&&i<(h-f)*(s-c)/(m-c)+f&&(n=!n)}return n}function K(l,e,i){let s,n,o,r,{pxmm:f}=e,{room:c}=e,{hoveredRoom:h}=e,{getRoomAreaText:m}=e,{getLabelElement:u}=e,{adaptiveRoomLabelVisibleEnable:v}=e;function k(a,b){if(b.width===0||b.height===0)return()=>!1;const j=a.path.map(({x:T,y:_})=>[T,_]),q=a.roomLabel.position,{x:M,y:W}=q,{width:x,height:D}=b,p=x/2,g=D/2;return function(_){const R=M*_,L=W*_,S=j.map(([w,U])=>[w*_,U*_]);return[[R+p,L-g],[R-p,L-g],[R-p,L+g],[R+p,L+g]].every(w=>J(w,S))}}const C=document.body.clientWidth,I=document.body.clientHeight,H=c.roomLabel,P=H.positionInImage.x*100+"%",E=H.positionInImage.y*100+"%",V=(C<500||I<500?10:14)/16+"rem";let z=!1,d,y;h.subscribe(function(b){i(13,z=!!b&&b.id===c.id)}),X.onMount(()=>{const a=d==null?void 0:d.getClientRects()[0];i(14,y={width:a.width,height:a.height})});function A(a){t.binding_callbacks[a?"unshift":"push"](()=>{d=a,i(2,d)})}return l.$$set=a=>{"pxmm"in a&&i(9,f=a.pxmm),"room"in a&&i(0,c=a.room),"hoveredRoom"in a&&i(10,h=a.hoveredRoom),"getRoomAreaText"in a&&i(11,m=a.getRoomAreaText),"getLabelElement"in a&&i(1,u=a.getLabelElement),"adaptiveRoomLabelVisibleEnable"in a&&i(12,v=a.adaptiveRoomLabelVisibleEnable)},l.$$.update=()=>{l.$$.dirty&2049&&i(5,s=c.size?m(c.size):""),l.$$.dirty&16385&&i(15,n=y?k(c,y):void 0),l.$$.dirty&3&&i(4,o=u==null?void 0:u(c)),l.$$.dirty&45568&&i(3,r=v?z?!0:!!(n!=null&&n(f)):!0)},[c,u,d,r,o,s,P,E,V,f,h,m,v,z,y,n,A]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,K,G,t.safe_not_equal,{pxmm:9,room:0,hoveredRoom:10,getRoomAreaText:11,getLabelElement:1,adaptiveRoomLabelVisibleEnable:12},Y)}}exports.RoomLabel=N;
|