@realsee/dnalogel 3.0.0-11 → 3.0.0-13

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 (479) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +3 -2
  2. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
  4. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +5 -7
  5. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
  6. package/dist/PanoTagPlugin/controller/TagCache.d.ts +3 -3
  7. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
  8. package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -1
  9. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
  10. package/dist/PanoTagPlugin/controller/index.d.ts +2 -6
  11. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
  12. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +67 -20
  13. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
  14. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
  15. package/dist/PanoTagPlugin/utils/index.d.ts +0 -2
  16. package/dist/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
  17. package/dist/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
  18. package/dist/index.cjs.js +62 -62
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.js +6367 -6332
  21. package/dist/index.umd.js +48 -48
  22. package/dist/shared-utils/five/FiveDomEvents.d.ts +23 -12
  23. package/dist/shared-utils/five/adapt.d.ts +9 -0
  24. package/dist/shared-utils/five/fiveModelLoad.d.ts +9 -0
  25. package/dist/shared-utils/index.d.ts +1 -1
  26. package/dist/shared-utils/three/getNormal.d.ts +2 -0
  27. package/dist/shared-utils/typescript/entries.d.ts +2 -0
  28. package/dist/shared-utils/url/getUrl.d.ts +4 -0
  29. package/docs/assets/search.js +1 -1
  30. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +31 -30
  31. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +32 -31
  32. package/docs/classes/CSS3DRender.html +31 -30
  33. package/docs/classes/CruisePluginController.html +26 -25
  34. package/docs/classes/GuideLineItem.GuideLineItem.html +20 -19
  35. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +35 -34
  36. package/docs/classes/Magnifier.html +20 -19
  37. package/docs/classes/ModelRoomLabelController.html +11 -10
  38. package/docs/classes/Object3DHelperController.html +25 -24
  39. package/docs/classes/PaintBrush.html +15 -14
  40. package/docs/classes/PanoMeasurePluginLine.html +27 -26
  41. package/docs/classes/PanoMeasurePluginModel.html +27 -26
  42. package/docs/classes/PanoMeasurePluginPoint.html +11 -10
  43. package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
  44. package/docs/classes/PanoTagPluginController.html +54 -108
  45. package/docs/classes/Util.BetterTween.html +9 -8
  46. package/docs/classes/Util.Interval.html +12 -11
  47. package/docs/classes/Util.LineSegments.html +8 -7
  48. package/docs/classes/Util.Magnifier.html +20 -19
  49. package/docs/classes/Util.Object3D.html +8 -7
  50. package/docs/classes/Util.PointDomHelper.html +11 -10
  51. package/docs/classes/Util.PointHelper.html +11 -10
  52. package/docs/classes/Util.PointSelectorHelper.html +16 -15
  53. package/docs/classes/Util.Rectangle.html +13 -12
  54. package/docs/enums/CameraMovementEffect.html +7 -6
  55. package/docs/enums/ContentType.html +20 -19
  56. package/docs/enums/DIRECTION.html +9 -8
  57. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -8
  58. package/docs/enums/DimensionType.html +7 -6
  59. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -7
  60. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -8
  61. package/docs/enums/PaintBrushTypeEnum.html +8 -7
  62. package/docs/enums/PointType.html +7 -6
  63. package/docs/enums/Rotation.html +8 -7
  64. package/docs/functions/AreaMakerPlugin.html +5 -4
  65. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  66. package/docs/functions/CameraMovementPlugin.html +5 -4
  67. package/docs/functions/CruisePlugin.html +5 -4
  68. package/docs/functions/CurrentPanoImagePlugin.html +5 -4
  69. package/docs/functions/GuideLinePlugin.html +5 -4
  70. package/docs/functions/ItemLabelPlugin.html +5 -4
  71. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  72. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  73. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  74. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  75. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  76. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  77. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  78. package/docs/functions/ModelViewPlugin.html +5 -4
  79. package/docs/functions/Object3DHelperPlugin.html +5 -4
  80. package/docs/functions/PanoCompassPlugin.html +5 -4
  81. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  82. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  83. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  84. package/docs/functions/PanoMeasurePlugin.html +5 -4
  85. package/docs/functions/PanoRulerPlugin.html +5 -4
  86. package/docs/functions/PanoRulerProPlugin.html +5 -4
  87. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  88. package/docs/functions/PanoTagPlugin.html +5 -4
  89. package/docs/functions/PanoVideoPlugin.html +5 -4
  90. package/docs/functions/PipelinePlugin.html +5 -4
  91. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  92. package/docs/functions/Util.absoluteUrl.html +5 -4
  93. package/docs/functions/Util.checkFiveModelLoaded.html +5 -4
  94. package/docs/functions/Util.equal.html +5 -4
  95. package/docs/functions/Util.getCoordsFromClient.html +5 -4
  96. package/docs/functions/Util.getCoordsFromElement.html +5 -4
  97. package/docs/functions/Util.getFrameTime.html +5 -4
  98. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -4
  99. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -4
  100. package/docs/functions/Util.isAbsoluteURL.html +5 -4
  101. package/docs/functions/Util.isModelLike.html +5 -4
  102. package/docs/functions/Util.isNil.html +5 -4
  103. package/docs/functions/Util.isPanoramaLike.html +5 -4
  104. package/docs/functions/Util.nextFrame.html +5 -4
  105. package/docs/functions/Util.notNil.html +5 -4
  106. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -4
  107. package/docs/functions/Util.tweenProgress.html +5 -4
  108. package/docs/functions/Util.uuid.html +5 -4
  109. package/docs/functions/pluginFlag.html +5 -4
  110. package/docs/index.html +5 -4
  111. package/docs/interfaces/AddTagConfig.html +6 -5
  112. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +6 -5
  113. package/docs/interfaces/AreaMakerPluginType.Config.html +6 -5
  114. package/docs/interfaces/AreaMakerPluginType.EventMap.html +15 -14
  115. package/docs/interfaces/AreaMakerPluginType.Params.html +7 -6
  116. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -8
  117. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +8 -7
  118. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +6 -5
  119. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +6 -5
  120. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +6 -5
  121. package/docs/interfaces/AreaMakerPluginType.State.html +8 -7
  122. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -10
  123. package/docs/interfaces/CSS3DRenderPluginState.html +8 -7
  124. package/docs/interfaces/CameraMovementPluginExportType.html +7 -6
  125. package/docs/interfaces/CruisePluginTypes.Config.html +8 -7
  126. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -11
  127. package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -19
  128. package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -11
  129. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -13
  130. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -13
  131. package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -8
  132. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -5
  133. package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -10
  134. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +11 -10
  135. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +12 -11
  136. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +7 -6
  137. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +6 -5
  138. package/docs/interfaces/CurrentPanoImagePluginType.State.html +8 -7
  139. package/docs/interfaces/EventMap.html +15 -14
  140. package/docs/interfaces/FloorplanBounding.html +8 -7
  141. package/docs/interfaces/FloorplanData.html +10 -9
  142. package/docs/interfaces/FloorplanEntrance.html +11 -10
  143. package/docs/interfaces/FloorplanExtraObject.html +10 -9
  144. package/docs/interfaces/FloorplanExtraObject3D.html +8 -7
  145. package/docs/interfaces/FloorplanFloorData.html +9 -8
  146. package/docs/interfaces/FloorplanImagePosition.html +7 -6
  147. package/docs/interfaces/FloorplanObserver.html +9 -8
  148. package/docs/interfaces/FloorplanOutlineItem.html +9 -8
  149. package/docs/interfaces/FloorplanPosition.html +7 -6
  150. package/docs/interfaces/FloorplanRoomItem.html +13 -12
  151. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -6
  152. package/docs/interfaces/FloorplanServerBounding.html +8 -7
  153. package/docs/interfaces/FloorplanServerComputedData.html +10 -9
  154. package/docs/interfaces/FloorplanServerData.html +7 -6
  155. package/docs/interfaces/FloorplanServerDoorItem.html +10 -9
  156. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -7
  157. package/docs/interfaces/FloorplanServerEntrance.html +11 -10
  158. package/docs/interfaces/FloorplanServerFloorData.html +9 -8
  159. package/docs/interfaces/FloorplanServerImagePosition.html +7 -6
  160. package/docs/interfaces/FloorplanServerObserver.html +9 -8
  161. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -8
  162. package/docs/interfaces/FloorplanServerPosition.html +7 -6
  163. package/docs/interfaces/FloorplanServerRoomItem.html +14 -13
  164. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -6
  165. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -7
  166. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -9
  167. package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -12
  168. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -7
  169. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -5
  170. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +13 -12
  171. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -7
  172. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -17
  173. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +7 -6
  174. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -17
  175. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -4
  176. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -5
  177. package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -7
  178. package/docs/interfaces/GuideLinePluginType.Route.html +11 -10
  179. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -8
  180. package/docs/interfaces/HelperOffset.html +8 -7
  181. package/docs/interfaces/ImagePlaneGroup.html +6 -5
  182. package/docs/interfaces/ItemLabelPluginData.html +6 -5
  183. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -10
  184. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -8
  185. package/docs/interfaces/MinMax.html +7 -6
  186. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -6
  187. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -7
  188. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -6
  189. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -7
  190. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -7
  191. package/docs/interfaces/ModelItemLabelPluginData.html +6 -5
  192. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -10
  193. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -6
  194. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -5
  195. package/docs/interfaces/ModelTVVideoPluginData.html +9 -8
  196. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -7
  197. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -5
  198. package/docs/interfaces/ModelViewPluginExportType.html +11 -10
  199. package/docs/interfaces/Object3DHelperState.html +8 -7
  200. package/docs/interfaces/ObjectHelperControllers.html +9 -8
  201. package/docs/interfaces/PaintBrushAction.html +12 -11
  202. package/docs/interfaces/PaintBrushConfigs.html +12 -11
  203. package/docs/interfaces/PaintBrushState.html +10 -9
  204. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -9
  205. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -4
  206. package/docs/interfaces/PanoMeasureParameterType.html +16 -15
  207. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -7
  208. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -6
  209. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -6
  210. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -7
  211. package/docs/interfaces/PanoRulerPluginExportType.html +10 -9
  212. package/docs/interfaces/PanoRulerPluginOptions.html +7 -6
  213. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -7
  214. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -8
  215. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -6
  216. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -6
  217. package/docs/interfaces/PanoRulerProPluginState.html +8 -7
  218. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -4
  219. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -4
  220. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -10
  221. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -9
  222. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -12
  223. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -9
  224. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -12
  225. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -10
  226. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -9
  227. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -5
  228. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -7
  229. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -5
  230. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -8
  231. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -5
  232. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -7
  233. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -9
  234. package/docs/interfaces/Point.html +8 -7
  235. package/docs/interfaces/Room.html +9 -8
  236. package/docs/interfaces/RoomInfo.html +7 -6
  237. package/docs/interfaces/RoomLabel.html +14 -13
  238. package/docs/interfaces/RoomRules.html +5 -4
  239. package/docs/interfaces/Rooms.html +5 -4
  240. package/docs/interfaces/Scissor.html +9 -8
  241. package/docs/interfaces/State.html +8 -7
  242. package/docs/interfaces/TagCacheInterface.html +12 -11
  243. package/docs/interfaces/TagConfig.html +45 -27
  244. package/docs/interfaces/TagGLTFObjectGroup.html +6 -5
  245. package/docs/interfaces/TagIconUrl.html +12 -11
  246. package/docs/interfaces/TagObjectGroup.html +6 -5
  247. package/docs/interfaces/TagStyle.html +6 -5
  248. package/docs/interfaces/Tags.html +2153 -10
  249. package/docs/interfaces/TemporaryState.html +6 -5
  250. package/docs/interfaces/Util.MagnifierParameter.html +11 -10
  251. package/docs/interfaces/Util.MouseGroupParameter.html +8 -7
  252. package/docs/interfaces/Util.PointIntersection.html +8 -7
  253. package/docs/modules/AreaMakerPluginType.html +5 -4
  254. package/docs/modules/CruisePluginTypes.html +5 -4
  255. package/docs/modules/CurrentPanoImagePluginType.html +5 -4
  256. package/docs/modules/GuideLineItem.html +5 -4
  257. package/docs/modules/GuideLineModeItem.html +5 -4
  258. package/docs/modules/GuideLinePluginType.html +5 -4
  259. package/docs/modules/PanoVideoPluginType.html +5 -4
  260. package/docs/modules/Util.html +5 -4
  261. package/docs/modules.html +6 -4
  262. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +5 -4
  263. package/docs/types/AreaMakerPluginType.PluginData.html +5 -4
  264. package/docs/types/AreaMakerPluginType.ServerData.html +5 -4
  265. package/docs/types/ArrayPosition.html +5 -4
  266. package/docs/types/AudioAppearance.html +5 -4
  267. package/docs/types/AudioTagTypeConfigKey.html +5 -4
  268. package/docs/types/CSS3DRenderExportType.html +5 -4
  269. package/docs/types/CSS3DRenderPluginExportType.html +5 -4
  270. package/docs/types/CSS3DRenderPluginParameterType.html +5 -4
  271. package/docs/types/ClassFunctionParameters.html +5 -4
  272. package/docs/types/Color.html +5 -4
  273. package/docs/types/ContentTypeConfigKey.html +6 -5
  274. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  275. package/docs/types/ContentTypeMap.html +5 -4
  276. package/docs/types/Create3DDomContainerReturnType.html +5 -4
  277. package/docs/types/Create3DElementReturnType.html +5 -4
  278. package/docs/types/CruisePluginExportType.html +5 -4
  279. package/docs/types/CruisePluginTypes.CruiseData.html +5 -4
  280. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -4
  281. package/docs/types/CurrentPanoImagePluginExportType.html +5 -4
  282. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -4
  283. package/docs/types/DeprecatedTagProperty.html +5 -4
  284. package/docs/types/Direction-1.html +5 -4
  285. package/docs/types/Direction4.html +5 -4
  286. package/docs/types/ElementRenderer.html +5 -4
  287. package/docs/types/FloorplanRuleLabels.html +5 -4
  288. package/docs/types/FloorplanServerRuleLabels.html +5 -4
  289. package/docs/types/GuideLinePluginExportType.html +5 -4
  290. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -4
  291. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -4
  292. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -4
  293. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -4
  294. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -4
  295. package/docs/types/GuideLinePluginType.PathItem.html +5 -4
  296. package/docs/types/GuideLinePluginType.PluginData.html +5 -4
  297. package/docs/types/HelperEventMap.html +5 -4
  298. package/docs/types/LoadTagConfig.html +5 -4
  299. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -4
  300. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -4
  301. package/docs/types/MediaData.html +5 -4
  302. package/docs/types/MediaStore.html +5 -4
  303. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -4
  304. package/docs/types/ModelFloorplanPluginParameterType.html +5 -4
  305. package/docs/types/ModelFloorplanPluginReturnType.html +5 -4
  306. package/docs/types/ModelId.html +279 -0
  307. package/docs/types/ModelRoomLabelPluginParameters.html +5 -4
  308. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -4
  309. package/docs/types/MoveArgs.html +5 -4
  310. package/docs/types/MoveOpts.html +5 -4
  311. package/docs/types/Object3DHelperEventMap.html +5 -4
  312. package/docs/types/ObjectFit.html +5 -4
  313. package/docs/types/PaintBrushEventMap.html +5 -4
  314. package/docs/types/PanoCompassPluginData.html +5 -4
  315. package/docs/types/PanoCompassPluginExportType.html +5 -4
  316. package/docs/types/PanoCompassPluginParameterType.html +5 -4
  317. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -4
  318. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -4
  319. package/docs/types/PanoIndex.html +5 -4
  320. package/docs/types/PanoMeasurePluginEvent.html +5 -4
  321. package/docs/types/PanoMeasureReturnType.html +5 -4
  322. package/docs/types/PanoSpatialTagPluginId.html +5 -4
  323. package/docs/types/PanoTagPluginExportInterface.html +5 -4
  324. package/docs/types/PanoTagPluginParamsInterface.html +5 -4
  325. package/docs/types/PanoVideoPluginParameterType.html +5 -4
  326. package/docs/types/PanoVideoPluginReturnType.html +5 -4
  327. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
  328. package/docs/types/PipelinePluginParameterType.html +5 -4
  329. package/docs/types/PipelinePluginReturnType.html +5 -4
  330. package/docs/types/PlaneTag.html +5 -4
  331. package/docs/types/Point2DTag.html +5 -4
  332. package/docs/types/Point3DTag.html +5 -4
  333. package/docs/types/PointTag.html +5 -4
  334. package/docs/types/PointTagInstance.html +5 -4
  335. package/docs/types/Position.html +5 -4
  336. package/docs/types/RotateArgs.html +5 -4
  337. package/docs/types/RotateOpts.html +5 -4
  338. package/docs/types/RuleLabelsKey.html +5 -4
  339. package/docs/types/RuleLabelsValue.html +5 -4
  340. package/docs/types/StickType.html +5 -4
  341. package/docs/types/Tag.html +7 -6
  342. package/docs/types/Tag2D.html +5 -4
  343. package/docs/types/Tag3D.html +5 -4
  344. package/docs/types/TagConfigByKey.html +5 -4
  345. package/docs/types/TagContentType.html +5 -4
  346. package/docs/types/TagDimensionType.html +5 -4
  347. package/docs/types/TagElement.html +5 -4
  348. package/docs/types/TagEvents.html +5 -4
  349. package/docs/types/TagGLTFObject.html +5 -4
  350. package/docs/types/TagHooks.html +5 -4
  351. package/docs/types/TagId.html +5 -4
  352. package/docs/types/TagInstance.html +8 -5
  353. package/docs/types/TagPointType.html +5 -4
  354. package/docs/types/TagRendererMap.html +5 -4
  355. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -4
  356. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -4
  357. package/docs/types/WorkCode.html +5 -4
  358. package/docs/variables/FLOOR_TYPE_MAP.html +5 -4
  359. package/docs/variables/PLUGIN.html +5 -4
  360. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -4
  361. package/docs/variables/ROOM_TYPE_MAP.html +5 -4
  362. package/docs/variables/defaultGlobalConfig.html +5 -4
  363. package/docs/variables/itemLabelPluginServerParams.html +5 -4
  364. package/docs/variables/modelItemLabelPluginServerParams.html +5 -4
  365. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -4
  366. package/libs/AreaMakerPlugin/Controller.js +5 -3
  367. package/libs/AreaMakerPlugin/index.js +5 -3
  368. package/libs/AreaMakerPlugin/utils/Item.js +9 -7
  369. package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -2
  370. package/libs/CSS3DRenderPlugin/Controller.js +9 -6
  371. package/libs/CSS3DRenderPlugin/index.js +8 -6
  372. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
  373. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -6
  374. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
  375. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +23 -22
  376. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +5 -7
  377. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +43 -53
  378. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
  379. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +70 -66
  380. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -3
  381. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -10
  382. package/libs/CruisePlugin/Controller.js +111 -105
  383. package/libs/CruisePlugin/index.js +13 -9
  384. package/libs/CurrentPanoImagePlugin/Controller.js +27 -22
  385. package/libs/CurrentPanoImagePlugin/index.js +7 -4
  386. package/libs/GuideLinePlugin/Controller.js +29 -25
  387. package/libs/GuideLinePlugin/GuideLineItem.js +10 -6
  388. package/libs/GuideLinePlugin/GuideLineModeItem.js +10 -6
  389. package/libs/GuideLinePlugin/index.js +15 -11
  390. package/libs/ModelTVVideoPlugin/Plugin.js +6 -4
  391. package/libs/ModelTVVideoPlugin/index.js +5 -3
  392. package/libs/Object3DHelperPlugin/Controller.js +5 -3
  393. package/libs/Object3DHelperPlugin/index.js +8 -6
  394. package/libs/PanoCompassPlugin/Controller.js +5 -3
  395. package/libs/PanoCompassPlugin/index.js +6 -4
  396. package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
  397. package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
  398. package/libs/PanoDoorLabelPlugin/index.js +6 -4
  399. package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -3
  400. package/libs/PanoMeasurePlugin/Components/Controller1.js +55 -53
  401. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -3
  402. package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
  403. package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
  404. package/libs/PanoMeasurePlugin/Model/area.js +4 -2
  405. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +25 -23
  406. package/libs/PanoMeasurePlugin/index.js +16 -14
  407. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +14 -12
  408. package/libs/PanoSpatialTagPlugin/Plugin.js +6 -4
  409. package/libs/PanoSpatialTagPlugin/index.js +3 -1
  410. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
  411. package/libs/PanoTagPlugin/Components/Tag/index.js +206 -205
  412. package/libs/PanoTagPlugin/Components/TagContainer.js +12 -11
  413. package/libs/PanoTagPlugin/Components/TagItem.js +129 -128
  414. package/libs/PanoTagPlugin/controller/TagCache.d.ts +3 -3
  415. package/libs/PanoTagPlugin/controller/TagCache.js +17 -15
  416. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
  417. package/libs/PanoTagPlugin/controller/TagComputer.js +173 -201
  418. package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -1
  419. package/libs/PanoTagPlugin/controller/TagRender.js +139 -116
  420. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
  421. package/libs/PanoTagPlugin/controller/TagUtil.js +182 -154
  422. package/libs/PanoTagPlugin/controller/index.d.ts +2 -6
  423. package/libs/PanoTagPlugin/controller/index.js +148 -155
  424. package/libs/PanoTagPlugin/index.js +21 -16
  425. package/libs/PanoTagPlugin/tag.config.js +11 -3
  426. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
  427. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +67 -20
  428. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
  429. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
  430. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
  431. package/libs/PanoTagPlugin/utils/index.d.ts +0 -2
  432. package/libs/PanoTagPlugin/utils/index.js +23 -31
  433. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +97 -99
  434. package/libs/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
  435. package/libs/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
  436. package/libs/PanoTagPlugin/utils/tag/adaptConfig.js +7 -0
  437. package/libs/PanoVideoPlugin/Controller.js +5 -3
  438. package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
  439. package/libs/PanoVideoPlugin/index.js +8 -6
  440. package/libs/PipelinePlugin/Controller.js +5 -3
  441. package/libs/PipelinePlugin/index.js +6 -4
  442. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
  443. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -12
  444. package/libs/PipelinePlugin/utils/Objects/Pipe.js +2 -0
  445. package/libs/base/BasePlugin.js +2 -2
  446. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +5 -3
  447. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -4
  448. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
  449. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
  450. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
  451. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
  452. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +33 -31
  453. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
  454. package/libs/floorplan/utils/correctFiveState.js +25 -25
  455. package/libs/index.d.ts +1 -0
  456. package/libs/index.js +125 -120
  457. package/libs/shared-utils/five/FiveDomEvents.d.ts +23 -12
  458. package/libs/shared-utils/five/FiveDomEvents.js +96 -73
  459. package/libs/shared-utils/five/adapt.d.ts +9 -0
  460. package/libs/shared-utils/five/adapt.js +16 -0
  461. package/libs/shared-utils/five/fiveModelLoad.d.ts +9 -0
  462. package/libs/shared-utils/five/fiveModelLoad.js +29 -0
  463. package/libs/shared-utils/five/mode.js +5 -5
  464. package/libs/shared-utils/index.d.ts +1 -1
  465. package/libs/shared-utils/index.js +1 -1
  466. package/libs/shared-utils/logger.js +1 -1
  467. package/libs/shared-utils/three/getNormal.d.ts +2 -0
  468. package/libs/shared-utils/three/getNormal.js +10 -0
  469. package/libs/shared-utils/typescript/entries.d.ts +2 -0
  470. package/libs/shared-utils/typescript/entries.js +6 -0
  471. package/libs/shared-utils/url/getUrl.d.ts +4 -0
  472. package/libs/shared-utils/url/getUrl.js +7 -0
  473. package/package.json +1 -1
  474. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
  475. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
  476. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +0 -16
  477. /package/dist/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
  478. /package/libs/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
  479. /package/libs/shared-utils/{absoluteUrl.js → url/absoluteUrl.js} +0 -0
@@ -6,14 +6,25 @@
6
6
  * 3. 基于第二点,废弃了之前使用浏览器原生事件监听点击的方式,改为使用 wantsTapGesture 的方式
7
7
  * 4. 重构之后只会在 wantsTapGesture 事件触发的时候做射线检测
8
8
  */
9
- import { type Five } from '@realsee/five';
9
+ import type { Five } from '@realsee/five';
10
10
  import type * as THREE from 'three';
11
- type EventName = 'click';
11
+ interface EventMap {
12
+ /**
13
+ * @description 点击事件
14
+ * @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
15
+ */
16
+ click: (event: CallbackEvent) => PreventFiveEvent | void;
17
+ /**
18
+ * @description 鼠标移入事件
19
+ */
20
+ hover: (event: CallbackEvent) => void;
21
+ /**
22
+ * @description 鼠标移出事件
23
+ */
24
+ unHover: (event: CallbackEvent) => void;
25
+ }
26
+ type EventName = keyof EventMap;
12
27
  type PreventFiveEvent = boolean;
13
- /**
14
- * @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
15
- */
16
- type Callback = (event: CallbackEvent) => PreventFiveEvent | void;
17
28
  interface EventHandlerConfig {
18
29
  /**
19
30
  * @default true
@@ -29,20 +40,20 @@ interface CallbackEvent {
29
40
  }
30
41
  type Object3DWithEvent = THREE.Object3D & {
31
42
  _domEvent?: {
32
- [key in `${EventName}Handler`]?: Array<[Function, EventHandlerConfig]>;
43
+ [key in `${EventName}Handler`]?: Array<[EventMap[EventName], EventHandlerConfig]>;
33
44
  };
45
+ _hovered?: boolean;
34
46
  };
35
47
  export declare class FiveDomEvents {
36
48
  private five;
37
49
  private boundObject;
38
- private extraObjects;
39
50
  constructor(five: Five);
40
51
  /**
41
52
  * @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
42
53
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
43
54
  * @todo: added 和 removed 还是不太智能
44
55
  */
45
- addAutoBindEventListener(...params: Parameters<InstanceType<typeof FiveDomEvents>['addEventListener']>): void;
56
+ addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): () => void;
46
57
  /**
47
58
  * @description: add event listener
48
59
  * @param params.object: object
@@ -50,12 +61,12 @@ export declare class FiveDomEvents {
50
61
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
51
62
  * @return {void}
52
63
  */
53
- addEventListener(object: Object3DWithEvent, event: EventName, callback: Callback, config?: EventHandlerConfig): void;
64
+ addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): void;
54
65
  removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: CallbackEvent) => any, ...args: any[]): void;
55
66
  dispose(): void;
56
- private handleWantsTapGesture;
67
+ private handleWantsGesture;
68
+ private onDomEvent;
57
69
  private objectIsBound;
58
70
  private notify;
59
- private updateFiveMeshes;
60
71
  }
61
72
  export {};
@@ -1,95 +1,117 @@
1
- var O = Object.defineProperty, L = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
4
- var g = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
5
- var f = (s, e, t) => e in s ? O(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, p = (s, e) => {
1
+ var L = Object.defineProperty;
2
+ var p = Object.getOwnPropertySymbols;
3
+ var H = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
+ var E = (u, e, t) => e in u ? L(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, b = (u, e) => {
6
5
  for (var t in e || (e = {}))
7
- g.call(e, t) && f(s, t, e[t]);
8
- if (m)
9
- for (var t of m(e))
10
- H.call(e, t) && f(s, t, e[t]);
11
- return s;
12
- }, b = (s, e) => L(s, x(e));
13
- var r = (s, e, t) => (f(s, typeof e != "symbol" ? e + "" : e, t), t);
14
- import { PBMMesh as $ } from "@realsee/five";
15
- import { getObjectVisible as F } from "../three/getObjectVisible.js";
16
- class B {
6
+ H.call(e, t) && E(u, t, e[t]);
7
+ if (p)
8
+ for (var t of p(e))
9
+ g.call(e, t) && E(u, t, e[t]);
10
+ return u;
11
+ };
12
+ var h = (u, e, t) => (E(u, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import { getObjectVisible as $ } from "../three/getObjectVisible.js";
14
+ class I {
17
15
  constructor(e) {
18
- r(this, "five");
19
- r(this, "boundObject", {});
20
- r(this, "extraObjects", []);
21
- r(this, "handleWantsTapGesture", (e) => {
22
- var o;
23
- const t = "click", n = this.boundObject[t];
16
+ h(this, "five");
17
+ h(this, "boundObject", {});
18
+ h(this, "handleWantsGesture", (e, t) => {
19
+ if (t.length !== 1)
20
+ return;
21
+ const n = t[0];
22
+ if (n) {
23
+ if (e === "mouseMove")
24
+ return this.onDomEvent("hover", n.raycaster);
25
+ if (e === "tap")
26
+ return this.onDomEvent("click", n.raycaster);
27
+ }
28
+ });
29
+ h(this, "onDomEvent", (e, t) => {
30
+ var i;
31
+ const n = this.boundObject[e];
24
32
  if (!n || (n == null ? void 0 : n.length) === 0)
25
33
  return;
26
- console.debug("射线检测");
27
- const i = (o = e.intersectObjects([...n, ...this.extraObjects], !0)[0]) == null ? void 0 : o.object;
28
- if (!i || !this.objectIsBound(i))
34
+ const d = (() => {
35
+ var f;
36
+ const r = t.intersectObjects(n, !0);
37
+ if (r.length === 0)
38
+ return;
39
+ const s = this.five.model.intersectRaycaster(t);
40
+ if (!(s.length > 0 && r.length > 0 && s[0].distance < r[0].distance))
41
+ return (f = r[0]) == null ? void 0 : f.object;
42
+ })();
43
+ if (!d || !this.objectIsBound(d)) {
44
+ for (const r of (i = this.boundObject.hover) != null ? i : [])
45
+ r._hovered && this.notify("unHover", r);
29
46
  return;
30
- if (this.notify(t, i))
47
+ }
48
+ if (this.notify(e, d))
31
49
  return !1;
32
50
  });
33
- r(this, "objectIsBound", (e) => {
51
+ h(this, "objectIsBound", (e) => {
34
52
  let t = e._domEvent, n = e.parent;
35
53
  for (; typeof t == "undefined" && n; )
36
54
  t = n._domEvent, n = n.parent;
37
55
  return !!t;
38
56
  });
39
57
  // eslint-disable-next-line max-params
40
- r(this, "notify", (e, t, n, u) => {
41
- let i = !1, h = [];
42
- const o = [t];
43
- let d = t;
44
- for (; d.parent; )
45
- d = d.parent, o.push(d);
46
- for (const a of o) {
47
- if (i)
58
+ h(this, "notify", (e, t, n, d) => {
59
+ var f;
60
+ let o = !1, i = [];
61
+ const r = [];
62
+ let s = t;
63
+ for (r.push(s); s.parent; )
64
+ s = s.parent, r.push(s);
65
+ for (const v of r) {
66
+ if (o)
48
67
  break;
49
- const c = a._domEvent;
50
- if (!c)
68
+ const m = v._domEvent;
69
+ if (!m)
51
70
  continue;
52
- const E = c[`${e}Handler`];
53
- if (E)
54
- for (const [_, v] of E) {
55
- if (v != null && v.checkVisible && !F(a))
71
+ const _ = m[`${e}Handler`];
72
+ if (_)
73
+ for (const [O, l] of _) {
74
+ if (l != null && l.checkVisible && !$(v))
56
75
  continue;
57
- const l = _({
76
+ if (e === "hover") {
77
+ if (v._hovered)
78
+ continue;
79
+ v._hovered = !0;
80
+ for (const a of (f = this.boundObject.hover) != null ? f : [])
81
+ a !== v && a._hovered && this.notify("unHover", a);
82
+ }
83
+ if (e === "unHover") {
84
+ if (!v._hovered)
85
+ continue;
86
+ v._hovered = !1;
87
+ }
88
+ const c = O({
58
89
  type: e,
59
- target: a,
90
+ target: v,
60
91
  origDomEvent: n,
61
- intersect: u,
92
+ intersect: d,
62
93
  stopPropagation: () => {
63
- i = !0;
94
+ o = !0;
64
95
  }
65
96
  });
66
- h.push(l != null ? l : !0);
97
+ i.push(c != null ? c : !0);
67
98
  }
68
99
  }
69
- return h.some((a) => a === !0);
70
- });
71
- r(this, "updateFiveMeshes", () => {
72
- var e;
73
- this.extraObjects = [], (e = this.five.model) == null || e.traverse((t) => {
74
- t instanceof $ && this.extraObjects.push(t);
75
- });
100
+ if (e === "click")
101
+ return i.some((v) => v === !0);
76
102
  });
77
- this.five = e, this.updateFiveMeshes(), e.on("modelLoaded", this.updateFiveMeshes), e.on("wantsTapGesture", this.handleWantsTapGesture);
103
+ this.five = e, e.on("wantsGesture", this.handleWantsGesture);
78
104
  }
79
105
  /**
80
106
  * @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
81
107
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
82
108
  * @todo: added 和 removed 还是不太智能
83
109
  */
84
- addAutoBindEventListener(...e) {
85
- const t = e[0];
86
- t.addEventListener("added", () => {
87
- this.addEventListener(...e);
88
- }), t.addEventListener("removed", () => {
89
- this.removeEventListener(...e);
90
- }), t.addEventListener("dispose", () => {
91
- this.removeEventListener(...e);
92
- });
110
+ addAutoBindEventListener(e, t, n, d) {
111
+ const o = () => this.addEventListener(e, t, n, d), i = () => this.removeEventListener(e, t, n, d);
112
+ return e.addEventListener("added", o), e.addEventListener("removed", i), e.addEventListener("dispose", i), () => {
113
+ e.removeEventListener("added", o), e.removeEventListener("removed", i), e.removeEventListener("dispose", i);
114
+ };
93
115
  }
94
116
  /**
95
117
  * @description: add event listener
@@ -98,24 +120,25 @@ class B {
98
120
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
99
121
  * @return {void}
100
122
  */
101
- addEventListener(e, t, n, u) {
102
- var i;
103
- e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b(p({}, u), { checkVisible: !0 })]), (i = this.boundObject[t]) == null || i.push(e);
123
+ addEventListener(e, t, n, d) {
124
+ var o;
125
+ e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b({ checkVisible: !0 }, d)]), (o = this.boundObject[t]) == null || o.push(e);
104
126
  }
105
- removeEventListener(e, t, n, ...u) {
106
- var h, o;
127
+ removeEventListener(e, t, n, ...d) {
128
+ var i, r;
107
129
  if (!e._domEvent || !e._domEvent[`${t}Handler`])
108
130
  return;
109
- const i = e._domEvent[`${t}Handler`].findIndex((d) => d[0] === n);
110
- if (i !== -1 && (e._domEvent[`${t}Handler`].splice(i, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
111
- const d = (h = this.boundObject[t]) == null ? void 0 : h.findIndex((a) => a === e);
112
- d !== -1 && ((o = this.boundObject[t]) == null || o.splice(d, 1));
131
+ const o = e._domEvent[`${t}Handler`].findIndex((s) => s[0] === n);
132
+ if (o !== -1 && (e._domEvent[`${t}Handler`].splice(o, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
133
+ const s = (i = this.boundObject[t]) == null ? void 0 : i.findIndex((f) => f === e);
134
+ s !== -1 && ((r = this.boundObject[t]) == null || r.splice(s, 1));
113
135
  }
114
136
  }
115
137
  dispose() {
116
- this.five.off("modelLoaded", this.updateFiveMeshes), this.five.off("wantsTapGesture", this.handleWantsTapGesture), this.boundObject = {}, this.extraObjects = [];
138
+ var e;
139
+ (e = this.five) == null || e.off("wantsGesture", this.handleWantsGesture), this.boundObject = {};
117
140
  }
118
141
  }
119
142
  export {
120
- B as FiveDomEvents
143
+ I as FiveDomEvents
121
144
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @description: 一些函数,来适配 Five@5.x 和 Five@6.x 的差异
3
+ */
4
+ import type { Five } from '@realsee/five';
5
+ export declare function adaptPanoId(five: Five, func: (params?: {
6
+ panoIndex: number;
7
+ panoId: string;
8
+ derivedId: number;
9
+ }, ...args: any[]) => any): (panoIdOrPanoIndex: string | number, ...args: any[]) => void;
@@ -0,0 +1,16 @@
1
+ function k(t, p) {
2
+ return function(n, ...s) {
3
+ var e, a;
4
+ if (typeof n == "number") {
5
+ const o = n, d = t.work.observers[n], c = (e = d == null ? void 0 : d.panoId) != null ? e : `${t.work.workCode}[${o}]`, i = d == null ? void 0 : d.derivedId;
6
+ p({ panoIndex: o, panoId: c, derivedId: i }, ...s);
7
+ } else if (typeof n == "string") {
8
+ const o = n, d = t.work.observers.find((f) => f.panoId === o), c = (a = d == null ? void 0 : d.index) != null ? a : d == null ? void 0 : d.panoIndex, i = d == null ? void 0 : d.derivedId;
9
+ p({ panoIndex: c, panoId: o, derivedId: i }, ...s);
10
+ } else
11
+ console.error(`adaptPano error: panoIdOrPanoIndex is ${n}`);
12
+ };
13
+ }
14
+ export {
15
+ k as adaptPanoId
16
+ };
@@ -0,0 +1,9 @@
1
+ import type { Five } from '@realsee/five';
2
+ /**
3
+ * @description: 等待 five model 加载完成
4
+ */
5
+ export declare function waitFiveModelLoaded(five: Five): Promise<void>;
6
+ /**
7
+ * @note five 6.0 修复了 多次 load work 时,`five.model.loaded` 不会变为 `false` 的问题,不再需要 `five.model.name === five.work?.model.file` 的判断了
8
+ */
9
+ export declare function fiveModelIsLoaded(five: Five): boolean;
@@ -0,0 +1,29 @@
1
+ var l = (d, o, n) => new Promise((r, t) => {
2
+ var c = (e) => {
3
+ try {
4
+ a(n.next(e));
5
+ } catch (i) {
6
+ t(i);
7
+ }
8
+ }, u = (e) => {
9
+ try {
10
+ a(n.throw(e));
11
+ } catch (i) {
12
+ t(i);
13
+ }
14
+ }, a = (e) => e.done ? r(e.value) : Promise.resolve(e.value).then(c, u);
15
+ a((n = n.apply(d, o)).next());
16
+ });
17
+ function s(d) {
18
+ return l(this, null, function* () {
19
+ return new Promise((o) => {
20
+ f(d) ? o() : d.once("modelLoaded", () => o());
21
+ });
22
+ });
23
+ }
24
+ function f(d) {
25
+ return d.model.loaded;
26
+ }
27
+ export {
28
+ s as waitFiveModelLoaded
29
+ };
@@ -1,10 +1,10 @@
1
- function n(a) {
2
- return a === "Panorama" || a === "DepthPanorama" || a === "VRPanorama" || a === "XRPanorama";
1
+ function n(e) {
2
+ return e.toLowerCase().includes("panorama");
3
3
  }
4
- function r(a) {
5
- return !n(a);
4
+ function o(e) {
5
+ return !n(e);
6
6
  }
7
7
  export {
8
- r as isModelLike,
8
+ o as isModelLike,
9
9
  n as isPanoramaLike
10
10
  };
@@ -3,6 +3,6 @@ export * from './five';
3
3
  export * from './three';
4
4
  export * from './isNil';
5
5
  export * from './uuid';
6
- export * from './absoluteUrl';
6
+ export * from './url/absoluteUrl';
7
7
  export * from './animationFrame';
8
8
  export { default as equal } from './equal';
@@ -12,7 +12,7 @@ import { Object3D as s } from "./three/core/Object3D.js";
12
12
  import { LineSegments as g } from "./three/objects/LineSegments.js";
13
13
  import { isNil as c, notNil as d } from "./isNil.js";
14
14
  import { uuid as u } from "./uuid.js";
15
- import { absoluteUrl as F, isAbsoluteURL as P } from "./absoluteUrl.js";
15
+ import { absoluteUrl as F, isAbsoluteURL as P } from "./url/absoluteUrl.js";
16
16
  import { getFrameTime as b, nextFrame as v, requestAnimationFrameInterval as L } from "./animationFrame/index.js";
17
17
  import { equal as M } from "./equal.js";
18
18
  import { isModelLike as R, isPanoramaLike as S } from "./five/mode.js";
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.0.0-11",
3
+ "%c %c@realsee/dnalogel %cv3.0.0-13",
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",
@@ -0,0 +1,2 @@
1
+ import { Vector3 } from 'three';
2
+ export default function getNormal(points: Vector3[], length?: number): Vector3;
@@ -0,0 +1,10 @@
1
+ import { Vector3 as u } from "three";
2
+ function p(o, r) {
3
+ if (o.length < 3)
4
+ return console.error("points.length < 3"), new u(0, 0, 0);
5
+ const [n, t, c] = o, l = n.clone().sub(t), s = n.clone().sub(c), e = l.cross(s).normalize();
6
+ return typeof r == "number" ? e.multiplyScalar(r) : e;
7
+ }
8
+ export {
9
+ p as getNormal
10
+ };
@@ -0,0 +1,2 @@
1
+ import type { ObjectEntries } from 'type-fest/source/entries';
2
+ export default function entries<T>(obj: T): ObjectEntries<T>;
@@ -0,0 +1,6 @@
1
+ function t(e) {
2
+ return Object.entries(e);
3
+ }
4
+ export {
5
+ t as entries
6
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @description 获取文件路径后缀
3
+ */
4
+ export declare function getUrlExt(url: string): string;
@@ -0,0 +1,7 @@
1
+ function o(e) {
2
+ const t = e.split("?")[0].split(".").pop();
3
+ return t ? t.toLowerCase() : "";
4
+ }
5
+ export {
6
+ o as getUrlExt
7
+ };
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": "3.0.0-11",
10
+ "version": "3.0.0-13",
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*",
@@ -1,4 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- export declare function actionAfterFiveModelLoad(five: Five, fuc: () => any): void;
3
- export declare function waitFiveModelLoaded(five: Five): Promise<void>;
4
- export declare function fiveModelLoaded(five: Five): boolean;
@@ -1,4 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- export declare function actionAfterFiveModelLoad(five: Five, fuc: () => any): void;
3
- export declare function waitFiveModelLoaded(five: Five): Promise<void>;
4
- export declare function fiveModelLoaded(five: Five): boolean;
@@ -1,16 +0,0 @@
1
- function n(e, o) {
2
- d(e) ? o() : e.once("modelLoaded", () => o());
3
- }
4
- function l(e) {
5
- return new Promise((o) => {
6
- d(e) ? o() : e.once("modelLoaded", () => o());
7
- });
8
- }
9
- function d(e) {
10
- return e.model.name === e.work.model.file && e.model.loaded;
11
- }
12
- export {
13
- n as actionAfterFiveModelLoad,
14
- d as fiveModelLoaded,
15
- l as waitFiveModelLoaded
16
- };