@realsee/dnalogel 2.8.2 → 2.8.3

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 (289) hide show
  1. package/components/index.js +74 -74
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +1 -0
  3. package/dist/index.cjs.js +29 -29
  4. package/dist/index.js +2565 -2595
  5. package/dist/index.umd.js +26 -26
  6. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -25
  7. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +4 -3
  8. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +25 -16
  9. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -1
  10. package/dist/shared-utils/Object3DHelper/utils/setObjectQuaternion.d.ts +8 -0
  11. package/dist/shared-utils/math/deg2Rad.d.ts +1 -0
  12. package/docs/classes/CSS3DRender.html +31 -31
  13. package/docs/classes/CruisePluginController.html +24 -24
  14. package/docs/classes/Magnifier.html +20 -20
  15. package/docs/classes/ModelRoomLabelController.html +11 -11
  16. package/docs/classes/Object3DHelperController.html +27 -27
  17. package/docs/classes/PaintBrush.html +15 -15
  18. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  19. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  20. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  21. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  22. package/docs/classes/PanoTagPluginController.html +47 -47
  23. package/docs/classes/Util.BetterTween.html +8 -8
  24. package/docs/classes/Util.FivePointSelector.html +12 -12
  25. package/docs/classes/Util.Interval.html +12 -12
  26. package/docs/classes/Util.Magnifier.html +17 -17
  27. package/docs/classes/Util.PointDomHelper.html +11 -11
  28. package/docs/classes/Util.PointHelper.html +11 -11
  29. package/docs/classes/Util.Rectangle.html +13 -13
  30. package/docs/enums/CameraMovementEffect.html +7 -7
  31. package/docs/enums/ContentType.html +18 -18
  32. package/docs/enums/DIRECTION.html +9 -9
  33. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  34. package/docs/enums/DimensionType.html +7 -7
  35. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  36. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  37. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  38. package/docs/enums/PointType.html +7 -7
  39. package/docs/enums/Rotation.html +8 -8
  40. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  41. package/docs/functions/CameraMovementPlugin.html +5 -5
  42. package/docs/functions/CruisePlugin.html +5 -5
  43. package/docs/functions/GuideLinePlugin.html +5 -5
  44. package/docs/functions/ItemLabelPlugin.html +5 -5
  45. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  46. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  47. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  48. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  49. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  50. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  51. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  52. package/docs/functions/ModelViewPlugin.html +5 -5
  53. package/docs/functions/Object3DHelperPlugin.html +5 -5
  54. package/docs/functions/PanoCompassPlugin.html +5 -5
  55. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  56. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  57. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  58. package/docs/functions/PanoMeasurePlugin.html +5 -5
  59. package/docs/functions/PanoRulerPlugin.html +5 -5
  60. package/docs/functions/PanoRulerProPlugin.html +5 -5
  61. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  62. package/docs/functions/PanoTagPlugin.html +5 -5
  63. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  64. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  65. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  66. package/docs/functions/Util.getFrameTime.html +5 -5
  67. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  68. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  69. package/docs/functions/Util.isNil.html +5 -5
  70. package/docs/functions/Util.nextFrame.html +5 -5
  71. package/docs/functions/Util.notNil.html +5 -5
  72. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  73. package/docs/functions/Util.tweenProgress.html +5 -5
  74. package/docs/functions/pluginFlag.html +5 -5
  75. package/docs/index.html +4 -4
  76. package/docs/interfaces/AddTagConfig.html +6 -6
  77. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  78. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  79. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  80. package/docs/interfaces/EventMap.html +15 -15
  81. package/docs/interfaces/FloorplanBounding.html +8 -8
  82. package/docs/interfaces/FloorplanData.html +10 -10
  83. package/docs/interfaces/FloorplanEntrance.html +11 -11
  84. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  85. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  86. package/docs/interfaces/FloorplanFloorData.html +9 -9
  87. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  88. package/docs/interfaces/FloorplanObserver.html +9 -9
  89. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  90. package/docs/interfaces/FloorplanPosition.html +7 -7
  91. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  92. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  93. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  94. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  95. package/docs/interfaces/FloorplanServerData.html +7 -7
  96. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  97. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  98. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  99. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  100. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  101. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  102. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  103. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  104. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  105. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  106. package/docs/interfaces/HelperOffset.html +8 -8
  107. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  108. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  109. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  110. package/docs/interfaces/MinMax.html +7 -7
  111. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  112. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  113. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  114. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  115. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  116. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  117. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  118. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  119. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  120. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  121. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  122. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  123. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  124. package/docs/interfaces/Object3DHelperState.html +8 -8
  125. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  126. package/docs/interfaces/PaintBrushAction.html +12 -12
  127. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  128. package/docs/interfaces/PaintBrushState.html +10 -10
  129. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  130. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  131. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  132. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  133. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  134. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  135. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  136. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  137. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  138. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  139. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  140. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  141. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  142. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  143. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  144. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  145. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  146. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  147. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  148. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  149. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  150. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  151. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  152. package/docs/interfaces/Point.html +8 -8
  153. package/docs/interfaces/Room.html +9 -9
  154. package/docs/interfaces/RoomInfo.html +7 -7
  155. package/docs/interfaces/RoomLabel.html +14 -14
  156. package/docs/interfaces/RoomRules.html +5 -5
  157. package/docs/interfaces/Rooms.html +5 -5
  158. package/docs/interfaces/Scissor.html +9 -9
  159. package/docs/interfaces/State.html +8 -8
  160. package/docs/interfaces/TagCache.html +12 -12
  161. package/docs/interfaces/TagConfig.html +10 -10
  162. package/docs/interfaces/TagIconUrl.html +9 -9
  163. package/docs/interfaces/Tags.html +9 -9
  164. package/docs/interfaces/TemporaryState.html +6 -6
  165. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  166. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  167. package/docs/modules/Util.html +5 -5
  168. package/docs/modules.html +4 -4
  169. package/docs/types/ArrayPosition.html +5 -5
  170. package/docs/types/AudioAppearance.html +5 -5
  171. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  172. package/docs/types/CSS3DRenderExportType.html +5 -5
  173. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  174. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  175. package/docs/types/ClassFunctionParameters.html +5 -5
  176. package/docs/types/Color.html +5 -5
  177. package/docs/types/ContentTypeConfigKey.html +5 -5
  178. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  179. package/docs/types/ContentTypeMap.html +5 -5
  180. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  181. package/docs/types/Create3DElementReturnType.html +5 -5
  182. package/docs/types/CruisePluginExportType.html +5 -5
  183. package/docs/types/Direction-1.html +5 -5
  184. package/docs/types/Direction4.html +5 -5
  185. package/docs/types/FloorplanRuleLabels.html +5 -5
  186. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  187. package/docs/types/GuideLinePluginExportType.html +5 -5
  188. package/docs/types/HelperEventMap.html +9 -9
  189. package/docs/types/LoadTagConfig.html +5 -5
  190. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  191. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  192. package/docs/types/MediaData.html +5 -5
  193. package/docs/types/MediaStore.html +5 -5
  194. package/docs/types/ModelElement.html +5 -5
  195. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  196. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  198. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  199. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  200. package/docs/types/MoveArgs.html +5 -5
  201. package/docs/types/MoveOpts.html +5 -5
  202. package/docs/types/Object3DHelperEventMap.html +5 -5
  203. package/docs/types/ObjectFit.html +5 -5
  204. package/docs/types/PaintBrushEventMap.html +5 -5
  205. package/docs/types/PanoCompassPluginData.html +5 -5
  206. package/docs/types/PanoCompassPluginExportType.html +5 -5
  207. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  208. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  209. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  210. package/docs/types/PanoIndex.html +5 -5
  211. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  212. package/docs/types/PanoMeasureReturnType.html +5 -5
  213. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  214. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  215. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  216. package/docs/types/PlaneTag.html +5 -5
  217. package/docs/types/PlaneTagElement.html +5 -5
  218. package/docs/types/Point2DElement.html +5 -5
  219. package/docs/types/Point2DTag.html +5 -5
  220. package/docs/types/Point3DElement.html +5 -5
  221. package/docs/types/Point3DTag.html +5 -5
  222. package/docs/types/PointTag.html +5 -5
  223. package/docs/types/PointTagElement.html +5 -5
  224. package/docs/types/Position.html +5 -5
  225. package/docs/types/RotateArgs.html +5 -5
  226. package/docs/types/RotateOpts.html +5 -5
  227. package/docs/types/RuleLabelsKey.html +5 -5
  228. package/docs/types/RuleLabelsValue.html +5 -5
  229. package/docs/types/StickType.html +5 -5
  230. package/docs/types/Tag.html +5 -5
  231. package/docs/types/Tag2D.html +5 -5
  232. package/docs/types/Tag3D.html +5 -5
  233. package/docs/types/TagContentType.html +5 -5
  234. package/docs/types/TagDimensionType.html +5 -5
  235. package/docs/types/TagElement.html +5 -5
  236. package/docs/types/TagEvents.html +5 -5
  237. package/docs/types/TagGLTFObject.html +5 -5
  238. package/docs/types/TagHooks.html +5 -5
  239. package/docs/types/TagIconSize.html +5 -5
  240. package/docs/types/TagId.html +5 -5
  241. package/docs/types/TagPointType.html +5 -5
  242. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  243. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  244. package/docs/types/WorkCode.html +5 -5
  245. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  246. package/docs/variables/PLUGIN.html +5 -5
  247. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  248. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  249. package/docs/variables/VERSION.html +5 -5
  250. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  251. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  252. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  253. package/libs/Object3DHelperPlugin/Controller.d.ts +1 -0
  254. package/libs/Object3DHelperPlugin/Controller.js +5 -2
  255. package/libs/Object3DHelperPlugin/index.js +10 -7
  256. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  257. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  258. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  259. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  260. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  261. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  262. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  263. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  264. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  265. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  266. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  267. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  268. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  269. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  270. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  271. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  272. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  273. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  274. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  275. package/libs/components/PaintBrush/Controller.js +98 -98
  276. package/libs/index.js +102 -100
  277. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +15 -15
  278. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -25
  279. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +19 -22
  280. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +4 -3
  281. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +98 -109
  282. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +25 -16
  283. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +66 -88
  284. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -1
  285. package/libs/shared-utils/Object3DHelper/utils/setObjectQuaternion.d.ts +8 -0
  286. package/libs/shared-utils/Object3DHelper/utils/setObjectQuaternion.js +11 -0
  287. package/libs/shared-utils/math/deg2Rad.d.ts +1 -0
  288. package/libs/shared-utils/math/deg2Rad.js +6 -0
  289. package/package.json +1 -1
@@ -1,65 +1,65 @@
1
- var j = Object.defineProperty;
2
- var M = (o, n, t) => n in o ? j(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
3
- var g = (o, n, t) => (M(o, typeof n != "symbol" ? n + "" : n, t), t);
1
+ var M = Object.defineProperty;
2
+ var U = (r, n, t) => n in r ? M(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t;
3
+ var g = (r, n, t) => (U(r, typeof n != "symbol" ? n + "" : n, t), t);
4
4
  import { Tween as W, Easing as $ } from "@tweenjs/tween.js";
5
- function U() {
5
+ function j() {
6
6
  }
7
- const S = () => Promise.resolve(), k = {
7
+ const L = () => Promise.resolve(), k = {
8
8
  __queue: Promise.resolve()
9
9
  };
10
- function q(o = S) {
11
- k.__queue = k.__queue.then(o).catch(S);
10
+ function q(r = L) {
11
+ k.__queue = k.__queue.then(r).catch(L);
12
12
  }
13
- function b(o, n, t) {
14
- const e = o.x, s = o.y, i = Math.floor(e / n * 1e4) / 1e4, c = Math.floor(s / t * 1e4) / 1e4;
13
+ function _(r, n, t) {
14
+ const e = r.x, s = r.y, i = Math.floor(e / n * 1e4) / 1e4, c = Math.floor(s / t * 1e4) / 1e4;
15
15
  return { x: i, y: c };
16
16
  }
17
- function T(o, n, t) {
18
- const { x: e, y: s } = o, i = e * n, c = s * t;
17
+ function T(r, n, t) {
18
+ const { x: e, y: s } = r, i = e * n, c = s * t;
19
19
  return { x: i, y: c };
20
20
  }
21
- function B(o) {
22
- if (o.length < 2)
21
+ function b(r) {
22
+ if (r.length < 2)
23
23
  return {};
24
- const n = o.slice(-2), t = n[0], e = {
24
+ const n = r.slice(-2), t = n[0], e = {
25
25
  x: (n[0].x + n[1].x) / 2,
26
26
  y: (n[0].y + n[1].y) / 2
27
27
  };
28
28
  return { control: t, end: e };
29
29
  }
30
- function O(o, n, t = U) {
30
+ function O(r, n, t = j) {
31
31
  new Promise((e) => {
32
32
  setTimeout(() => {
33
33
  t(), e(!0);
34
- }, n * o);
34
+ }, n * r);
35
35
  });
36
36
  }
37
- const I = window, H = window.requestAnimationFrame || I.webkitRequestAnimationFrame || ((o) => setTimeout(o, 16));
38
- function D(o, n = 0) {
39
- n <= 0 ? H(o) : H(() => D(o, n - 1));
37
+ const I = window, H = window.requestAnimationFrame || I.webkitRequestAnimationFrame || ((r) => setTimeout(r, 16));
38
+ function E(r, n = 0) {
39
+ n <= 0 ? H(r) : H(() => E(r, n - 1));
40
40
  }
41
- function A(o, n, t, e = $.Linear.None) {
42
- const s = new W(o).to(n, t).easing(e).start();
41
+ function A(r, n, t, e = $.Linear.None) {
42
+ const s = new W(r).to(n, t).easing(e).start();
43
43
  function i(c) {
44
44
  !s.update(c) || requestAnimationFrame(i);
45
45
  }
46
46
  return requestAnimationFrame(i), s;
47
47
  }
48
- var v = /* @__PURE__ */ ((o) => (o.Drawline = "Drawline", o.Undo = "Undo", o.Exit = "Exit", o))(v || {});
48
+ var v = /* @__PURE__ */ ((r) => (r.Drawline = "Drawline", r.Undo = "Undo", r.Exit = "Exit", r))(v || {});
49
49
  const C = Symbol("$$PAINT_BRUSH_EVENT$$");
50
- function E(o) {
51
- return o[C] || (o[C] = {}), o[C];
50
+ function B(r) {
51
+ return r[C] || (r[C] = {}), r[C];
52
52
  }
53
- function F(o) {
54
- o[C] || delete o[C];
53
+ function F(r) {
54
+ r[C] || delete r[C];
55
55
  }
56
56
  class P {
57
57
  hasListener(n) {
58
- const t = E(this);
58
+ const t = B(this);
59
59
  return t && t[n] && t[n].length > 0;
60
60
  }
61
61
  on(n, t, e) {
62
- const s = E(this);
62
+ const s = B(this);
63
63
  return s[n] || (s[n] = []), s[n].push([t, e || !1]), () => this.off(n, t);
64
64
  }
65
65
  once(n, t) {
@@ -70,7 +70,7 @@ class P {
70
70
  F(this);
71
71
  return;
72
72
  }
73
- const e = E(this);
73
+ const e = B(this);
74
74
  if (e[n] || (e[n] = []), t === void 0) {
75
75
  e[n].length = 0;
76
76
  return;
@@ -82,10 +82,10 @@ class P {
82
82
  }
83
83
  emit(n, ...t) {
84
84
  let e = !1;
85
- const i = E(this)[n] || [];
85
+ const i = B(this)[n] || [];
86
86
  for (let c of i.slice()) {
87
- const [r, l = !1] = c, f = r(...t);
88
- l && this.off(n, r), f === !1 && (e = !0);
87
+ const [o, l = !1] = c, f = o(...t);
88
+ l && this.off(n, o), f === !1 && (e = !0);
89
89
  }
90
90
  return e;
91
91
  }
@@ -248,9 +248,9 @@ class X extends P {
248
248
  const e = document.createElement("div");
249
249
  e.className = "_paintBrush-ctrlinner";
250
250
  const s = document.createElement("a");
251
- s.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--undo", s.addEventListener("click", (r) => {
251
+ s.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--undo", s.addEventListener("click", (o) => {
252
252
  var h;
253
- if (r.stopPropagation(), this.configs.onClickUndo && this.configs.onClickUndo(), !this.canvas[this.uuid] || !this.data[this.uuid] || this.data[this.uuid].length === 0)
253
+ if (o.stopPropagation(), this.configs.onClickUndo && this.configs.onClickUndo(), !this.canvas[this.uuid] || !this.data[this.uuid] || this.data[this.uuid].length === 0)
254
254
  return;
255
255
  const l = this.data[this.uuid].pop();
256
256
  l && this.emitStateChange({
@@ -267,13 +267,13 @@ class X extends P {
267
267
  f && f.clearRect(0, 0, x, u), this.data[this.uuid].forEach((a) => this.handleDrawLine(this.uuid, a, { withUndo: !0 }));
268
268
  });
269
269
  const i = document.createElement("a");
270
- return i.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--close", i.addEventListener("click", (r) => {
271
- r.stopPropagation(), this.closeBrush(), this.configs.onClickClose && this.configs.onClickClose();
272
- }), [s, i].forEach((r) => {
270
+ return i.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--close", i.addEventListener("click", (o) => {
271
+ o.stopPropagation(), this.closeBrush(), this.configs.onClickClose && this.configs.onClickClose();
272
+ }), [s, i].forEach((o) => {
273
273
  const l = document.createElement("i");
274
274
  l.className = "brush-icon";
275
275
  const f = document.createElement("span");
276
- f.className = "brush-txt", f.innerText = r.className.endsWith("undo") ? this.configs.onUndoText : this.configs.onExitText, r.appendChild(l), r.appendChild(f);
276
+ f.className = "brush-txt", f.innerText = o.className.endsWith("undo") ? this.configs.onUndoText : this.configs.onExitText, o.appendChild(l), o.appendChild(f);
277
277
  }), e.appendChild(s), e.appendChild(i), t.appendChild(e), this.container.appendChild(t), t;
278
278
  }
279
279
  openBrush() {
@@ -311,7 +311,7 @@ class X extends P {
311
311
  return;
312
312
  const s = this.color || "#6D92FF";
313
313
  e.strokeStyle = s;
314
- let i = null, c = [], r, l = [], f = 0;
314
+ let i = null, c = [], o, l = [], f = 0;
315
315
  const x = (u, h, a) => {
316
316
  const p = this.color || "#ff0000";
317
317
  e.strokeStyle = p, e.beginPath(), e.moveTo(u.x, u.y), e.quadraticCurveTo(h.x, h.y, a.x, a.y), e.stroke();
@@ -319,27 +319,27 @@ class X extends P {
319
319
  t.onmousedown = (u) => {
320
320
  u.preventDefault(), f = Date.now();
321
321
  const h = u.clientX, a = u.clientY;
322
- c = [], c.push({ x: h, y: a }), i = { x: h, y: a }, r = b({ x: h, y: a }, this.clientWidth, this.clientHeight), l = [];
322
+ c = [], c.push({ x: h, y: a }), i = { x: h, y: a }, o = _({ x: h, y: a }, this.clientWidth, this.clientHeight), l = [];
323
323
  }, t.onmousemove = (u) => {
324
324
  if (u.preventDefault(), !i)
325
325
  return;
326
326
  const h = Number(u.clientX), a = Number(u.clientY);
327
- if (Math.abs(h - i.x) < 5 && Math.abs(a - i.y) < 5 || (c.push({ x: h, y: a }), l.push(b({ x: h, y: a }, this.clientWidth, this.clientHeight)), c.length < 3))
327
+ if (Math.abs(h - i.x) < 5 && Math.abs(a - i.y) < 5 || (c.push({ x: h, y: a }), l.push(_({ x: h, y: a }, this.clientWidth, this.clientHeight)), c.length < 3))
328
328
  return;
329
- const { control: p, end: d } = B(c);
329
+ const { control: p, end: d } = b(c);
330
330
  !p || !d || (x(i, p, d), i = d);
331
331
  }, t.onmouseup = (u) => {
332
332
  if (u.preventDefault(), i = null, c.length < 3)
333
333
  return;
334
334
  this.data[this.uuid] || (this.data[this.uuid] = []);
335
335
  const h = Date.now() - f, a = {
336
- move: Object.assign({}, r),
336
+ move: Object.assign({}, o),
337
337
  uuid: this.uuid,
338
338
  line: [...l],
339
339
  color: this.color,
340
340
  duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
341
341
  };
342
- this.data[this.uuid].push(a), D(() => {
342
+ this.data[this.uuid].push(a), E(() => {
343
343
  this.emitStateChange({
344
344
  type: v.Drawline,
345
345
  color: this.color,
@@ -351,27 +351,27 @@ class X extends P {
351
351
  }, t.ontouchstart = (u) => {
352
352
  u.preventDefault(), f = Date.now();
353
353
  const h = u.touches[0].clientX, a = u.touches[0].clientY;
354
- c = [], c.push({ x: h, y: a }), i = { x: h, y: a }, console.log("ontouchstart", h, a, i), r = b({ x: h, y: a }, this.clientWidth, this.clientHeight), l = [];
354
+ c = [], c.push({ x: h, y: a }), i = { x: h, y: a }, o = _({ x: h, y: a }, this.clientWidth, this.clientHeight), l = [];
355
355
  }, t.ontouchmove = (u) => {
356
356
  if (u.preventDefault(), !i)
357
357
  return;
358
358
  const h = Number(u.touches[0].clientX), a = Number(u.touches[0].clientY);
359
- if (Math.abs(h - i.x) < 5 && Math.abs(a - i.y) < 5 || (c.push({ x: h, y: a }), l.push(b({ x: h, y: a }, this.clientWidth, this.clientHeight)), c.length < 3))
359
+ if (Math.abs(h - i.x) < 5 && Math.abs(a - i.y) < 5 || (c.push({ x: h, y: a }), l.push(_({ x: h, y: a }, this.clientWidth, this.clientHeight)), c.length < 3))
360
360
  return;
361
- const { control: p, end: d } = B(c);
361
+ const { control: p, end: d } = b(c);
362
362
  !p || !d || (x(i, p, d), i = d);
363
363
  }, t.ontouchend = t.ontouchcancel = (u) => {
364
364
  if (u.preventDefault(), i = null, c.length < 3)
365
365
  return;
366
366
  this.data[this.uuid] || (this.data[this.uuid] = []);
367
367
  const h = Date.now() - f, a = {
368
- move: Object.assign({}, r),
368
+ move: Object.assign({}, o),
369
369
  line: [...l],
370
370
  uuid: this.uuid,
371
371
  color: this.color,
372
372
  duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
373
373
  };
374
- this.data[this.uuid].push(a), D(() => {
374
+ this.data[this.uuid].push(a), E(() => {
375
375
  this.emitStateChange({
376
376
  type: v.Drawline,
377
377
  color: this.color,
@@ -391,7 +391,7 @@ class X extends P {
391
391
  if (!i || !i.line)
392
392
  return;
393
393
  const c = Math.ceil(i.line.length / 100);
394
- for (let r = 0; r < c; r++) {
394
+ for (let o = 0; o < c; o++) {
395
395
  const l = {
396
396
  uuid: this.uuid,
397
397
  color: this.color,
@@ -402,12 +402,12 @@ class X extends P {
402
402
  move: i.move,
403
403
  duration: i.duration,
404
404
  color: this.color,
405
- line: i.line.slice(r * 100, (r + 1) * 100)
405
+ line: i.line.slice(o * 100, (o + 1) * 100)
406
406
  },
407
407
  timestamp: s,
408
- end: r === c - 1
408
+ end: o === c - 1
409
409
  };
410
- O(r, 20, () => {
410
+ O(o, 20, () => {
411
411
  this.emit("stateChange", l, e);
412
412
  });
413
413
  }
@@ -425,40 +425,40 @@ class X extends P {
425
425
  if (!!this.ready)
426
426
  switch (s) {
427
427
  case v.Drawline:
428
- const { state: c, timestamp: r, end: l } = t;
429
- if (!r || !c)
428
+ const { state: c, timestamp: o, end: l } = t;
429
+ if (!o || !c)
430
430
  return;
431
- this.tempLine[r] = [].concat(this.tempLine[r] || [], c.line), l && (Object.assign(c, { line: this.tempLine[r] }), this.handleDrawLine(i, c, {}, () => delete this.tempLine[r]));
431
+ this.tempLine[o] = [].concat(this.tempLine[o] || [], c.line), l && (Object.assign(c, { line: this.tempLine[o] }), this.handleDrawLine(i, c, {}, () => delete this.tempLine[o]));
432
432
  break;
433
433
  case v.Undo:
434
434
  this.handleUndo(i);
435
435
  break;
436
436
  }
437
437
  }
438
- handleDrawLine(t, e, { withUndo: s = !1 }, i = U) {
439
- !e || Object.prototype.toString.call(e) != "[object Object]" || Object.keys(e).length === 0 || (console.log("handleDrawLine", e, e.line), q(() => new Promise((c) => {
438
+ handleDrawLine(t, e, { withUndo: s = !1 }, i = j) {
439
+ !e || Object.prototype.toString.call(e) != "[object Object]" || Object.keys(e).length === 0 || q(() => new Promise((c) => {
440
440
  if (s || (this.canvas[t] || (this.canvas[t] = this.initCanvas("_paintBrush-canvas--sync")), this.data[t] || (this.data[t] = []), this.data[t].push(e)), !this.canvas[t])
441
441
  return;
442
- const r = this.canvas[t].getContext("2d");
443
- if (!r)
442
+ const o = this.canvas[t].getContext("2d");
443
+ if (!o)
444
444
  return;
445
445
  const { line: l = [], color: f = "black", duration: x = 0, uuid: u } = e, h = T(e.move || {}, this.clientWidth, this.clientHeight);
446
446
  let a = [h];
447
- if (r.strokeStyle = f, r.beginPath(), r.moveTo(h.x, h.y), x && !s) {
447
+ if (o.strokeStyle = f, o.beginPath(), o.moveTo(h.x, h.y), x && !s) {
448
448
  let p = [];
449
449
  const d = this;
450
450
  d.tween = A({ step: 0 }, { step: l.length - 1 }, x).onUpdate(({ step: y }) => {
451
- var L;
451
+ var S;
452
452
  if (d.tweening = !0, !d.ready)
453
- return r.clearRect(0, 0, d.canvas[u].width, d.canvas[u].height), (L = d.tween) == null ? void 0 : L.stop();
454
- const _ = Math.floor(y);
455
- if (!p.find((w) => w === _)) {
456
- if (p.push(_), console.log("__debug__", l, l[_], _), a.push(T(l[_], d.clientWidth, d.clientHeight)), a.length < 3)
453
+ return o.clearRect(0, 0, d.canvas[u].width, d.canvas[u].height), (S = d.tween) == null ? void 0 : S.stop();
454
+ const D = Math.floor(y);
455
+ if (!p.find((w) => w === D)) {
456
+ if (p.push(D), a.push(T(l[D], d.clientWidth, d.clientHeight)), a.length < 3)
457
457
  return;
458
- const { control: w, end: N } = B(a);
458
+ const { control: w, end: N } = b(a);
459
459
  if (!w || !N)
460
460
  return;
461
- r.quadraticCurveTo(w.x, w.y, N.x, N.y), r.stroke();
461
+ o.quadraticCurveTo(w.x, w.y, N.x, N.y), o.stroke();
462
462
  }
463
463
  }).onComplete((y) => {
464
464
  d.tween = void 0, d.tweening = !1, p = [], a = [], i && i(), c();
@@ -467,15 +467,15 @@ class X extends P {
467
467
  for (let p = 0; p < l.length; p++) {
468
468
  if (a.push(T(l[p], this.clientWidth, this.clientHeight)), a.length < 3)
469
469
  continue;
470
- const { control: d, end: y } = B(a);
471
- !d || !y || r.quadraticCurveTo(d.x, d.y, y.x, y.y);
470
+ const { control: d, end: y } = b(a);
471
+ !d || !y || o.quadraticCurveTo(d.x, d.y, y.x, y.y);
472
472
  }
473
- r.stroke(), a = [], i && i(), c();
473
+ o.stroke(), a = [], i && i(), c();
474
474
  }
475
- })));
475
+ }));
476
476
  }
477
477
  handleUndo(t) {
478
- if (console.log("handleUndo", t, this.canvas[t]), !this.canvas[t] || !this.data[t] || this.data[t].length === 0)
478
+ if (!this.canvas[t] || !this.data[t] || this.data[t].length === 0)
479
479
  return;
480
480
  this.data[t].pop();
481
481
  const e = () => {
@@ -484,7 +484,7 @@ class X extends P {
484
484
  s && s.clearRect(0, 0, this.canvas[t].width, this.canvas[t].height), this.data[t].forEach((c) => this.handleDrawLine(t, c, { withUndo: !0 }));
485
485
  };
486
486
  if (this.tween && this.tweening) {
487
- this.tween.stop(), D(e, 60);
487
+ this.tween.stop(), E(e, 60);
488
488
  return;
489
489
  }
490
490
  e();
@@ -68,6 +68,7 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
68
68
  yzCircleEnable?: boolean;
69
69
  xzCircleEnable?: boolean;
70
70
  xyCircleEnable?: boolean;
71
+ angleTipsEnable?: boolean;
71
72
  }>;
72
73
  scaleHelper?: HelperConfig;
73
74
  boundingBoxHelper?: HelperConfig;