@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,103 +1 @@
|
|
|
1
|
-
var P = Object.defineProperty;
|
|
2
|
-
var w = (a, t, e) => t in a ? P(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
|
-
var s = (a, t, e) => (w(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import E from "hammerjs";
|
|
5
|
-
import * as y from "three";
|
|
6
|
-
import { Subscribe as b } from "@realsee/five";
|
|
7
|
-
function g(a, t, e) {
|
|
8
|
-
const n = a[t];
|
|
9
|
-
a[t] = a[e], a[e] = n;
|
|
10
|
-
}
|
|
11
|
-
function C(a, t, e) {
|
|
12
|
-
const n = e / 2;
|
|
13
|
-
for (let i = 1; i <= n; i++) {
|
|
14
|
-
const h = e - (i - 1);
|
|
15
|
-
for (let r = 1; r <= t; r++) {
|
|
16
|
-
const l = (i - 1) * t + r - 1, o = (h - 1) * t + r - 1;
|
|
17
|
-
g(a, l * 4 + 0, o * 4 + 0), g(a, l * 4 + 1, o * 4 + 1), g(a, l * 4 + 2, o * 4 + 2), g(a, l * 4 + 3, o * 4 + 3);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
class H {
|
|
22
|
-
constructor(t, e) {
|
|
23
|
-
s(this, "width");
|
|
24
|
-
s(this, "height");
|
|
25
|
-
s(this, "visible", !1);
|
|
26
|
-
s(this, "hooks", new b());
|
|
27
|
-
s(this, "contentDom", document.createElement("canvas"));
|
|
28
|
-
s(this, "five");
|
|
29
|
-
s(this, "scale");
|
|
30
|
-
s(this, "wrapper");
|
|
31
|
-
s(this, "config");
|
|
32
|
-
s(this, "offset", { x: 0, y: 0 });
|
|
33
|
-
s(this, "canvas", this.contentDom);
|
|
34
|
-
s(this, "context");
|
|
35
|
-
s(this, "renderCenter", new y.Vector3());
|
|
36
|
-
s(this, "lastPanEvent");
|
|
37
|
-
s(this, "hammer");
|
|
38
|
-
s(this, "onPan", (t) => {
|
|
39
|
-
var c, d, f, x;
|
|
40
|
-
if (!this.wrapper)
|
|
41
|
-
return;
|
|
42
|
-
const e = (d = (c = this.lastPanEvent) == null ? void 0 : c.deltaX) != null ? d : 0, n = (x = (f = this.lastPanEvent) == null ? void 0 : f.deltaY) != null ? x : 0, i = t.deltaX - e, h = t.deltaY - n;
|
|
43
|
-
if (this.lastPanEvent = t, this.hooks.emit("wantsPanGesture", { srcEvent: t, deltaX: i, deltaY: h }))
|
|
44
|
-
return;
|
|
45
|
-
const l = this.offset.x + i, o = this.offset.y + h;
|
|
46
|
-
this.contentDom.style.boxShadow = "0 2px 30px 0 rgba(0,0,0,0.20)", this.canvas.style.transform = `translate3d(${l}px, ${o}px, 100px)`, this.offset = { x: l, y: o };
|
|
47
|
-
});
|
|
48
|
-
s(this, "onPanEnd", (t) => {
|
|
49
|
-
this.lastPanEvent = void 0, this.contentDom.style.boxShadow = "none";
|
|
50
|
-
});
|
|
51
|
-
var i, h, r;
|
|
52
|
-
if (!t.renderer)
|
|
53
|
-
throw new Error("Five Render \u672A\u521D\u59CB\u5316");
|
|
54
|
-
this.five = t, this.scale = (i = e == null ? void 0 : e.scale) != null ? i : 2, this.width = (h = e == null ? void 0 : e.width) != null ? h : 190, this.height = (r = e == null ? void 0 : e.height) != null ? r : 190, this.config = {
|
|
55
|
-
dragEnabled: (e == null ? void 0 : e.dragEnabled) || !1,
|
|
56
|
-
autoFixPCPosition: (e == null ? void 0 : e.autoFixPCPosition) || !1,
|
|
57
|
-
initialPosition: (e == null ? void 0 : e.initialPosition) || { left: "0", top: "0" }
|
|
58
|
-
};
|
|
59
|
-
const n = this.canvas.getContext("2d");
|
|
60
|
-
if (!n)
|
|
61
|
-
throw new Error("CANNOT CREATE CONTEXT2D");
|
|
62
|
-
this.context = n, this.config.dragEnabled && (this.hammer = new E(this.canvas), this.hammer.on("pan", this.onPan), this.hammer.on("panend", this.onPanEnd));
|
|
63
|
-
}
|
|
64
|
-
dispose() {
|
|
65
|
-
var t;
|
|
66
|
-
this.clear(), this.remove(), (t = this.hammer) == null || t.destroy();
|
|
67
|
-
}
|
|
68
|
-
remove() {
|
|
69
|
-
this.canvas.remove(), this.visible = !1;
|
|
70
|
-
}
|
|
71
|
-
clear() {
|
|
72
|
-
this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
73
|
-
}
|
|
74
|
-
appendTo(t) {
|
|
75
|
-
this.wrapper = t, this.initStyle(), t.append(this.canvas), this.visible = !0;
|
|
76
|
-
}
|
|
77
|
-
renderWithPoint(t) {
|
|
78
|
-
!this.wrapper || (this.renderCenter = t, this.render(), this.config.autoFixPCPosition && this.autoFixPCPosition());
|
|
79
|
-
}
|
|
80
|
-
autoFixPCPosition() {
|
|
81
|
-
if (!this.wrapper)
|
|
82
|
-
return;
|
|
83
|
-
const { width: t, height: e } = this, n = this.renderCenter.clone().project(this.five.camera), i = (n.x + 1) / 2 * this.wrapper.clientWidth, h = -(n.x - 1) / 2 * this.wrapper.clientWidth, r = -(n.y - 1) / 2 * this.wrapper.clientHeight;
|
|
84
|
-
i < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = 90 + "px") : r < 183 ? (this.canvas.style.top = 90 + "px", this.canvas.style.left = -t / 2 + "px") : h < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = -t - 90 + "px") : (this.canvas.style.left = -t / 2 + "px", this.canvas.style.top = -e - 90 + "px"), this.canvas.style.transform = `translate3d(${i}px, ${r}px, 10px)`, this.offset = { x: i, y: r };
|
|
85
|
-
}
|
|
86
|
-
render() {
|
|
87
|
-
if (!this.five.renderer || !this.wrapper)
|
|
88
|
-
return;
|
|
89
|
-
const { scale: t, context: e, width: n, height: i } = this, h = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new y.Vector2()), l = 1, o = n / t, c = i / t, d = l * t, f = (h.x + 1) / 2 * r.x, x = (h.y + 1) / 2 * r.y, v = this.five.getPixels(f - o / 2, x - o / 2, o, c, d), p = Math.floor(n * l), m = Math.floor(i * l);
|
|
90
|
-
C(v, p, m);
|
|
91
|
-
const u = new ImageData(p, m);
|
|
92
|
-
u.data.set(v), e.putImageData(u, 0, 0);
|
|
93
|
-
}
|
|
94
|
-
initStyle() {
|
|
95
|
-
const t = this.canvas;
|
|
96
|
-
t.classList.add("five-plugin__magnifier"), t.style.position = "absolute", t.style.pointerEvents = "all", t.style.borderRadius = "50%", t.style.zIndex = "99";
|
|
97
|
-
const e = 1;
|
|
98
|
-
t.setAttribute("width", (this.width * e).toString()), t.setAttribute("height", (this.height * e).toString()), t.style.border = "2px solid rgba(255,255,255,0.20)", t.style.width = this.width + "px", t.style.height = this.height + "px", t.style.top = this.config.initialPosition.top, t.style.left = this.config.initialPosition.left, t.style.transform = "translate(0,0,100px)", this.config.dragEnabled && (this.canvas.style.cursor = "pointer");
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
export {
|
|
102
|
-
H as default
|
|
103
|
-
};
|
|
1
|
+
"use strict";var P=Object.defineProperty;var w=(i,t,e)=>t in i?P(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var n=(i,t,e)=>(w(i,typeof t!="symbol"?t+"":t,e),e);const b=require("hammerjs"),E=require("three"),C=require("@realsee/five"),D=i=>i&&typeof i=="object"&&"default"in i?i:{default:i};function S(i){if(i&&i.__esModule)return i;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const _=D(b),y=S(E);function u(i,t,e){const s=i[t];i[t]=i[e],i[e]=s}function H(i,t,e){const s=e/2;for(let a=1;a<=s;a++){const h=e-(a-1);for(let r=1;r<=t;r++){const c=(a-1)*t+r-1,l=(h-1)*t+r-1;u(i,c*4+0,l*4+0),u(i,c*4+1,l*4+1),u(i,c*4+2,l*4+2),u(i,c*4+3,l*4+3)}}}class R{constructor(t,e){n(this,"width");n(this,"height");n(this,"visible",!1);n(this,"hooks",new C.Subscribe);n(this,"contentDom",document.createElement("canvas"));n(this,"five");n(this,"scale");n(this,"wrapper");n(this,"config");n(this,"offset",{x:0,y:0});n(this,"canvas",this.contentDom);n(this,"context");n(this,"renderCenter",new y.Vector3);n(this,"lastPanEvent");n(this,"hammer");n(this,"onPan",t=>{var o,f,d,g;if(!this.wrapper)return;const e=(f=(o=this.lastPanEvent)==null?void 0:o.deltaX)!=null?f:0,s=(g=(d=this.lastPanEvent)==null?void 0:d.deltaY)!=null?g:0,a=t.deltaX-e,h=t.deltaY-s;if(this.lastPanEvent=t,this.hooks.emit("wantsPanGesture",{srcEvent:t,deltaX:a,deltaY:h}))return;const c=this.offset.x+a,l=this.offset.y+h;this.contentDom.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${c}px, ${l}px, 100px)`,this.offset={x:c,y:l}});n(this,"onPanEnd",t=>{this.lastPanEvent=void 0,this.contentDom.style.boxShadow="none"});var a,h,r;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(a=e==null?void 0:e.scale)!=null?a:2,this.width=(h=e==null?void 0:e.width)!=null?h:190,this.height=(r=e==null?void 0:e.height)!=null?r:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const s=this.canvas.getContext("2d");if(!s)throw new Error("CANNOT CREATE CONTEXT2D");this.context=s,this.config.dragEnabled&&(this.hammer=new _.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd))}dispose(){var t;this.clear(),this.remove(),(t=this.hammer)==null||t.destroy()}remove(){this.canvas.remove(),this.visible=!1}clear(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}appendTo(t){this.wrapper=t,this.initStyle(),t.append(this.canvas),this.visible=!0}renderWithPoint(t){!this.wrapper||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.wrapper)return;const{width:t,height:e}=this,s=this.renderCenter.clone().project(this.five.camera),a=(s.x+1)/2*this.wrapper.clientWidth,h=-(s.x-1)/2*this.wrapper.clientWidth,r=-(s.y-1)/2*this.wrapper.clientHeight;a<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):r<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):h<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${a}px, ${r}px, 10px)`,this.offset={x:a,y:r}}render(){if(!this.five.renderer||!this.wrapper)return;const{scale:t,context:e,width:s,height:a}=this,h=this.renderCenter.clone().project(this.five.camera),r=this.five.renderer.getSize(new y.Vector2),c=1,l=s/t,o=a/t,f=c*t,d=(h.x+1)/2*r.x,g=(h.y+1)/2*r.y,x=this.five.getPixels(d-l/2,g-l/2,l,o,f),v=Math.floor(s*c),p=Math.floor(a*c);H(x,v,p);const m=new ImageData(v,p);m.data.set(x),e.putImageData(m,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}}exports.Magnifier=R;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const o = `
|
|
1
|
+
"use strict";const t=require("./mobileHTML.js"),e=`
|
|
3
2
|
<svg class="fpm__revoke-icon" width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
4
3
|
<defs>
|
|
5
4
|
<linearGradient x1="47.631%" y1="55.183%" x2="2.967%" y2="86.323%" id="fpm__revoke-a">
|
|
@@ -19,7 +18,7 @@ const o = `
|
|
|
19
18
|
stroke-width=".5"
|
|
20
19
|
/>
|
|
21
20
|
</svg>
|
|
22
|
-
`,
|
|
21
|
+
`,o=`
|
|
23
22
|
<svg class="fpm__exit-icon width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
24
23
|
<defs>
|
|
25
24
|
<linearGradient x1="36.288%" y1="73.736%" x2="54.242%" y2="97.166%" id="fpm__exit-a">
|
|
@@ -40,7 +39,7 @@ const o = `
|
|
|
40
39
|
stroke-width=".5"
|
|
41
40
|
/>
|
|
42
41
|
</svg>
|
|
43
|
-
`,
|
|
42
|
+
`,i=`
|
|
44
43
|
<style>
|
|
45
44
|
.fpm__other-btn {
|
|
46
45
|
height: 40px;
|
|
@@ -97,10 +96,10 @@ const o = `
|
|
|
97
96
|
opacity: 1;
|
|
98
97
|
}
|
|
99
98
|
.fpm__main__start {
|
|
100
|
-
background-image: url(${t});
|
|
99
|
+
background-image: url(${t.startIconImage});
|
|
101
100
|
}
|
|
102
101
|
.fpm__main__end {
|
|
103
|
-
background-image: url(${
|
|
102
|
+
background-image: url(${t.endIconImage});
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
</style>
|
|
@@ -108,7 +107,7 @@ const o = `
|
|
|
108
107
|
<div class="fpm_operating-space">
|
|
109
108
|
<div class="fpm__other-btn">
|
|
110
109
|
<div class="fpm__other-content fpm__revoke">
|
|
111
|
-
${
|
|
110
|
+
${e}
|
|
112
111
|
<span class="fpm__text fpm__revoke-text">\u64A4\u9500</span>
|
|
113
112
|
</div>
|
|
114
113
|
</div>
|
|
@@ -118,12 +117,9 @@ const o = `
|
|
|
118
117
|
</div>
|
|
119
118
|
<div class="fpm__other-btn">
|
|
120
119
|
<div class="fpm__other-content fpm__exit">
|
|
121
|
-
${
|
|
120
|
+
${o}
|
|
122
121
|
<span class="fpm__text fpm__exit-text">\u9000\u51FA</span>
|
|
123
122
|
</div>
|
|
124
123
|
</div>
|
|
125
124
|
</div>
|
|
126
|
-
`;
|
|
127
|
-
export {
|
|
128
|
-
s as default
|
|
129
|
-
};
|
|
125
|
+
`;exports.htmlString=i;
|
|
@@ -1,50 +1 @@
|
|
|
1
|
-
var a =
|
|
2
|
-
var m = (i, e, t) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
-
var n = (i, e, t) => (m(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { mainIconStyle as o, mainItemStyle as r } from "./style.js";
|
|
5
|
-
class c {
|
|
6
|
-
constructor(e, t) {
|
|
7
|
-
n(this, "container");
|
|
8
|
-
n(this, "measureController");
|
|
9
|
-
n(this, "mainElement");
|
|
10
|
-
n(this, "onMouseEnter", () => {
|
|
11
|
-
const { mainItem: e } = this.mainElement;
|
|
12
|
-
e.style.opacity = "1";
|
|
13
|
-
});
|
|
14
|
-
n(this, "onMouseLeave", () => {
|
|
15
|
-
const { mainItem: e } = this.mainElement;
|
|
16
|
-
e.style.opacity = "0.85";
|
|
17
|
-
});
|
|
18
|
-
n(this, "onClick", () => {
|
|
19
|
-
this.measureController.getCurrentMode() === "Watch" ? this.measureController.changeMode("Edit") : this.measureController.save().changeMode("Watch");
|
|
20
|
-
});
|
|
21
|
-
n(this, "modeChangeHandler", (e) => {
|
|
22
|
-
e === "Watch" ? this.change2Add() : this.change2Done();
|
|
23
|
-
});
|
|
24
|
-
this.measureController = e, this.container = t, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, o), Object.assign(this.mainElement.mainItem.style, r), this.change2Add(), this.measureController.hook.on("modeChange", this.modeChangeHandler), this.mainElement.mainItem.addEventListener("click", this.onClick), this.mainElement.mainItem.addEventListener("mouseenter", this.onMouseEnter), this.mainElement.mainItem.addEventListener("mouseleave", this.onMouseLeave);
|
|
25
|
-
}
|
|
26
|
-
dispose() {
|
|
27
|
-
this.measureController.hook.off("modeChange", this.modeChangeHandler), this.mainElement.mainItem.removeEventListener("click", this.onClick), this.mainElement.mainItem.removeEventListener("mouseenter", this.onMouseEnter), this.mainElement.mainItem.removeEventListener("mouseleave", this.onMouseLeave);
|
|
28
|
-
}
|
|
29
|
-
getMainElement() {
|
|
30
|
-
const e = this.container.querySelector(".fpm__main-text"), t = this.container.querySelector(".fpm__main"), s = this.container.querySelector(".fpm__main-icon");
|
|
31
|
-
if (!t || !e || !s)
|
|
32
|
-
throw new Error("cannot find dom");
|
|
33
|
-
return { mainTextDom: e, mainItem: t, mainIcon: s };
|
|
34
|
-
}
|
|
35
|
-
change2Add() {
|
|
36
|
-
const { mainIcon: e, mainTextDom: t } = this.mainElement;
|
|
37
|
-
e.className.includes("fpm__main__start") || e.className.includes("fpm__main__end") && (e.style.transform = "scale(0.8)", t.className.includes("fpm__main-text__show") ? t.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : t.classList.add("fpm__main-text__hide"), setTimeout(() => {
|
|
38
|
-
e.classList.replace("fpm__main__end", "fpm__main__start"), e.style.transform = "scale(1)", t.innerText = "\u5F00\u59CB", t.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
|
|
39
|
-
}, 200));
|
|
40
|
-
}
|
|
41
|
-
change2Done() {
|
|
42
|
-
const { mainTextDom: e, mainIcon: t } = this.getMainElement();
|
|
43
|
-
e.innerText !== "\u7ED3\u675F" && (t.className.includes("fpm__main__end") || t.className.includes("fpm__main__start") && (t.style.transform = "scale(0.8)", e.className.includes("fpm__main-text__show") ? e.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : e.classList.add("fpm__main-text__hide"), setTimeout(() => {
|
|
44
|
-
t.classList.replace("fpm__main__start", "fpm__main__end"), t.style.transform = "scale(1)", e.innerText = "\u7ED3\u675F", e.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
|
|
45
|
-
}, 200)));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
c as MainBtnController
|
|
50
|
-
};
|
|
1
|
+
"use strict";var m=Object.defineProperty;var o=(s,e,t)=>e in s?m(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>(o(s,typeof e!="symbol"?e+"":e,t),t);const a=require("./style.js");class l{constructor(e,t){n(this,"container");n(this,"measureController");n(this,"mainElement");n(this,"onMouseEnter",()=>{const{mainItem:e}=this.mainElement;e.style.opacity="1"});n(this,"onMouseLeave",()=>{const{mainItem:e}=this.mainElement;e.style.opacity="0.85"});n(this,"onClick",()=>{this.measureController.getCurrentMode()==="Watch"?this.measureController.changeMode("Edit"):this.measureController.save().changeMode("Watch")});n(this,"modeChangeHandler",e=>{e==="Watch"?this.change2Add():this.change2Done()});this.measureController=e,this.container=t,this.mainElement=this.getMainElement(),Object.assign(this.mainElement.mainIcon.style,a.mainIconStyle),Object.assign(this.mainElement.mainItem.style,a.mainItemStyle),this.change2Add(),this.measureController.hook.on("modeChange",this.modeChangeHandler),this.mainElement.mainItem.addEventListener("click",this.onClick),this.mainElement.mainItem.addEventListener("mouseenter",this.onMouseEnter),this.mainElement.mainItem.addEventListener("mouseleave",this.onMouseLeave)}dispose(){this.measureController.hook.off("modeChange",this.modeChangeHandler),this.mainElement.mainItem.removeEventListener("click",this.onClick),this.mainElement.mainItem.removeEventListener("mouseenter",this.onMouseEnter),this.mainElement.mainItem.removeEventListener("mouseleave",this.onMouseLeave)}getMainElement(){const e=this.container.querySelector(".fpm__main-text"),t=this.container.querySelector(".fpm__main"),i=this.container.querySelector(".fpm__main-icon");if(!t||!e||!i)throw new Error("cannot find dom");return{mainTextDom:e,mainItem:t,mainIcon:i}}change2Add(){const{mainIcon:e,mainTextDom:t}=this.mainElement;e.className.includes("fpm__main__start")||e.className.includes("fpm__main__end")&&(e.style.transform="scale(0.8)",t.className.includes("fpm__main-text__show")?t.classList.replace("fpm__main-text__show","fpm__main-text__hide"):t.classList.add("fpm__main-text__hide"),setTimeout(()=>{e.classList.replace("fpm__main__end","fpm__main__start"),e.style.transform="scale(1)",t.innerText="\u5F00\u59CB",t.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200))}change2Done(){const{mainTextDom:e,mainIcon:t}=this.getMainElement();e.innerText!=="\u7ED3\u675F"&&(t.className.includes("fpm__main__end")||t.className.includes("fpm__main__start")&&(t.style.transform="scale(0.8)",e.className.includes("fpm__main-text__show")?e.classList.replace("fpm__main-text__show","fpm__main-text__hide"):e.classList.add("fpm__main-text__hide"),setTimeout(()=>{t.classList.replace("fpm__main__start","fpm__main__end"),t.style.transform="scale(1)",e.innerText="\u7ED3\u675F",e.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200)))}}exports.MainBtnController=l;
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
var i
|
|
2
|
-
var h = (r, e, o) => e in r ? i(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o;
|
|
3
|
-
var t = (r, e, o) => (h(r, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
-
class c {
|
|
5
|
-
constructor(e, o) {
|
|
6
|
-
t(this, "container");
|
|
7
|
-
t(this, "revokeIcon");
|
|
8
|
-
t(this, "revokeItem");
|
|
9
|
-
t(this, "measureController");
|
|
10
|
-
t(this, "onClick", () => {
|
|
11
|
-
this.measureController.revoke();
|
|
12
|
-
});
|
|
13
|
-
t(this, "onModeChange", (e) => {
|
|
14
|
-
if (e !== "Edit" && this.revokeItem.className.includes("enabled")) {
|
|
15
|
-
this.revokeItem.classList.remove("enabled");
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
this.measureController.hook.on("anchorChange", (o) => {
|
|
19
|
-
o && this.revokeItem.classList.add("enabled");
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
t(this, "handleRevoke", () => () => {
|
|
23
|
-
});
|
|
24
|
-
this.measureController = e, this.container = o;
|
|
25
|
-
const n = this.container.querySelector(".fpm__revoke-icon"), s = this.container.querySelector(".fpm__revoke");
|
|
26
|
-
if (!n || !s)
|
|
27
|
-
throw new Error("\u4E0D\u6B63\u786E\u7684\u9009\u62E9\u5668");
|
|
28
|
-
this.revokeIcon = n, this.revokeItem = s, this.revokeItem.addEventListener("click", this.onClick), e.hook.on("modeChange", this.onModeChange);
|
|
29
|
-
}
|
|
30
|
-
dispose() {
|
|
31
|
-
this.revokeItem.removeEventListener("click", this.onClick), this.measureController.hook.off("modeChange", this.onModeChange);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
c as default
|
|
36
|
-
};
|
|
1
|
+
"use strict";var i=Object.defineProperty;var h=(r,e,o)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o;var t=(r,e,o)=>(h(r,typeof e!="symbol"?e+"":e,o),o);class c{constructor(e,o){t(this,"container");t(this,"revokeIcon");t(this,"revokeItem");t(this,"measureController");t(this,"onClick",()=>{this.measureController.revoke()});t(this,"onModeChange",e=>{if(e!=="Edit"&&this.revokeItem.className.includes("enabled")){this.revokeItem.classList.remove("enabled");return}this.measureController.hook.on("anchorChange",o=>{o&&this.revokeItem.classList.add("enabled")})});t(this,"handleRevoke",()=>()=>{});this.measureController=e,this.container=o;const n=this.container.querySelector(".fpm__revoke-icon"),s=this.container.querySelector(".fpm__revoke");if(!n||!s)throw new Error("\u4E0D\u6B63\u786E\u7684\u9009\u62E9\u5668");this.revokeIcon=n,this.revokeItem=s,this.revokeItem.addEventListener("click",this.onClick),e.hook.on("modeChange",this.onModeChange)}dispose(){this.revokeItem.removeEventListener("click",this.onClick),this.measureController.hook.off("modeChange",this.onModeChange)}}exports.Revoke=c;
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var m = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
-
var i = (o, t, e) => (m(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import p from "./HTML.js";
|
|
5
|
-
import d from "./mobileHTML.js";
|
|
6
|
-
import { controllerBackgroundStyle as y, operatingSpaceStyle as u, uiWrapperStyle as f, textStyle as v, exitItemStyle as C, exitIconStyle as b } from "./style.js";
|
|
7
|
-
import { MainBtnController as E } from "./MainBtnController.js";
|
|
8
|
-
import { mobileMainBtnController as S } from "./mobileMainBtnController.js";
|
|
9
|
-
import x from "./Revoke/index.js";
|
|
10
|
-
class O {
|
|
11
|
-
constructor(t, e) {
|
|
12
|
-
i(this, "revoke");
|
|
13
|
-
i(this, "container");
|
|
14
|
-
i(this, "mainController");
|
|
15
|
-
i(this, "disposers", []);
|
|
16
|
-
i(this, "measureController");
|
|
17
|
-
i(this, "mode");
|
|
18
|
-
i(this, "handleExit", () => {
|
|
19
|
-
const t = this.container.querySelector(".fpm__exit-icon"), e = this.container.querySelector(".fpm__exit");
|
|
20
|
-
if (!e || !t)
|
|
21
|
-
throw new Error("cannot find dom");
|
|
22
|
-
this.mode === "pc" && (Object.assign(e.style, C), Object.assign(t == null ? void 0 : t.style, b));
|
|
23
|
-
const s = () => e.style.opacity = "1", n = () => e.style.opacity = "0.85", r = () => {
|
|
24
|
-
this.measureController.disable();
|
|
25
|
-
};
|
|
26
|
-
return e.addEventListener("click", r), e.addEventListener("mouseenter", s), e.addEventListener("mouseleave", n), () => {
|
|
27
|
-
e.removeEventListener("click", r), e.removeEventListener("mouseenter", s), e.removeEventListener("mouseleave", n);
|
|
28
|
-
};
|
|
29
|
-
});
|
|
30
|
-
var l, a;
|
|
31
|
-
this.measureController = t, this.mode = (l = e.openParams) != null && l.isMobile ? "mobile" : "pc", this.container = document.createElement("div"), this.container.innerHTML = (a = e.openParams) != null && a.isMobile ? d : p, this.container.classList.add("fpm__ui-controller", this.mode), e.container.appendChild(this.container);
|
|
32
|
-
const s = this.container.querySelectorAll(".fpm__text"), n = this.container.querySelector(".fpm_ui-bg"), r = this.container.querySelector(".fpm_operating-space");
|
|
33
|
-
Object.assign(n == null ? void 0 : n.style, y), Object.assign(r == null ? void 0 : r.style, u), Object.assign(this.container.style, f), s.forEach((c) => Object.assign(c.style, v));
|
|
34
|
-
}
|
|
35
|
-
dispose() {
|
|
36
|
-
this.hide(), this.container.remove();
|
|
37
|
-
}
|
|
38
|
-
show() {
|
|
39
|
-
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new x(this.measureController, this.container), this.mainController = new E(this.measureController, this.container)) : this.mainController = new S(this.measureController, this.container), this.disposers.push(this.handleExit()), this;
|
|
40
|
-
}
|
|
41
|
-
hide() {
|
|
42
|
-
var t, e;
|
|
43
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((t = this.revoke) == null || t.dispose()), (e = this.mainController) == null || e.dispose(), this.disposers.forEach((s) => s()), this.disposers = [], this;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
O as UIController
|
|
48
|
-
};
|
|
1
|
+
"use strict";var u=Object.defineProperty;var d=(o,t,e)=>t in o?u(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var n=(o,t,e)=>(d(o,typeof t!="symbol"?t+"":t,e),e);const m=require("./HTML.js"),y=require("./mobileHTML.js"),l=require("./style.js"),p=require("./MainBtnController.js"),_=require("./mobileMainBtnController.js"),M=require("./Revoke/index.js");class C{constructor(t,e){n(this,"revoke");n(this,"container");n(this,"mainController");n(this,"disposers",[]);n(this,"measureController");n(this,"mode");n(this,"handleExit",()=>{const t=this.container.querySelector(".fpm__exit-icon"),e=this.container.querySelector(".fpm__exit");if(!e||!t)throw new Error("cannot find dom");this.mode==="pc"&&(Object.assign(e.style,l.exitItemStyle),Object.assign(t==null?void 0:t.style,l.exitIconStyle));const s=()=>e.style.opacity="1",r=()=>e.style.opacity="0.85",i=()=>{this.measureController.disable()};return e.addEventListener("click",i),e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",r),()=>{e.removeEventListener("click",i),e.removeEventListener("mouseenter",s),e.removeEventListener("mouseleave",r)}});var a,c;this.measureController=t,this.mode=(a=e.openParams)!=null&&a.isMobile?"mobile":"pc",this.container=document.createElement("div"),this.container.innerHTML=(c=e.openParams)!=null&&c.isMobile?y.mobileHTMLString:m.htmlString,this.container.classList.add("fpm__ui-controller",this.mode),e.container.appendChild(this.container);const s=this.container.querySelectorAll(".fpm__text"),r=this.container.querySelector(".fpm_ui-bg"),i=this.container.querySelector(".fpm_operating-space");Object.assign(r==null?void 0:r.style,l.controllerBackgroundStyle),Object.assign(i==null?void 0:i.style,l.operatingSpaceStyle),Object.assign(this.container.style,l.uiWrapperStyle),s.forEach(h=>Object.assign(h.style,l.textStyle))}dispose(){this.hide(),this.container.remove()}show(){return this.container.style.display="block",this.container.style.opacity="1",this.container.style.transform="translate(0, 0)",this.mode==="pc"?(this.revoke=new M.Revoke(this.measureController,this.container),this.mainController=new p.MainBtnController(this.measureController,this.container)):this.mainController=new _.mobileMainBtnController(this.measureController,this.container),this.disposers.push(this.handleExit()),this}hide(){var t,e;return this.container.style.display="none",this.container.style.opacity="0",this.container.style.transform="translate(0, 10px)",this.mode==="pc"&&((t=this.revoke)==null||t.dispose()),(e=this.mainController)==null||e.dispose(),this.disposers.forEach(s=>s()),this.disposers=[],this}}exports.UIController=C;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const I
|
|
1
|
+
"use strict";const I="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTUuMyUiIHk9Ii01LjMlIiB3aWR0aD0iMTEwLjUlIiBoZWlnaHQ9IjExMC41JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hhZG93Qmx1ck91dGVyMSIgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9Im91dCIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjUgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48ZmlsdGVyIHg9Ii0xMS40JSIgeT0iLTExLjQlIiB3aWR0aD0iMTIyLjklIiBoZWlnaHQ9IjEyMi45JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19jIj48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjUiIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dCbHVySW5uZXIxIi8+PGZlT2Zmc2V0IGluPSJzaGFkb3dCbHVySW5uZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldElubmVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hhZG93T2Zmc2V0SW5uZXIxIiBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIgcmVzdWx0PSJzaGFkb3dJbm5lcklubmVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC4zIDAiIGluPSJzaGFkb3dJbm5lcklubmVyMSIvPjwvZmlsdGVyPjxmaWx0ZXIgeD0iLTEyNi42JSIgeT0iLTMzNy41JSIgd2lkdGg9IjM1My4xJSIgaGVpZ2h0PSI3NzUlIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJwcmVmaXhfX2UiPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjE2IiBpbj0iU291cmNlR3JhcGhpYyIvPjwvZmlsdGVyPjxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMTAwJSIgeDI9IjUwJSIgeTI9IjAlIiBpZD0icHJlZml4X19kIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii43IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjI2LjQzMiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iODIuMzA1JSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjQiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJwcmVmaXhfX2YiPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjA1IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIuMiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzNiIgY3k9IjM2IiByPSIyOC40NDQiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19jKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSJ1cmwoI3ByZWZpeF9fZCkiIHN0cm9rZS13aWR0aD0iLjQiIGZpbGwtb3BhY2l0eT0iLjI0MSIgZmlsbD0iI0ZGRiIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGN4PSIzNiIgY3k9IjM2IiByPSIyOC4yNDQiLz48ZWxsaXBzZSBmaWxsPSIjRkZGIiBvcGFjaXR5PSIuNTk2IiBmaWx0ZXI9InVybCgjcHJlZml4X19lKSIgY3g9IjM2IiBjeT0iMzYiIHJ4PSIxOC45NjMiIHJ5PSI3LjExMSIvPjxwYXRoIGQ9Ik0zNiAwQzE2LjExOCAwIDAgMTYuMTE4IDAgMzZzMTYuMTE4IDM2IDM2IDM2IDM2LTE2LjExOCAzNi0zNlM1NS44ODIgMCAzNiAwem0wIDQuNDQ0YzE3LjQyOCAwIDMxLjU1NiAxNC4xMjggMzEuNTU2IDMxLjU1NlM1My40MjggNjcuNTU2IDM2IDY3LjU1NiA0LjQ0NCA1My40MjggNC40NDQgMzYgMTguNTcyIDQuNDQ0IDM2IDQuNDQ0eiIgZmlsbD0idXJsKCNwcmVmaXhfX2YpIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+",i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxNS41MSUiIHkxPSIxMi40OTclIiB4Mj0iODUuMjY1JSIgeTI9Ijg2LjE0MyUiIGlkPSJwcmVmaXhfX2IiPjxzdG9wIHN0b3AtY29sb3I9IiM5NUFFRkYiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjNjM4NkZGIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMTAwJSIgeDI9IjUwJSIgeTI9IjAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjOTlBRUZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjI2LjQzMiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iODIuMzA1JSIvPjxzdG9wIHN0b3AtY29sb3I9IiM5OUFFRkYiIHN0b3Atb3BhY2l0eT0iLjQiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJwcmVmaXhfX2QiPjxzdG9wIHN0b3AtY29sb3I9IiM4Nzk3RDIiIHN0b3Atb3BhY2l0eT0iLjA1IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzYyNzdDNyIgc3RvcC1vcGFjaXR5PSIuMiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48ZmlsdGVyIHg9Ii02My4zJSIgeT0iLTE2OC44JSIgd2lkdGg9IjIyNi42JSIgaGVpZ2h0PSI0MzcuNSUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgaWQ9InByZWZpeF9fYyI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iOCIgaW49IlNvdXJjZUdyYXBoaWMiLz48L2ZpbHRlcj48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0idXJsKCNwcmVmaXhfX2EpIiBzdHJva2Utd2lkdGg9Ii40IiBmaWxsPSJ1cmwoI3ByZWZpeF9fYikiIG9wYWNpdHk9Ii43IiBjeD0iMzYiIGN5PSIzNiIgcj0iMjguMjQ0Ii8+PGVsbGlwc2UgZmlsbD0iIzdDOTBEQSIgb3BhY2l0eT0iLjU5NiIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYykiIGN4PSIzNiIgY3k9IjM2IiByeD0iMTguOTYzIiByeT0iNy4xMTEiLz48cGF0aCBkPSJNMzYgMEMxNi4xMTggMCAwIDE2LjExOCAwIDM2czE2LjExOCAzNiAzNiAzNiAzNi0xNi4xMTggMzYtMzZTNTUuODgyIDAgMzYgMHptMCA0LjQ0NGMxNy40MjggMCAzMS41NTYgMTQuMTI4IDMxLjU1NiAzMS41NTZTNTMuNDI4IDY3LjU1NiAzNiA2Ny41NTYgNC40NDQgNTMuNDI4IDQuNDQ0IDM2IDE4LjU3MiA0LjQ0NCAzNiA0LjQ0NHoiIGZpbGw9InVybCgjcHJlZml4X19kKSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",l=`
|
|
2
2
|
<svg class="fpm__exit-icon width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<defs>
|
|
4
4
|
<radialGradient cx="50%" cy="50%" fx="50%" fy="50%" r="86.3016741%" id="radialGradient-1">
|
|
@@ -14,7 +14,7 @@ const I = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5
|
|
|
14
14
|
<path d="M19.1859205,4.10000004 C19.3691554,4.09993923 19.5526088,4.16602323 19.6925352,4.29904206 C19.8171021,4.41745965 19.8858582,4.56899486 19.8980316,4.7239943 C19.9103475,4.88080848 19.8647874,5.04088037 19.7661957,5.16777131 L19.7661957,5.16777131 L14.3769795,11.1697063 C14.1649599,11.4058657 14.0589501,11.7029328 14.0589501,12 C14.0589501,12.2970672 14.1649599,12.5941343 14.3769795,12.8302937 L14.3769795,12.8302937 L19.6928862,18.7509889 C19.8173649,18.8694879 19.8860087,19.0210672 19.8980683,19.1760728 C19.9102693,19.3328965 19.8645908,19.4929392 19.7701664,19.6153111 C19.6099275,19.772809 19.4324896,19.8610254 19.2586274,19.8856752 C19.0810547,19.910851 18.9081905,19.8692156 18.765363,19.7704965 L18.765363,19.7704965 L11.9999322,13.2904645 L5.32508998,19.6962598 C5.16077108,19.8156635 4.99335965,19.8785989 4.83451361,19.8898888 C4.67442082,19.9012674 4.52389835,19.8596921 4.3968979,19.7731206 C4.23619359,19.588506 4.14871527,19.4164558 4.12392544,19.2589757 C4.09801173,19.094356 4.14341261,18.9485987 4.23380428,18.8322287 L4.23380428,18.8322287 L9.62302046,12.8302937 C9.81773049,12.6134147 9.92302682,12.3451662 9.93892926,12.0727274 C9.95499717,11.7974536 9.87975312,11.5179151 9.70614397,11.2737767 L9.70614397,11.2737767 L4.31595492,5.25860214 C4.17860663,5.08857057 4.11166276,4.9104714 4.11172409,4.7432513 C4.11178577,4.57506821 4.18051603,4.41972395 4.30746483,4.29904206 C4.43371817,4.17902131 4.59543385,4.11349344 4.76041858,4.10187732 L4.76041858,4.10187732 L12.0000677,10.7085251 L18.6794563,4.29937602 C18.8192839,4.16626546 19.0026873,4.10006086 19.1859205,4.10000004 Z" id="\u5F62\u72B6\u7ED3\u5408"></path>
|
|
15
15
|
</g>
|
|
16
16
|
</svg>
|
|
17
|
-
`,
|
|
17
|
+
`,m=`
|
|
18
18
|
<style>
|
|
19
19
|
.mobile .fpm__exit {
|
|
20
20
|
position: absolute;
|
|
@@ -74,9 +74,4 @@ const I = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5
|
|
|
74
74
|
<div class="fpm__main-text fpm__main-btn-text">\u5F00\u59CB</div>
|
|
75
75
|
</div>
|
|
76
76
|
</div>
|
|
77
|
-
`;
|
|
78
|
-
export {
|
|
79
|
-
m as default,
|
|
80
|
-
i as endIconImage,
|
|
81
|
-
I as startIconImage
|
|
82
|
-
};
|
|
77
|
+
`;exports.endIconImage=i;exports.mobileHTMLString=m;exports.startIconImage=I;
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
var m = Object.
|
|
2
|
-
var s = (n, e, t) => e in n ? m(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
-
var i = (n, e, t) => (s(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { mainIconStyle as _, mainItemStyle as l } from "./style.js";
|
|
5
|
-
class o {
|
|
6
|
-
constructor(e, t) {
|
|
7
|
-
i(this, "container");
|
|
8
|
-
i(this, "measureController");
|
|
9
|
-
i(this, "mainElement");
|
|
10
|
-
i(this, "onClick", () => {
|
|
11
|
-
this.mainElement.mainTextDom.innerText === "\u5F00\u59CB" ? (this.measureController.hook.emit("willChangeState", "watching", "editing"), this.change2Done()) : (this.measureController.hook.emit("willChangeState", "editing", "watching"), this.change2Add());
|
|
12
|
-
});
|
|
13
|
-
this.measureController = e, this.container = t, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, _), Object.assign(this.mainElement.mainItem.style, l), this.change2Add(), this.mainElement.mainItem.addEventListener("click", this.onClick);
|
|
14
|
-
}
|
|
15
|
-
dispose() {
|
|
16
|
-
this.mainElement.mainItem.removeEventListener("click", this.onClick);
|
|
17
|
-
}
|
|
18
|
-
getMainElement() {
|
|
19
|
-
const e = this.container.querySelector(".fpm__main-text"), t = this.container.querySelector(".fpm__main"), a = this.container.querySelector(".fpm__main-icon");
|
|
20
|
-
if (!t || !e || !a)
|
|
21
|
-
throw new Error("cannot find dom");
|
|
22
|
-
return { mainTextDom: e, mainItem: t, mainIcon: a };
|
|
23
|
-
}
|
|
24
|
-
change2Add() {
|
|
25
|
-
const { mainIcon: e, mainTextDom: t } = this.mainElement;
|
|
26
|
-
e.className.includes("fpm__main__start") || e.className.includes("fpm__main__end") && (e.style.transform = "scale(0.8)", t.className.includes("fpm__main-text__show") ? t.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : t.classList.add("fpm__main-text__hide"), setTimeout(() => {
|
|
27
|
-
e.classList.replace("fpm__main__end", "fpm__main__start"), e.style.transform = "scale(1)", t.innerText = "\u5F00\u59CB", t.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
|
|
28
|
-
}, 200));
|
|
29
|
-
}
|
|
30
|
-
change2Done() {
|
|
31
|
-
const { mainTextDom: e, mainIcon: t } = this.mainElement;
|
|
32
|
-
e.innerText !== "\u7ED3\u675F" && (t.className.includes("fpm__main__end") || t.className.includes("fpm__main__start") && (t.style.transform = "scale(0.8)", e.className.includes("fpm__main-text__show") ? e.classList.replace("fpm__main-text__show", "fpm__main-text__hide") : e.classList.add("fpm__main-text__hide"), setTimeout(() => {
|
|
33
|
-
t.classList.replace("fpm__main__start", "fpm__main__end"), t.style.transform = "scale(1)", e.innerText = "\u7ED3\u675F", e.classList.replace("fpm__main-text__hide", "fpm__main-text__show");
|
|
34
|
-
}, 200)));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
o as mobileMainBtnController
|
|
39
|
-
};
|
|
1
|
+
"use strict";var m=Object.defineProperty;var _=(n,e,t)=>e in n?m(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var i=(n,e,t)=>(_(n,typeof e!="symbol"?e+"":e,t),t);const a=require("./style.js");class l{constructor(e,t){i(this,"container");i(this,"measureController");i(this,"mainElement");i(this,"onClick",()=>{this.mainElement.mainTextDom.innerText==="\u5F00\u59CB"?(this.measureController.hook.emit("willChangeState","watching","editing"),this.change2Done()):(this.measureController.hook.emit("willChangeState","editing","watching"),this.change2Add())});this.measureController=e,this.container=t,this.mainElement=this.getMainElement(),Object.assign(this.mainElement.mainIcon.style,a.mainIconStyle),Object.assign(this.mainElement.mainItem.style,a.mainItemStyle),this.change2Add(),this.mainElement.mainItem.addEventListener("click",this.onClick)}dispose(){this.mainElement.mainItem.removeEventListener("click",this.onClick)}getMainElement(){const e=this.container.querySelector(".fpm__main-text"),t=this.container.querySelector(".fpm__main"),s=this.container.querySelector(".fpm__main-icon");if(!t||!e||!s)throw new Error("cannot find dom");return{mainTextDom:e,mainItem:t,mainIcon:s}}change2Add(){const{mainIcon:e,mainTextDom:t}=this.mainElement;e.className.includes("fpm__main__start")||e.className.includes("fpm__main__end")&&(e.style.transform="scale(0.8)",t.className.includes("fpm__main-text__show")?t.classList.replace("fpm__main-text__show","fpm__main-text__hide"):t.classList.add("fpm__main-text__hide"),setTimeout(()=>{e.classList.replace("fpm__main__end","fpm__main__start"),e.style.transform="scale(1)",t.innerText="\u5F00\u59CB",t.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200))}change2Done(){const{mainTextDom:e,mainIcon:t}=this.mainElement;e.innerText!=="\u7ED3\u675F"&&(t.className.includes("fpm__main__end")||t.className.includes("fpm__main__start")&&(t.style.transform="scale(0.8)",e.className.includes("fpm__main-text__show")?e.classList.replace("fpm__main-text__show","fpm__main-text__hide"):e.classList.add("fpm__main-text__hide"),setTimeout(()=>{t.classList.replace("fpm__main__start","fpm__main__end"),t.style.transform="scale(1)",e.innerText="\u7ED3\u675F",e.classList.replace("fpm__main-text__hide","fpm__main-text__show")},200)))}}exports.mobileMainBtnController=l;
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
const t = {
|
|
2
|
-
display: "none",
|
|
3
|
-
position: "absolute",
|
|
4
|
-
top: "0",
|
|
5
|
-
left: "0",
|
|
6
|
-
width: "100%",
|
|
7
|
-
height: "100%",
|
|
8
|
-
opacity: "0",
|
|
9
|
-
transform: "translate(0, 10px)",
|
|
10
|
-
transition: "opacity 500ms ease-in-out, transform 500ms ease-in-out"
|
|
11
|
-
}, e = {
|
|
12
|
-
position: "absolute",
|
|
13
|
-
left: "50%",
|
|
14
|
-
bottom: "32px",
|
|
15
|
-
transform: "translateX(-50%)",
|
|
16
|
-
height: "89px",
|
|
17
|
-
display: "flex",
|
|
18
|
-
justifyContent: "space-between",
|
|
19
|
-
alignItems: "center",
|
|
20
|
-
fontSize: "14px",
|
|
21
|
-
pointerEvents: "all",
|
|
22
|
-
color: "#fff",
|
|
23
|
-
zIndex: "10"
|
|
24
|
-
}, o = {
|
|
25
|
-
position: "absolute",
|
|
26
|
-
bottom: "0",
|
|
27
|
-
left: "0",
|
|
28
|
-
opacity: "0.5",
|
|
29
|
-
width: "100%",
|
|
30
|
-
height: "184px",
|
|
31
|
-
background: "linear-gradient(180deg, rgba(0,0,0,0.00) 0%, #000000 100%)",
|
|
32
|
-
zIndex: "0"
|
|
33
|
-
}, n = {
|
|
34
|
-
margin: "0 64px"
|
|
35
|
-
}, i = {
|
|
36
|
-
opacity: "0.85"
|
|
37
|
-
}, a = {
|
|
38
|
-
width: "72px",
|
|
39
|
-
height: "72px",
|
|
40
|
-
backgroundSize: "100%",
|
|
41
|
-
cursor: "pointer",
|
|
42
|
-
transition: "all 200ms ease-in-out"
|
|
43
|
-
}, r = {
|
|
44
|
-
width: "24px",
|
|
45
|
-
height: "24px",
|
|
46
|
-
marginRight: "4px",
|
|
47
|
-
backgroundSize: "100%",
|
|
48
|
-
cursor: "pointer"
|
|
49
|
-
}, s = {
|
|
50
|
-
cursor: "default",
|
|
51
|
-
userSelect: "none"
|
|
52
|
-
};
|
|
53
|
-
export {
|
|
54
|
-
o as controllerBackgroundStyle,
|
|
55
|
-
r as exitIconStyle,
|
|
56
|
-
i as exitItemStyle,
|
|
57
|
-
a as mainIconStyle,
|
|
58
|
-
n as mainItemStyle,
|
|
59
|
-
e as operatingSpaceStyle,
|
|
60
|
-
s as textStyle,
|
|
61
|
-
t as uiWrapperStyle
|
|
62
|
-
};
|
|
1
|
+
"use strict";const t={display:"none",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:"0",transform:"translate(0, 10px)",transition:"opacity 500ms ease-in-out, transform 500ms ease-in-out"},e={position:"absolute",left:"50%",bottom:"32px",transform:"translateX(-50%)",height:"89px",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"14px",pointerEvents:"all",color:"#fff",zIndex:"10"},o={position:"absolute",bottom:"0",left:"0",opacity:"0.5",width:"100%",height:"184px",background:"linear-gradient(180deg, rgba(0,0,0,0.00) 0%, #000000 100%)",zIndex:"0"},n={margin:"0 64px"},i={opacity:"0.85"},a={width:"72px",height:"72px",backgroundSize:"100%",cursor:"pointer",transition:"all 200ms ease-in-out"},r={width:"24px",height:"24px",marginRight:"4px",backgroundSize:"100%",cursor:"pointer"},l={cursor:"default",userSelect:"none"};exports.controllerBackgroundStyle=o;exports.exitIconStyle=r;exports.exitItemStyle=i;exports.mainIconStyle=a;exports.mainItemStyle=n;exports.operatingSpaceStyle=e;exports.textStyle=l;exports.uiWrapperStyle=t;
|