@realsee/dnalogel 2.21.0 → 2.21.1
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/components/index.js +329 -329
- package/dist/CSS3DRenderPlugin/Controller.d.ts +4 -1
- package/dist/PanoCompassPlugin/typings.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/dist/base/BasePlugin.d.ts +6 -3
- package/dist/base/BasePluginWithData.d.ts +2 -1
- package/dist/components/PaintBrush/style.d.ts +1 -1
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +5538 -5529
- package/dist/index.umd.js +55 -55
- package/dist/shared-utils/absoluteUrl.d.ts +5 -0
- package/dist/shared-utils/index.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +46 -43
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +36 -35
- package/docs/classes/Magnifier.html +21 -20
- package/docs/classes/ModelRoomLabelController.html +12 -11
- package/docs/classes/Object3DHelperController.html +45 -42
- package/docs/classes/PaintBrush.html +16 -15
- package/docs/classes/PanoMeasurePluginLine.html +24 -23
- package/docs/classes/PanoMeasurePluginModel.html +23 -22
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
- package/docs/classes/PanoTagPluginController.html +67 -64
- package/docs/classes/Util.BetterTween.html +10 -9
- package/docs/classes/Util.FivePointSelector.html +13 -12
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +18 -17
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +21 -20
- package/docs/enums/DIRECTION.html +10 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/DimensionType.html +8 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/PaintBrushTypeEnum.html +9 -8
- package/docs/enums/PointType.html +8 -7
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.absoluteUrl.html +369 -0
- package/docs/functions/Util.getCoordsFromClient.html +6 -5
- package/docs/functions/Util.getCoordsFromElement.html +6 -5
- package/docs/functions/Util.getFrameTime.html +6 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
- package/docs/functions/Util.isAbsoluteURL.html +6 -5
- package/docs/functions/Util.isModelLike.html +6 -5
- package/docs/functions/Util.isNil.html +6 -5
- package/docs/functions/Util.isPanoramaLike.html +6 -5
- package/docs/functions/Util.nextFrame.html +6 -5
- package/docs/functions/Util.notNil.html +6 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
- package/docs/functions/Util.tweenProgress.html +6 -5
- package/docs/functions/Util.uuid.html +6 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +6 -5
- package/docs/interfaces/AddTagConfig.html +7 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
- package/docs/interfaces/EventMap.html +16 -15
- package/docs/interfaces/FloorplanBounding.html +9 -8
- package/docs/interfaces/FloorplanData.html +11 -10
- package/docs/interfaces/FloorplanEntrance.html +12 -11
- package/docs/interfaces/FloorplanExtraObject.html +11 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
- package/docs/interfaces/FloorplanFloorData.html +10 -9
- package/docs/interfaces/FloorplanImagePosition.html +8 -7
- package/docs/interfaces/FloorplanObserver.html +10 -9
- package/docs/interfaces/FloorplanOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanPosition.html +8 -7
- package/docs/interfaces/FloorplanRoomItem.html +14 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
- package/docs/interfaces/FloorplanServerBounding.html +9 -8
- package/docs/interfaces/FloorplanServerComputedData.html +11 -10
- package/docs/interfaces/FloorplanServerData.html +8 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
- package/docs/interfaces/FloorplanServerEntrance.html +12 -11
- package/docs/interfaces/FloorplanServerFloorData.html +10 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
- package/docs/interfaces/FloorplanServerObserver.html +10 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanServerPosition.html +8 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
- package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
- package/docs/interfaces/HelperOffset.html +9 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -6
- package/docs/interfaces/ItemLabelPluginData.html +7 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/MinMax.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
- package/docs/interfaces/ModelViewPluginExportType.html +12 -11
- package/docs/interfaces/Object3DHelperState.html +9 -8
- package/docs/interfaces/ObjectHelperControllers.html +10 -9
- package/docs/interfaces/PaintBrushAction.html +13 -12
- package/docs/interfaces/PaintBrushConfigs.html +13 -12
- package/docs/interfaces/PaintBrushState.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +15 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginState.html +9 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
- package/docs/interfaces/Point.html +9 -8
- package/docs/interfaces/Room.html +10 -9
- package/docs/interfaces/RoomInfo.html +8 -7
- package/docs/interfaces/RoomLabel.html +15 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +10 -9
- package/docs/interfaces/State.html +9 -8
- package/docs/interfaces/TagCacheInterface.html +13 -12
- package/docs/interfaces/TagConfig.html +14 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +13 -12
- package/docs/interfaces/TagObjectGroup.html +7 -6
- package/docs/interfaces/TagStyle.html +7 -6
- package/docs/interfaces/Tags.html +10 -9
- package/docs/interfaces/TemporaryState.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +12 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
- package/docs/modules/CruisePluginTypes.html +6 -5
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +6 -5
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +7 -5
- package/docs/modules.html +5 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
- package/docs/types/DeprecatedTagProperty.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/ElementRenderer.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
- package/docs/types/GuideLinePluginType.PathItem.html +6 -5
- package/docs/types/GuideLinePluginType.PluginData.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PartialObjectDeep.html +6 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagInstance.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TagInstance.html +6 -5
- package/docs/types/TagPointType.html +6 -5
- package/docs/types/TagRendererMap.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/CSS3DRenderPlugin/Controller.d.ts +4 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -28
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CruisePlugin/Controller.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Components/Tag.js +68 -68
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
- package/libs/ModelTVVideoPlugin/Plugin.js +30 -29
- package/libs/ModelTVVideoPlugin/index.js +4 -3
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +21 -21
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/typings.d.ts +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +60 -60
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/base/BasePlugin.d.ts +6 -3
- package/libs/base/BasePlugin.js +14 -11
- package/libs/base/BasePluginWithData.d.ts +2 -1
- package/libs/components/PaintBrush/style.d.ts +1 -1
- package/libs/components/PaintBrush/style.js +4 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/index.js +2 -2
- package/libs/shared-utils/absoluteUrl.d.ts +5 -0
- package/libs/shared-utils/absoluteUrl.js +10 -0
- package/libs/shared-utils/index.d.ts +1 -1
- package/libs/shared-utils/index.js +18 -17
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
package/components/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
var z = Object.defineProperty;
|
|
2
|
+
var Z = (t, i, e) => i in t ? z(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
|
|
3
|
+
var C = (t, i, e) => (Z(t, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
function m() {
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const E = () => Promise.resolve(), k = {
|
|
7
7
|
__queue: Promise.resolve()
|
|
8
8
|
};
|
|
9
|
-
function
|
|
10
|
-
|
|
9
|
+
function G(t = E) {
|
|
10
|
+
k.__queue = k.__queue.then(t).catch(E);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const n = t.x, s = t.y, r = Math.floor(n /
|
|
12
|
+
function T(t, i, e) {
|
|
13
|
+
const n = t.x, s = t.y, r = Math.floor(n / i * 1e4) / 1e4, a = Math.floor(s / e * 1e4) / 1e4;
|
|
14
14
|
return { x: r, y: a };
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const { x: n, y: s } = t, r = n *
|
|
16
|
+
function L(t, i, e) {
|
|
17
|
+
const { x: n, y: s } = t, r = n * i, a = s * e;
|
|
18
18
|
return { x: r, y: a };
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function j(t) {
|
|
21
21
|
if (t.length < 2)
|
|
22
22
|
return {};
|
|
23
|
-
const
|
|
24
|
-
x: (
|
|
25
|
-
y: (
|
|
23
|
+
const i = t.slice(-2), e = i[0], n = {
|
|
24
|
+
x: (i[0].x + i[1].x) / 2,
|
|
25
|
+
y: (i[0].y + i[1].y) / 2
|
|
26
26
|
};
|
|
27
|
-
return { control:
|
|
27
|
+
return { control: e, end: n };
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function U(t, i, e = m) {
|
|
30
30
|
new Promise((n) => {
|
|
31
31
|
setTimeout(() => {
|
|
32
|
-
|
|
33
|
-
},
|
|
32
|
+
e(), n(!0);
|
|
33
|
+
}, i * t);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
function
|
|
38
|
-
|
|
36
|
+
const W = window, R = window.requestAnimationFrame || W.webkitRequestAnimationFrame || ((t) => setTimeout(t, 16));
|
|
37
|
+
function P(t, i = 0) {
|
|
38
|
+
i <= 0 ? R(t) : R(() => P(t, i - 1));
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var w = Object.freeze({
|
|
41
41
|
Linear: Object.freeze({
|
|
42
42
|
None: function(t) {
|
|
43
43
|
return t;
|
|
@@ -142,116 +142,116 @@ var S = Object.freeze({
|
|
|
142
142
|
}),
|
|
143
143
|
Back: Object.freeze({
|
|
144
144
|
In: function(t) {
|
|
145
|
-
var
|
|
146
|
-
return t === 1 ? 1 : t * t * ((
|
|
145
|
+
var i = 1.70158;
|
|
146
|
+
return t === 1 ? 1 : t * t * ((i + 1) * t - i);
|
|
147
147
|
},
|
|
148
148
|
Out: function(t) {
|
|
149
|
-
var
|
|
150
|
-
return t === 0 ? 0 : --t * t * ((
|
|
149
|
+
var i = 1.70158;
|
|
150
|
+
return t === 0 ? 0 : --t * t * ((i + 1) * t + i) + 1;
|
|
151
151
|
},
|
|
152
152
|
InOut: function(t) {
|
|
153
|
-
var
|
|
154
|
-
return (t *= 2) < 1 ? 0.5 * (t * t * ((
|
|
153
|
+
var i = 2.5949095;
|
|
154
|
+
return (t *= 2) < 1 ? 0.5 * (t * t * ((i + 1) * t - i)) : 0.5 * ((t -= 2) * t * ((i + 1) * t + i) + 2);
|
|
155
155
|
}
|
|
156
156
|
}),
|
|
157
157
|
Bounce: Object.freeze({
|
|
158
158
|
In: function(t) {
|
|
159
|
-
return 1 -
|
|
159
|
+
return 1 - w.Bounce.Out(1 - t);
|
|
160
160
|
},
|
|
161
161
|
Out: function(t) {
|
|
162
162
|
return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
|
|
163
163
|
},
|
|
164
164
|
InOut: function(t) {
|
|
165
|
-
return t < 0.5 ?
|
|
165
|
+
return t < 0.5 ? w.Bounce.In(t * 2) * 0.5 : w.Bounce.Out(t * 2 - 1) * 0.5 + 0.5;
|
|
166
166
|
}
|
|
167
167
|
}),
|
|
168
168
|
generatePow: function(t) {
|
|
169
169
|
return t === void 0 && (t = 4), t = t < Number.EPSILON ? Number.EPSILON : t, t = t > 1e4 ? 1e4 : t, {
|
|
170
|
-
In: function(
|
|
171
|
-
return Math.pow(
|
|
170
|
+
In: function(i) {
|
|
171
|
+
return Math.pow(i, t);
|
|
172
172
|
},
|
|
173
|
-
Out: function(
|
|
174
|
-
return 1 - Math.pow(1 -
|
|
173
|
+
Out: function(i) {
|
|
174
|
+
return 1 - Math.pow(1 - i, t);
|
|
175
175
|
},
|
|
176
|
-
InOut: function(
|
|
177
|
-
return
|
|
176
|
+
InOut: function(i) {
|
|
177
|
+
return i < 0.5 ? Math.pow(i * 2, t) / 2 : (1 - Math.pow(2 - i * 2, t)) / 2 + 0.5;
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), N = function() {
|
|
182
182
|
return performance.now();
|
|
183
|
-
},
|
|
183
|
+
}, Y = (
|
|
184
184
|
/** @class */
|
|
185
185
|
function() {
|
|
186
186
|
function t() {
|
|
187
187
|
this._tweens = {}, this._tweensAddedDuringUpdate = {};
|
|
188
188
|
}
|
|
189
189
|
return t.prototype.getAll = function() {
|
|
190
|
-
var
|
|
191
|
-
return Object.keys(this._tweens).map(function(
|
|
192
|
-
return
|
|
190
|
+
var i = this;
|
|
191
|
+
return Object.keys(this._tweens).map(function(e) {
|
|
192
|
+
return i._tweens[e];
|
|
193
193
|
});
|
|
194
194
|
}, t.prototype.removeAll = function() {
|
|
195
195
|
this._tweens = {};
|
|
196
|
-
}, t.prototype.add = function(
|
|
197
|
-
this._tweens[
|
|
198
|
-
}, t.prototype.remove = function(
|
|
199
|
-
delete this._tweens[
|
|
200
|
-
}, t.prototype.update = function(
|
|
201
|
-
|
|
196
|
+
}, t.prototype.add = function(i) {
|
|
197
|
+
this._tweens[i.getId()] = i, this._tweensAddedDuringUpdate[i.getId()] = i;
|
|
198
|
+
}, t.prototype.remove = function(i) {
|
|
199
|
+
delete this._tweens[i.getId()], delete this._tweensAddedDuringUpdate[i.getId()];
|
|
200
|
+
}, t.prototype.update = function(i, e) {
|
|
201
|
+
i === void 0 && (i = N()), e === void 0 && (e = !1);
|
|
202
202
|
var n = Object.keys(this._tweens);
|
|
203
203
|
if (n.length === 0)
|
|
204
204
|
return !1;
|
|
205
205
|
for (; n.length > 0; ) {
|
|
206
206
|
this._tweensAddedDuringUpdate = {};
|
|
207
207
|
for (var s = 0; s < n.length; s++) {
|
|
208
|
-
var r = this._tweens[n[s]], a = !
|
|
209
|
-
r && r.update(
|
|
208
|
+
var r = this._tweens[n[s]], a = !e;
|
|
209
|
+
r && r.update(i, a) === !1 && !e && delete this._tweens[n[s]];
|
|
210
210
|
}
|
|
211
211
|
n = Object.keys(this._tweensAddedDuringUpdate);
|
|
212
212
|
}
|
|
213
213
|
return !0;
|
|
214
214
|
}, t;
|
|
215
215
|
}()
|
|
216
|
-
),
|
|
217
|
-
Linear: function(t,
|
|
218
|
-
var
|
|
219
|
-
return
|
|
216
|
+
), y = {
|
|
217
|
+
Linear: function(t, i) {
|
|
218
|
+
var e = t.length - 1, n = e * i, s = Math.floor(n), r = y.Utils.Linear;
|
|
219
|
+
return i < 0 ? r(t[0], t[1], n) : i > 1 ? r(t[e], t[e - 1], e - n) : r(t[s], t[s + 1 > e ? e : s + 1], n - s);
|
|
220
220
|
},
|
|
221
|
-
Bezier: function(t,
|
|
222
|
-
for (var
|
|
223
|
-
|
|
224
|
-
return
|
|
221
|
+
Bezier: function(t, i) {
|
|
222
|
+
for (var e = 0, n = t.length - 1, s = Math.pow, r = y.Utils.Bernstein, a = 0; a <= n; a++)
|
|
223
|
+
e += s(1 - i, n - a) * s(i, a) * t[a] * r(n, a);
|
|
224
|
+
return e;
|
|
225
225
|
},
|
|
226
|
-
CatmullRom: function(t,
|
|
227
|
-
var
|
|
228
|
-
return t[0] === t[
|
|
226
|
+
CatmullRom: function(t, i) {
|
|
227
|
+
var e = t.length - 1, n = e * i, s = Math.floor(n), r = y.Utils.CatmullRom;
|
|
228
|
+
return t[0] === t[e] ? (i < 0 && (s = Math.floor(n = e * (1 + i))), r(t[(s - 1 + e) % e], t[s], t[(s + 1) % e], t[(s + 2) % e], n - s)) : i < 0 ? t[0] - (r(t[0], t[0], t[1], t[1], -n) - t[0]) : i > 1 ? t[e] - (r(t[e], t[e], t[e - 1], t[e - 1], n - e) - t[e]) : r(t[s ? s - 1 : 0], t[s], t[e < s + 1 ? e : s + 1], t[e < s + 2 ? e : s + 2], n - s);
|
|
229
229
|
},
|
|
230
230
|
Utils: {
|
|
231
|
-
Linear: function(t,
|
|
232
|
-
return (
|
|
231
|
+
Linear: function(t, i, e) {
|
|
232
|
+
return (i - t) * e + t;
|
|
233
233
|
},
|
|
234
|
-
Bernstein: function(t,
|
|
235
|
-
var
|
|
236
|
-
return
|
|
234
|
+
Bernstein: function(t, i) {
|
|
235
|
+
var e = y.Utils.Factorial;
|
|
236
|
+
return e(t) / e(i) / e(t - i);
|
|
237
237
|
},
|
|
238
238
|
Factorial: function() {
|
|
239
239
|
var t = [1];
|
|
240
|
-
return function(
|
|
241
|
-
var
|
|
242
|
-
if (t[
|
|
243
|
-
return t[
|
|
244
|
-
for (var n =
|
|
245
|
-
|
|
246
|
-
return t[
|
|
240
|
+
return function(i) {
|
|
241
|
+
var e = 1;
|
|
242
|
+
if (t[i])
|
|
243
|
+
return t[i];
|
|
244
|
+
for (var n = i; n > 1; n--)
|
|
245
|
+
e *= n;
|
|
246
|
+
return t[i] = e, e;
|
|
247
247
|
};
|
|
248
248
|
}(),
|
|
249
|
-
CatmullRom: function(t,
|
|
250
|
-
var r = (
|
|
251
|
-
return (2 *
|
|
249
|
+
CatmullRom: function(t, i, e, n, s) {
|
|
250
|
+
var r = (e - t) * 0.5, a = (n - i) * 0.5, o = s * s, c = s * o;
|
|
251
|
+
return (2 * i - 2 * e + r + a) * c + (-3 * i + 3 * e - 2 * r - a) * o + r * s + i;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, H = (
|
|
255
255
|
/** @class */
|
|
256
256
|
function() {
|
|
257
257
|
function t() {
|
|
@@ -260,11 +260,11 @@ var S = Object.freeze({
|
|
|
260
260
|
return t._nextId++;
|
|
261
261
|
}, t._nextId = 0, t;
|
|
262
262
|
}()
|
|
263
|
-
),
|
|
263
|
+
), B = new Y(), Q = (
|
|
264
264
|
/** @class */
|
|
265
265
|
function() {
|
|
266
|
-
function t(
|
|
267
|
-
|
|
266
|
+
function t(i, e) {
|
|
267
|
+
e === void 0 && (e = B), this._object = i, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = w.Linear.None, this._interpolationFunction = y.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = H.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
|
|
268
268
|
}
|
|
269
269
|
return t.prototype.getId = function() {
|
|
270
270
|
return this._id;
|
|
@@ -272,124 +272,124 @@ var S = Object.freeze({
|
|
|
272
272
|
return this._isPlaying;
|
|
273
273
|
}, t.prototype.isPaused = function() {
|
|
274
274
|
return this._isPaused;
|
|
275
|
-
}, t.prototype.to = function(
|
|
276
|
-
if (
|
|
275
|
+
}, t.prototype.to = function(i, e) {
|
|
276
|
+
if (e === void 0 && (e = 1e3), this._isPlaying)
|
|
277
277
|
throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");
|
|
278
|
-
return this._valuesEnd =
|
|
279
|
-
}, t.prototype.duration = function(
|
|
280
|
-
return
|
|
281
|
-
}, t.prototype.dynamic = function(
|
|
282
|
-
return
|
|
283
|
-
}, t.prototype.start = function(
|
|
284
|
-
if (
|
|
278
|
+
return this._valuesEnd = i, this._propertiesAreSetUp = !1, this._duration = e, this;
|
|
279
|
+
}, t.prototype.duration = function(i) {
|
|
280
|
+
return i === void 0 && (i = 1e3), this._duration = i, this;
|
|
281
|
+
}, t.prototype.dynamic = function(i) {
|
|
282
|
+
return i === void 0 && (i = !1), this._isDynamic = i, this;
|
|
283
|
+
}, t.prototype.start = function(i, e) {
|
|
284
|
+
if (i === void 0 && (i = N()), e === void 0 && (e = !1), this._isPlaying)
|
|
285
285
|
return this;
|
|
286
286
|
if (this._group && this._group.add(this), this._repeat = this._initialRepeat, this._reversed) {
|
|
287
287
|
this._reversed = !1;
|
|
288
288
|
for (var n in this._valuesStartRepeat)
|
|
289
289
|
this._swapEndStartRepeatValues(n), this._valuesStart[n] = this._valuesStartRepeat[n];
|
|
290
290
|
}
|
|
291
|
-
if (this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._isChainStopped = !1, this._startTime =
|
|
291
|
+
if (this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._isChainStopped = !1, this._startTime = i, this._startTime += this._delayTime, !this._propertiesAreSetUp || e) {
|
|
292
292
|
if (this._propertiesAreSetUp = !0, !this._isDynamic) {
|
|
293
293
|
var s = {};
|
|
294
294
|
for (var r in this._valuesEnd)
|
|
295
295
|
s[r] = this._valuesEnd[r];
|
|
296
296
|
this._valuesEnd = s;
|
|
297
297
|
}
|
|
298
|
-
this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat,
|
|
298
|
+
this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, e);
|
|
299
299
|
}
|
|
300
300
|
return this;
|
|
301
|
-
}, t.prototype.startFromCurrentValues = function(
|
|
302
|
-
return this.start(
|
|
303
|
-
}, t.prototype._setupProperties = function(
|
|
301
|
+
}, t.prototype.startFromCurrentValues = function(i) {
|
|
302
|
+
return this.start(i, !0);
|
|
303
|
+
}, t.prototype._setupProperties = function(i, e, n, s, r) {
|
|
304
304
|
for (var a in n) {
|
|
305
|
-
var o =
|
|
306
|
-
if (!(
|
|
307
|
-
if (
|
|
305
|
+
var o = i[a], c = Array.isArray(o), f = c ? "array" : typeof o, I = !c && Array.isArray(n[a]);
|
|
306
|
+
if (!(f === "undefined" || f === "function")) {
|
|
307
|
+
if (I) {
|
|
308
308
|
var u = n[a];
|
|
309
309
|
if (u.length === 0)
|
|
310
310
|
continue;
|
|
311
|
-
for (var l = [o], h = 0,
|
|
312
|
-
var
|
|
313
|
-
if (isNaN(
|
|
314
|
-
|
|
311
|
+
for (var l = [o], h = 0, d = u.length; h < d; h += 1) {
|
|
312
|
+
var g = this._handleRelativeValue(o, u[h]);
|
|
313
|
+
if (isNaN(g)) {
|
|
314
|
+
I = !1, console.warn("Found invalid interpolation list. Skipping.");
|
|
315
315
|
break;
|
|
316
316
|
}
|
|
317
|
-
l.push(
|
|
317
|
+
l.push(g);
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
I && (n[a] = l);
|
|
320
320
|
}
|
|
321
|
-
if ((
|
|
322
|
-
|
|
323
|
-
var
|
|
324
|
-
for (var
|
|
325
|
-
|
|
321
|
+
if ((f === "object" || c) && o && !I) {
|
|
322
|
+
e[a] = c ? [] : {};
|
|
323
|
+
var p = o;
|
|
324
|
+
for (var _ in p)
|
|
325
|
+
e[a][_] = p[_];
|
|
326
326
|
s[a] = c ? [] : {};
|
|
327
327
|
var u = n[a];
|
|
328
328
|
if (!this._isDynamic) {
|
|
329
|
-
var
|
|
330
|
-
for (var
|
|
331
|
-
|
|
332
|
-
n[a] = u =
|
|
329
|
+
var b = {};
|
|
330
|
+
for (var _ in u)
|
|
331
|
+
b[_] = u[_];
|
|
332
|
+
n[a] = u = b;
|
|
333
333
|
}
|
|
334
|
-
this._setupProperties(
|
|
334
|
+
this._setupProperties(p, e[a], u, s[a], r);
|
|
335
335
|
} else
|
|
336
|
-
(typeof
|
|
336
|
+
(typeof e[a] == "undefined" || r) && (e[a] = o), c || (e[a] *= 1), I ? s[a] = n[a].slice().reverse() : s[a] = e[a] || 0;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
}, t.prototype.stop = function() {
|
|
340
340
|
return this._isChainStopped || (this._isChainStopped = !0, this.stopChainedTweens()), this._isPlaying ? (this._group && this._group.remove(this), this._isPlaying = !1, this._isPaused = !1, this._onStopCallback && this._onStopCallback(this._object), this) : this;
|
|
341
341
|
}, t.prototype.end = function() {
|
|
342
342
|
return this._goToEnd = !0, this.update(1 / 0), this;
|
|
343
|
-
}, t.prototype.pause = function(
|
|
344
|
-
return
|
|
345
|
-
}, t.prototype.resume = function(
|
|
346
|
-
return
|
|
343
|
+
}, t.prototype.pause = function(i) {
|
|
344
|
+
return i === void 0 && (i = N()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = i, this._group && this._group.remove(this), this);
|
|
345
|
+
}, t.prototype.resume = function(i) {
|
|
346
|
+
return i === void 0 && (i = N()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += i - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
|
|
347
347
|
}, t.prototype.stopChainedTweens = function() {
|
|
348
|
-
for (var
|
|
349
|
-
this._chainedTweens[
|
|
348
|
+
for (var i = 0, e = this._chainedTweens.length; i < e; i++)
|
|
349
|
+
this._chainedTweens[i].stop();
|
|
350
350
|
return this;
|
|
351
|
-
}, t.prototype.group = function(
|
|
352
|
-
return
|
|
353
|
-
}, t.prototype.delay = function(
|
|
354
|
-
return
|
|
355
|
-
}, t.prototype.repeat = function(
|
|
356
|
-
return
|
|
357
|
-
}, t.prototype.repeatDelay = function(
|
|
358
|
-
return this._repeatDelayTime =
|
|
359
|
-
}, t.prototype.yoyo = function(
|
|
360
|
-
return
|
|
361
|
-
}, t.prototype.easing = function(
|
|
362
|
-
return
|
|
363
|
-
}, t.prototype.interpolation = function(
|
|
364
|
-
return
|
|
351
|
+
}, t.prototype.group = function(i) {
|
|
352
|
+
return i === void 0 && (i = B), this._group = i, this;
|
|
353
|
+
}, t.prototype.delay = function(i) {
|
|
354
|
+
return i === void 0 && (i = 0), this._delayTime = i, this;
|
|
355
|
+
}, t.prototype.repeat = function(i) {
|
|
356
|
+
return i === void 0 && (i = 0), this._initialRepeat = i, this._repeat = i, this;
|
|
357
|
+
}, t.prototype.repeatDelay = function(i) {
|
|
358
|
+
return this._repeatDelayTime = i, this;
|
|
359
|
+
}, t.prototype.yoyo = function(i) {
|
|
360
|
+
return i === void 0 && (i = !1), this._yoyo = i, this;
|
|
361
|
+
}, t.prototype.easing = function(i) {
|
|
362
|
+
return i === void 0 && (i = w.Linear.None), this._easingFunction = i, this;
|
|
363
|
+
}, t.prototype.interpolation = function(i) {
|
|
364
|
+
return i === void 0 && (i = y.Linear), this._interpolationFunction = i, this;
|
|
365
365
|
}, t.prototype.chain = function() {
|
|
366
|
-
for (var
|
|
367
|
-
e
|
|
368
|
-
return this._chainedTweens =
|
|
369
|
-
}, t.prototype.onStart = function(
|
|
370
|
-
return this._onStartCallback =
|
|
371
|
-
}, t.prototype.onEveryStart = function(
|
|
372
|
-
return this._onEveryStartCallback =
|
|
373
|
-
}, t.prototype.onUpdate = function(
|
|
374
|
-
return this._onUpdateCallback =
|
|
375
|
-
}, t.prototype.onRepeat = function(
|
|
376
|
-
return this._onRepeatCallback =
|
|
377
|
-
}, t.prototype.onComplete = function(
|
|
378
|
-
return this._onCompleteCallback =
|
|
379
|
-
}, t.prototype.onStop = function(
|
|
380
|
-
return this._onStopCallback =
|
|
381
|
-
}, t.prototype.update = function(
|
|
382
|
-
if (
|
|
366
|
+
for (var i = [], e = 0; e < arguments.length; e++)
|
|
367
|
+
i[e] = arguments[e];
|
|
368
|
+
return this._chainedTweens = i, this;
|
|
369
|
+
}, t.prototype.onStart = function(i) {
|
|
370
|
+
return this._onStartCallback = i, this;
|
|
371
|
+
}, t.prototype.onEveryStart = function(i) {
|
|
372
|
+
return this._onEveryStartCallback = i, this;
|
|
373
|
+
}, t.prototype.onUpdate = function(i) {
|
|
374
|
+
return this._onUpdateCallback = i, this;
|
|
375
|
+
}, t.prototype.onRepeat = function(i) {
|
|
376
|
+
return this._onRepeatCallback = i, this;
|
|
377
|
+
}, t.prototype.onComplete = function(i) {
|
|
378
|
+
return this._onCompleteCallback = i, this;
|
|
379
|
+
}, t.prototype.onStop = function(i) {
|
|
380
|
+
return this._onStopCallback = i, this;
|
|
381
|
+
}, t.prototype.update = function(i, e) {
|
|
382
|
+
if (i === void 0 && (i = N()), e === void 0 && (e = !0), this._isPaused)
|
|
383
383
|
return !0;
|
|
384
384
|
var n, s, r = this._startTime + this._duration;
|
|
385
385
|
if (!this._goToEnd && !this._isPlaying) {
|
|
386
|
-
if (
|
|
386
|
+
if (i > r)
|
|
387
387
|
return !1;
|
|
388
|
-
|
|
388
|
+
e && this.start(i, !0);
|
|
389
389
|
}
|
|
390
|
-
if (this._goToEnd = !1,
|
|
390
|
+
if (this._goToEnd = !1, i < this._startTime)
|
|
391
391
|
return !0;
|
|
392
|
-
this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0), s = (
|
|
392
|
+
this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0), s = (i - this._startTime) / this._duration, s = this._duration === 0 || s > 1 ? 1 : s;
|
|
393
393
|
var a = this._easingFunction(s);
|
|
394
394
|
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, a), this._onUpdateCallback && this._onUpdateCallback(this._object, s), s === 1)
|
|
395
395
|
if (this._repeat > 0) {
|
|
@@ -398,7 +398,7 @@ var S = Object.freeze({
|
|
|
398
398
|
!this._yoyo && typeof this._valuesEnd[n] == "string" && (this._valuesStartRepeat[n] = // eslint-disable-next-line
|
|
399
399
|
// @ts-ignore FIXME?
|
|
400
400
|
this._valuesStartRepeat[n] + parseFloat(this._valuesEnd[n])), this._yoyo && this._swapEndStartRepeatValues(n), this._valuesStart[n] = this._valuesStartRepeat[n];
|
|
401
|
-
return this._yoyo && (this._reversed = !this._reversed), this._repeatDelayTime !== void 0 ? this._startTime =
|
|
401
|
+
return this._yoyo && (this._reversed = !this._reversed), this._repeatDelayTime !== void 0 ? this._startTime = i + this._repeatDelayTime : this._startTime = i + this._delayTime, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
|
|
402
402
|
} else {
|
|
403
403
|
this._onCompleteCallback && this._onCompleteCallback(this._object);
|
|
404
404
|
for (var o = 0, c = this._chainedTweens.length; o < c; o++)
|
|
@@ -406,48 +406,48 @@ var S = Object.freeze({
|
|
|
406
406
|
return this._isPlaying = !1, !1;
|
|
407
407
|
}
|
|
408
408
|
return !0;
|
|
409
|
-
}, t.prototype._updateProperties = function(
|
|
409
|
+
}, t.prototype._updateProperties = function(i, e, n, s) {
|
|
410
410
|
for (var r in n)
|
|
411
|
-
if (
|
|
412
|
-
var a =
|
|
413
|
-
|
|
411
|
+
if (e[r] !== void 0) {
|
|
412
|
+
var a = e[r] || 0, o = n[r], c = Array.isArray(i[r]), f = Array.isArray(o), I = !c && f;
|
|
413
|
+
I ? i[r] = this._interpolationFunction(o, s) : typeof o == "object" && o ? this._updateProperties(i[r], a, o, s) : (o = this._handleRelativeValue(a, o), typeof o == "number" && (i[r] = a + (o - a) * s));
|
|
414
414
|
}
|
|
415
|
-
}, t.prototype._handleRelativeValue = function(
|
|
416
|
-
return typeof
|
|
417
|
-
}, t.prototype._swapEndStartRepeatValues = function(
|
|
418
|
-
var
|
|
419
|
-
typeof n == "string" ? this._valuesStartRepeat[
|
|
415
|
+
}, t.prototype._handleRelativeValue = function(i, e) {
|
|
416
|
+
return typeof e != "string" ? e : e.charAt(0) === "+" || e.charAt(0) === "-" ? i + parseFloat(e) : parseFloat(e);
|
|
417
|
+
}, t.prototype._swapEndStartRepeatValues = function(i) {
|
|
418
|
+
var e = this._valuesStartRepeat[i], n = this._valuesEnd[i];
|
|
419
|
+
typeof n == "string" ? this._valuesStartRepeat[i] = this._valuesStartRepeat[i] + parseFloat(n) : this._valuesStartRepeat[i] = this._valuesEnd[i], this._valuesEnd[i] = e;
|
|
420
420
|
}, t;
|
|
421
421
|
}()
|
|
422
|
-
),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
function
|
|
429
|
-
const s = new
|
|
422
|
+
), A = B;
|
|
423
|
+
A.getAll.bind(A);
|
|
424
|
+
A.removeAll.bind(A);
|
|
425
|
+
A.add.bind(A);
|
|
426
|
+
A.remove.bind(A);
|
|
427
|
+
A.update.bind(A);
|
|
428
|
+
function F(t, i, e, n = w.Linear.None) {
|
|
429
|
+
const s = new Q(t).to(i, e).easing(n).start();
|
|
430
430
|
function r(a) {
|
|
431
431
|
s.update(a) && requestAnimationFrame(r);
|
|
432
432
|
}
|
|
433
433
|
return requestAnimationFrame(r), s;
|
|
434
434
|
}
|
|
435
|
-
var
|
|
436
|
-
const
|
|
437
|
-
function
|
|
438
|
-
return t[
|
|
435
|
+
var M = /* @__PURE__ */ ((t) => (t.Drawline = "Drawline", t.Undo = "Undo", t.Exit = "Exit", t))(M || {});
|
|
436
|
+
const x = Symbol("$$PAINT_BRUSH_EVENT$$");
|
|
437
|
+
function S(t) {
|
|
438
|
+
return t[x] || (t[x] = {}), t[x];
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
t[
|
|
440
|
+
function J(t) {
|
|
441
|
+
t[x] || delete t[x];
|
|
442
442
|
}
|
|
443
|
-
class
|
|
443
|
+
class K {
|
|
444
444
|
/**
|
|
445
445
|
* 判断是否注册了事件
|
|
446
446
|
* @param name 事件类型
|
|
447
447
|
*/
|
|
448
|
-
hasListener(
|
|
449
|
-
const
|
|
450
|
-
return
|
|
448
|
+
hasListener(i) {
|
|
449
|
+
const e = S(this);
|
|
450
|
+
return e && e[i] && e[i].length > 0;
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
453
453
|
* 注册事件
|
|
@@ -458,9 +458,9 @@ class G {
|
|
|
458
458
|
* @template K 预设的监听事件名称
|
|
459
459
|
* @template C 回调函数函数上下文
|
|
460
460
|
*/
|
|
461
|
-
on(
|
|
462
|
-
const s =
|
|
463
|
-
return s[
|
|
461
|
+
on(i, e, n) {
|
|
462
|
+
const s = S(this);
|
|
463
|
+
return s[i] || (s[i] = []), s[i].push([e, n || !1]), () => this.off(i, e);
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
466
|
* 注册事件(是否只执行一次)
|
|
@@ -470,8 +470,8 @@ class G {
|
|
|
470
470
|
* @template K 预设的监听事件名称
|
|
471
471
|
* @template C 回调函数函数上下文
|
|
472
472
|
*/
|
|
473
|
-
once(
|
|
474
|
-
return this.on(
|
|
473
|
+
once(i, e) {
|
|
474
|
+
return this.on(i, e, !0);
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
477
|
* 解除事件
|
|
@@ -482,20 +482,20 @@ class G {
|
|
|
482
482
|
* @param callback 事件回调函数
|
|
483
483
|
* @template K 预设的监听事件名称
|
|
484
484
|
*/
|
|
485
|
-
off(
|
|
486
|
-
if (
|
|
487
|
-
|
|
485
|
+
off(i, e) {
|
|
486
|
+
if (i === void 0) {
|
|
487
|
+
J(this);
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
|
-
const n =
|
|
491
|
-
if (n[
|
|
492
|
-
n[
|
|
490
|
+
const n = S(this);
|
|
491
|
+
if (n[i] || (n[i] = []), e === void 0) {
|
|
492
|
+
n[i].length = 0;
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
495
|
let s = 0;
|
|
496
|
-
for (; s < n[
|
|
496
|
+
for (; s < n[i].length && n[i][s][0] !== e; s++)
|
|
497
497
|
;
|
|
498
|
-
s < n[
|
|
498
|
+
s < n[i].length && n[i].splice(s, 1);
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
501
|
* 触发事件
|
|
@@ -504,23 +504,23 @@ class G {
|
|
|
504
504
|
* @returns canceled 是否被触发取消
|
|
505
505
|
* @template K 预设的监听事件名称
|
|
506
506
|
*/
|
|
507
|
-
emit(
|
|
507
|
+
emit(i, ...e) {
|
|
508
508
|
let n = !1;
|
|
509
|
-
const r =
|
|
509
|
+
const r = S(this)[i] || [];
|
|
510
510
|
for (let a of r.slice()) {
|
|
511
|
-
const [o, c = !1] = a,
|
|
512
|
-
c && this.off(
|
|
511
|
+
const [o, c = !1] = a, f = o(...e);
|
|
512
|
+
c && this.off(i, o), f === !1 && (n = !0);
|
|
513
513
|
}
|
|
514
514
|
return n;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function v() {
|
|
518
518
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
return (
|
|
520
|
+
function X() {
|
|
521
|
+
return (v() + v() + "-" + v() + "-4" + v().substr(0, 3) + "-" + v() + "-" + v() + v() + v()).toLowerCase();
|
|
522
522
|
}
|
|
523
|
-
const
|
|
523
|
+
const V = `
|
|
524
524
|
<style type="text/css">
|
|
525
525
|
|
|
526
526
|
#_gl_paintBrush {
|
|
@@ -606,14 +606,14 @@ transition: all 500ms;
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
._paintBrush-ctrlitem--undo >.brush-icon{
|
|
609
|
-
background-image: url(
|
|
609
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjJweCIgaGVpZ2h0PSIyMnB4IiB2aWV3Qm94PSIwIDAgMjIgMjIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwJSIgeTE9IjQ1LjY3NTI0OCUiIHgyPSItMTYuOTYxMDIzJSIgeTI9Ijg0LjIzODQxOTglIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgc3RvcC1vcGFjaXR5PSIwLjMwMzY3Njc5MiIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNDAuMDAwMDAwLCAtNzQwLjAwMDAwMCkiPgogICAgICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNDAuMDAwMDAwLCA3NDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBmaWxsPSIjRDhEOEQ4IiBvcGFjaXR5PSIwIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjIiIGhlaWdodD0iMjIiPjwvcmVjdD4KICAgICAgICAgICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQuMDAwMDAwLCAyLjk5MDY1OSkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMCwzLjc1ODc1NzA5IEw5Ljg0Mzc1LDMuNzU4NzU3MDkgQzEyLjY5MTQ2ODIsMy43NTg3NTcwOSAxNSw2LjA2NzI4ODg1IDE1LDguOTE1MDA3MDkgQzE1LDExLjc2MjcyNTMgMTIuNjkxNDY4MiwxNC4wNzEyNTcxIDkuODQzNzUsMTQuMDcxMjU3MSBMMSwxNC4wNzEyNTcxIiBzdHJva2U9InVybCgjbGluZWFyR3JhZGllbnQtMSkiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cG9seWxpbmUgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBwb2ludHM9IjMuNzkwMjI3MDcgNy41Mzk2NjA2NCAwIDMuNzU4NzU3MDkgMy43OTAyMjcwNyAwIj48L3BvbHlsaW5lPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=);
|
|
610
610
|
background-size: 100%;
|
|
611
611
|
width: 22px;
|
|
612
612
|
height: 22px;
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
._paintBrush-ctrlitem--close >.brush-icon {
|
|
616
|
-
background-image: url(
|
|
616
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjJweCIgaGVpZ2h0PSIyMnB4IiB2aWV3Qm94PSIwIDAgMjIgMjIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwLjAyMDY5MyUiIHkxPSItMTMuNzMzMzc1MSUiIHgyPSI1MCUiIHkyPSIxMTQuMTEwOTk0JSIgaWQ9ImxpbmVhckdyYWRpZW50LTEiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkZGRkZGIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIHN0b3Atb3BhY2l0eT0iMC42MDEwNDM0ODgiIG9mZnNldD0iNDkuMzA4NDg4MiUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSIgaWQ9ImxpbmVhckdyYWRpZW50LTIiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRkZGRkZGIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iNTUuOTY4MTUzNSUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGRkZGRiIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnPgogICAgICAgICAgICA8cmVjdCBmaWxsPSIjRDhEOEQ4IiBvcGFjaXR5PSIwIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjIiIGhlaWdodD0iMjIiPjwvcmVjdD4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNC4wMDAwMDAsIDUuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICAgIDxnPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik03LC0yLjk4ODE2NTY4IEM3LjUxMjgzNTg0LC0yLjk4ODE2NTY4IDcuOTM1NTA3MTYsLTIuNjAyMTI1NDkgNy45OTMyNzIyNywtMi4xMDQ3ODY4MSBMOCwtMS45ODgxNjU2OCBMOCwxMy45OTgxMTQ2IEM4LDE0LjU1MDM5OTMgNy41NTIyODQ3NSwxNC45OTgxMTQ2IDcsMTQuOTk4MTE0NiBDNi40ODcxNjQxNiwxNC45OTgxMTQ2IDYuMDY0NDkyODQsMTQuNjEyMDc0NCA2LjAwNjcyNzczLDE0LjExNDczNTcgTDYsMTMuOTk4MTE0NiBMNiwtMS45ODgxNjU2OCBDNiwtMi41NDA0NTA0MyA2LjQ0NzcxNTI1LC0yLjk4ODE2NTY4IDcsLTIuOTg4MTY1NjggWiIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0xKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNy4wMDAwMDAsIDYuMDA0OTc0KSByb3RhdGUoLTQ1LjAwMDAwMCkgdHJhbnNsYXRlKC03LjAwMDAwMCwgLTYuMDA0OTc0KSAiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNywtMi45ODgxNjU2OCBDNy41MTI4MzU4NCwtMi45ODgxNjU2OCA3LjkzNTUwNzE2LC0yLjYwMjEyNTQ5IDcuOTkzMjcyMjcsLTIuMTA0Nzg2ODEgTDgsLTEuOTg4MTY1NjggTDgsMTMuOTk4MTE0NiBDOCwxNC41NTAzOTkzIDcuNTUyMjg0NzUsMTQuOTk4MTE0NiA3LDE0Ljk5ODExNDYgQzYuNDg3MTY0MTYsMTQuOTk4MTE0NiA2LjA2NDQ5Mjg0LDE0LjYxMjA3NDQgNi4wMDY3Mjc3MywxNC4xMTQ3MzU3IEw2LDEzLjk5ODExNDYgTDYsLTEuOTg4MTY1NjggQzYsLTIuNTQwNDUwNDMgNi40NDc3MTUyNSwtMi45ODgxNjU2OCA3LC0yLjk4ODE2NTY4IFoiIGZpbGw9InVybCgjbGluZWFyR3JhZGllbnQtMikiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcuMDAwMDAwLCA2LjAwNDk3NCkgcm90YXRlKC0xMzUuMDAwMDAwKSB0cmFuc2xhdGUoLTcuMDAwMDAwLCAtNi4wMDQ5NzQpICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=);
|
|
617
617
|
background-size: 100%;
|
|
618
618
|
width: 22px;
|
|
619
619
|
height: 22px;
|
|
@@ -621,21 +621,21 @@ transition: all 500ms;
|
|
|
621
621
|
|
|
622
622
|
</style>
|
|
623
623
|
`;
|
|
624
|
-
class
|
|
625
|
-
constructor(
|
|
624
|
+
class q extends K {
|
|
625
|
+
constructor(e) {
|
|
626
626
|
super();
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
this.configs =
|
|
627
|
+
C(this, "configs");
|
|
628
|
+
C(this, "clientWidth");
|
|
629
|
+
C(this, "clientHeight");
|
|
630
|
+
C(this, "ready", !1);
|
|
631
|
+
C(this, "uuid", X());
|
|
632
|
+
C(this, "tween");
|
|
633
|
+
C(this, "tweening", !1);
|
|
634
|
+
C(this, "container");
|
|
635
|
+
C(this, "canvas");
|
|
636
|
+
C(this, "data", {});
|
|
637
|
+
C(this, "tempLine", {});
|
|
638
|
+
this.configs = e, this.clientWidth = document.body.clientWidth, this.clientHeight = document.body.clientHeight, this.container = this.ifInsertToDOM(), this.canvas = {}, this.initCtrl();
|
|
639
639
|
}
|
|
640
640
|
get color() {
|
|
641
641
|
return this.configs.currentColor;
|
|
@@ -654,19 +654,19 @@ class K extends G {
|
|
|
654
654
|
else if (document.getElementById("_gl_paintBrush"))
|
|
655
655
|
this.container = document.getElementById("_gl_paintBrush");
|
|
656
656
|
else {
|
|
657
|
-
const
|
|
658
|
-
|
|
657
|
+
const e = document.createElement("div");
|
|
658
|
+
e.id = "_gl_paintBrush", document.body.appendChild(e), this.container = e;
|
|
659
659
|
}
|
|
660
|
-
return this.container.innerHTML =
|
|
660
|
+
return this.container.innerHTML = V, this.container;
|
|
661
661
|
}
|
|
662
662
|
/**
|
|
663
663
|
*
|
|
664
664
|
* @param className 初始化画板
|
|
665
665
|
* @returns
|
|
666
666
|
*/
|
|
667
|
-
initCanvas(
|
|
667
|
+
initCanvas(e) {
|
|
668
668
|
const n = document.createElement("canvas");
|
|
669
|
-
n.className =
|
|
669
|
+
n.className = e, n.width = this.clientWidth, n.height = this.clientHeight;
|
|
670
670
|
const s = n.getContext("2d");
|
|
671
671
|
if (s)
|
|
672
672
|
return s.lineWidth = 5 * this.dpr, s.lineCap = "round", s.lineJoin = "round", this.container.appendChild(n), n;
|
|
@@ -676,8 +676,8 @@ class K extends G {
|
|
|
676
676
|
* @returns
|
|
677
677
|
*/
|
|
678
678
|
initCtrl() {
|
|
679
|
-
const
|
|
680
|
-
|
|
679
|
+
const e = document.createElement("div");
|
|
680
|
+
e.className = "_paintBrush-ctrl";
|
|
681
681
|
const n = document.createElement("div");
|
|
682
682
|
n.className = "_paintBrush-ctrlinner";
|
|
683
683
|
const s = document.createElement("a");
|
|
@@ -687,17 +687,17 @@ class K extends G {
|
|
|
687
687
|
return;
|
|
688
688
|
const c = this.data[this.uuid].pop();
|
|
689
689
|
c && this.emitStateChange({
|
|
690
|
-
type:
|
|
690
|
+
type: M.Undo,
|
|
691
691
|
color: this.color,
|
|
692
692
|
ready: this.ready,
|
|
693
693
|
state: c,
|
|
694
694
|
uuid: this.uuid
|
|
695
695
|
});
|
|
696
|
-
const
|
|
696
|
+
const f = (l = this.canvas[this.uuid]) == null ? void 0 : l.getContext("2d");
|
|
697
697
|
if (!this.canvas[this.uuid])
|
|
698
698
|
return;
|
|
699
|
-
const { width:
|
|
700
|
-
|
|
699
|
+
const { width: I, height: u } = this.canvas[this.uuid];
|
|
700
|
+
f && f.clearRect(0, 0, I, u), this.data[this.uuid].forEach((h) => this.handleDrawLine(this.uuid, h, { withUndo: !0 }));
|
|
701
701
|
});
|
|
702
702
|
const r = document.createElement("a");
|
|
703
703
|
return r.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--close", r.addEventListener("click", (o) => {
|
|
@@ -705,67 +705,67 @@ class K extends G {
|
|
|
705
705
|
}), [s, r].forEach((o) => {
|
|
706
706
|
const c = document.createElement("i");
|
|
707
707
|
c.className = "brush-icon";
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
}), n.appendChild(s), n.appendChild(r),
|
|
708
|
+
const f = document.createElement("span");
|
|
709
|
+
f.className = "brush-txt", f.innerText = o.className.endsWith("undo") ? this.configs.onUndoText : this.configs.onExitText, o.appendChild(c), o.appendChild(f);
|
|
710
|
+
}), n.appendChild(s), n.appendChild(r), e.appendChild(n), this.container.appendChild(e), e;
|
|
711
711
|
}
|
|
712
712
|
openBrush() {
|
|
713
713
|
if (this.ready)
|
|
714
714
|
return;
|
|
715
715
|
this.canvas[this.uuid] || (this.canvas[this.uuid] = this.initCanvas("_paintBrush-canvas")), this.container.className = "brushing";
|
|
716
|
-
const
|
|
717
|
-
|
|
716
|
+
const e = this.canvas[this.uuid];
|
|
717
|
+
e.getContext("2d").clearRect(0, 0, e.width, e.height), this.openBrushHandle(), this.ready = !0, this.emit("readyChange", !0);
|
|
718
718
|
}
|
|
719
719
|
closeBrush() {
|
|
720
|
-
this.ready && (this.container.className = "", this.data = {}, this.tempLine = {}, Object.keys(this.canvas).forEach((
|
|
721
|
-
this.canvas[
|
|
722
|
-
const n = this.canvas[
|
|
723
|
-
n && n.clearRect(0, 0, this.canvas[
|
|
720
|
+
this.ready && (this.container.className = "", this.data = {}, this.tempLine = {}, Object.keys(this.canvas).forEach((e) => {
|
|
721
|
+
this.canvas[e].ontouchstart = () => !1, this.canvas[e].ontouchmove = () => !1, this.canvas[e].ontouchend = () => !1, this.canvas[e].ontouchcancel = () => !1;
|
|
722
|
+
const n = this.canvas[e].getContext("2d");
|
|
723
|
+
n && n.clearRect(0, 0, this.canvas[e].width, this.canvas[e].height);
|
|
724
724
|
}), this.ready = !1, this.emit("readyChange", !1), this.emitStateChange({
|
|
725
|
-
type:
|
|
725
|
+
type: M.Exit,
|
|
726
726
|
color: this.color,
|
|
727
727
|
ready: !1,
|
|
728
728
|
uuid: this.uuid
|
|
729
729
|
}));
|
|
730
730
|
}
|
|
731
|
-
updateCurrentColor(
|
|
731
|
+
updateCurrentColor(e) {
|
|
732
732
|
const n = this.canvas[this.uuid];
|
|
733
733
|
if (!n)
|
|
734
734
|
return;
|
|
735
735
|
const s = n.getContext("2d");
|
|
736
|
-
s && (this.configs.currentColor =
|
|
736
|
+
s && (this.configs.currentColor = e, s.strokeStyle = e);
|
|
737
737
|
}
|
|
738
738
|
openBrushHandle() {
|
|
739
|
-
const
|
|
740
|
-
if (!
|
|
739
|
+
const e = this.canvas[this.uuid];
|
|
740
|
+
if (!e)
|
|
741
741
|
return;
|
|
742
|
-
const n =
|
|
742
|
+
const n = e.getContext("2d");
|
|
743
743
|
if (!n)
|
|
744
744
|
return;
|
|
745
745
|
const s = this.color || "#6D92FF";
|
|
746
746
|
n.strokeStyle = s;
|
|
747
|
-
let r = null, a = [], o, c = [],
|
|
748
|
-
const
|
|
749
|
-
const
|
|
750
|
-
n.strokeStyle =
|
|
747
|
+
let r = null, a = [], o, c = [], f = 0;
|
|
748
|
+
const I = (u, l, h) => {
|
|
749
|
+
const d = this.color || "#ff0000";
|
|
750
|
+
n.strokeStyle = d, n.beginPath(), n.moveTo(u.x, u.y), n.quadraticCurveTo(l.x, l.y, h.x, h.y), n.stroke();
|
|
751
751
|
};
|
|
752
|
-
|
|
753
|
-
u.preventDefault(),
|
|
752
|
+
e.onmousedown = (u) => {
|
|
753
|
+
u.preventDefault(), f = Date.now();
|
|
754
754
|
const l = u.clientX, h = u.clientY;
|
|
755
|
-
a = [], a.push({ x: l, y: h }), r = { x: l, y: h }, o =
|
|
756
|
-
},
|
|
755
|
+
a = [], a.push({ x: l, y: h }), r = { x: l, y: h }, o = T({ x: l, y: h }, this.clientWidth, this.clientHeight), c = [];
|
|
756
|
+
}, e.onmousemove = (u) => {
|
|
757
757
|
if (u.preventDefault(), !r)
|
|
758
758
|
return;
|
|
759
759
|
const l = Number(u.clientX), h = Number(u.clientY);
|
|
760
|
-
if (Math.abs(l - r.x) < 5 && Math.abs(h - r.y) < 5 || (a.push({ x: l, y: h }), c.push(
|
|
760
|
+
if (Math.abs(l - r.x) < 5 && Math.abs(h - r.y) < 5 || (a.push({ x: l, y: h }), c.push(T({ x: l, y: h }, this.clientWidth, this.clientHeight)), a.length < 3))
|
|
761
761
|
return;
|
|
762
|
-
const { control:
|
|
763
|
-
!
|
|
764
|
-
},
|
|
762
|
+
const { control: d, end: g } = j(a);
|
|
763
|
+
!d || !g || (I(r, d, g), r = g);
|
|
764
|
+
}, e.onmouseup = (u) => {
|
|
765
765
|
if (u.preventDefault(), r = null, a.length < 3)
|
|
766
766
|
return;
|
|
767
767
|
this.data[this.uuid] || (this.data[this.uuid] = []);
|
|
768
|
-
const l = Date.now() -
|
|
768
|
+
const l = Date.now() - f, h = {
|
|
769
769
|
move: Object.assign({}, o),
|
|
770
770
|
uuid: this.uuid,
|
|
771
771
|
line: [...c],
|
|
@@ -773,32 +773,32 @@ class K extends G {
|
|
|
773
773
|
duration: l < 1280 ? l : l < 2e3 ? 1280 : 0
|
|
774
774
|
// 单次笔迹时长超过2000ms不加动画
|
|
775
775
|
};
|
|
776
|
-
this.data[this.uuid].push(h),
|
|
776
|
+
this.data[this.uuid].push(h), P(() => {
|
|
777
777
|
this.emitStateChange({
|
|
778
|
-
type:
|
|
778
|
+
type: M.Drawline,
|
|
779
779
|
color: this.color,
|
|
780
780
|
ready: this.ready,
|
|
781
781
|
state: h,
|
|
782
782
|
uuid: this.uuid
|
|
783
783
|
});
|
|
784
784
|
});
|
|
785
|
-
},
|
|
786
|
-
u.preventDefault(),
|
|
785
|
+
}, e.ontouchstart = (u) => {
|
|
786
|
+
u.preventDefault(), f = Date.now();
|
|
787
787
|
const l = u.touches[0].clientX, h = u.touches[0].clientY;
|
|
788
|
-
a = [], a.push({ x: l, y: h }), r = { x: l, y: h }, o =
|
|
789
|
-
},
|
|
788
|
+
a = [], a.push({ x: l, y: h }), r = { x: l, y: h }, o = T({ x: l, y: h }, this.clientWidth, this.clientHeight), c = [];
|
|
789
|
+
}, e.ontouchmove = (u) => {
|
|
790
790
|
if (u.preventDefault(), !r)
|
|
791
791
|
return;
|
|
792
792
|
const l = Number(u.touches[0].clientX), h = Number(u.touches[0].clientY);
|
|
793
|
-
if (Math.abs(l - r.x) < 5 && Math.abs(h - r.y) < 5 || (a.push({ x: l, y: h }), c.push(
|
|
793
|
+
if (Math.abs(l - r.x) < 5 && Math.abs(h - r.y) < 5 || (a.push({ x: l, y: h }), c.push(T({ x: l, y: h }, this.clientWidth, this.clientHeight)), a.length < 3))
|
|
794
794
|
return;
|
|
795
|
-
const { control:
|
|
796
|
-
!
|
|
797
|
-
},
|
|
795
|
+
const { control: d, end: g } = j(a);
|
|
796
|
+
!d || !g || (I(r, d, g), r = g);
|
|
797
|
+
}, e.ontouchend = e.ontouchcancel = (u) => {
|
|
798
798
|
if (u.preventDefault(), r = null, a.length < 3)
|
|
799
799
|
return;
|
|
800
800
|
this.data[this.uuid] || (this.data[this.uuid] = []);
|
|
801
|
-
const l = Date.now() -
|
|
801
|
+
const l = Date.now() - f, h = {
|
|
802
802
|
move: Object.assign({}, o),
|
|
803
803
|
line: [...c],
|
|
804
804
|
uuid: this.uuid,
|
|
@@ -806,9 +806,9 @@ class K extends G {
|
|
|
806
806
|
duration: l < 1280 ? l : l < 2e3 ? 1280 : 0
|
|
807
807
|
// 单次笔迹时长超过2000ms不加动画
|
|
808
808
|
};
|
|
809
|
-
this.data[this.uuid].push(h),
|
|
809
|
+
this.data[this.uuid].push(h), P(() => {
|
|
810
810
|
this.emitStateChange({
|
|
811
|
-
type:
|
|
811
|
+
type: M.Drawline,
|
|
812
812
|
color: this.color,
|
|
813
813
|
ready: this.ready,
|
|
814
814
|
state: h,
|
|
@@ -817,12 +817,12 @@ class K extends G {
|
|
|
817
817
|
});
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
|
-
emitStateChange(
|
|
821
|
-
if (
|
|
822
|
-
this.emit("stateChange",
|
|
820
|
+
emitStateChange(e, n = !0) {
|
|
821
|
+
if (e.type !== M.Drawline) {
|
|
822
|
+
this.emit("stateChange", e, n);
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
const s = Date.now(), r =
|
|
825
|
+
const s = Date.now(), r = e.state;
|
|
826
826
|
if (!r || !r.line)
|
|
827
827
|
return;
|
|
828
828
|
const a = Math.ceil(r.line.length / 100);
|
|
@@ -831,7 +831,7 @@ class K extends G {
|
|
|
831
831
|
uuid: this.uuid,
|
|
832
832
|
color: this.color,
|
|
833
833
|
ready: this.ready,
|
|
834
|
-
type:
|
|
834
|
+
type: e.type,
|
|
835
835
|
state: {
|
|
836
836
|
uuid: this.uuid,
|
|
837
837
|
move: r.move,
|
|
@@ -842,13 +842,13 @@ class K extends G {
|
|
|
842
842
|
timestamp: s,
|
|
843
843
|
end: o === a - 1
|
|
844
844
|
};
|
|
845
|
-
|
|
845
|
+
U(o, 20, () => {
|
|
846
846
|
this.emit("stateChange", c, n);
|
|
847
847
|
});
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
action(
|
|
851
|
-
const { ready: n, type: s, uuid: r } =
|
|
850
|
+
action(e) {
|
|
851
|
+
const { ready: n, type: s, uuid: r } = e;
|
|
852
852
|
if (!n && this.ready) {
|
|
853
853
|
this.closeBrush();
|
|
854
854
|
return;
|
|
@@ -859,67 +859,67 @@ class K extends G {
|
|
|
859
859
|
}
|
|
860
860
|
if (this.ready)
|
|
861
861
|
switch (s) {
|
|
862
|
-
case
|
|
863
|
-
const { state: a, timestamp: o, end: c } =
|
|
862
|
+
case M.Drawline:
|
|
863
|
+
const { state: a, timestamp: o, end: c } = e;
|
|
864
864
|
if (!o || !a)
|
|
865
865
|
return;
|
|
866
866
|
this.tempLine[o] = [].concat(this.tempLine[o] || [], a.line), c && (Object.assign(a, { line: this.tempLine[o] }), this.handleDrawLine(r, a, {}, () => delete this.tempLine[o]));
|
|
867
867
|
break;
|
|
868
|
-
case
|
|
868
|
+
case M.Undo:
|
|
869
869
|
this.handleUndo(r);
|
|
870
870
|
break;
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
handleDrawLine(
|
|
874
|
-
!n || Object.prototype.toString.call(n) != "[object Object]" || Object.keys(n).length === 0 ||
|
|
875
|
-
if (s || (this.canvas[
|
|
873
|
+
handleDrawLine(e, n, { withUndo: s = !1 }, r = m) {
|
|
874
|
+
!n || Object.prototype.toString.call(n) != "[object Object]" || Object.keys(n).length === 0 || G(() => new Promise((a) => {
|
|
875
|
+
if (s || (this.canvas[e] || (this.canvas[e] = this.initCanvas("_paintBrush-canvas--sync")), this.data[e] || (this.data[e] = []), this.data[e].push(n)), !this.canvas[e])
|
|
876
876
|
return;
|
|
877
|
-
const o = this.canvas[
|
|
877
|
+
const o = this.canvas[e].getContext("2d");
|
|
878
878
|
if (!o)
|
|
879
879
|
return;
|
|
880
|
-
const { line: c = [], color:
|
|
880
|
+
const { line: c = [], color: f = "black", duration: I = 0, uuid: u } = n, l = L(n.move || {}, this.clientWidth, this.clientHeight);
|
|
881
881
|
let h = [l];
|
|
882
|
-
if (o.strokeStyle =
|
|
883
|
-
let
|
|
884
|
-
const
|
|
885
|
-
|
|
886
|
-
var
|
|
887
|
-
if (
|
|
888
|
-
return o.clearRect(0, 0,
|
|
889
|
-
const
|
|
890
|
-
if (!
|
|
891
|
-
if (
|
|
882
|
+
if (o.strokeStyle = f, o.beginPath(), o.moveTo(l.x, l.y), I && !s) {
|
|
883
|
+
let d = [];
|
|
884
|
+
const g = this;
|
|
885
|
+
g.tween = F({ step: 0 }, { step: c.length - 1 }, I).onUpdate(({ step: p }) => {
|
|
886
|
+
var b;
|
|
887
|
+
if (g.tweening = !0, !g.ready)
|
|
888
|
+
return o.clearRect(0, 0, g.canvas[u].width, g.canvas[u].height), (b = g.tween) == null ? void 0 : b.stop();
|
|
889
|
+
const _ = Math.floor(p);
|
|
890
|
+
if (!d.find((D) => D === _)) {
|
|
891
|
+
if (d.push(_), h.push(L(c[_], g.clientWidth, g.clientHeight)), h.length < 3)
|
|
892
892
|
return;
|
|
893
|
-
const { control:
|
|
894
|
-
if (!
|
|
893
|
+
const { control: D, end: O } = j(h);
|
|
894
|
+
if (!D || !O)
|
|
895
895
|
return;
|
|
896
|
-
o.quadraticCurveTo(
|
|
896
|
+
o.quadraticCurveTo(D.x, D.y, O.x, O.y), o.stroke();
|
|
897
897
|
}
|
|
898
|
-
}).onComplete((
|
|
899
|
-
|
|
898
|
+
}).onComplete((p) => {
|
|
899
|
+
g.tween = void 0, g.tweening = !1, d = [], h = [], r && r(), a();
|
|
900
900
|
});
|
|
901
901
|
} else {
|
|
902
|
-
for (let
|
|
903
|
-
if (h.push(
|
|
902
|
+
for (let d = 0; d < c.length; d++) {
|
|
903
|
+
if (h.push(L(c[d], this.clientWidth, this.clientHeight)), h.length < 3)
|
|
904
904
|
continue;
|
|
905
|
-
const { control:
|
|
906
|
-
!
|
|
905
|
+
const { control: g, end: p } = j(h);
|
|
906
|
+
!g || !p || o.quadraticCurveTo(g.x, g.y, p.x, p.y);
|
|
907
907
|
}
|
|
908
908
|
o.stroke(), h = [], r && r(), a();
|
|
909
909
|
}
|
|
910
910
|
}));
|
|
911
911
|
}
|
|
912
|
-
handleUndo(
|
|
913
|
-
if (!this.canvas[
|
|
912
|
+
handleUndo(e) {
|
|
913
|
+
if (!this.canvas[e] || !this.data[e] || this.data[e].length === 0)
|
|
914
914
|
return;
|
|
915
|
-
this.data[
|
|
915
|
+
this.data[e].pop();
|
|
916
916
|
const n = () => {
|
|
917
917
|
var r;
|
|
918
|
-
const s = (r = this.canvas[
|
|
919
|
-
s && s.clearRect(0, 0, this.canvas[
|
|
918
|
+
const s = (r = this.canvas[e]) == null ? void 0 : r.getContext("2d");
|
|
919
|
+
s && s.clearRect(0, 0, this.canvas[e].width, this.canvas[e].height), this.data[e].forEach((a) => this.handleDrawLine(e, a, { withUndo: !0 }));
|
|
920
920
|
};
|
|
921
921
|
if (this.tween && this.tweening) {
|
|
922
|
-
this.tween.stop(),
|
|
922
|
+
this.tween.stop(), P(n, 60);
|
|
923
923
|
return;
|
|
924
924
|
}
|
|
925
925
|
n();
|
|
@@ -929,23 +929,23 @@ class K extends G {
|
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
class tt {
|
|
932
|
-
constructor(
|
|
933
|
-
|
|
934
|
-
const
|
|
932
|
+
constructor(i = {}) {
|
|
933
|
+
C(this, "controller");
|
|
934
|
+
const e = Object.assign({
|
|
935
935
|
currentColor: "#f44336",
|
|
936
936
|
onUndoText: "回退",
|
|
937
937
|
onExitText: "关闭"
|
|
938
|
-
},
|
|
939
|
-
this.controller = new
|
|
938
|
+
}, i);
|
|
939
|
+
this.controller = new q(e);
|
|
940
940
|
}
|
|
941
|
-
on(
|
|
942
|
-
this.controller.on(
|
|
941
|
+
on(i, e) {
|
|
942
|
+
this.controller.on(i, e);
|
|
943
943
|
}
|
|
944
|
-
off(
|
|
945
|
-
this.controller.off(
|
|
944
|
+
off(i, e) {
|
|
945
|
+
this.controller.off(i, e);
|
|
946
946
|
}
|
|
947
|
-
once(
|
|
948
|
-
this.controller.once(
|
|
947
|
+
once(i, e) {
|
|
948
|
+
this.controller.once(i, e);
|
|
949
949
|
}
|
|
950
950
|
/**
|
|
951
951
|
* 显示画笔。
|
|
@@ -953,8 +953,8 @@ class tt {
|
|
|
953
953
|
show() {
|
|
954
954
|
this.controller.openBrush();
|
|
955
955
|
}
|
|
956
|
-
action(
|
|
957
|
-
this.controller.action(
|
|
956
|
+
action(i) {
|
|
957
|
+
this.controller.action(i);
|
|
958
958
|
}
|
|
959
959
|
/**
|
|
960
960
|
* 获取画笔状态。
|
|
@@ -975,11 +975,11 @@ class tt {
|
|
|
975
975
|
dispose() {
|
|
976
976
|
return this.controller.destroyBrush();
|
|
977
977
|
}
|
|
978
|
-
setCurrentColor(
|
|
979
|
-
this.controller.updateCurrentColor(
|
|
978
|
+
setCurrentColor(i) {
|
|
979
|
+
this.controller.updateCurrentColor(i);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
export {
|
|
983
983
|
tt as PaintBrush,
|
|
984
|
-
|
|
984
|
+
M as PaintBrushTypeEnum
|
|
985
985
|
};
|