@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.
Files changed (371) hide show
  1. package/components/index.js +329 -329
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +4 -1
  3. package/dist/PanoCompassPlugin/typings.d.ts +1 -1
  4. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  5. package/dist/base/BasePlugin.d.ts +6 -3
  6. package/dist/base/BasePluginWithData.d.ts +2 -1
  7. package/dist/components/PaintBrush/style.d.ts +1 -1
  8. package/dist/index.cjs.js +52 -52
  9. package/dist/index.js +5538 -5529
  10. package/dist/index.umd.js +55 -55
  11. package/dist/shared-utils/absoluteUrl.d.ts +5 -0
  12. package/dist/shared-utils/index.d.ts +1 -1
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/CSS3DRender.html +32 -31
  15. package/docs/classes/CruisePluginController.html +46 -43
  16. package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
  17. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +36 -35
  18. package/docs/classes/Magnifier.html +21 -20
  19. package/docs/classes/ModelRoomLabelController.html +12 -11
  20. package/docs/classes/Object3DHelperController.html +45 -42
  21. package/docs/classes/PaintBrush.html +16 -15
  22. package/docs/classes/PanoMeasurePluginLine.html +24 -23
  23. package/docs/classes/PanoMeasurePluginModel.html +23 -22
  24. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  25. package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
  26. package/docs/classes/PanoTagPluginController.html +67 -64
  27. package/docs/classes/Util.BetterTween.html +10 -9
  28. package/docs/classes/Util.FivePointSelector.html +13 -12
  29. package/docs/classes/Util.Interval.html +13 -12
  30. package/docs/classes/Util.Magnifier.html +18 -17
  31. package/docs/classes/Util.PointDomHelper.html +12 -11
  32. package/docs/classes/Util.PointHelper.html +12 -11
  33. package/docs/classes/Util.Rectangle.html +14 -13
  34. package/docs/enums/CameraMovementEffect.html +8 -7
  35. package/docs/enums/ContentType.html +21 -20
  36. package/docs/enums/DIRECTION.html +10 -9
  37. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  38. package/docs/enums/DimensionType.html +8 -7
  39. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  40. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  41. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  42. package/docs/enums/PointType.html +8 -7
  43. package/docs/enums/Rotation.html +9 -8
  44. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  45. package/docs/functions/CameraMovementPlugin.html +5 -4
  46. package/docs/functions/CruisePlugin.html +5 -4
  47. package/docs/functions/GuideLinePlugin.html +6 -5
  48. package/docs/functions/ItemLabelPlugin.html +5 -4
  49. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  50. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  51. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  52. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  53. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  54. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  55. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  56. package/docs/functions/ModelViewPlugin.html +5 -4
  57. package/docs/functions/Object3DHelperPlugin.html +5 -4
  58. package/docs/functions/PanoCompassPlugin.html +5 -4
  59. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  60. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  61. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  62. package/docs/functions/PanoMeasurePlugin.html +5 -4
  63. package/docs/functions/PanoRulerPlugin.html +5 -4
  64. package/docs/functions/PanoRulerProPlugin.html +5 -4
  65. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  66. package/docs/functions/PanoTagPlugin.html +5 -4
  67. package/docs/functions/PanoVideoPlugin.html +5 -4
  68. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  69. package/docs/functions/Util.absoluteUrl.html +369 -0
  70. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  71. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  72. package/docs/functions/Util.getFrameTime.html +6 -5
  73. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  74. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  75. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  76. package/docs/functions/Util.isModelLike.html +6 -5
  77. package/docs/functions/Util.isNil.html +6 -5
  78. package/docs/functions/Util.isPanoramaLike.html +6 -5
  79. package/docs/functions/Util.nextFrame.html +6 -5
  80. package/docs/functions/Util.notNil.html +6 -5
  81. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  82. package/docs/functions/Util.tweenProgress.html +6 -5
  83. package/docs/functions/Util.uuid.html +6 -5
  84. package/docs/functions/pluginFlag.html +6 -5
  85. package/docs/index.html +6 -5
  86. package/docs/interfaces/AddTagConfig.html +7 -6
  87. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  88. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  89. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  90. package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
  91. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
  92. package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
  93. package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
  94. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
  95. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
  96. package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
  97. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
  98. package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
  99. package/docs/interfaces/EventMap.html +16 -15
  100. package/docs/interfaces/FloorplanBounding.html +9 -8
  101. package/docs/interfaces/FloorplanData.html +11 -10
  102. package/docs/interfaces/FloorplanEntrance.html +12 -11
  103. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  104. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  105. package/docs/interfaces/FloorplanFloorData.html +10 -9
  106. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  107. package/docs/interfaces/FloorplanObserver.html +10 -9
  108. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  109. package/docs/interfaces/FloorplanPosition.html +8 -7
  110. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  111. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  112. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  113. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  114. package/docs/interfaces/FloorplanServerData.html +8 -7
  115. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  116. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  117. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  118. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  119. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  120. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  121. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  122. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  123. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  124. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  125. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
  126. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
  127. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  128. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  129. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  130. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
  131. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  132. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -18
  133. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
  134. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
  135. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
  136. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  137. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
  138. package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
  139. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  140. package/docs/interfaces/HelperOffset.html +9 -8
  141. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  142. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  143. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  144. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  145. package/docs/interfaces/MinMax.html +8 -7
  146. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  147. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  148. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  149. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  150. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  151. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  152. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  153. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  154. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  155. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  156. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  157. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  158. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  159. package/docs/interfaces/Object3DHelperState.html +9 -8
  160. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  161. package/docs/interfaces/PaintBrushAction.html +13 -12
  162. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  163. package/docs/interfaces/PaintBrushState.html +11 -10
  164. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  165. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  166. package/docs/interfaces/PanoMeasureParameterType.html +15 -14
  167. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  168. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  169. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  170. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  171. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  172. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  173. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  174. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  175. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  176. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  177. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  178. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  179. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  180. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  181. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  182. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  183. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  184. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  185. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  186. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  187. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  188. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  189. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  190. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  191. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  192. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  193. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  194. package/docs/interfaces/Point.html +9 -8
  195. package/docs/interfaces/Room.html +10 -9
  196. package/docs/interfaces/RoomInfo.html +8 -7
  197. package/docs/interfaces/RoomLabel.html +15 -14
  198. package/docs/interfaces/RoomRules.html +6 -5
  199. package/docs/interfaces/Rooms.html +6 -5
  200. package/docs/interfaces/Scissor.html +10 -9
  201. package/docs/interfaces/State.html +9 -8
  202. package/docs/interfaces/TagCacheInterface.html +13 -12
  203. package/docs/interfaces/TagConfig.html +14 -13
  204. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  205. package/docs/interfaces/TagIconUrl.html +13 -12
  206. package/docs/interfaces/TagObjectGroup.html +7 -6
  207. package/docs/interfaces/TagStyle.html +7 -6
  208. package/docs/interfaces/Tags.html +10 -9
  209. package/docs/interfaces/TemporaryState.html +7 -6
  210. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  211. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  212. package/docs/modules/CruisePluginTypes.html +6 -5
  213. package/docs/modules/GuideLineItem.html +6 -5
  214. package/docs/modules/GuideLineModeItem.html +6 -5
  215. package/docs/modules/GuideLinePluginType.html +6 -5
  216. package/docs/modules/PanoVideoPluginType.html +6 -5
  217. package/docs/modules/Util.html +7 -5
  218. package/docs/modules.html +5 -4
  219. package/docs/types/ArrayPosition.html +6 -5
  220. package/docs/types/AudioAppearance.html +6 -5
  221. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  222. package/docs/types/CSS3DRenderExportType.html +6 -5
  223. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  224. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  225. package/docs/types/ClassFunctionParameters.html +6 -5
  226. package/docs/types/Color.html +6 -5
  227. package/docs/types/ContentTypeConfigKey.html +6 -5
  228. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  229. package/docs/types/ContentTypeMap.html +6 -5
  230. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  231. package/docs/types/Create3DElementReturnType.html +6 -5
  232. package/docs/types/CruisePluginExportType.html +6 -5
  233. package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
  234. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
  235. package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
  236. package/docs/types/DeprecatedTagProperty.html +6 -5
  237. package/docs/types/Direction-1.html +6 -5
  238. package/docs/types/Direction4.html +6 -5
  239. package/docs/types/ElementRenderer.html +6 -5
  240. package/docs/types/FloorplanRuleLabels.html +6 -5
  241. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  242. package/docs/types/GuideLinePluginExportType.html +6 -5
  243. package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -5
  244. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
  245. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
  246. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
  247. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
  248. package/docs/types/GuideLinePluginType.PathItem.html +6 -5
  249. package/docs/types/GuideLinePluginType.PluginData.html +6 -5
  250. package/docs/types/HelperEventMap.html +6 -5
  251. package/docs/types/LoadTagConfig.html +6 -5
  252. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  253. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  254. package/docs/types/MediaData.html +6 -5
  255. package/docs/types/MediaStore.html +6 -5
  256. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  257. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  258. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  259. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  260. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  261. package/docs/types/MoveArgs.html +6 -5
  262. package/docs/types/MoveOpts.html +6 -5
  263. package/docs/types/Object3DHelperEventMap.html +6 -5
  264. package/docs/types/ObjectFit.html +6 -5
  265. package/docs/types/PaintBrushEventMap.html +6 -5
  266. package/docs/types/PanoCompassPluginData.html +6 -5
  267. package/docs/types/PanoCompassPluginExportType.html +6 -5
  268. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  269. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  270. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  271. package/docs/types/PanoIndex.html +6 -5
  272. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  273. package/docs/types/PanoMeasureReturnType.html +6 -5
  274. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  275. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  276. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  277. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  278. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  279. package/docs/types/PartialObjectDeep.html +6 -5
  280. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
  281. package/docs/types/PlaneTag.html +6 -5
  282. package/docs/types/Point2DTag.html +6 -5
  283. package/docs/types/Point3DTag.html +6 -5
  284. package/docs/types/PointTag.html +6 -5
  285. package/docs/types/PointTagInstance.html +6 -5
  286. package/docs/types/Position.html +6 -5
  287. package/docs/types/RotateArgs.html +6 -5
  288. package/docs/types/RotateOpts.html +6 -5
  289. package/docs/types/RuleLabelsKey.html +6 -5
  290. package/docs/types/RuleLabelsValue.html +6 -5
  291. package/docs/types/StickType.html +6 -5
  292. package/docs/types/Tag.html +6 -5
  293. package/docs/types/Tag2D.html +6 -5
  294. package/docs/types/Tag3D.html +6 -5
  295. package/docs/types/TagContentType.html +6 -5
  296. package/docs/types/TagDimensionType.html +6 -5
  297. package/docs/types/TagElement.html +6 -5
  298. package/docs/types/TagEvents.html +6 -5
  299. package/docs/types/TagGLTFObject.html +6 -5
  300. package/docs/types/TagHooks.html +6 -5
  301. package/docs/types/TagId.html +6 -5
  302. package/docs/types/TagInstance.html +6 -5
  303. package/docs/types/TagPointType.html +6 -5
  304. package/docs/types/TagRendererMap.html +6 -5
  305. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  306. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  307. package/docs/types/WorkCode.html +6 -5
  308. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  309. package/docs/variables/PLUGIN.html +6 -5
  310. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  311. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  312. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  313. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  314. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  315. package/libs/CSS3DRenderPlugin/Controller.d.ts +4 -1
  316. package/libs/CSS3DRenderPlugin/Controller.js +31 -28
  317. package/libs/CSS3DRenderPlugin/index.js +1 -1
  318. package/libs/CruisePlugin/Controller.js +1 -1
  319. package/libs/CruisePlugin/index.js +1 -1
  320. package/libs/GuideLinePlugin/Components/Tag.js +68 -68
  321. package/libs/GuideLinePlugin/Controller.js +1 -1
  322. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  323. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  324. package/libs/GuideLinePlugin/index.js +1 -1
  325. package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
  326. package/libs/ModelTVVideoPlugin/Plugin.js +30 -29
  327. package/libs/ModelTVVideoPlugin/index.js +4 -3
  328. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  329. package/libs/Object3DHelperPlugin/index.js +1 -1
  330. package/libs/PanoCompassPlugin/Controller.js +21 -21
  331. package/libs/PanoCompassPlugin/index.js +1 -1
  332. package/libs/PanoCompassPlugin/typings.d.ts +1 -1
  333. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  334. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  335. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +60 -60
  336. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  337. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  338. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
  339. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  340. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  341. package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
  342. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  343. package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
  344. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  345. package/libs/PanoTagPlugin/controller/index.js +1 -1
  346. package/libs/PanoTagPlugin/index.js +1 -1
  347. package/libs/PanoVideoPlugin/Controller.js +1 -1
  348. package/libs/PanoVideoPlugin/index.js +1 -1
  349. package/libs/base/BasePlugin.d.ts +6 -3
  350. package/libs/base/BasePlugin.js +14 -11
  351. package/libs/base/BasePluginWithData.d.ts +2 -1
  352. package/libs/components/PaintBrush/style.d.ts +1 -1
  353. package/libs/components/PaintBrush/style.js +4 -4
  354. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  355. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  356. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  357. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  358. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  359. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  360. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  361. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  362. package/libs/index.js +2 -2
  363. package/libs/shared-utils/absoluteUrl.d.ts +5 -0
  364. package/libs/shared-utils/absoluteUrl.js +10 -0
  365. package/libs/shared-utils/index.d.ts +1 -1
  366. package/libs/shared-utils/index.js +18 -17
  367. package/libs/shared-utils/logger.js +1 -1
  368. package/package.json +1 -1
  369. package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
  370. package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
  371. package/libs/shared-utils/isAbsoluteURL.js +0 -6
@@ -1,43 +1,43 @@
1
- var A = Object.defineProperty;
2
- var L = (t, e, i) => e in t ? A(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
- var g = (t, e, i) => (L(t, typeof e != "symbol" ? e + "" : e, i), i);
4
- function F() {
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 N = () => Promise.resolve(), R = {
6
+ const E = () => Promise.resolve(), k = {
7
7
  __queue: Promise.resolve()
8
8
  };
9
- function z(t = N) {
10
- R.__queue = R.__queue.then(t).catch(N);
9
+ function G(t = E) {
10
+ k.__queue = k.__queue.then(t).catch(E);
11
11
  }
12
- function M(t, e, i) {
13
- const n = t.x, s = t.y, r = Math.floor(n / e * 1e4) / 1e4, a = Math.floor(s / i * 1e4) / 1e4;
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 j(t, e, i) {
17
- const { x: n, y: s } = t, r = n * e, a = s * i;
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 I(t) {
20
+ function j(t) {
21
21
  if (t.length < 2)
22
22
  return {};
23
- const e = t.slice(-2), i = e[0], n = {
24
- x: (e[0].x + e[1].x) / 2,
25
- y: (e[0].y + e[1].y) / 2
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: i, end: n };
27
+ return { control: e, end: n };
28
28
  }
29
- function q(t, e, i = F) {
29
+ function U(t, i, e = m) {
30
30
  new Promise((n) => {
31
31
  setTimeout(() => {
32
- i(), n(!0);
33
- }, e * t);
32
+ e(), n(!0);
33
+ }, i * t);
34
34
  });
35
35
  }
36
- const H = window, U = window.requestAnimationFrame || H.webkitRequestAnimationFrame || ((t) => setTimeout(t, 16));
37
- function k(t, e = 0) {
38
- e <= 0 ? U(t) : U(() => k(t, e - 1));
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 S = Object.freeze({
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 e = 1.70158;
146
- return t === 1 ? 1 : t * t * ((e + 1) * t - e);
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 e = 1.70158;
150
- return t === 0 ? 0 : --t * t * ((e + 1) * t + e) + 1;
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 e = 2.5949095;
154
- return (t *= 2) < 1 ? 0.5 * (t * t * ((e + 1) * t - e)) : 0.5 * ((t -= 2) * t * ((e + 1) * t + e) + 2);
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 - S.Bounce.Out(1 - t);
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 ? S.Bounce.In(t * 2) * 0.5 : S.Bounce.Out(t * 2 - 1) * 0.5 + 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(e) {
171
- return Math.pow(e, t);
170
+ In: function(i) {
171
+ return Math.pow(i, t);
172
172
  },
173
- Out: function(e) {
174
- return 1 - Math.pow(1 - e, t);
173
+ Out: function(i) {
174
+ return 1 - Math.pow(1 - i, t);
175
175
  },
176
- InOut: function(e) {
177
- return e < 0.5 ? Math.pow(e * 2, t) / 2 : (1 - Math.pow(2 - e * 2, t)) / 2 + 0.5;
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
- }), T = function() {
181
+ }), N = function() {
182
182
  return performance.now();
183
- }, W = (
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 e = this;
191
- return Object.keys(this._tweens).map(function(i) {
192
- return e._tweens[i];
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(e) {
197
- this._tweens[e.getId()] = e, this._tweensAddedDuringUpdate[e.getId()] = e;
198
- }, t.prototype.remove = function(e) {
199
- delete this._tweens[e.getId()], delete this._tweensAddedDuringUpdate[e.getId()];
200
- }, t.prototype.update = function(e, i) {
201
- e === void 0 && (e = T()), i === void 0 && (i = !1);
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 = !i;
209
- r && r.update(e, a) === !1 && !i && delete this._tweens[n[s]];
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
- ), x = {
217
- Linear: function(t, e) {
218
- var i = t.length - 1, n = i * e, s = Math.floor(n), r = x.Utils.Linear;
219
- return e < 0 ? r(t[0], t[1], n) : e > 1 ? r(t[i], t[i - 1], i - n) : r(t[s], t[s + 1 > i ? i : s + 1], n - s);
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, e) {
222
- for (var i = 0, n = t.length - 1, s = Math.pow, r = x.Utils.Bernstein, a = 0; a <= n; a++)
223
- i += s(1 - e, n - a) * s(e, a) * t[a] * r(n, a);
224
- return i;
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, e) {
227
- var i = t.length - 1, n = i * e, s = Math.floor(n), r = x.Utils.CatmullRom;
228
- return t[0] === t[i] ? (e < 0 && (s = Math.floor(n = i * (1 + e))), r(t[(s - 1 + i) % i], t[s], t[(s + 1) % i], t[(s + 2) % i], n - s)) : e < 0 ? t[0] - (r(t[0], t[0], t[1], t[1], -n) - t[0]) : e > 1 ? t[i] - (r(t[i], t[i], t[i - 1], t[i - 1], n - i) - t[i]) : r(t[s ? s - 1 : 0], t[s], t[i < s + 1 ? i : s + 1], t[i < s + 2 ? i : s + 2], n - s);
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, e, i) {
232
- return (e - t) * i + t;
231
+ Linear: function(t, i, e) {
232
+ return (i - t) * e + t;
233
233
  },
234
- Bernstein: function(t, e) {
235
- var i = x.Utils.Factorial;
236
- return i(t) / i(e) / i(t - e);
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(e) {
241
- var i = 1;
242
- if (t[e])
243
- return t[e];
244
- for (var n = e; n > 1; n--)
245
- i *= n;
246
- return t[e] = i, i;
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, e, i, n, s) {
250
- var r = (i - t) * 0.5, a = (n - e) * 0.5, o = s * s, c = s * o;
251
- return (2 * e - 2 * i + r + a) * c + (-3 * e + 3 * i - 2 * r - a) * o + r * s + e;
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
- ), m = new W(), X = (
263
+ ), B = new Y(), Q = (
264
264
  /** @class */
265
265
  function() {
266
- function t(e, i) {
267
- i === void 0 && (i = m), this._object = e, this._group = i, 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 = S.Linear.None, this._interpolationFunction = x.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = $.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
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(e, i) {
276
- if (i === void 0 && (i = 1e3), this._isPlaying)
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 = e, this._propertiesAreSetUp = !1, this._duration = i, this;
279
- }, t.prototype.duration = function(e) {
280
- return e === void 0 && (e = 1e3), this._duration = e, this;
281
- }, t.prototype.dynamic = function(e) {
282
- return e === void 0 && (e = !1), this._isDynamic = e, this;
283
- }, t.prototype.start = function(e, i) {
284
- if (e === void 0 && (e = T()), i === void 0 && (i = !1), this._isPlaying)
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 = e, this._startTime += this._delayTime, !this._propertiesAreSetUp || i) {
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, i);
298
+ this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, e);
299
299
  }
300
300
  return this;
301
- }, t.prototype.startFromCurrentValues = function(e) {
302
- return this.start(e, !0);
303
- }, t.prototype._setupProperties = function(e, i, n, s, r) {
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 = e[a], c = Array.isArray(o), d = c ? "array" : typeof o, _ = !c && Array.isArray(n[a]);
306
- if (!(d === "undefined" || d === "function")) {
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, p = u.length; h < p; h += 1) {
312
- var f = this._handleRelativeValue(o, u[h]);
313
- if (isNaN(f)) {
314
- _ = !1, console.warn("Found invalid interpolation list. Skipping.");
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(f);
317
+ l.push(g);
318
318
  }
319
- _ && (n[a] = l);
319
+ I && (n[a] = l);
320
320
  }
321
- if ((d === "object" || c) && o && !_) {
322
- i[a] = c ? [] : {};
323
- var v = o;
324
- for (var b in v)
325
- i[a][b] = v[b];
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 E = {};
330
- for (var b in u)
331
- E[b] = u[b];
332
- n[a] = u = E;
329
+ var b = {};
330
+ for (var _ in u)
331
+ b[_] = u[_];
332
+ n[a] = u = b;
333
333
  }
334
- this._setupProperties(v, i[a], u, s[a], r);
334
+ this._setupProperties(p, e[a], u, s[a], r);
335
335
  } else
336
- (typeof i[a] == "undefined" || r) && (i[a] = o), c || (i[a] *= 1), _ ? s[a] = n[a].slice().reverse() : s[a] = i[a] || 0;
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(e) {
344
- return e === void 0 && (e = T()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this._group && this._group.remove(this), this);
345
- }, t.prototype.resume = function(e) {
346
- return e === void 0 && (e = T()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
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 e = 0, i = this._chainedTweens.length; e < i; e++)
349
- this._chainedTweens[e].stop();
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(e) {
352
- return e === void 0 && (e = m), this._group = e, this;
353
- }, t.prototype.delay = function(e) {
354
- return e === void 0 && (e = 0), this._delayTime = e, this;
355
- }, t.prototype.repeat = function(e) {
356
- return e === void 0 && (e = 0), this._initialRepeat = e, this._repeat = e, this;
357
- }, t.prototype.repeatDelay = function(e) {
358
- return this._repeatDelayTime = e, this;
359
- }, t.prototype.yoyo = function(e) {
360
- return e === void 0 && (e = !1), this._yoyo = e, this;
361
- }, t.prototype.easing = function(e) {
362
- return e === void 0 && (e = S.Linear.None), this._easingFunction = e, this;
363
- }, t.prototype.interpolation = function(e) {
364
- return e === void 0 && (e = x.Linear), this._interpolationFunction = e, this;
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 e = [], i = 0; i < arguments.length; i++)
367
- e[i] = arguments[i];
368
- return this._chainedTweens = e, this;
369
- }, t.prototype.onStart = function(e) {
370
- return this._onStartCallback = e, this;
371
- }, t.prototype.onEveryStart = function(e) {
372
- return this._onEveryStartCallback = e, this;
373
- }, t.prototype.onUpdate = function(e) {
374
- return this._onUpdateCallback = e, this;
375
- }, t.prototype.onRepeat = function(e) {
376
- return this._onRepeatCallback = e, this;
377
- }, t.prototype.onComplete = function(e) {
378
- return this._onCompleteCallback = e, this;
379
- }, t.prototype.onStop = function(e) {
380
- return this._onStopCallback = e, this;
381
- }, t.prototype.update = function(e, i) {
382
- if (e === void 0 && (e = T()), i === void 0 && (i = !0), this._isPaused)
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 (e > r)
386
+ if (i > r)
387
387
  return !1;
388
- i && this.start(e, !0);
388
+ e && this.start(i, !0);
389
389
  }
390
- if (this._goToEnd = !1, e < this._startTime)
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 = (e - this._startTime) / this._duration, s = this._duration === 0 || s > 1 ? 1 : 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 = e + this._repeatDelayTime : this._startTime = e + this._delayTime, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
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(e, i, n, s) {
409
+ }, t.prototype._updateProperties = function(i, e, n, s) {
410
410
  for (var r in n)
411
- if (i[r] !== void 0) {
412
- var a = i[r] || 0, o = n[r], c = Array.isArray(e[r]), d = Array.isArray(o), _ = !c && d;
413
- _ ? e[r] = this._interpolationFunction(o, s) : typeof o == "object" && o ? this._updateProperties(e[r], a, o, s) : (o = this._handleRelativeValue(a, o), typeof o == "number" && (e[r] = a + (o - a) * s));
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(e, i) {
416
- return typeof i != "string" ? i : i.charAt(0) === "+" || i.charAt(0) === "-" ? e + parseFloat(i) : parseFloat(i);
417
- }, t.prototype._swapEndStartRepeatValues = function(e) {
418
- var i = this._valuesStartRepeat[e], n = this._valuesEnd[e];
419
- typeof n == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(n) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = i;
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
- ), y = m;
423
- y.getAll.bind(y);
424
- y.removeAll.bind(y);
425
- y.add.bind(y);
426
- y.remove.bind(y);
427
- y.update.bind(y);
428
- function Y(t, e, i, n = S.Linear.None) {
429
- const s = new X(t).to(e, i).easing(n).start();
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 w = /* @__PURE__ */ ((t) => (t.Drawline = "Drawline", t.Undo = "Undo", t.Exit = "Exit", t))(w || {});
436
- const O = Symbol("$$PAINT_BRUSH_EVENT$$");
437
- function P(t) {
438
- return t[O] || (t[O] = {}), t[O];
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 Q(t) {
441
- t[O] || delete t[O];
440
+ function J(t) {
441
+ t[x] || delete t[x];
442
442
  }
443
- class G {
443
+ class K {
444
444
  /**
445
445
  * 判断是否注册了事件
446
446
  * @param name 事件类型
447
447
  */
448
- hasListener(e) {
449
- const i = P(this);
450
- return i && i[e] && i[e].length > 0;
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(e, i, n) {
462
- const s = P(this);
463
- return s[e] || (s[e] = []), s[e].push([i, n || !1]), () => this.off(e, i);
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(e, i) {
474
- return this.on(e, i, !0);
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(e, i) {
486
- if (e === void 0) {
487
- Q(this);
485
+ off(i, e) {
486
+ if (i === void 0) {
487
+ J(this);
488
488
  return;
489
489
  }
490
- const n = P(this);
491
- if (n[e] || (n[e] = []), i === void 0) {
492
- n[e].length = 0;
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[e].length && n[e][s][0] !== i; s++)
496
+ for (; s < n[i].length && n[i][s][0] !== e; s++)
497
497
  ;
498
- s < n[e].length && n[e].splice(s, 1);
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(e, ...i) {
507
+ emit(i, ...e) {
508
508
  let n = !1;
509
- const r = P(this)[e] || [];
509
+ const r = S(this)[i] || [];
510
510
  for (let a of r.slice()) {
511
- const [o, c = !1] = a, d = o(...i);
512
- c && this.off(e, o), d === !1 && (n = !0);
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 C() {
517
+ function v() {
518
518
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
519
519
  }
520
- function J() {
521
- return (C() + C() + "-" + C() + "-4" + C().substr(0, 3) + "-" + C() + "-" + C() + C() + C()).toLowerCase();
520
+ function X() {
521
+ return (v() + v() + "-" + v() + "-4" + v().substr(0, 3) + "-" + v() + "-" + v() + v() + v()).toLowerCase();
522
522
  }
523
- const Z = `
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("//vrlab-static.ljcdn.com/release/web/revoke.ab7694ef.svg");
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("//vrlab-static.ljcdn.com/release/web/exit_paintbrush.02bc1341.svg");
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 K extends G {
625
- constructor(i) {
624
+ class q extends K {
625
+ constructor(e) {
626
626
  super();
627
- g(this, "configs");
628
- g(this, "clientWidth");
629
- g(this, "clientHeight");
630
- g(this, "ready", !1);
631
- g(this, "uuid", J());
632
- g(this, "tween");
633
- g(this, "tweening", !1);
634
- g(this, "container");
635
- g(this, "canvas");
636
- g(this, "data", {});
637
- g(this, "tempLine", {});
638
- this.configs = i, this.clientWidth = document.body.clientWidth, this.clientHeight = document.body.clientHeight, this.container = this.ifInsertToDOM(), this.canvas = {}, this.initCtrl();
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 i = document.createElement("div");
658
- i.id = "_gl_paintBrush", document.body.appendChild(i), this.container = i;
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 = Z, this.container;
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(i) {
667
+ initCanvas(e) {
668
668
  const n = document.createElement("canvas");
669
- n.className = i, n.width = this.clientWidth, n.height = this.clientHeight;
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 i = document.createElement("div");
680
- i.className = "_paintBrush-ctrl";
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: w.Undo,
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 d = (l = this.canvas[this.uuid]) == null ? void 0 : l.getContext("2d");
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: _, height: u } = this.canvas[this.uuid];
700
- d && d.clearRect(0, 0, _, u), this.data[this.uuid].forEach((h) => this.handleDrawLine(this.uuid, h, { withUndo: !0 }));
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 d = document.createElement("span");
709
- d.className = "brush-txt", d.innerText = o.className.endsWith("undo") ? this.configs.onUndoText : this.configs.onExitText, o.appendChild(c), o.appendChild(d);
710
- }), n.appendChild(s), n.appendChild(r), i.appendChild(n), this.container.appendChild(i), i;
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 i = this.canvas[this.uuid];
717
- i.getContext("2d").clearRect(0, 0, i.width, i.height), this.openBrushHandle(), this.ready = !0, this.emit("readyChange", !0);
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((i) => {
721
- this.canvas[i].ontouchstart = () => !1, this.canvas[i].ontouchmove = () => !1, this.canvas[i].ontouchend = () => !1, this.canvas[i].ontouchcancel = () => !1;
722
- const n = this.canvas[i].getContext("2d");
723
- n && n.clearRect(0, 0, this.canvas[i].width, this.canvas[i].height);
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: w.Exit,
725
+ type: M.Exit,
726
726
  color: this.color,
727
727
  ready: !1,
728
728
  uuid: this.uuid
729
729
  }));
730
730
  }
731
- updateCurrentColor(i) {
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 = i, s.strokeStyle = i);
736
+ s && (this.configs.currentColor = e, s.strokeStyle = e);
737
737
  }
738
738
  openBrushHandle() {
739
- const i = this.canvas[this.uuid];
740
- if (!i)
739
+ const e = this.canvas[this.uuid];
740
+ if (!e)
741
741
  return;
742
- const n = i.getContext("2d");
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 = [], d = 0;
748
- const _ = (u, l, h) => {
749
- const p = this.color || "#ff0000";
750
- n.strokeStyle = p, n.beginPath(), n.moveTo(u.x, u.y), n.quadraticCurveTo(l.x, l.y, h.x, h.y), n.stroke();
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
- i.onmousedown = (u) => {
753
- u.preventDefault(), d = Date.now();
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 = M({ x: l, y: h }, this.clientWidth, this.clientHeight), c = [];
756
- }, i.onmousemove = (u) => {
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(M({ x: l, y: h }, this.clientWidth, this.clientHeight)), a.length < 3))
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: p, end: f } = I(a);
763
- !p || !f || (_(r, p, f), r = f);
764
- }, i.onmouseup = (u) => {
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() - d, h = {
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), k(() => {
776
+ this.data[this.uuid].push(h), P(() => {
777
777
  this.emitStateChange({
778
- type: w.Drawline,
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
- }, i.ontouchstart = (u) => {
786
- u.preventDefault(), d = Date.now();
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 = M({ x: l, y: h }, this.clientWidth, this.clientHeight), c = [];
789
- }, i.ontouchmove = (u) => {
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(M({ x: l, y: h }, this.clientWidth, this.clientHeight)), a.length < 3))
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: p, end: f } = I(a);
796
- !p || !f || (_(r, p, f), r = f);
797
- }, i.ontouchend = i.ontouchcancel = (u) => {
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() - d, h = {
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), k(() => {
809
+ this.data[this.uuid].push(h), P(() => {
810
810
  this.emitStateChange({
811
- type: w.Drawline,
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(i, n = !0) {
821
- if (i.type !== w.Drawline) {
822
- this.emit("stateChange", i, n);
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 = i.state;
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: i.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
- q(o, 20, () => {
845
+ U(o, 20, () => {
846
846
  this.emit("stateChange", c, n);
847
847
  });
848
848
  }
849
849
  }
850
- action(i) {
851
- const { ready: n, type: s, uuid: r } = i;
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 w.Drawline:
863
- const { state: a, timestamp: o, end: c } = i;
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 w.Undo:
868
+ case M.Undo:
869
869
  this.handleUndo(r);
870
870
  break;
871
871
  }
872
872
  }
873
- handleDrawLine(i, n, { withUndo: s = !1 }, r = F) {
874
- !n || Object.prototype.toString.call(n) != "[object Object]" || Object.keys(n).length === 0 || z(() => new Promise((a) => {
875
- if (s || (this.canvas[i] || (this.canvas[i] = this.initCanvas("_paintBrush-canvas--sync")), this.data[i] || (this.data[i] = []), this.data[i].push(n)), !this.canvas[i])
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[i].getContext("2d");
877
+ const o = this.canvas[e].getContext("2d");
878
878
  if (!o)
879
879
  return;
880
- const { line: c = [], color: d = "black", duration: _ = 0, uuid: u } = n, l = j(n.move || {}, this.clientWidth, this.clientHeight);
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 = d, o.beginPath(), o.moveTo(l.x, l.y), _ && !s) {
883
- let p = [];
884
- const f = this;
885
- f.tween = Y({ step: 0 }, { step: c.length - 1 }, _).onUpdate(({ step: v }) => {
886
- var E;
887
- if (f.tweening = !0, !f.ready)
888
- return o.clearRect(0, 0, f.canvas[u].width, f.canvas[u].height), (E = f.tween) == null ? void 0 : E.stop();
889
- const b = Math.floor(v);
890
- if (!p.find((B) => B === b)) {
891
- if (p.push(b), h.push(j(c[b], f.clientWidth, f.clientHeight)), h.length < 3)
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: B, end: D } = I(h);
894
- if (!B || !D)
893
+ const { control: D, end: O } = j(h);
894
+ if (!D || !O)
895
895
  return;
896
- o.quadraticCurveTo(B.x, B.y, D.x, D.y), o.stroke();
896
+ o.quadraticCurveTo(D.x, D.y, O.x, O.y), o.stroke();
897
897
  }
898
- }).onComplete((v) => {
899
- f.tween = void 0, f.tweening = !1, p = [], h = [], r && r(), a();
898
+ }).onComplete((p) => {
899
+ g.tween = void 0, g.tweening = !1, d = [], h = [], r && r(), a();
900
900
  });
901
901
  } else {
902
- for (let p = 0; p < c.length; p++) {
903
- if (h.push(j(c[p], this.clientWidth, this.clientHeight)), h.length < 3)
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: f, end: v } = I(h);
906
- !f || !v || o.quadraticCurveTo(f.x, f.y, v.x, v.y);
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(i) {
913
- if (!this.canvas[i] || !this.data[i] || this.data[i].length === 0)
912
+ handleUndo(e) {
913
+ if (!this.canvas[e] || !this.data[e] || this.data[e].length === 0)
914
914
  return;
915
- this.data[i].pop();
915
+ this.data[e].pop();
916
916
  const n = () => {
917
917
  var r;
918
- const s = (r = this.canvas[i]) == null ? void 0 : r.getContext("2d");
919
- s && s.clearRect(0, 0, this.canvas[i].width, this.canvas[i].height), this.data[i].forEach((a) => this.handleDrawLine(i, a, { withUndo: !0 }));
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(), k(n, 60);
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(e = {}) {
933
- g(this, "controller");
934
- const i = Object.assign({
932
+ constructor(i = {}) {
933
+ C(this, "controller");
934
+ const e = Object.assign({
935
935
  currentColor: "#f44336",
936
936
  onUndoText: "回退",
937
937
  onExitText: "关闭"
938
- }, e);
939
- this.controller = new K(i);
938
+ }, i);
939
+ this.controller = new q(e);
940
940
  }
941
- on(e, i) {
942
- this.controller.on(e, i);
941
+ on(i, e) {
942
+ this.controller.on(i, e);
943
943
  }
944
- off(e, i) {
945
- this.controller.off(e, i);
944
+ off(i, e) {
945
+ this.controller.off(i, e);
946
946
  }
947
- once(e, i) {
948
- this.controller.once(e, i);
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(e) {
957
- this.controller.action(e);
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(e) {
979
- this.controller.updateCurrentColor(e);
978
+ setCurrentColor(i) {
979
+ this.controller.updateCurrentColor(i);
980
980
  }
981
981
  }
982
982
  export {
983
983
  tt as PaintBrush,
984
- w as PaintBrushTypeEnum
984
+ M as PaintBrushTypeEnum
985
985
  };