@realsee/dnalogel 2.19.0 → 2.19.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 (306) hide show
  1. package/dist/index.cjs.js +4 -4
  2. package/dist/index.js +10 -9
  3. package/dist/index.umd.js +4 -4
  4. package/docs/classes/CSS3DRender.html +3 -3
  5. package/docs/classes/CruisePluginController.html +3 -3
  6. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  7. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  8. package/docs/classes/Magnifier.html +3 -3
  9. package/docs/classes/ModelRoomLabelController.html +3 -3
  10. package/docs/classes/Object3DHelperController.html +3 -3
  11. package/docs/classes/PaintBrush.html +3 -3
  12. package/docs/classes/PanoMeasurePluginLine.html +3 -3
  13. package/docs/classes/PanoMeasurePluginModel.html +3 -3
  14. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  15. package/docs/classes/PanoMeasurePluginPolyline.html +11 -11
  16. package/docs/classes/PanoTagPluginController.html +3 -3
  17. package/docs/classes/Util.BetterTween.html +3 -3
  18. package/docs/classes/Util.FivePointSelector.html +3 -3
  19. package/docs/classes/Util.Interval.html +3 -3
  20. package/docs/classes/Util.Magnifier.html +3 -3
  21. package/docs/classes/Util.PointDomHelper.html +3 -3
  22. package/docs/classes/Util.PointHelper.html +3 -3
  23. package/docs/classes/Util.Rectangle.html +3 -3
  24. package/docs/enums/CameraMovementEffect.html +3 -3
  25. package/docs/enums/ContentType.html +3 -3
  26. package/docs/enums/DIRECTION.html +3 -3
  27. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  28. package/docs/enums/DimensionType.html +3 -3
  29. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  30. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  31. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  32. package/docs/enums/Rotation.html +3 -3
  33. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  34. package/docs/functions/CameraMovementPlugin.html +3 -3
  35. package/docs/functions/CruisePlugin.html +3 -3
  36. package/docs/functions/GuideLinePlugin.html +3 -3
  37. package/docs/functions/ItemLabelPlugin.html +3 -3
  38. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  39. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  40. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  41. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  42. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  43. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  44. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  45. package/docs/functions/ModelViewPlugin.html +3 -3
  46. package/docs/functions/Object3DHelperPlugin.html +3 -3
  47. package/docs/functions/PanoCompassPlugin.html +3 -3
  48. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  49. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  50. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  51. package/docs/functions/PanoMeasurePlugin.html +3 -3
  52. package/docs/functions/PanoRulerPlugin.html +3 -3
  53. package/docs/functions/PanoRulerProPlugin.html +3 -3
  54. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  55. package/docs/functions/PanoTagPlugin.html +3 -3
  56. package/docs/functions/PanoVideoPlugin.html +3 -3
  57. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  58. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  59. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  60. package/docs/functions/Util.getFrameTime.html +3 -3
  61. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  62. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  63. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  64. package/docs/functions/Util.isModelLike.html +3 -3
  65. package/docs/functions/Util.isNil.html +3 -3
  66. package/docs/functions/Util.isPanoramaLike.html +3 -3
  67. package/docs/functions/Util.nextFrame.html +3 -3
  68. package/docs/functions/Util.notNil.html +3 -3
  69. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  70. package/docs/functions/Util.tweenProgress.html +3 -3
  71. package/docs/functions/Util.uuid.html +3 -3
  72. package/docs/functions/pluginFlag.html +3 -3
  73. package/docs/index.html +4 -4
  74. package/docs/interfaces/AddTagConfig.html +3 -3
  75. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  76. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  77. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  78. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  79. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  80. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  81. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  82. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  83. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  84. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  85. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  86. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  87. package/docs/interfaces/EventMap.html +3 -3
  88. package/docs/interfaces/FloorplanBounding.html +3 -3
  89. package/docs/interfaces/FloorplanData.html +3 -3
  90. package/docs/interfaces/FloorplanEntrance.html +3 -3
  91. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  92. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  93. package/docs/interfaces/FloorplanFloorData.html +3 -3
  94. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  95. package/docs/interfaces/FloorplanObserver.html +3 -3
  96. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  97. package/docs/interfaces/FloorplanPosition.html +3 -3
  98. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  99. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  100. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  101. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  102. package/docs/interfaces/FloorplanServerData.html +3 -3
  103. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  104. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  105. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  106. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  107. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  108. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  109. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  110. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  111. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  112. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  113. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  114. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  115. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  116. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  117. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  118. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  119. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  120. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  121. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  122. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  123. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  124. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  125. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  126. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  127. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  128. package/docs/interfaces/HelperOffset.html +3 -3
  129. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  130. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  131. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  132. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  133. package/docs/interfaces/MinMax.html +3 -3
  134. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  135. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  136. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  137. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  138. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  139. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  140. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  141. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  142. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  143. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  144. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  145. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  146. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  147. package/docs/interfaces/Object3DHelperState.html +3 -3
  148. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  149. package/docs/interfaces/PaintBrushAction.html +3 -3
  150. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  151. package/docs/interfaces/PaintBrushState.html +3 -3
  152. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  153. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  154. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  155. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  156. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  157. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  158. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  159. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  160. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  161. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  162. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  163. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  164. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  165. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  166. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  167. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  168. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  169. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  170. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  171. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  172. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  173. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  174. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  175. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  176. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  177. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  178. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  179. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  180. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  181. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  182. package/docs/interfaces/Point.html +3 -3
  183. package/docs/interfaces/Room.html +3 -3
  184. package/docs/interfaces/RoomInfo.html +3 -3
  185. package/docs/interfaces/RoomLabel.html +3 -3
  186. package/docs/interfaces/RoomRules.html +3 -3
  187. package/docs/interfaces/Rooms.html +3 -3
  188. package/docs/interfaces/Scissor.html +3 -3
  189. package/docs/interfaces/State.html +3 -3
  190. package/docs/interfaces/TagCacheInterface.html +3 -3
  191. package/docs/interfaces/TagConfig.html +3 -3
  192. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  193. package/docs/interfaces/TagIconUrl.html +3 -3
  194. package/docs/interfaces/TagObjectGroup.html +3 -3
  195. package/docs/interfaces/TagStyle.html +3 -3
  196. package/docs/interfaces/Tags.html +3 -3
  197. package/docs/interfaces/TemporaryState.html +3 -3
  198. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  199. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  200. package/docs/modules/CruisePluginTypes.html +3 -3
  201. package/docs/modules/GuideLineItem.html +3 -3
  202. package/docs/modules/GuideLineModeItem.html +3 -3
  203. package/docs/modules/GuideLinePluginType.html +3 -3
  204. package/docs/modules/PanoVideoPluginType.html +3 -3
  205. package/docs/modules/Util.html +3 -3
  206. package/docs/modules.html +4 -4
  207. package/docs/types/ArrayPosition.html +3 -3
  208. package/docs/types/AudioAppearance.html +3 -3
  209. package/docs/types/AudioTagTypeConfigKey.html +3 -3
  210. package/docs/types/CSS3DRenderExportType.html +3 -3
  211. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  212. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  213. package/docs/types/ClassFunctionParameters.html +3 -3
  214. package/docs/types/Color.html +3 -3
  215. package/docs/types/ContentTypeConfigKey.html +3 -3
  216. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  217. package/docs/types/ContentTypeMap.html +3 -3
  218. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  219. package/docs/types/Create3DElementReturnType.html +3 -3
  220. package/docs/types/CruisePluginExportType.html +3 -3
  221. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  222. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  223. package/docs/types/Direction-1.html +3 -3
  224. package/docs/types/Direction4.html +3 -3
  225. package/docs/types/ElementRenderer.html +3 -3
  226. package/docs/types/FloorplanRuleLabels.html +3 -3
  227. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  228. package/docs/types/GuideLinePluginExportType.html +3 -3
  229. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
  230. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  231. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  232. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  233. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  234. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  235. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  236. package/docs/types/HelperEventMap.html +3 -3
  237. package/docs/types/LoadTagConfig.html +3 -3
  238. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  239. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  240. package/docs/types/MediaData.html +3 -3
  241. package/docs/types/MediaStore.html +3 -3
  242. package/docs/types/ModelElement.html +3 -3
  243. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  244. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  245. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  246. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  247. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  248. package/docs/types/MoveArgs.html +3 -3
  249. package/docs/types/MoveOpts.html +3 -3
  250. package/docs/types/Object3DHelperEventMap.html +3 -3
  251. package/docs/types/ObjectFit.html +3 -3
  252. package/docs/types/PaintBrushEventMap.html +3 -3
  253. package/docs/types/PanoCompassPluginData.html +3 -3
  254. package/docs/types/PanoCompassPluginExportType.html +3 -3
  255. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  256. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  257. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  258. package/docs/types/PanoIndex.html +3 -3
  259. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  260. package/docs/types/PanoMeasureReturnType.html +3 -3
  261. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  262. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  263. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  264. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  265. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  266. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  267. package/docs/types/PlaneTag.html +3 -3
  268. package/docs/types/PlaneTagElement.html +3 -3
  269. package/docs/types/Point2DElement.html +3 -3
  270. package/docs/types/Point2DTag.html +3 -3
  271. package/docs/types/Point3DElement.html +3 -3
  272. package/docs/types/Point3DTag.html +3 -3
  273. package/docs/types/PointTag.html +3 -3
  274. package/docs/types/PointTagElement.html +3 -3
  275. package/docs/types/Position.html +3 -3
  276. package/docs/types/RotateArgs.html +3 -3
  277. package/docs/types/RotateOpts.html +3 -3
  278. package/docs/types/RuleLabelsKey.html +3 -3
  279. package/docs/types/RuleLabelsValue.html +3 -3
  280. package/docs/types/StickType.html +3 -3
  281. package/docs/types/Tag.html +3 -3
  282. package/docs/types/Tag2D.html +3 -3
  283. package/docs/types/Tag3D.html +3 -3
  284. package/docs/types/TagContentType.html +3 -3
  285. package/docs/types/TagDimensionType.html +3 -3
  286. package/docs/types/TagElement.html +3 -3
  287. package/docs/types/TagEvents.html +3 -3
  288. package/docs/types/TagGLTFObject.html +3 -3
  289. package/docs/types/TagHooks.html +3 -3
  290. package/docs/types/TagIconSize.html +3 -3
  291. package/docs/types/TagId.html +3 -3
  292. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  293. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  294. package/docs/types/WorkCode.html +3 -3
  295. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  296. package/docs/variables/PLUGIN.html +3 -3
  297. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  298. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  299. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  300. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  301. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  302. package/libs/PanoMeasurePlugin/Controller/MixedController.js +27 -27
  303. package/libs/PanoMeasurePlugin/Model/polyline.js +20 -19
  304. package/libs/base/BasePlugin.js +1 -1
  305. package/libs/shared-utils/logger.js +1 -1
  306. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- var a = Object.defineProperty;
2
- var m = (r, i, t) => i in r ? a(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t;
3
- var s = (r, i, t) => (m(r, typeof i != "symbol" ? i + "" : i, t), t);
1
+ var m = Object.defineProperty;
2
+ var a = (r, i, t) => i in r ? m(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t;
3
+ var s = (r, i, t) => (a(r, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import P from "./line.js";
5
5
  import g from "./point.js";
6
6
  import { uuid as L } from "../../shared-utils/uuid.js";
@@ -12,7 +12,7 @@ import "three";
12
12
  import "../utils/distanceDom.js";
13
13
  import "../utils/isNDCPointInScreen.js";
14
14
  import "../../shared-utils/removeArrayItem.js";
15
- class R {
15
+ class C {
16
16
  constructor(i) {
17
17
  s(this, "id", L());
18
18
  s(this, "lines", []);
@@ -28,8 +28,8 @@ class R {
28
28
  console.error(new Error("不能重复添加线段"));
29
29
  return;
30
30
  }
31
- const t = this.getLastPoint(), l = t && i.findAnotherPoint(t);
32
- t ? t && l ? (this.lines.push(i), this.points.push(...i.points), this.hook.emit("lineAdded", i)) : console.error(new Error("传入线段无法与当前折线进行连接")) : (this.lines.push(i), this.points.push(...i.points), this.hook.emit("lineAdded", i));
31
+ const t = this.getLastPoint(), h = t && i.findAnotherPoint(t);
32
+ t ? t && h ? (this.lines.push(i), this.points.push(...i.points), this.hook.emit("lineAdded", i)) : console.error(new Error("传入线段无法与当前折线进行连接")) : (this.lines.push(i), this.points.push(...i.points), this.hook.emit("lineAdded", i));
33
33
  }
34
34
  removeLine(i) {
35
35
  if (this.lines.length !== 0) {
@@ -48,7 +48,8 @@ class R {
48
48
  return this.lines.slice(-1)[0];
49
49
  }
50
50
  clear() {
51
- this.lines.slice(0, this.lines.length), this.points.slice(0, this.points.length);
51
+ const i = this.lines.slice();
52
+ this.lines.slice(0, this.lines.length), this.points.slice(0, this.points.length), i.reduceRight((t, h) => this.hook.emit("lineRemoved", h), void 0);
52
53
  }
53
54
  /** 是否产生重叠 */
54
55
  overlapWith(i) {
@@ -75,27 +76,27 @@ class R {
75
76
  }
76
77
  fromJson(i) {
77
78
  this.clear(), this.id = i.id;
78
- const { getPoint: t, getAllPoints: l } = f(), d = i.lines.map((e) => {
79
- const [p, u] = e.points, n = t(p), h = t(u);
80
- if (!n || !h)
79
+ const { getPoint: t, getAllPoints: h } = f(), u = i.lines.map((e) => {
80
+ const [p, d] = e.points, n = t(p), l = t(d);
81
+ if (!n || !l)
81
82
  throw new Error("线上的点不存在");
82
- const o = new P(n, h, this.model);
83
+ const o = new P(n, l, this.model);
83
84
  return o.id = e.id, o.text = e.text, o;
84
- }), c = l();
85
- this.points.push(...c), this.lines.push(...d), this.visiblePanoIndexes = i.visiblePanoIndexes;
85
+ }), c = h();
86
+ this.points.push(...c), this.lines.push(...u), this.visiblePanoIndexes = i.visiblePanoIndexes;
86
87
  function f() {
87
88
  const e = /* @__PURE__ */ new Map();
88
89
  function p(n) {
89
- const h = e.get(n.id);
90
- if (h)
91
- return h;
90
+ const l = e.get(n.id);
91
+ if (l)
92
+ return l;
92
93
  const o = new g(n.position);
93
94
  return o.id = n.id, e.set(n.id, o), o;
94
95
  }
95
- function u() {
96
+ function d() {
96
97
  return Array.from(e.values());
97
98
  }
98
- return { getPoint: p, getAllPoints: u };
99
+ return { getPoint: p, getAllPoints: d };
99
100
  }
100
101
  return this;
101
102
  }
@@ -104,5 +105,5 @@ class R {
104
105
  }
105
106
  }
106
107
  export {
107
- R as Polyline
108
+ C as Polyline
108
109
  };
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.19.0");
17
+ e(this, "VERSION", "2.19.1");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.19.0",
3
+ "%c %c@realsee/dnalogel %cv2.19.1",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.19.0",
10
+ "version": "2.19.1",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",