@realsee/dnalogel 2.21.0-dev.9 → 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 (456) hide show
  1. package/dist/PanoCompassPlugin/typings.d.ts +1 -1
  2. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +4 -15
  3. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +18 -26
  4. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -9
  5. package/dist/PanoMeasurePlugin/Controller/index.d.ts +9 -26
  6. package/dist/PanoMeasurePlugin/Model/index.d.ts +0 -10
  7. package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -7
  8. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +0 -4
  9. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +4 -8
  10. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  11. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  12. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +3 -10
  13. package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -3
  14. package/dist/PanoMeasurePlugin/typings/data.d.ts +0 -24
  15. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +3 -13
  16. package/dist/PanoMeasurePlugin/typings/index.d.ts +1 -1
  17. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +30 -0
  18. package/dist/{shared-utils → PanoMeasurePlugin/utils}/getIntersectionFromEvent.d.ts +1 -1
  19. package/{libs/shared-utils → dist/PanoMeasurePlugin/utils}/getPointFromHammerEvent.d.ts +1 -1
  20. package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -2
  21. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +1 -2
  22. package/dist/base/BasePlugin.d.ts +4 -4
  23. package/dist/base/BasePluginWithData.d.ts +2 -1
  24. package/dist/index.cjs.js +67 -69
  25. package/dist/index.js +7095 -8835
  26. package/dist/index.umd.js +60 -62
  27. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  28. package/dist/shared-utils/absoluteUrl.d.ts +2 -2
  29. package/dist/shared-utils/three/FivePointSelector.d.ts +36 -0
  30. package/dist/shared-utils/three/Magnifier.d.ts +0 -3
  31. package/dist/shared-utils/three/index.d.ts +1 -1
  32. package/docs/assets/search.js +1 -1
  33. package/docs/classes/CSS3DRender.html +31 -32
  34. package/docs/classes/CruisePluginController.html +26 -27
  35. package/docs/classes/GuideLineItem.GuideLineItem.html +20 -21
  36. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +35 -36
  37. package/docs/classes/Magnifier.html +20 -21
  38. package/docs/classes/ModelRoomLabelController.html +11 -12
  39. package/docs/classes/Object3DHelperController.html +25 -26
  40. package/docs/classes/PaintBrush.html +15 -16
  41. package/docs/classes/PanoMeasurePluginLine.html +106 -72
  42. package/docs/classes/PanoMeasurePluginModel.html +24 -82
  43. package/docs/classes/PanoMeasurePluginPoint.html +14 -15
  44. package/docs/classes/PanoMeasurePluginPolyline.html +26 -39
  45. package/docs/classes/PanoTagPluginController.html +47 -48
  46. package/docs/classes/Util.BetterTween.html +9 -10
  47. package/docs/classes/{Util.PointSelectorHelper.html → Util.FivePointSelector.html} +26 -96
  48. package/docs/classes/Util.Interval.html +12 -13
  49. package/docs/classes/Util.Magnifier.html +17 -31
  50. package/docs/classes/Util.PointDomHelper.html +11 -12
  51. package/docs/classes/Util.PointHelper.html +11 -12
  52. package/docs/classes/Util.Rectangle.html +13 -14
  53. package/docs/enums/CameraMovementEffect.html +7 -8
  54. package/docs/enums/ContentType.html +20 -21
  55. package/docs/enums/DIRECTION.html +9 -10
  56. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -10
  57. package/docs/enums/DimensionType.html +7 -8
  58. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -9
  59. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -10
  60. package/docs/enums/PaintBrushTypeEnum.html +8 -9
  61. package/docs/enums/PointType.html +7 -8
  62. package/docs/enums/Rotation.html +8 -9
  63. package/docs/functions/CSS3DRenderPlugin.html +4 -5
  64. package/docs/functions/CameraMovementPlugin.html +4 -5
  65. package/docs/functions/CruisePlugin.html +4 -5
  66. package/docs/functions/GuideLinePlugin.html +5 -6
  67. package/docs/functions/ItemLabelPlugin.html +4 -5
  68. package/docs/functions/MapviewFloorplanPlugin.html +4 -5
  69. package/docs/functions/ModelChassisCompassPlugin.html +4 -5
  70. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -5
  71. package/docs/functions/ModelFloorplanPlugin.html +4 -5
  72. package/docs/functions/ModelItemLabelPlugin.html +4 -5
  73. package/docs/functions/ModelRoomLabelPlugin.html +4 -5
  74. package/docs/functions/ModelTVVideoPlugin.html +4 -5
  75. package/docs/functions/ModelViewPlugin.html +4 -5
  76. package/docs/functions/Object3DHelperPlugin.html +4 -5
  77. package/docs/functions/PanoCompassPlugin.html +4 -5
  78. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -5
  79. package/docs/functions/PanoDoorLabelPlugin.html +4 -5
  80. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -5
  81. package/docs/functions/PanoMeasurePlugin.html +4 -5
  82. package/docs/functions/PanoRulerPlugin.html +4 -5
  83. package/docs/functions/PanoRulerProPlugin.html +4 -5
  84. package/docs/functions/PanoSpatialTagPlugin.html +4 -5
  85. package/docs/functions/PanoTagPlugin.html +4 -5
  86. package/docs/functions/PanoVideoPlugin.html +4 -5
  87. package/docs/functions/TopviewFloorplanPlugin.html +4 -5
  88. package/docs/functions/Util.absoluteUrl.html +5 -6
  89. package/docs/functions/Util.getCoordsFromClient.html +5 -6
  90. package/docs/functions/Util.getCoordsFromElement.html +5 -6
  91. package/docs/functions/Util.getFrameTime.html +5 -6
  92. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -6
  93. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -6
  94. package/docs/functions/Util.isAbsoluteURL.html +5 -6
  95. package/docs/functions/Util.isModelLike.html +5 -6
  96. package/docs/functions/Util.isNil.html +5 -6
  97. package/docs/functions/Util.isPanoramaLike.html +5 -6
  98. package/docs/functions/Util.nextFrame.html +5 -6
  99. package/docs/functions/Util.notNil.html +5 -6
  100. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -6
  101. package/docs/functions/Util.tweenProgress.html +5 -6
  102. package/docs/functions/Util.uuid.html +5 -6
  103. package/docs/functions/pluginFlag.html +5 -6
  104. package/docs/index.html +5 -6
  105. package/docs/interfaces/AddTagConfig.html +6 -7
  106. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -12
  107. package/docs/interfaces/CSS3DRenderPluginState.html +8 -9
  108. package/docs/interfaces/CameraMovementPluginExportType.html +7 -8
  109. package/docs/interfaces/CruisePluginTypes.Config.html +8 -9
  110. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -13
  111. package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -21
  112. package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -13
  113. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -15
  114. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -15
  115. package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -10
  116. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -8
  117. package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -12
  118. package/docs/interfaces/EventMap.html +15 -16
  119. package/docs/interfaces/FloorplanBounding.html +8 -9
  120. package/docs/interfaces/FloorplanData.html +10 -11
  121. package/docs/interfaces/FloorplanEntrance.html +11 -12
  122. package/docs/interfaces/FloorplanExtraObject.html +10 -11
  123. package/docs/interfaces/FloorplanExtraObject3D.html +8 -9
  124. package/docs/interfaces/FloorplanFloorData.html +9 -10
  125. package/docs/interfaces/FloorplanImagePosition.html +7 -8
  126. package/docs/interfaces/FloorplanObserver.html +9 -10
  127. package/docs/interfaces/FloorplanOutlineItem.html +9 -10
  128. package/docs/interfaces/FloorplanPosition.html +7 -8
  129. package/docs/interfaces/FloorplanRoomItem.html +13 -14
  130. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -8
  131. package/docs/interfaces/FloorplanServerBounding.html +8 -9
  132. package/docs/interfaces/FloorplanServerComputedData.html +10 -11
  133. package/docs/interfaces/FloorplanServerData.html +7 -8
  134. package/docs/interfaces/FloorplanServerDoorItem.html +10 -11
  135. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -9
  136. package/docs/interfaces/FloorplanServerEntrance.html +11 -12
  137. package/docs/interfaces/FloorplanServerFloorData.html +9 -10
  138. package/docs/interfaces/FloorplanServerImagePosition.html +7 -8
  139. package/docs/interfaces/FloorplanServerObserver.html +9 -10
  140. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -10
  141. package/docs/interfaces/FloorplanServerPosition.html +7 -8
  142. package/docs/interfaces/FloorplanServerRoomItem.html +14 -15
  143. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -8
  144. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -9
  145. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -11
  146. package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -14
  147. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -9
  148. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -7
  149. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +13 -14
  150. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -9
  151. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -19
  152. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +7 -8
  153. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -19
  154. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -6
  155. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -8
  156. package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -9
  157. package/docs/interfaces/GuideLinePluginType.Route.html +11 -12
  158. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -10
  159. package/docs/interfaces/HelperOffset.html +8 -9
  160. package/docs/interfaces/ImagePlaneGroup.html +6 -7
  161. package/docs/interfaces/ItemLabelPluginData.html +6 -7
  162. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -12
  163. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -10
  164. package/docs/interfaces/MinMax.html +7 -8
  165. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -8
  166. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -9
  167. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -8
  168. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -9
  169. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -9
  170. package/docs/interfaces/ModelItemLabelPluginData.html +6 -7
  171. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -12
  172. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -8
  173. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -7
  174. package/docs/interfaces/ModelTVVideoPluginData.html +9 -10
  175. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -9
  176. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -7
  177. package/docs/interfaces/ModelViewPluginExportType.html +11 -12
  178. package/docs/interfaces/Object3DHelperState.html +8 -9
  179. package/docs/interfaces/ObjectHelperControllers.html +9 -10
  180. package/docs/interfaces/PaintBrushAction.html +12 -13
  181. package/docs/interfaces/PaintBrushConfigs.html +12 -13
  182. package/docs/interfaces/PaintBrushState.html +10 -11
  183. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -11
  184. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -6
  185. package/docs/interfaces/PanoMeasureParameterType.html +15 -23
  186. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -9
  187. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -8
  188. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -8
  189. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -9
  190. package/docs/interfaces/PanoRulerPluginExportType.html +10 -11
  191. package/docs/interfaces/PanoRulerPluginOptions.html +7 -8
  192. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -9
  193. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -10
  194. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -8
  195. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -8
  196. package/docs/interfaces/PanoRulerProPluginState.html +8 -9
  197. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -6
  198. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -6
  199. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -12
  200. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -11
  201. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -14
  202. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -11
  203. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -14
  204. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -12
  205. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -11
  206. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -7
  207. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -9
  208. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -7
  209. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -10
  210. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -7
  211. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -9
  212. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -11
  213. package/docs/interfaces/Point.html +8 -9
  214. package/docs/interfaces/Room.html +9 -10
  215. package/docs/interfaces/RoomInfo.html +7 -8
  216. package/docs/interfaces/RoomLabel.html +14 -15
  217. package/docs/interfaces/RoomRules.html +5 -6
  218. package/docs/interfaces/Rooms.html +5 -6
  219. package/docs/interfaces/Scissor.html +9 -10
  220. package/docs/interfaces/State.html +8 -9
  221. package/docs/interfaces/TagCacheInterface.html +12 -13
  222. package/docs/interfaces/TagConfig.html +13 -14
  223. package/docs/interfaces/TagGLTFObjectGroup.html +6 -7
  224. package/docs/interfaces/TagIconUrl.html +12 -13
  225. package/docs/interfaces/TagObjectGroup.html +6 -7
  226. package/docs/interfaces/TagStyle.html +6 -7
  227. package/docs/interfaces/Tags.html +9 -10
  228. package/docs/interfaces/TemporaryState.html +6 -7
  229. package/docs/interfaces/Util.MagnifierParameter.html +11 -12
  230. package/docs/interfaces/Util.MouseGroupParameter.html +8 -9
  231. package/docs/modules/CruisePluginTypes.html +5 -6
  232. package/docs/modules/GuideLineItem.html +5 -6
  233. package/docs/modules/GuideLineModeItem.html +5 -6
  234. package/docs/modules/GuideLinePluginType.html +5 -6
  235. package/docs/modules/PanoVideoPluginType.html +5 -6
  236. package/docs/modules/Util.html +6 -8
  237. package/docs/modules.html +5 -6
  238. package/docs/types/ArrayPosition.html +5 -6
  239. package/docs/types/AudioAppearance.html +5 -6
  240. package/docs/types/AudioTagTypeConfigKey.html +5 -6
  241. package/docs/types/CSS3DRenderExportType.html +5 -6
  242. package/docs/types/CSS3DRenderPluginExportType.html +5 -6
  243. package/docs/types/CSS3DRenderPluginParameterType.html +5 -6
  244. package/docs/types/ClassFunctionParameters.html +5 -6
  245. package/docs/types/Color.html +5 -6
  246. package/docs/types/ContentTypeConfigKey.html +5 -6
  247. package/docs/types/ContentTypeConfigKeySplit.html +5 -6
  248. package/docs/types/ContentTypeMap.html +5 -6
  249. package/docs/types/Create3DDomContainerReturnType.html +5 -6
  250. package/docs/types/Create3DElementReturnType.html +5 -6
  251. package/docs/types/CruisePluginExportType.html +5 -6
  252. package/docs/types/CruisePluginTypes.CruiseData.html +5 -6
  253. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -6
  254. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -6
  255. package/docs/types/DeprecatedTagProperty.html +5 -6
  256. package/docs/types/Direction-1.html +5 -6
  257. package/docs/types/Direction4.html +5 -6
  258. package/docs/types/ElementRenderer.html +5 -6
  259. package/docs/types/FloorplanRuleLabels.html +5 -6
  260. package/docs/types/FloorplanServerRuleLabels.html +5 -6
  261. package/docs/types/GuideLinePluginExportType.html +5 -6
  262. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -6
  263. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -6
  264. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -6
  265. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -6
  266. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -6
  267. package/docs/types/GuideLinePluginType.PathItem.html +5 -6
  268. package/docs/types/GuideLinePluginType.PluginData.html +5 -6
  269. package/docs/types/HelperEventMap.html +5 -6
  270. package/docs/types/LoadTagConfig.html +5 -6
  271. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -6
  272. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -6
  273. package/docs/types/MediaData.html +5 -6
  274. package/docs/types/MediaStore.html +5 -6
  275. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -6
  276. package/docs/types/ModelFloorplanPluginParameterType.html +5 -6
  277. package/docs/types/ModelFloorplanPluginReturnType.html +5 -6
  278. package/docs/types/ModelRoomLabelPluginParameters.html +5 -6
  279. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -6
  280. package/docs/types/MoveArgs.html +5 -6
  281. package/docs/types/MoveOpts.html +5 -6
  282. package/docs/types/Object3DHelperEventMap.html +5 -6
  283. package/docs/types/ObjectFit.html +5 -6
  284. package/docs/types/PaintBrushEventMap.html +5 -6
  285. package/docs/types/PanoCompassPluginData.html +5 -6
  286. package/docs/types/PanoCompassPluginExportType.html +5 -6
  287. package/docs/types/PanoCompassPluginParameterType.html +5 -6
  288. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -6
  289. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -6
  290. package/docs/types/PanoIndex.html +5 -6
  291. package/docs/types/PanoMeasurePluginEvent.html +5 -6
  292. package/docs/types/PanoMeasureReturnType.html +5 -6
  293. package/docs/types/PanoSpatialTagPluginId.html +5 -6
  294. package/docs/types/PanoTagPluginExportInterface.html +5 -6
  295. package/docs/types/PanoTagPluginParamsInterface.html +5 -6
  296. package/docs/types/PanoVideoPluginParameterType.html +5 -6
  297. package/docs/types/PanoVideoPluginReturnType.html +5 -6
  298. package/docs/types/PartialObjectDeep.html +5 -6
  299. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -6
  300. package/docs/types/PlaneTag.html +5 -6
  301. package/docs/types/Point2DTag.html +5 -6
  302. package/docs/types/Point3DTag.html +5 -6
  303. package/docs/types/PointTag.html +5 -6
  304. package/docs/types/PointTagInstance.html +5 -6
  305. package/docs/types/Position.html +5 -6
  306. package/docs/types/RotateArgs.html +5 -6
  307. package/docs/types/RotateOpts.html +5 -6
  308. package/docs/types/RuleLabelsKey.html +5 -6
  309. package/docs/types/RuleLabelsValue.html +5 -6
  310. package/docs/types/StickType.html +5 -6
  311. package/docs/types/Tag.html +5 -6
  312. package/docs/types/Tag2D.html +5 -6
  313. package/docs/types/Tag3D.html +5 -6
  314. package/docs/types/TagContentType.html +5 -6
  315. package/docs/types/TagDimensionType.html +5 -6
  316. package/docs/types/TagElement.html +5 -6
  317. package/docs/types/TagEvents.html +5 -6
  318. package/docs/types/TagGLTFObject.html +5 -6
  319. package/docs/types/TagHooks.html +5 -6
  320. package/docs/types/TagId.html +5 -6
  321. package/docs/types/TagInstance.html +5 -6
  322. package/docs/types/TagPointType.html +5 -6
  323. package/docs/types/TagRendererMap.html +5 -6
  324. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -6
  325. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -6
  326. package/docs/types/WorkCode.html +5 -6
  327. package/docs/variables/FLOOR_TYPE_MAP.html +5 -6
  328. package/docs/variables/PLUGIN.html +5 -6
  329. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -6
  330. package/docs/variables/ROOM_TYPE_MAP.html +5 -6
  331. package/docs/variables/itemLabelPluginServerParams.html +5 -6
  332. package/docs/variables/modelItemLabelPluginServerParams.html +5 -6
  333. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -6
  334. package/libs/ModelChassisCompassPlugin/Plugin.js +58 -56
  335. package/libs/Object3DHelperPlugin/Controller.js +2 -3
  336. package/libs/Object3DHelperPlugin/index.js +5 -6
  337. package/libs/PanoCompassPlugin/Controller.js +1 -1
  338. package/libs/PanoCompassPlugin/typings.d.ts +1 -1
  339. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +4 -15
  340. package/libs/PanoMeasurePlugin/Controller/BaseController.js +34 -43
  341. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +18 -26
  342. package/libs/PanoMeasurePlugin/Controller/EditController.js +92 -270
  343. package/libs/PanoMeasurePlugin/Controller/MixedController.js +25 -26
  344. package/libs/PanoMeasurePlugin/Controller/ViewController.js +4 -5
  345. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +2 -9
  346. package/libs/PanoMeasurePlugin/Controller/WatchController.js +54 -101
  347. package/libs/PanoMeasurePlugin/Controller/index.d.ts +9 -26
  348. package/libs/PanoMeasurePlugin/Controller/index.js +91 -146
  349. package/libs/PanoMeasurePlugin/Model/index.d.ts +0 -10
  350. package/libs/PanoMeasurePlugin/Model/index.js +35 -58
  351. package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -7
  352. package/libs/PanoMeasurePlugin/Model/line.js +22 -36
  353. package/libs/PanoMeasurePlugin/Model/point.js +12 -17
  354. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +0 -4
  355. package/libs/PanoMeasurePlugin/Model/polyline.js +3 -10
  356. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +4 -8
  357. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +37 -49
  358. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  359. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  360. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +3 -10
  361. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +37 -123
  362. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -3
  363. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +63 -64
  364. package/libs/PanoMeasurePlugin/index.js +24 -72
  365. package/libs/PanoMeasurePlugin/typings/data.d.ts +0 -24
  366. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +3 -13
  367. package/libs/PanoMeasurePlugin/typings/index.d.ts +1 -1
  368. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +30 -0
  369. package/libs/PanoMeasurePlugin/utils/distanceDom.js +83 -0
  370. package/libs/{shared-utils → PanoMeasurePlugin/utils}/getIntersectionFromEvent.d.ts +1 -1
  371. package/{dist/shared-utils → libs/PanoMeasurePlugin/utils}/getPointFromHammerEvent.d.ts +1 -1
  372. package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -2
  373. package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +1 -2
  374. package/libs/base/BasePlugin.d.ts +4 -4
  375. package/libs/base/BasePlugin.js +3 -3
  376. package/libs/base/BasePluginWithData.d.ts +2 -1
  377. package/libs/index.js +121 -141
  378. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  379. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +49 -29
  380. package/libs/shared-utils/absoluteUrl.d.ts +2 -2
  381. package/libs/shared-utils/index.js +9 -9
  382. package/libs/shared-utils/logger.js +2 -2
  383. package/libs/shared-utils/three/FivePointSelector.d.ts +36 -0
  384. package/libs/shared-utils/three/FivePointSelector.js +49 -0
  385. package/libs/shared-utils/three/Magnifier.d.ts +0 -3
  386. package/libs/shared-utils/three/Magnifier.js +13 -16
  387. package/libs/shared-utils/three/centerPoint.js +3 -1
  388. package/libs/shared-utils/three/index.d.ts +1 -1
  389. package/libs/vendor/svelte/internal/index.js +345 -392
  390. package/package.json +2 -4
  391. package/dist/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +0 -1
  392. package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +0 -1
  393. package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +0 -1
  394. package/dist/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +0 -1
  395. package/dist/PanoMeasurePlugin/Components/Common/icons/index.d.ts +0 -4
  396. package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +0 -1
  397. package/dist/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +0 -1
  398. package/dist/PanoMeasurePlugin/Model/area.d.ts +0 -70
  399. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +0 -14
  400. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -12
  401. package/dist/PanoMeasurePlugin/utils/dom/areaDom.d.ts +0 -22
  402. package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +0 -29
  403. package/dist/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +0 -27
  404. package/dist/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +0 -6
  405. package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +0 -7
  406. package/dist/PanoMeasurePlugin/utils/isIntersecting.d.ts +0 -15
  407. package/dist/shared-utils/isTouchDevice.d.ts +0 -1
  408. package/dist/shared-utils/safeObj.d.ts +0 -1
  409. package/dist/shared-utils/three/IObject3D.d.ts +0 -7
  410. package/dist/shared-utils/three/PointSelector.d.ts +0 -66
  411. package/dist/shared-utils/three/PointSelectorHelper.d.ts +0 -50
  412. package/docs/interfaces/Util.PointIntersection.html +0 -408
  413. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +0 -57
  414. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +0 -1
  415. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +0 -42
  416. package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +0 -1
  417. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +0 -246
  418. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +0 -1
  419. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +0 -211
  420. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +0 -1
  421. package/libs/PanoMeasurePlugin/Components/Common/icons/index.d.ts +0 -4
  422. package/libs/PanoMeasurePlugin/Components/Common/icons/index.js +0 -7
  423. package/libs/PanoMeasurePlugin/Components/Controller0.js +0 -240
  424. package/libs/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +0 -1
  425. package/libs/PanoMeasurePlugin/Components/Controller1.js +0 -399
  426. package/libs/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +0 -1
  427. package/libs/PanoMeasurePlugin/Model/area.d.ts +0 -70
  428. package/libs/PanoMeasurePlugin/Model/area.js +0 -110
  429. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +0 -14
  430. package/libs/PanoMeasurePlugin/Model/polygon.js +0 -44
  431. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -12
  432. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +0 -29
  433. package/libs/PanoMeasurePlugin/utils/dom/areaDom.d.ts +0 -22
  434. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +0 -50
  435. package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +0 -29
  436. package/libs/PanoMeasurePlugin/utils/dom/base.js +0 -78
  437. package/libs/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +0 -27
  438. package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +0 -62
  439. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +0 -6
  440. package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
  441. package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +0 -7
  442. package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
  443. package/libs/PanoMeasurePlugin/utils/isIntersecting.d.ts +0 -15
  444. package/libs/PanoMeasurePlugin/utils/isIntersecting.js +0 -25
  445. package/libs/shared-utils/isTouchDevice.d.ts +0 -1
  446. package/libs/shared-utils/isTouchDevice.js +0 -4
  447. package/libs/shared-utils/safeObj.d.ts +0 -1
  448. package/libs/shared-utils/safeObj.js +0 -6
  449. package/libs/shared-utils/three/IObject3D.d.ts +0 -7
  450. package/libs/shared-utils/three/IObject3D.js +0 -25
  451. package/libs/shared-utils/three/PointSelector.d.ts +0 -66
  452. package/libs/shared-utils/three/PointSelector.js +0 -116
  453. package/libs/shared-utils/three/PointSelectorHelper.d.ts +0 -50
  454. package/libs/shared-utils/three/PointSelectorHelper.js +0 -100
  455. /package/libs/{shared-utils → PanoMeasurePlugin/utils}/getIntersectionFromEvent.js +0 -0
  456. /package/libs/{shared-utils → PanoMeasurePlugin/utils}/getPointFromHammerEvent.js +0 -0
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.21.0-dev.9</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.21.1</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.21.0-dev.9</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.21.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/c071ef5/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/fd0f910/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
28
28
  <div class="col-sidebar">
29
29
  <div class="page-menu">
30
30
  <div class="tsd-navigation settings">
@@ -38,7 +38,7 @@
38
38
  <div class="tsd-theme-toggle">
39
39
  <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
40
40
  <div class="site-menu">
41
- <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.21.0-<wbr/>dev.9</span></a>
41
+ <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.21.1</span></a>
42
42
  <ul class="tsd-small-nested-navigation">
43
43
  <li>
44
44
  <details class="tsd-index-accordion" data-key="CruisePluginTypes"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4-path"></use><use href="#icon-4-text"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></summary>
@@ -109,15 +109,14 @@
109
109
  <div class="tsd-accordion-details">
110
110
  <ul class="tsd-nested-navigation">
111
111
  <li><a href="../classes/Util.BetterTween.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Better<wbr/>Tween</span></a></li>
112
+ <li><a href="../classes/Util.FivePointSelector.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Five<wbr/>Point<wbr/>Selector</span></a></li>
112
113
  <li><a href="../classes/Util.Interval.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Interval</span></a></li>
113
114
  <li><a href="../classes/Util.Magnifier.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Magnifier</span></a></li>
114
115
  <li><a href="../classes/Util.PointDomHelper.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Point<wbr/>Dom<wbr/>Helper</span></a></li>
115
116
  <li><a href="../classes/Util.PointHelper.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Point<wbr/>Helper</span></a></li>
116
- <li><a href="../classes/Util.PointSelectorHelper.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Point<wbr/>Selector<wbr/>Helper</span></a></li>
117
117
  <li><a href="../classes/Util.Rectangle.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Rectangle</span></a></li>
118
118
  <li><a href="../interfaces/Util.MagnifierParameter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Magnifier<wbr/>Parameter</span></a></li>
119
119
  <li><a href="../interfaces/Util.MouseGroupParameter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Mouse<wbr/>Group<wbr/>Parameter</span></a></li>
120
- <li><a href="../interfaces/Util.PointIntersection.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Point<wbr/>Intersection</span></a></li>
121
120
  <li><a href="../functions/Util.absoluteUrl.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg><span>absolute<wbr/>Url</span></a></li>
122
121
  <li><a href="../functions/Util.getCoordsFromClient.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>get<wbr/>Coords<wbr/>From<wbr/>Client</span></a></li>
123
122
  <li><a href="../functions/Util.getCoordsFromElement.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>get<wbr/>Coords<wbr/>From<wbr/>Element</span></a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.21.0-dev.9</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.21.1</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.21.0-dev.9</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.21.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/c071ef5/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/fd0f910/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
28
28
  <div class="col-sidebar">
29
29
  <div class="page-menu">
30
30
  <div class="tsd-navigation settings">
@@ -38,7 +38,7 @@
38
38
  <div class="tsd-theme-toggle">
39
39
  <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
40
40
  <div class="site-menu">
41
- <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.21.0-<wbr/>dev.9</span></a>
41
+ <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.21.1</span></a>
42
42
  <ul class="tsd-small-nested-navigation">
43
43
  <li>
44
44
  <details class="tsd-index-accordion" data-key="CruisePluginTypes"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4-path"></use><use href="#icon-4-text"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></summary>
@@ -109,15 +109,14 @@
109
109
  <div class="tsd-accordion-details">
110
110
  <ul class="tsd-nested-navigation">
111
111
  <li><a href="../classes/Util.BetterTween.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Better<wbr/>Tween</span></a></li>
112
+ <li><a href="../classes/Util.FivePointSelector.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Five<wbr/>Point<wbr/>Selector</span></a></li>
112
113
  <li><a href="../classes/Util.Interval.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Interval</span></a></li>
113
114
  <li><a href="../classes/Util.Magnifier.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Magnifier</span></a></li>
114
115
  <li><a href="../classes/Util.PointDomHelper.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Point<wbr/>Dom<wbr/>Helper</span></a></li>
115
116
  <li><a href="../classes/Util.PointHelper.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Point<wbr/>Helper</span></a></li>
116
- <li><a href="../classes/Util.PointSelectorHelper.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Point<wbr/>Selector<wbr/>Helper</span></a></li>
117
117
  <li><a href="../classes/Util.Rectangle.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Rectangle</span></a></li>
118
118
  <li><a href="../interfaces/Util.MagnifierParameter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Magnifier<wbr/>Parameter</span></a></li>
119
119
  <li><a href="../interfaces/Util.MouseGroupParameter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Mouse<wbr/>Group<wbr/>Parameter</span></a></li>
120
- <li><a href="../interfaces/Util.PointIntersection.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Point<wbr/>Intersection</span></a></li>
121
120
  <li><a href="../functions/Util.absoluteUrl.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg><span>absolute<wbr/>Url</span></a></li>
122
121
  <li><a href="../functions/Util.getCoordsFromClient.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>get<wbr/>Coords<wbr/>From<wbr/>Client</span></a></li>
123
122
  <li><a href="../functions/Util.getCoordsFromElement.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>get<wbr/>Coords<wbr/>From<wbr/>Element</span></a></li>
@@ -1,71 +1,73 @@
1
- var M = (t, a, s) => new Promise((m, o) => {
2
- var f = (n) => {
1
+ var h = (n, i, s) => new Promise((d, t) => {
2
+ var b = (r) => {
3
3
  try {
4
- c(s.next(n));
5
- } catch (d) {
6
- o(d);
4
+ c(s.next(r));
5
+ } catch (a) {
6
+ t(a);
7
7
  }
8
- }, i = (n) => {
8
+ }, l = (r) => {
9
9
  try {
10
- c(s.throw(n));
11
- } catch (d) {
12
- o(d);
10
+ c(s.throw(r));
11
+ } catch (a) {
12
+ t(a);
13
13
  }
14
- }, c = (n) => n.done ? m(n.value) : Promise.resolve(n.value).then(f, i);
15
- c((s = s.apply(t, a)).next());
14
+ }, c = (r) => r.done ? d(r.value) : Promise.resolve(r.value).then(b, l);
15
+ c((s = s.apply(n, i)).next());
16
16
  });
17
- import * as h from "three";
18
- import { FBXLoader as C } from "three/examples/jsm/loaders/FBXLoader";
19
- import { bject3d2LocalMatrix as D } from "../shared-utils/object3d2LocalMatrix.js";
20
- import { transfromToMeshBasicMaterial as E } from "../shared-utils/three/transformToMeshBasicMaterial.js";
21
- const X = (t, a) => {
22
- var x;
23
- const s = a.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", m = (x = a.north_rad) != null ? x : void 0, o = {}, f = (e) => M(void 0, null, function* () {
24
- var y;
25
- const r = (e == null ? void 0 : e.fbx_url) || s, b = (y = e == null ? void 0 : e.north_rad) != null ? y : m;
26
- if (typeof b != "number")
17
+ import * as z from "three";
18
+ import { FBXLoader as U } from "three/examples/jsm/loaders/FBXLoader";
19
+ import { bject3d2LocalMatrix as O } from "../shared-utils/object3d2LocalMatrix.js";
20
+ import { transfromToMeshBasicMaterial as _ } from "../shared-utils/three/transformToMeshBasicMaterial.js";
21
+ const I = (n, i) => {
22
+ var j;
23
+ const s = i.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", d = (j = i.north_rad) != null ? j : void 0, t = {};
24
+ let b = { x: 0, y: 0, z: 0 }, l = [0, 0, 0], c = 1, r = d;
25
+ n.on("modelLoaded", y);
26
+ const a = (e) => h(void 0, null, function* () {
27
+ var u;
28
+ const o = (e == null ? void 0 : e.fbx_url) || s;
29
+ if (r = (u = e == null ? void 0 : e.north_rad) != null ? u : d, typeof r != "number")
27
30
  throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
28
- const l = t.model.bounding, j = l.max.x - l.min.x, g = l.max.z - l.min.z, z = Math.max(j, g), u = yield new C().loadAsync(r);
29
- E(u, {
31
+ const m = yield new U().loadAsync(o);
32
+ return _(m, {
30
33
  transparent: !0,
31
- side: h.DoubleSide,
32
- blending: h.AdditiveBlending
33
- });
34
- const B = [0, b - Math.PI / 2, 0], {
35
- model: {
36
- bounding: {
37
- max: { x: P, z: R },
38
- min: { x: w, y: p, z: U }
39
- }
40
- }
41
- } = t;
42
- o.yBase = p;
43
- const L = { x: (P + w) / 2, y: p - 1.6, z: (R + U) / 2 }, _ = 45e-4 * z;
44
- return D(u, { position: L, rotation: B, scale: _ }), o.object = u, !0;
45
- }), i = ({ latitude: e }) => {
46
- if (!o.object)
34
+ side: z.DoubleSide,
35
+ blending: z.AdditiveBlending
36
+ }), t.object = m, y(), !0;
37
+ }), x = ({ latitude: e }) => {
38
+ if (!t.object)
47
39
  return;
48
- const r = c(e);
49
- r && (o.object.position.y = r);
50
- }, c = (e) => {
51
- if (o.yBase === void 0)
40
+ const o = p(e);
41
+ o && (t.object.position.y = o);
42
+ }, p = (e) => {
43
+ if (t.yBase === void 0)
52
44
  return;
53
- const r = 0.6;
45
+ const o = 0.6;
54
46
  if (e >= Math.PI / 4)
55
- return o.yBase - (r + 1.6);
56
- const b = e * (4 / Math.PI);
57
- return o.yBase - (r * b + 1.6);
47
+ return t.yBase - (o + 1.6);
48
+ const f = e * (4 / Math.PI);
49
+ return t.yBase - (o * f + 1.6);
50
+ }, g = () => {
51
+ if (!t.object)
52
+ return;
53
+ const e = p(n.getPose().latitude);
54
+ e && (t.object.position.y = e), n.scene.add(t.object), n.needsRender = !0, n.on("cameraDirectionUpdate", x);
55
+ }, B = () => {
56
+ t.object && (n.scene.remove(t.object), n.needsRender = !0, n.off("cameraDirectionUpdate", x));
58
57
  };
59
- return { load: f, disable: () => {
60
- o.object && (t.scene.remove(o.object), t.needsRender = !0, t.off("cameraDirectionUpdate", i));
61
- }, enable: () => {
62
- if (!o.object)
58
+ function y() {
59
+ const e = t.object;
60
+ if (!e)
63
61
  return;
64
- const e = c(t.getPose().latitude);
65
- e && (o.object.position.y = e), t.scene.add(o.object), t.needsRender = !0, t.on("cameraDirectionUpdate", i);
66
- } };
62
+ const o = n.model.bounding, f = o.max.x - o.min.x, m = o.max.z - o.min.z, u = Math.max(f, m), {
63
+ max: { x: P, z: R },
64
+ min: { x: w, y: M, z: L }
65
+ } = o;
66
+ t.yBase = M, b = { x: (P + w) / 2, y: M - 1.6, z: (R + L) / 2 }, l = [0, r - Math.PI / 2, 0], c = 45e-4 * u, O(e, { position: b, rotation: l, scale: c });
67
+ }
68
+ return { load: a, disable: B, enable: g };
67
69
  };
68
70
  export {
69
- X as ModelChassisCompassPlugin,
70
- X as default
71
+ I as ModelChassisCompassPlugin,
72
+ I as default
71
73
  };
@@ -50,7 +50,6 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
50
50
  import "../shared-utils/absoluteUrl.js";
51
51
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
52
52
  import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
53
- import "../shared-utils/three/IObject3D.js";
54
53
  import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
55
54
  import "../shared-utils/Object3DHelper/utils/direction.js";
56
55
  import "../shared-utils/Object3DHelper/Constants/color.js";
@@ -85,7 +84,7 @@ const S = "Object3DHelperPlugin", w = S, J = () => {
85
84
  }, Q = () => {
86
85
  console.error(`${w} is disabled`);
87
86
  };
88
- class Qe extends k {
87
+ class Ke extends k {
89
88
  constructor(e) {
90
89
  super(e);
91
90
  m(this, "name", S);
@@ -230,6 +229,6 @@ class Qe extends k {
230
229
  }
231
230
  }
232
231
  export {
233
- Qe as Object3DHelperController,
232
+ Ke as Object3DHelperController,
234
233
  w as PLUGIN
235
234
  };
@@ -1,5 +1,5 @@
1
1
  import { Object3DHelperController as o } from "./Controller.js";
2
- import { PLUGIN as mr } from "./Controller.js";
2
+ import { PLUGIN as pr } from "./Controller.js";
3
3
  import "@realsee/five";
4
4
  import "../base/BasePlugin.js";
5
5
  import "../shared-utils/Subscribe.js";
@@ -23,7 +23,6 @@ import "../shared-utils/absoluteUrl.js";
23
23
  import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
24
24
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
25
25
  import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
26
- import "../shared-utils/three/IObject3D.js";
27
26
  import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
28
27
  import "../shared-utils/Object3DHelper/utils/direction.js";
29
28
  import "../shared-utils/Object3DHelper/Constants/color.js";
@@ -52,10 +51,10 @@ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
52
51
  import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
53
52
  import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
54
53
  import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
55
- const or = (r) => new o(r);
54
+ const rr = (r) => new o(r);
56
55
  export {
57
56
  o as Object3DHelperController,
58
- or as Object3DHelperPlugin,
59
- mr as PLUGIN,
60
- or as default
57
+ rr as Object3DHelperPlugin,
58
+ pr as PLUGIN,
59
+ rr as default
61
60
  };
@@ -58,7 +58,7 @@ import "../shared-utils/animationFrame/index.js";
58
58
  const v = { userAction: !0 };
59
59
  class re extends A {
60
60
  constructor(e, t) {
61
- super(e);
61
+ super(e, t);
62
62
  /**
63
63
  * 默认状态
64
64
  */
@@ -1,6 +1,6 @@
1
1
  import type { FloorplanServerRoomItem } from '../floorplan/typings/floorplanServerData';
2
2
  import type * as BasePlugin from '../base/BasePluginWithData';
3
- export interface Config {
3
+ export interface Config extends BasePlugin.Config {
4
4
  compassImageUrl: string;
5
5
  entryDoorImageUrl: string;
6
6
  }
@@ -1,13 +1,12 @@
1
- import type FiveHelper from '../Modules/FiveHelper';
2
- import { type Group } from 'three';
1
+ import type Magnifier from '../Modules/Magnifier';
2
+ import type { Group } from 'three';
3
3
  import type { Model } from '../Model';
4
4
  import type { Config } from '../typings';
5
5
  import type { PanoMeasurePluginEvent } from '../typings/event.type';
6
- import type { UserDistanceItem } from '../utils/dom/distanceItem';
6
+ import type { UserDistanceItem } from '../utils/distanceDom';
7
7
  import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
8
- import type { OpenParameter, EditParameter, MeasureType } from '../typings/data';
8
+ import type { OpenParameter } from '../typings/data';
9
9
  import Line from '../Model/line';
10
- import type { Magnifier } from '../../shared-utils';
11
10
  export interface ControllerParams {
12
11
  five: Five;
13
12
  group: Group;
@@ -16,11 +15,7 @@ export interface ControllerParams {
16
15
  mouseGroup: Group;
17
16
  container: Element;
18
17
  magnifier: Magnifier;
19
- fiveHelper: FiveHelper;
20
18
  openParams: OpenParameter;
21
- editParams: EditParameter;
22
- magnifierParams: ConstructorParameters<typeof Magnifier>[1];
23
- getMeasureType: () => MeasureType;
24
19
  hook: Subscribe<PanoMeasurePluginEvent>;
25
20
  userDistanceItemCreator?: () => UserDistanceItem;
26
21
  }
@@ -30,19 +25,13 @@ export default class BaseController {
30
25
  protected group: Group;
31
26
  protected config: Config;
32
27
  protected dashed: Line;
33
- protected perpendicularDashed: Line;
34
28
  protected disposed: boolean;
35
29
  protected isMobile: boolean;
36
30
  protected mouseGroup: Group;
37
31
  protected container: Element;
38
- protected fiveHelper: FiveHelper;
39
- protected editParams: EditParameter;
40
- protected magnifierParams: ConstructorParameters<typeof Magnifier>[1];
41
32
  protected hook: ControllerParams['hook'];
42
33
  protected magnifier: ControllerParams['magnifier'];
43
34
  protected userDistanceItemCreator: ControllerParams['userDistanceItemCreator'];
44
- protected get currentMeasureType(): MeasureType;
45
- private getMeasureType;
46
35
  constructor(params: ControllerParams);
47
36
  updateDistanceUI: () => void;
48
37
  protected removeLine(line: Line): void;
@@ -1,69 +1,60 @@
1
- var m = Object.defineProperty;
2
- var u = (s, e, i) => e in s ? m(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
3
- var t = (s, e, i) => (u(s, typeof e != "symbol" ? e + "" : e, i), i);
4
- import { Color as l } from "three";
5
- import h from "../Model/line.js";
6
- import r from "../Model/point.js";
7
- import { preventDefault as n } from "../utils/ironbox.js";
1
+ var d = Object.defineProperty;
2
+ var a = (i, e, t) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var o = (i, e, t) => (a(i, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import u from "../Model/line.js";
5
+ import h from "../Model/point.js";
6
+ import { preventDefault as r } from "../utils/ironbox.js";
8
7
  import "../../shared-utils/uuid.js";
9
8
  import "../utils/line.js";
10
9
  import "@realsee/five/line";
11
10
  import "../utils/constants.js";
11
+ import "three";
12
12
  import "@realsee/five";
13
- import "../utils/dom/distanceItem.js";
14
- import "../utils/dom/base.js";
13
+ import "../utils/distanceDom.js";
15
14
  import "../utils/isNDCPointInScreen.js";
16
15
  import "../../shared-utils/removeArrayItem.js";
17
- class k {
16
+ class A {
18
17
  constructor(e) {
19
- t(this, "model");
20
- t(this, "five");
21
- t(this, "group");
22
- t(this, "config");
23
- t(this, "dashed");
24
- t(this, "perpendicularDashed");
25
- t(this, "disposed", !1);
26
- t(this, "isMobile");
27
- t(this, "mouseGroup");
28
- t(this, "container");
29
- t(this, "fiveHelper");
30
- t(this, "editParams");
31
- t(this, "magnifierParams");
32
- t(this, "hook");
33
- t(this, "magnifier");
34
- t(this, "userDistanceItemCreator");
35
- t(this, "getMeasureType");
36
- t(this, "updateDistanceUI", () => {
18
+ o(this, "model");
19
+ o(this, "five");
20
+ o(this, "group");
21
+ o(this, "config");
22
+ o(this, "dashed");
23
+ o(this, "disposed", !1);
24
+ o(this, "isMobile");
25
+ o(this, "mouseGroup");
26
+ o(this, "container");
27
+ o(this, "hook");
28
+ o(this, "magnifier");
29
+ o(this, "userDistanceItemCreator");
30
+ o(this, "updateDistanceUI", () => {
37
31
  this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
38
32
  });
39
- var a, o;
40
- this.five = e.five, this.hook = e.hook, this.model = e.model, this.getMeasureType = e.getMeasureType, this.config = e.config, this.magnifierParams = e.magnifierParams, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.editParams = e.editParams, this.isMobile = (o = (a = e.openParams) == null ? void 0 : a.isMobile) != null ? o : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new l(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
41
- const i = this.five.getElement();
42
- i && (i.addEventListener("touchstart", n), i.addEventListener("contextmenu", n));
43
- }
44
- get currentMeasureType() {
45
- return this.getMeasureType();
33
+ var n, s;
34
+ this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.isMobile = (s = (n = e.openParams) == null ? void 0 : n.isMobile) != null ? s : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new u(new h([0, 0, 0]), new h([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
35
+ const t = this.five.getElement();
36
+ t && (t.addEventListener("touchstart", r), t.addEventListener("contextmenu", r));
46
37
  }
47
38
  removeLine(e) {
48
39
  this.group.remove(e.mesh, e.lightMesh), e.distanceItem.remove(), this.five.needsRender = !0;
49
40
  }
50
- updateMouseGroup(e, i) {
41
+ updateMouseGroup(e, t) {
51
42
  if (!e)
52
43
  return this.mouseGroup;
53
- if (this.mouseGroup.position.copy(e.point), i)
54
- this.mouseGroup.quaternion.copy(i.quaternion);
44
+ if (this.mouseGroup.position.copy(e.point), t)
45
+ this.mouseGroup.quaternion.copy(t.quaternion);
55
46
  else if (e.face) {
56
- const o = e.face.normal.clone().multiplyScalar(0.05), d = e.point.clone().add(o).clone().add(o);
57
- this.mouseGroup.lookAt(d);
47
+ const s = e.face.normal.clone().multiplyScalar(0.05), m = e.point.clone().add(s).clone().add(s);
48
+ this.mouseGroup.lookAt(m);
58
49
  }
59
50
  return this.mouseGroup;
60
51
  }
61
52
  dispose() {
62
- this.disposed = !0, this.magnifier.disable(), this.model.getAllLines().forEach((i) => this.removeLine(i)), this.model.areas.forEach((i) => i.remove());
53
+ this.disposed = !0, this.magnifier.disable(), this.model.getAllLines().forEach((t) => this.removeLine(t));
63
54
  const e = this.five.getElement();
64
- e && (e.removeEventListener("touchstart", n), e.removeEventListener("contextmenu", n));
55
+ e && (e.removeEventListener("touchstart", r), e.removeEventListener("contextmenu", r));
65
56
  }
66
57
  }
67
58
  export {
68
- k as default
59
+ A as default
69
60
  };
@@ -2,17 +2,17 @@ import Line from '../Model/line';
2
2
  import BaseController from './BaseController';
3
3
  import type { ControllerParams } from './BaseController';
4
4
  import { Polyline } from '../Model/polyline';
5
- import Area from '../Model/area';
6
5
  export default class EditController extends BaseController {
7
6
  type: string;
8
7
  polyline: Polyline;
9
- area: Area;
8
+ /** 拖动的控制点 */
9
+ private pressPoint?;
10
10
  private hasAppendDashed;
11
+ private hasAppendMouseGroup;
11
12
  private fiveElement?;
12
13
  /** 上一个端点位置 */
13
14
  private lastPoint;
14
- private pointSelector;
15
- private deleteDom;
15
+ private hammer?;
16
16
  /** 根据 intersection 更新放大镜和吸附点 */
17
17
  private onIntersectionUpdate;
18
18
  constructor(params: ControllerParams);
@@ -20,37 +20,29 @@ export default class EditController extends BaseController {
20
20
  getEditingLines(): Line[];
21
21
  /** 撤销编辑 */
22
22
  revoke: () => void;
23
- /**
24
- * @description: 测面积的撤销功能
25
- */
26
- revokeArea: () => void;
27
- /**
28
- * @description: 测距的撤销功能
29
- */
30
- revokeLine: (_polyline?: Polyline) => void;
31
- selectPoint(): void;
32
- complete(): void;
33
23
  private onMouseLeave;
34
24
  /** 编辑线条发生改变时通知外部 */
35
25
  private onLineChanged;
26
+ private onPress;
27
+ /**
28
+ * 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
29
+ * 2. 如果有长按点,把长按点位置更新为当前位置
30
+ */
31
+ private onPan;
32
+ private onPanEnd;
36
33
  /**
37
34
  * 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
38
35
  * 2. 把上一个点的位置更新为当前点的位置
39
- * 3. 清除 pointSelector
36
+ * 3. 清除 mouseGroup 和 magnifier
40
37
  */
41
- private onSelect;
38
+ private onTap;
39
+ private onWantsTapGesture;
40
+ /** 编辑时取消走点 */
41
+ private onWantsToMoveToPano;
42
+ /** 存在长按点时不能移动全景 */
43
+ private onWantsPanGesture;
42
44
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
43
45
  private onCameraUpdate;
44
46
  /** 更新虚线 */
45
47
  private updateDashed;
46
- private wantsTapGesture;
47
- private chooseLine;
48
- private chooseArea;
49
- private highlightArea;
50
- private unHighlightArea;
51
- private highlightLines;
52
- private unHighlightLines;
53
- private highlightLine;
54
- private deleteArea;
55
- private deleteLine;
56
48
  }