@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,139 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import G from "./RuleItem.js";
|
|
3
|
-
function J(o) {
|
|
4
|
-
z(o, "svelte-1mzj9p3", ".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}");
|
|
5
|
-
}
|
|
6
|
-
function y(o, l, t) {
|
|
7
|
-
const r = o.slice();
|
|
8
|
-
return r[13] = l[t][0], r[14] = l[t][1], r;
|
|
9
|
-
}
|
|
10
|
-
function b(o, l) {
|
|
11
|
-
let t, r, i;
|
|
12
|
-
const a = [
|
|
13
|
-
{
|
|
14
|
-
type: l[13],
|
|
15
|
-
data: l[14],
|
|
16
|
-
bounding: l[1],
|
|
17
|
-
getRuleDistanceText: l[0]
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
let s = {};
|
|
21
|
-
for (let e = 0; e < a.length; e += 1)
|
|
22
|
-
s = K(s, a[e]);
|
|
23
|
-
return r = new G({ props: s }), {
|
|
24
|
-
key: o,
|
|
25
|
-
first: null,
|
|
26
|
-
c() {
|
|
27
|
-
t = M(), S(r.$$.fragment), this.first = t;
|
|
28
|
-
},
|
|
29
|
-
m(e, n) {
|
|
30
|
-
k(e, t, n), B(r, e, n), i = !0;
|
|
31
|
-
},
|
|
32
|
-
p(e, n) {
|
|
33
|
-
l = e;
|
|
34
|
-
const u = n & 19 ? E(a, [
|
|
35
|
-
{
|
|
36
|
-
type: l[13],
|
|
37
|
-
data: l[14],
|
|
38
|
-
bounding: l[1],
|
|
39
|
-
getRuleDistanceText: l[0]
|
|
40
|
-
}
|
|
41
|
-
]) : {};
|
|
42
|
-
r.$set(u);
|
|
43
|
-
},
|
|
44
|
-
i(e) {
|
|
45
|
-
i || (R(r.$$.fragment, e), i = !0);
|
|
46
|
-
},
|
|
47
|
-
o(e) {
|
|
48
|
-
w(r.$$.fragment, e), i = !1;
|
|
49
|
-
},
|
|
50
|
-
d(e) {
|
|
51
|
-
e && T(t), F(r, e);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function N(o) {
|
|
56
|
-
let l, t = [], r = /* @__PURE__ */ new Map(), i, a = o[4];
|
|
57
|
-
const s = (e) => e[13];
|
|
58
|
-
for (let e = 0; e < a.length; e += 1) {
|
|
59
|
-
let n = y(o, a, e), u = s(n);
|
|
60
|
-
r.set(u, t[e] = b(u, n));
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
c() {
|
|
64
|
-
l = W("div");
|
|
65
|
-
for (let e = 0; e < t.length; e += 1)
|
|
66
|
-
t[e].c();
|
|
67
|
-
H(l, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), _(l, "width", o[3], !1), _(l, "height", o[2], !1);
|
|
68
|
-
},
|
|
69
|
-
m(e, n) {
|
|
70
|
-
k(e, l, n);
|
|
71
|
-
for (let u = 0; u < t.length; u += 1)
|
|
72
|
-
t[u].m(l, null);
|
|
73
|
-
i = !0;
|
|
74
|
-
},
|
|
75
|
-
p(e, [n]) {
|
|
76
|
-
n & 19 && (a = e[4], O(), t = q(t, n, s, 1, e, a, r, l, A, b, null, y), C()), n & 8 && _(l, "width", e[3], !1), n & 4 && _(l, "height", e[2], !1);
|
|
77
|
-
},
|
|
78
|
-
i(e) {
|
|
79
|
-
if (!i) {
|
|
80
|
-
for (let n = 0; n < a.length; n += 1)
|
|
81
|
-
R(t[n]);
|
|
82
|
-
i = !0;
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
o(e) {
|
|
86
|
-
for (let n = 0; n < t.length; n += 1)
|
|
87
|
-
w(t[n]);
|
|
88
|
-
i = !1;
|
|
89
|
-
},
|
|
90
|
-
d(e) {
|
|
91
|
-
e && T(l);
|
|
92
|
-
for (let n = 0; n < t.length; n += 1)
|
|
93
|
-
t[n].d();
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
const D = 1e3, x = 180;
|
|
98
|
-
function P(o, l, t) {
|
|
99
|
-
let r, i, a, s, e, n, u, m, g, p, { floorIndex: d } = l, { floorplanData: c } = l, { getRuleDistanceText: h } = l;
|
|
100
|
-
return o.$$set = (f) => {
|
|
101
|
-
"floorIndex" in f && t(5, d = f.floorIndex), "floorplanData" in f && t(6, c = f.floorplanData), "getRuleDistanceText" in f && t(0, h = f.getRuleDistanceText);
|
|
102
|
-
}, o.$$.update = () => {
|
|
103
|
-
o.$$.dirty & 64 && t(1, r = c.bounding), o.$$.dirty & 96 && t(11, i = c.floorDatas[d].rules), o.$$.dirty & 2048 && t(12, a = Object.keys(i)), o.$$.dirty & 6144 && t(4, s = a.map((f) => [f, i[f]])), o.$$.dirty & 2 && t(9, e = r.max.x - r.min.x), o.$$.dirty & 2 && t(7, n = r.max.y - r.min.y), o.$$.dirty & 2 && t(10, u = r.max.x - r.min.x - (D - x) * 2), o.$$.dirty & 2 && t(8, m = r.max.y - r.min.y - (D - x) * 2), o.$$.dirty & 1536 && t(3, g = u / e * 100 + "%"), o.$$.dirty & 384 && t(2, p = m / n * 100 + "%");
|
|
104
|
-
}, [
|
|
105
|
-
h,
|
|
106
|
-
r,
|
|
107
|
-
p,
|
|
108
|
-
g,
|
|
109
|
-
s,
|
|
110
|
-
d,
|
|
111
|
-
c,
|
|
112
|
-
n,
|
|
113
|
-
m,
|
|
114
|
-
e,
|
|
115
|
-
u,
|
|
116
|
-
i,
|
|
117
|
-
a
|
|
118
|
-
];
|
|
119
|
-
}
|
|
120
|
-
class V extends I {
|
|
121
|
-
constructor(l) {
|
|
122
|
-
super(), j(
|
|
123
|
-
this,
|
|
124
|
-
l,
|
|
125
|
-
P,
|
|
126
|
-
N,
|
|
127
|
-
L,
|
|
128
|
-
{
|
|
129
|
-
floorIndex: 5,
|
|
130
|
-
floorplanData: 6,
|
|
131
|
-
getRuleDistanceText: 0
|
|
132
|
-
},
|
|
133
|
-
J
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
export {
|
|
138
|
-
V as default
|
|
139
|
-
};
|
|
1
|
+
"use strict";const r=require("svelte/internal"),k=require("./RuleItem.js");function x(i){r.append_styles(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function y(i,l,t){const o=i.slice();return o[13]=l[t][0],o[14]=l[t][1],o}function b(i,l){let t,o,a;const s=[{type:l[13],data:l[14],bounding:l[1],getRuleDistanceText:l[0]}];let f={};for(let e=0;e<s.length;e+=1)f=r.assign(f,s[e]);return o=new k.RuleItem({props:f}),{key:i,first:null,c(){t=r.empty(),r.create_component(o.$$.fragment),this.first=t},m(e,n){r.insert(e,t,n),r.mount_component(o,e,n),a=!0},p(e,n){l=e;const u=n&19?r.get_spread_update(s,[{type:l[13],data:l[14],bounding:l[1],getRuleDistanceText:l[0]}]):{};o.$set(u)},i(e){a||(r.transition_in(o.$$.fragment,e),a=!0)},o(e){r.transition_out(o.$$.fragment,e),a=!1},d(e){e&&r.detach(t),r.destroy_component(o,e)}}}function w(i){let l,t=[],o=new Map,a,s=i[4];const f=e=>e[13];for(let e=0;e<s.length;e+=1){let n=y(i,s,e),u=f(n);o.set(u,t[e]=b(u,n))}return{c(){l=r.element("div");for(let e=0;e<t.length;e+=1)t[e].c();r.attr(l,"class","floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),r.set_style(l,"width",i[3],!1),r.set_style(l,"height",i[2],!1)},m(e,n){r.insert(e,l,n);for(let u=0;u<t.length;u+=1)t[u].m(l,null);a=!0},p(e,[n]){n&19&&(s=e[4],r.group_outros(),t=r.update_keyed_each(t,n,f,1,e,s,o,l,r.outro_and_destroy_block,b,null,y),r.check_outros()),n&8&&r.set_style(l,"width",e[3],!1),n&4&&r.set_style(l,"height",e[2],!1)},i(e){if(!a){for(let n=0;n<s.length;n+=1)r.transition_in(t[n]);a=!0}},o(e){for(let n=0;n<t.length;n+=1)r.transition_out(t[n]);a=!1},d(e){e&&r.detach(l);for(let n=0;n<t.length;n+=1)t[n].d()}}}const D=1e3,R=180;function I(i,l,t){let o,a,s,f,e,n,u,d,m,h,{floorIndex:g}=l,{floorplanData:c}=l,{getRuleDistanceText:p}=l;return i.$$set=_=>{"floorIndex"in _&&t(5,g=_.floorIndex),"floorplanData"in _&&t(6,c=_.floorplanData),"getRuleDistanceText"in _&&t(0,p=_.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&t(1,o=c.bounding),i.$$.dirty&96&&t(11,a=c.floorDatas[g].rules),i.$$.dirty&2048&&t(12,s=Object.keys(a)),i.$$.dirty&6144&&t(4,f=s.map(_=>[_,a[_]])),i.$$.dirty&2&&t(9,e=o.max.x-o.min.x),i.$$.dirty&2&&t(7,n=o.max.y-o.min.y),i.$$.dirty&2&&t(10,u=o.max.x-o.min.x-(D-R)*2),i.$$.dirty&2&&t(8,d=o.max.y-o.min.y-(D-R)*2),i.$$.dirty&1536&&t(3,m=u/e*100+"%"),i.$$.dirty&384&&t(2,h=d/n*100+"%")},[p,o,h,m,f,g,c,n,d,e,u,a,s]}class L extends r.SvelteComponent{constructor(l){super(),r.init(this,l,I,w,r.safe_not_equal,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},x)}}exports.RuleLabels=L;
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function h(n) {
|
|
3
|
-
c(n, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
4
|
-
}
|
|
5
|
-
function b(n) {
|
|
6
|
-
let e, f, l, a;
|
|
7
|
-
return {
|
|
8
|
-
c() {
|
|
9
|
-
e = u("div"), f = new o(!1), l = m(), a = new o(!1), f.a = l, a.a = null, _(e, "class", "floorplan-plugin__base-image svelte-ub47ya");
|
|
10
|
-
},
|
|
11
|
-
m(t, s) {
|
|
12
|
-
d(t, e, s), f.m(n[1], e), v(e, l), a.m(n[0], e);
|
|
13
|
-
},
|
|
14
|
-
p(t, [s]) {
|
|
15
|
-
s & 1 && a.p(t[0]);
|
|
16
|
-
},
|
|
17
|
-
i,
|
|
18
|
-
o: i,
|
|
19
|
-
d(t) {
|
|
20
|
-
t && y(e);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
function w(n, e, f) {
|
|
25
|
-
let { content: l } = e;
|
|
26
|
-
const a = `
|
|
1
|
+
"use strict";const e=require("svelte/internal");function o(l){e.append_styles(l,"svelte-ub47ya",".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}")}function g(l){let t,f,a,s;return{c(){t=e.element("div"),f=new e.HtmlTag(!1),a=e.space(),s=new e.HtmlTag(!1),f.a=a,s.a=null,e.attr(t,"class","floorplan-plugin__base-image svelte-ub47ya")},m(n,i){e.insert(n,t,i),f.m(l[1],t),e.append(t,a),s.m(l[0],t)},p(n,[i]){i&1&&s.p(n[0])},i:e.noop,o:e.noop,d(n){n&&e.detach(t)}}}function r(l,t,f){let{content:a}=t;const s=`
|
|
27
2
|
<style>
|
|
28
3
|
svg [type='lineGroup'] path {
|
|
29
4
|
fill: #ffffff;
|
|
@@ -32,16 +7,4 @@ function w(n, e, f) {
|
|
|
32
7
|
svg [type='lineItemGroup'] g g g g {
|
|
33
8
|
stroke: #ffffff;
|
|
34
9
|
}</style>
|
|
35
|
-
`;
|
|
36
|
-
return n.$$set = (t) => {
|
|
37
|
-
"content" in t && f(0, l = t.content);
|
|
38
|
-
}, [l, a];
|
|
39
|
-
}
|
|
40
|
-
class k extends p {
|
|
41
|
-
constructor(e) {
|
|
42
|
-
super(), r(this, e, w, b, g, { content: 0 }, h);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
k as default
|
|
47
|
-
};
|
|
10
|
+
`;return l.$$set=n=>{"content"in n&&f(0,a=n.content)},[a,s]}class c extends e.SvelteComponent{constructor(t){super(),e.init(this,t,r,g,e.safe_not_equal,{content:0},o)}}exports.SvgImage=c;
|
|
@@ -1,321 +1 @@
|
|
|
1
|
-
var E = Object.defineProperty, F = Object.defineProperties;
|
|
2
|
-
var C = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var b = Object.getOwnPropertySymbols;
|
|
4
|
-
var P = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var v = (h, n, t) => n in h ? E(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t, l = (h, n) => {
|
|
6
|
-
for (var t in n || (n = {}))
|
|
7
|
-
P.call(n, t) && v(h, t, n[t]);
|
|
8
|
-
if (b)
|
|
9
|
-
for (var t of b(n))
|
|
10
|
-
y.call(n, t) && v(h, t, n[t]);
|
|
11
|
-
return h;
|
|
12
|
-
}, m = (h, n) => F(h, C(n));
|
|
13
|
-
var s = (h, n, t) => (v(h, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
-
var c = (h, n, t) => new Promise((e, i) => {
|
|
15
|
-
var o = (d) => {
|
|
16
|
-
try {
|
|
17
|
-
a(t.next(d));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, r = (d) => {
|
|
22
|
-
try {
|
|
23
|
-
a(t.throw(d));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, a = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(o, r);
|
|
28
|
-
a((t = t.apply(h, n)).next());
|
|
29
|
-
});
|
|
30
|
-
import * as x from "three";
|
|
31
|
-
import { to as I } from "../../shared-utils/to.js";
|
|
32
|
-
import M from "../../shared-utils/equal.js";
|
|
33
|
-
import L from "../Components/Main.js";
|
|
34
|
-
import g from "../utils/formatData.js";
|
|
35
|
-
import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
|
|
36
|
-
import { omit as D } from "../../shared-utils/filter.js";
|
|
37
|
-
import { FLOOR_PLAN_ATTACHED_TO as O } from "../constant.js";
|
|
38
|
-
import { Controller as T } from "../../base/BasePluginWithData.js";
|
|
39
|
-
import k, { getAttachedY as B } from "../../shared-utils/getPxmm.js";
|
|
40
|
-
import H, { checkShowState as R } from "../utils/correctFiveState.js";
|
|
41
|
-
import S from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
|
-
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as G } from "../utils/constant.js";
|
|
43
|
-
function W(h) {
|
|
44
|
-
const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
45
|
-
return e || i;
|
|
46
|
-
}
|
|
47
|
-
function z(h) {
|
|
48
|
-
const { latitude: n, longitude: t } = h, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
49
|
-
return e && i;
|
|
50
|
-
}
|
|
51
|
-
class et extends T {
|
|
52
|
-
constructor(t, e) {
|
|
53
|
-
super(t);
|
|
54
|
-
s(this, "name", "modelFloorplanPlugin");
|
|
55
|
-
s(this, "state");
|
|
56
|
-
s(this, "data");
|
|
57
|
-
s(this, "showState");
|
|
58
|
-
s(this, "showPromise");
|
|
59
|
-
s(this, "app");
|
|
60
|
-
s(this, "panoIndex", 0);
|
|
61
|
-
s(this, "floorIndex", 0);
|
|
62
|
-
s(this, "selector");
|
|
63
|
-
s(this, "showRejection");
|
|
64
|
-
s(this, "wrapper");
|
|
65
|
-
s(this, "container", document.createElement("div"));
|
|
66
|
-
s(this, "lastPanoramaLongitude", 0);
|
|
67
|
-
s(this, "size", { width: 0, height: 0 });
|
|
68
|
-
s(this, "hasAddedEventListener", !1);
|
|
69
|
-
s(this, "isHiddenByHideFunc", !1);
|
|
70
|
-
s(this, "dispose", () => {
|
|
71
|
-
var t, e;
|
|
72
|
-
this.removeEventListener(), (t = this.app) == null || t.$destroy(), this.app = void 0, (e = this.container) == null || e.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
|
|
73
|
-
});
|
|
74
|
-
s(this, "show", (...e) => c(this, [...e], function* (t = {}) {
|
|
75
|
-
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
76
|
-
return;
|
|
77
|
-
const i = t.userAction !== void 0 ? t.userAction : !0;
|
|
78
|
-
this.updateState({ visible: !0 }, i), this._show(t);
|
|
79
|
-
}));
|
|
80
|
-
s(this, "hide", (...e) => c(this, [...e], function* (t = {}) {
|
|
81
|
-
!this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, t.userAction || !0), this._hide(t)));
|
|
82
|
-
}));
|
|
83
|
-
s(this, "updateSize", () => {
|
|
84
|
-
if (!this.data || !R(this.five, this.showState) || !this.container || !this.wrapper)
|
|
85
|
-
return;
|
|
86
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, o = e.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = k(this.five, this.wrapper, this.floorIndex, r), d = Math.ceil(i * a), u = Math.ceil(o * a);
|
|
87
|
-
this.size.width === d && this.size.height === u || (this.container.style.width = d + "px", this.container.style.height = u + "px", this.size = { width: d, height: u });
|
|
88
|
-
});
|
|
89
|
-
s(this, "_disable", (t) => {
|
|
90
|
-
var i, o, r;
|
|
91
|
-
const { userAction: e } = t;
|
|
92
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (o = this.app) == null || o.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
93
|
-
});
|
|
94
|
-
s(this, "_enable", (t) => {
|
|
95
|
-
const { userAction: e } = t;
|
|
96
|
-
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
|
|
97
|
-
});
|
|
98
|
-
s(this, "_show", (t) => c(this, null, function* () {
|
|
99
|
-
var r;
|
|
100
|
-
if (!this.state.enabled)
|
|
101
|
-
return;
|
|
102
|
-
if (!((r = this.five.model) != null && r.loaded))
|
|
103
|
-
throw new Error(f.ModelNotLoaded);
|
|
104
|
-
if (!this.data)
|
|
105
|
-
throw new Error(f.DataNotLoaded);
|
|
106
|
-
this.isHiddenByHideFunc = !1;
|
|
107
|
-
const e = {
|
|
108
|
-
floorIndex: this.floorIndex,
|
|
109
|
-
modelOpacity: this.state.config.modelOpacity,
|
|
110
|
-
immediately: !1,
|
|
111
|
-
isAutoShow: !1,
|
|
112
|
-
userAction: !0
|
|
113
|
-
}, i = l(l({}, e), t), o = () => c(this, null, function* () {
|
|
114
|
-
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
115
|
-
let a = !1, d;
|
|
116
|
-
this.showRejection = (A) => {
|
|
117
|
-
a = !0, d = A;
|
|
118
|
-
};
|
|
119
|
-
const [u] = yield I(H(this.five, this.showState, i.userAction));
|
|
120
|
-
if (u)
|
|
121
|
-
throw u;
|
|
122
|
-
if (a)
|
|
123
|
-
throw d ? new Error(d) : new Error(f.UnknownError);
|
|
124
|
-
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
125
|
-
const p = i.modelOpacity, w = i.immediately ? 0 : G;
|
|
126
|
-
S(this.five, p, w), this.render(w);
|
|
127
|
-
});
|
|
128
|
-
return this.showPromise = o().then(() => {
|
|
129
|
-
this.hooks.emit("showAnimationEnded", {
|
|
130
|
-
auto: i.isAutoShow,
|
|
131
|
-
userAction: i.userAction
|
|
132
|
-
});
|
|
133
|
-
}).catch((a) => {
|
|
134
|
-
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && a instanceof Error)
|
|
135
|
-
throw a;
|
|
136
|
-
}).finally(() => {
|
|
137
|
-
this.showPromise = void 0, this.showRejection = void 0;
|
|
138
|
-
}), this.showPromise;
|
|
139
|
-
}));
|
|
140
|
-
s(this, "_hide", (t) => {
|
|
141
|
-
var o;
|
|
142
|
-
(o = this.showRejection) == null || o.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
143
|
-
const i = l(l({}, {
|
|
144
|
-
userAction: !0,
|
|
145
|
-
isAutoHide: !1
|
|
146
|
-
}), t);
|
|
147
|
-
S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
148
|
-
});
|
|
149
|
-
s(this, "handleClick", () => {
|
|
150
|
-
if (!this.state.visible)
|
|
151
|
-
return;
|
|
152
|
-
if (this.hooks.emit("click"))
|
|
153
|
-
return !1;
|
|
154
|
-
});
|
|
155
|
-
s(this, "onFiveModelLoaded", () => {
|
|
156
|
-
if (this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
157
|
-
return;
|
|
158
|
-
const t = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
159
|
-
if (!t)
|
|
160
|
-
throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");
|
|
161
|
-
this.wrapper = t, t.append(this.container);
|
|
162
|
-
});
|
|
163
|
-
s(this, "onFiveModeChange", (t) => {
|
|
164
|
-
t !== this.showState.mode && (this.updateState({ visible: !1 }, !1), this._hide({ userAction: !1 }));
|
|
165
|
-
});
|
|
166
|
-
s(this, "onFivePanoArrived", (t) => {
|
|
167
|
-
var e;
|
|
168
|
-
!((e = this.five) != null && e.work) || (this.panoIndex = t, this.floorIndex = this.five.work.observers[t].floorIndex);
|
|
169
|
-
});
|
|
170
|
-
s(this, "onFiveCameraUpdate", (t, e) => {
|
|
171
|
-
if (!this.state.visible || this.showPromise)
|
|
172
|
-
return;
|
|
173
|
-
const i = this.five.getCurrentState();
|
|
174
|
-
this.updatePosition(), this.updateSize(), W(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
|
|
175
|
-
});
|
|
176
|
-
s(this, "onFiveWantsPanGesture", (t, e) => {
|
|
177
|
-
if (this.five.getCurrentState().mode === this.showState.mode && this.state.config.autoShowEnable !== !1) {
|
|
178
|
-
if (e && this.state.visible)
|
|
179
|
-
return this.five.updateCamera(this.showState, 0), !1;
|
|
180
|
-
if (e && !this.state.visible) {
|
|
181
|
-
if (this.isHiddenByHideFunc)
|
|
182
|
-
return;
|
|
183
|
-
const i = this.five.getCurrentState();
|
|
184
|
-
return i.mode !== this.showState.mode || this.state.visible ? void 0 : (z(i) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 })), !1);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
s(this, "onFiveWantsTapGesture", () => this.handleClick());
|
|
189
|
-
s(this, "onFiveWantsChangeMode", (t, e) => {
|
|
190
|
-
e === "Panorama" && t === this.showState.mode && (this.lastPanoramaLongitude = this.five.getCurrentState().longitude);
|
|
191
|
-
});
|
|
192
|
-
s(this, "onModelShownFloorChange", (t) => {
|
|
193
|
-
if (this.floorIndex !== t) {
|
|
194
|
-
if (t === null) {
|
|
195
|
-
const e = this.five.getCurrentState().panoIndex;
|
|
196
|
-
this.floorIndex = this.five.work.observers[e].floorIndex;
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
this.floorIndex = t, this.updateSize(), this.render();
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
e != null && e.selector && (this.selector = e.selector, console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")), this.showState = {
|
|
203
|
-
mode: "Mapview",
|
|
204
|
-
longitude: 0,
|
|
205
|
-
latitude: Math.PI / 2,
|
|
206
|
-
fov: 90
|
|
207
|
-
};
|
|
208
|
-
const i = {
|
|
209
|
-
northDesc: "\u5317",
|
|
210
|
-
modelOpacity: 1,
|
|
211
|
-
hoverEnable: !0,
|
|
212
|
-
compassEnable: !0,
|
|
213
|
-
autoShowEnable: !0,
|
|
214
|
-
ruleLabelsEnable: !0,
|
|
215
|
-
roomLabelsEnable: !0,
|
|
216
|
-
cameraImageUrl: _,
|
|
217
|
-
attachedTo: O.BOUNDING_CENTER,
|
|
218
|
-
getLabelElement: void 0,
|
|
219
|
-
adaptiveRoomLabelVisibleEnable: !0,
|
|
220
|
-
getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
|
|
221
|
-
getRuleDistanceText: (a) => a.toString()
|
|
222
|
-
}, o = e ? D(e, ["selector", "scale"]) : {}, r = l(l({}, i), o);
|
|
223
|
-
this.state = {
|
|
224
|
-
enabled: !0,
|
|
225
|
-
visible: !1,
|
|
226
|
-
config: r
|
|
227
|
-
}, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
228
|
-
}
|
|
229
|
-
load(t, e, i = !0) {
|
|
230
|
-
return c(this, null, function* () {
|
|
231
|
-
function o(p) {
|
|
232
|
-
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
233
|
-
}
|
|
234
|
-
const r = t;
|
|
235
|
-
r && !r.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
236
|
-
const a = JSON.parse(JSON.stringify(t)), d = o(a) ? a.data : a, u = this.data;
|
|
237
|
-
this.data = yield g(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
appendTo(t) {
|
|
241
|
-
if (this.wrapper = t, !!this.state.enabled)
|
|
242
|
-
return t.appendChild(this.container), this.render(), this;
|
|
243
|
-
}
|
|
244
|
-
enable(t = {}) {
|
|
245
|
-
if (this.state.enabled)
|
|
246
|
-
return;
|
|
247
|
-
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
248
|
-
this.updateState({ enabled: !0 }, t.userAction || e), this._enable({ userAction: e });
|
|
249
|
-
}
|
|
250
|
-
disable(t = {}) {
|
|
251
|
-
if (!this.state.enabled)
|
|
252
|
-
return;
|
|
253
|
-
const e = t.userAction !== void 0 ? t.userAction : !0;
|
|
254
|
-
this.updateState({ enabled: !1 }, t.userAction || e), this._disable({ userAction: e });
|
|
255
|
-
}
|
|
256
|
-
setState(t, e = {}) {
|
|
257
|
-
const i = this.state, o = e.userAction !== void 0 ? e.userAction : !0;
|
|
258
|
-
if (this.updateState(t, o), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: o }) : this._disable({ userAction: o })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
259
|
-
const r = { userAction: o };
|
|
260
|
-
t.visible ? this._show(r) : this._hide(r);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
changeConfigs(t, e = !0) {
|
|
264
|
-
this.updateState({ config: t }, e), this.render();
|
|
265
|
-
}
|
|
266
|
-
updatePosition() {
|
|
267
|
-
var a;
|
|
268
|
-
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new x.Vector3()).setY(t);
|
|
269
|
-
if (!e)
|
|
270
|
-
return;
|
|
271
|
-
const i = e.clone().project(this.five.camera), o = (i.x + 1) / 2, r = -(i.y - 1) / 2;
|
|
272
|
-
this.container.style.left = o * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
273
|
-
}
|
|
274
|
-
formatData(t) {
|
|
275
|
-
return c(this, null, function* () {
|
|
276
|
-
return yield g(t.data);
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
updateState(t, e) {
|
|
280
|
-
const i = this.state, o = t.config ? l(l({}, i.config), t.config) : i.config;
|
|
281
|
-
this.state = m(l(l({}, this.state), t), { config: o }), !M(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
282
|
-
}
|
|
283
|
-
initContainer() {
|
|
284
|
-
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
285
|
-
position: "absolute",
|
|
286
|
-
left: "50%",
|
|
287
|
-
top: "50%",
|
|
288
|
-
transform: "translate(-50%, -50%)",
|
|
289
|
-
zIndex: 10,
|
|
290
|
-
pointerEvents: "none"
|
|
291
|
-
}), this.five.addExtraElement(this.container);
|
|
292
|
-
}
|
|
293
|
-
addEventListener() {
|
|
294
|
-
if (!this.state.enabled || this.hasAddedEventListener)
|
|
295
|
-
return;
|
|
296
|
-
const t = this.five;
|
|
297
|
-
t.on("modeChange", this.onFiveModeChange), t.on("panoArrived", this.onFivePanoArrived), t.on("cameraUpdate", this.onFiveCameraUpdate), t.on("wantsPanGesture", this.onFiveWantsPanGesture), t.on("wantsTapGesture", this.onFiveWantsTapGesture), t.on("wantsChangeMode", this.onFiveWantsChangeMode), t.on("modelShownFloorChange", this.onModelShownFloorChange);
|
|
298
|
-
}
|
|
299
|
-
removeEventListener() {
|
|
300
|
-
const t = this.five;
|
|
301
|
-
this.hasAddedEventListener = !1, t.off("modelLoaded", this.onFiveModelLoaded), t.off("modeChange", this.onFiveModeChange), t.off("panoArrived", this.onFivePanoArrived), t.off("cameraUpdate", this.onFiveCameraUpdate), t.off("wantsPanGesture", this.onFiveWantsPanGesture), t.off("wantsTapGesture", this.onFiveWantsTapGesture), t.off("wantsChangeMode", this.onFiveWantsChangeMode), t.off("modelShownFloorChange", this.onModelShownFloorChange);
|
|
302
|
-
}
|
|
303
|
-
render(t) {
|
|
304
|
-
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
305
|
-
return;
|
|
306
|
-
const e = m(l({}, this.state.config), {
|
|
307
|
-
visible: this.state.visible,
|
|
308
|
-
duration: t != null ? t : 0,
|
|
309
|
-
panoIndex: this.panoIndex,
|
|
310
|
-
floorIndex: this.floorIndex,
|
|
311
|
-
floorplanData: this.data,
|
|
312
|
-
lastPanoramaLongitude: this.lastPanoramaLongitude
|
|
313
|
-
});
|
|
314
|
-
if (this.app)
|
|
315
|
-
return this.app.$set(e);
|
|
316
|
-
this.app = new L({ target: this.container, intro: !0, props: e });
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
export {
|
|
320
|
-
et as Controller
|
|
321
|
-
};
|
|
1
|
+
"use strict";var C=Object.defineProperty,_=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var v=(o,n,e)=>n in o?C(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e,u=(o,n)=>{for(var e in n||(n={}))P.call(n,e)&&v(o,e,n[e]);if(g)for(var e of g(n))M.call(n,e)&&v(o,e,n[e]);return o},m=(o,n)=>_(o,y(n));var s=(o,n,e)=>(v(o,typeof n!="symbol"?n+"":n,e),e);var c=(o,n,e)=>new Promise((t,i)=>{var a=d=>{try{r(e.next(d))}catch(l){i(l)}},h=d=>{try{r(e.throw(d))}catch(l){i(l)}},r=d=>d.done?t(d.value):Promise.resolve(d.value).then(a,h);r((e=e.apply(o,n)).next())});const x=require("three"),I=require("../../shared-utils/to.js"),D=require("../../shared-utils/equal.js"),O=require("../Components/Main.js"),b=require("../utils/formatData.js"),L=require("../Assets/camera.js"),T=require("../../shared-utils/filter.js"),j=require("../constant.js"),k=require("../../base/BasePluginWithData.js"),S=require("../../shared-utils/getPxmm.js"),E=require("../utils/correctFiveState.js"),F=require("../../shared-utils/changeModelCanvasOpacity.js"),f=require("../utils/constant.js");function B(o){if(o&&o.__esModule)return o;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:()=>o[e]})}}return n.default=o,Object.freeze(n)}const H=B(x);function q(o){const{latitude:n,longitude:e}=o,t=Math.abs(n-Math.PI/2)>5*Math.PI/180,i=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return t||i}function R(o){const{latitude:n,longitude:e}=o,t=Math.abs(n-Math.PI/2)<10*Math.PI/180,i=e<30*(Math.PI/180)||e>330*(Math.PI/180);return t&&i}class U extends k.Controller{constructor(e,t){super(e);s(this,"name","modelFloorplanPlugin");s(this,"state");s(this,"data");s(this,"showState");s(this,"showPromise");s(this,"app");s(this,"panoIndex",0);s(this,"floorIndex",0);s(this,"selector");s(this,"showRejection");s(this,"wrapper");s(this,"container",document.createElement("div"));s(this,"lastPanoramaLongitude",0);s(this,"size",{width:0,height:0});s(this,"hasAddedEventListener",!1);s(this,"isHiddenByHideFunc",!1);s(this,"dispose",()=>{var e,t;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(t=this.container)==null||t.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});s(this,"show",(...t)=>c(this,[...t],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const i=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},i),this._show(e)}));s(this,"hide",(...t)=>c(this,[...t],function*(e={}){!this.state.enabled||(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));s(this,"updateSize",()=>{if(!this.data||!E.checkShowState(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:t}=this.data.bounding,i=t.x-e.x,a=t.y-e.y,h=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,r=S.getPxmm(this.five,this.wrapper,this.floorIndex,h),d=Math.ceil(i*r),l=Math.ceil(a*r);this.size.width===d&&this.size.height===l||(this.container.style.width=d+"px",this.container.style.height=l+"px",this.size={width:d,height:l})});s(this,"_disable",e=>{var i,a,h;const{userAction:t}=e;this.hooks.emit("disable",{userAction:t}),(i=this.showRejection)==null||i.call(this,f.FloorplanErrorType.BreakOffByDisable),this.showPromise=void 0,(a=this.app)==null||a.$destroy(),this.app=void 0,(h=this.container)==null||h.remove(),this.removeEventListener()});s(this,"_enable",e=>{const{userAction:t}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:t}),this.state.visible&&this._show({userAction:t}))});s(this,"_show",e=>c(this,null,function*(){var h;if(!this.state.enabled)return;if(!((h=this.five.model)!=null&&h.loaded))throw new Error(f.FloorplanErrorType.ModelNotLoaded);if(!this.data)throw new Error(f.FloorplanErrorType.DataNotLoaded);this.isHiddenByHideFunc=!1;const t={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},i=u(u({},t),e),a=()=>c(this,null,function*(){this.hooks.emit("show",{userAction:i.userAction,auto:i.isAutoShow});let r=!1,d;this.showRejection=A=>{r=!0,d=A};const[l]=yield I.to(E.correctFiveState(this.five,this.showState,i.userAction));if(l)throw l;if(r)throw d?new Error(d):new Error(f.FloorplanErrorType.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=i.floorIndex,this.five.model.show(this.floorIndex);const p=i.modelOpacity,w=i.immediately?0:f.SHOW_ANIME_DURATION;F.changeModelCanvasOpacity(this.five,p,w),this.render(w)});return this.showPromise=a().then(()=>{this.hooks.emit("showAnimationEnded",{auto:i.isAutoShow,userAction:i.userAction})}).catch(r=>{if(this.updateState({visible:!1},i.userAction),!i.isAutoShow&&r instanceof Error)throw r}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));s(this,"_hide",e=>{var a;(a=this.showRejection)==null||a.call(this,f.FloorplanErrorType.BreakOffByHide),this.showPromise=void 0;const i=u(u({},{userAction:!0,isAutoHide:!1}),e);F.changeModelCanvasOpacity(this.five,1,0),this.hooks.emit("hide",{auto:i.isAutoHide,userAction:i.userAction}),this.render()});s(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});s(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("\u4E0D\u6B63\u786E\u7684\u7236\u5BB9\u5668\u9009\u62E9\u5668");this.wrapper=e,e.append(this.container)});s(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});s(this,"onFivePanoArrived",e=>{var t;!((t=this.five)!=null&&t.work)||(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});s(this,"onFiveCameraUpdate",(e,t)=>{if(!this.state.visible||this.showPromise)return;const i=this.five.getCurrentState();this.updatePosition(),this.updateSize(),q(i)&&(this.updateState({visible:!1},t),this._hide({userAction:t}))});s(this,"onFiveWantsPanGesture",(e,t)=>{if(this.five.getCurrentState().mode===this.showState.mode&&this.state.config.autoShowEnable!==!1){if(t&&this.state.visible)return this.five.updateCamera(this.showState,0),!1;if(t&&!this.state.visible){if(this.isHiddenByHideFunc)return;const i=this.five.getCurrentState();return i.mode!==this.showState.mode||this.state.visible?void 0:(R(i)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})),!1)}}});s(this,"onFiveWantsTapGesture",()=>this.handleClick());s(this,"onFiveWantsChangeMode",(e,t)=>{t==="Panorama"&&e===this.showState.mode&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});s(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const t=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[t].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});t!=null&&t.selector&&(this.selector=t.selector,console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5")),this.showState={mode:"Mapview",longitude:0,latitude:Math.PI/2,fov:90};const i={northDesc:"\u5317",modelOpacity:1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,cameraImageUrl:L.CAMERA_IMAGE,attachedTo:j.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:r=>(r/1e6).toFixed(1)+"\u33A1",getRuleDistanceText:r=>r.toString()},a=t?T.omit(t,["selector","scale"]):{},h=u(u({},i),a);this.state={enabled:!0,visible:!1,config:h},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,t,i=!0){return c(this,null,function*(){function a(p){return Object.prototype.hasOwnProperty.apply(p,["version"])}const h=e;h&&!h.version&&console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");const r=JSON.parse(JSON.stringify(e)),d=a(r)?r.data:r,l=this.data;this.data=yield b.formatData(d),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),t&&this.updateState(t,i),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const t=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||t),this._enable({userAction:t})}disable(e={}){if(!this.state.enabled)return;const t=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||t),this._disable({userAction:t})}setState(e,t={}){const i=this.state,a=t.userAction!==void 0?t.userAction:!0;if(this.updateState(e,a),e.enabled!==void 0&&i.enabled!==e.enabled&&(e.enabled?this._enable({userAction:a}):this._disable({userAction:a})),e.visible!==void 0&&i.visible!==e.visible){const h={userAction:a};e.visible?this._show(h):this._hide(h)}}changeConfigs(e,t=!0){this.updateState({config:e},t),this.render()}updatePosition(){var r;const e=S.getAttachedY(this.five,this.floorIndex,this.state.config.attachedTo),t=(r=this.five.model)==null?void 0:r.bounding.getCenter(new H.Vector3).setY(e);if(!t)return;const i=t.clone().project(this.five.camera),a=(i.x+1)/2,h=-(i.y-1)/2;this.container.style.left=a*100+"%",this.container.style.top=h*100+"%"}formatData(e){return c(this,null,function*(){return yield b.formatData(e.data)})}updateState(e,t){const i=this.state,a=e.config?u(u({},i.config),e.config):i.config;this.state=m(u(u({},this.state),e),{config:a}),!D.equal(this.state,i,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:i,userAction:t})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const t=m(u({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude});if(this.app)return this.app.$set(t);this.app=new O.Main({target:this.container,intro:!0,props:t})}}exports.Controller=U;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const n = (o, r) => new e(o, r);
|
|
3
|
-
export {
|
|
4
|
-
n as MapviewFloorplanPlugin,
|
|
5
|
-
n as default
|
|
6
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./Controller.js");require("three");require("../../shared-utils/to.js");require("../../shared-utils/equal.js");require("../../shared-utils/isTruelyObject.js");require("../Components/Main.js");require("svelte/internal");require("svelte/easing");require("svelte/transition");require("../Components/Camera.js");require("../Assets/camera.js");require("../../shared-utils/math/rad2Deg.js");require("../Components/Compass.js");require("../Assets/compass.js");require("../Components/CurrentFloor.js");require("svelte/store");require("../Components/BaseImage.js");require("../Components/Normalmage.js");require("../Components/SvgImage.js");require("../Components/RoomLabels/RoomLabels.js");require("../Components/RoomLabels/RoomLabel.js");require("svelte");require("../Components/RuleLabels/RuleLabels.js");require("../Components/RuleLabels/RuleItem.js");require("../Components/RoomMaterials/RoomMaterial.js");require("../utils/formatPosition.js");require("../Components/RoomMaterials/RoomMaterial_0.js");require("../Components/RoomMaterials/RoomMaterial_1.js");require("../Components/RoomMaterials/RoomMaterial_2.js");require("../Components/RoomHighlight/RoomHighlight.js");require("../Components/RoomHighlight/Room.js");require("../utils/formatData.js");require("../Assets/floorplanExtraObject.js");require("../../shared-utils/filter.js");require("../../shared-utils/tap.js");require("../constant.js");require("../../base/BasePluginWithData.js");require("../../base/BasePlugin.js");require("../../shared-utils/Subscribe.js");require("../../shared-utils/getPxmm.js");require("../utils/correctFiveState.js");require("../utils/constant.js");require("../../shared-utils/nearlyEqual.js");require("../../shared-utils/five/changeMode.js");require("../../shared-utils/changeModelCanvasOpacity.js");const e=(r,s)=>new o.Controller(r,s);exports.MapviewFloorplanPlugin=e;exports.default=e;
|