@realsee/dnalogel 3.0.0-dev.2 → 3.0.0

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 (386) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  2. package/dist/index.cjs.js +37 -37
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +3449 -3433
  5. package/dist/index.umd.js +39 -39
  6. package/dist/shared-utils/five/FiveDomEvents.d.ts +24 -10
  7. package/dist/shared-utils/five/calculateThreeMouse.d.ts +11 -0
  8. package/dist/shared-utils/nearlyEqual.d.ts +7 -0
  9. package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  10. package/libs/CruisePlugin/Controller.js +132 -129
  11. package/libs/CruisePlugin/index.js +6 -5
  12. package/libs/CurrentPanoImagePlugin/Controller.js +21 -23
  13. package/libs/CurrentPanoImagePlugin/index.js +3 -4
  14. package/libs/GuideLinePlugin/Controller.js +5 -4
  15. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  16. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  17. package/libs/GuideLinePlugin/index.js +8 -7
  18. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  19. package/libs/PanoTagPlugin/Components/TagItem.js +192 -205
  20. package/libs/PanoTagPlugin/controller/TagComputer.js +63 -61
  21. package/libs/PanoTagPlugin/controller/TagRender.js +52 -51
  22. package/libs/PanoTagPlugin/controller/TagUtil.js +94 -98
  23. package/libs/PanoTagPlugin/controller/index.js +42 -42
  24. package/libs/PanoTagPlugin/index.js +12 -11
  25. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  26. package/libs/base/BasePlugin.js +1 -1
  27. package/libs/floorplan/index.js +1 -0
  28. package/libs/index.d.ts +0 -1
  29. package/libs/index.js +1 -1
  30. package/libs/shared-utils/five/FiveDomEvents.d.ts +24 -10
  31. package/libs/shared-utils/five/FiveDomEvents.js +104 -66
  32. package/libs/shared-utils/five/calculateThreeMouse.d.ts +11 -0
  33. package/libs/shared-utils/five/calculateThreeMouse.js +8 -0
  34. package/libs/shared-utils/five/changeMode.js +11 -11
  35. package/libs/shared-utils/logger.js +1 -1
  36. package/libs/shared-utils/nearlyEqual.d.ts +7 -0
  37. package/libs/shared-utils/nearlyEqual.js +9 -3
  38. package/libs/shared-utils/three/PointSelector.js +39 -39
  39. package/libs/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  40. package/libs/shared-utils/three/PointSelectorHelper.js +4 -4
  41. package/libs/shared-utils/three/getNormal.js +5 -5
  42. package/package.json +2 -2
  43. package/dist/shared-utils/five/adapt.d.ts +0 -9
  44. package/docs/.nojekyll +0 -1
  45. package/docs/assets/highlight.css +0 -120
  46. package/docs/assets/main.js +0 -58
  47. package/docs/assets/search.js +0 -1
  48. package/docs/assets/style.css +0 -1367
  49. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
  50. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
  51. package/docs/classes/CSS3DRender.html +0 -773
  52. package/docs/classes/CruisePluginController.html +0 -672
  53. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
  54. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
  55. package/docs/classes/Magnifier.html +0 -480
  56. package/docs/classes/ModelRoomLabelController.html +0 -398
  57. package/docs/classes/Object3DHelperController.html +0 -640
  58. package/docs/classes/PaintBrush.html +0 -502
  59. package/docs/classes/PanoMeasurePluginLine.html +0 -522
  60. package/docs/classes/PanoMeasurePluginModel.html +0 -571
  61. package/docs/classes/PanoMeasurePluginPoint.html +0 -362
  62. package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
  63. package/docs/classes/PanoTagPluginController.html +0 -1050
  64. package/docs/classes/Util.BetterTween.html +0 -416
  65. package/docs/classes/Util.Interval.html +0 -432
  66. package/docs/classes/Util.LineSegments.html +0 -384
  67. package/docs/classes/Util.Magnifier.html +0 -503
  68. package/docs/classes/Util.Object3D.html +0 -406
  69. package/docs/classes/Util.PointDomHelper.html +0 -407
  70. package/docs/classes/Util.PointHelper.html +0 -398
  71. package/docs/classes/Util.PointSelectorHelper.html +0 -454
  72. package/docs/classes/Util.Rectangle.html +0 -455
  73. package/docs/enums/CameraMovementEffect.html +0 -310
  74. package/docs/enums/ContentType.html +0 -446
  75. package/docs/enums/DIRECTION.html +0 -320
  76. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
  77. package/docs/enums/DimensionType.html +0 -310
  78. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
  79. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
  80. package/docs/enums/PaintBrushTypeEnum.html +0 -313
  81. package/docs/enums/PointType.html +0 -310
  82. package/docs/enums/Rotation.html +0 -317
  83. package/docs/functions/AreaMakerPlugin.html +0 -290
  84. package/docs/functions/CSS3DRenderPlugin.html +0 -288
  85. package/docs/functions/CameraMovementPlugin.html +0 -293
  86. package/docs/functions/CruisePlugin.html +0 -290
  87. package/docs/functions/CurrentPanoImagePlugin.html +0 -290
  88. package/docs/functions/GuideLinePlugin.html +0 -290
  89. package/docs/functions/ItemLabelPlugin.html +0 -290
  90. package/docs/functions/MapviewFloorplanPlugin.html +0 -290
  91. package/docs/functions/ModelChassisCompassPlugin.html +0 -293
  92. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
  93. package/docs/functions/ModelFloorplanPlugin.html +0 -290
  94. package/docs/functions/ModelItemLabelPlugin.html +0 -290
  95. package/docs/functions/ModelRoomLabelPlugin.html +0 -288
  96. package/docs/functions/ModelTVVideoPlugin.html +0 -290
  97. package/docs/functions/ModelViewPlugin.html +0 -293
  98. package/docs/functions/Object3DHelperPlugin.html +0 -288
  99. package/docs/functions/PanoCompassPlugin.html +0 -290
  100. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
  101. package/docs/functions/PanoDoorLabelPlugin.html +0 -290
  102. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
  103. package/docs/functions/PanoMeasurePlugin.html +0 -290
  104. package/docs/functions/PanoRulerPlugin.html +0 -293
  105. package/docs/functions/PanoRulerProPlugin.html +0 -293
  106. package/docs/functions/PanoSpatialTagPlugin.html +0 -293
  107. package/docs/functions/PanoTagPlugin.html +0 -295
  108. package/docs/functions/PanoVideoPlugin.html +0 -299
  109. package/docs/functions/PipelinePlugin.html +0 -288
  110. package/docs/functions/TopviewFloorplanPlugin.html +0 -290
  111. package/docs/functions/Util.absoluteUrl.html +0 -326
  112. package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
  113. package/docs/functions/Util.equal.html +0 -338
  114. package/docs/functions/Util.getCoordsFromClient.html +0 -328
  115. package/docs/functions/Util.getCoordsFromElement.html +0 -328
  116. package/docs/functions/Util.getFrameTime.html +0 -320
  117. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
  118. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
  119. package/docs/functions/Util.isAbsoluteURL.html +0 -321
  120. package/docs/functions/Util.isModelLike.html +0 -321
  121. package/docs/functions/Util.isNil.html +0 -329
  122. package/docs/functions/Util.isPanoramaLike.html +0 -321
  123. package/docs/functions/Util.nextFrame.html +0 -334
  124. package/docs/functions/Util.notNil.html +0 -329
  125. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
  126. package/docs/functions/Util.tweenProgress.html +0 -323
  127. package/docs/functions/Util.uuid.html +0 -319
  128. package/docs/functions/pluginFlag.html +0 -288
  129. package/docs/index.html +0 -354
  130. package/docs/interfaces/AddTagConfig.html +0 -303
  131. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
  132. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
  133. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
  134. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
  135. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
  136. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
  137. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
  138. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
  139. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
  140. package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
  141. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
  142. package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
  143. package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
  144. package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
  145. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
  146. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
  147. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
  148. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
  149. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
  150. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
  151. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
  152. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
  153. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
  154. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
  155. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
  156. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
  157. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
  158. package/docs/interfaces/EventMap.html +0 -542
  159. package/docs/interfaces/FloorplanBounding.html +0 -332
  160. package/docs/interfaces/FloorplanData.html +0 -335
  161. package/docs/interfaces/FloorplanEntrance.html +0 -360
  162. package/docs/interfaces/FloorplanExtraObject.html +0 -350
  163. package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
  164. package/docs/interfaces/FloorplanFloorData.html +0 -328
  165. package/docs/interfaces/FloorplanImagePosition.html +0 -314
  166. package/docs/interfaces/FloorplanObserver.html +0 -332
  167. package/docs/interfaces/FloorplanOutlineItem.html +0 -328
  168. package/docs/interfaces/FloorplanPosition.html +0 -314
  169. package/docs/interfaces/FloorplanRoomItem.html +0 -379
  170. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
  171. package/docs/interfaces/FloorplanServerBounding.html +0 -332
  172. package/docs/interfaces/FloorplanServerComputedData.html +0 -331
  173. package/docs/interfaces/FloorplanServerData.html +0 -314
  174. package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
  175. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
  176. package/docs/interfaces/FloorplanServerEntrance.html +0 -360
  177. package/docs/interfaces/FloorplanServerFloorData.html +0 -328
  178. package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
  179. package/docs/interfaces/FloorplanServerObserver.html +0 -332
  180. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
  181. package/docs/interfaces/FloorplanServerPosition.html +0 -314
  182. package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
  183. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
  184. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
  185. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
  186. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
  187. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
  188. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
  189. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
  190. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
  191. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
  192. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
  193. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
  194. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
  195. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
  196. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
  197. package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
  198. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
  199. package/docs/interfaces/HelperOffset.html +0 -332
  200. package/docs/interfaces/ImagePlaneGroup.html +0 -306
  201. package/docs/interfaces/ItemLabelPluginData.html +0 -303
  202. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
  203. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
  204. package/docs/interfaces/MinMax.html +0 -310
  205. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
  206. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
  207. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
  208. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
  209. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
  210. package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
  211. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
  212. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
  213. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
  214. package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
  215. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
  216. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
  217. package/docs/interfaces/ModelViewPluginExportType.html +0 -416
  218. package/docs/interfaces/Object3DHelperState.html +0 -317
  219. package/docs/interfaces/ObjectHelperControllers.html +0 -324
  220. package/docs/interfaces/PaintBrushAction.html +0 -363
  221. package/docs/interfaces/PaintBrushConfigs.html +0 -361
  222. package/docs/interfaces/PaintBrushState.html +0 -345
  223. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
  224. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
  225. package/docs/interfaces/PanoMeasureParameterType.html +0 -449
  226. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
  227. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
  228. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
  229. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
  230. package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
  231. package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
  232. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
  233. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
  234. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
  235. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
  236. package/docs/interfaces/PanoRulerProPluginState.html +0 -317
  237. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
  238. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
  239. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
  240. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
  241. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
  242. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
  243. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
  244. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
  245. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
  246. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
  247. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
  248. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
  249. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
  250. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
  251. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
  252. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
  253. package/docs/interfaces/Point.html +0 -317
  254. package/docs/interfaces/Room.html +0 -324
  255. package/docs/interfaces/RoomInfo.html +0 -310
  256. package/docs/interfaces/RoomLabel.html +0 -386
  257. package/docs/interfaces/RoomRules.html +0 -285
  258. package/docs/interfaces/Rooms.html +0 -285
  259. package/docs/interfaces/Scissor.html +0 -344
  260. package/docs/interfaces/State.html +0 -331
  261. package/docs/interfaces/TagCacheInterface.html +0 -362
  262. package/docs/interfaces/TagConfig.html +0 -565
  263. package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
  264. package/docs/interfaces/TagIconUrl.html +0 -363
  265. package/docs/interfaces/TagObjectGroup.html +0 -306
  266. package/docs/interfaces/TagStyle.html +0 -316
  267. package/docs/interfaces/Tags.html +0 -2688
  268. package/docs/interfaces/TemporaryState.html +0 -303
  269. package/docs/interfaces/Util.MagnifierParameter.html +0 -391
  270. package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
  271. package/docs/interfaces/Util.PointIntersection.html +0 -365
  272. package/docs/modules/AreaMakerPluginType.html +0 -323
  273. package/docs/modules/CruisePluginTypes.html +0 -328
  274. package/docs/modules/CurrentPanoImagePluginType.html +0 -297
  275. package/docs/modules/GuideLineItem.html +0 -289
  276. package/docs/modules/GuideLineModeItem.html +0 -294
  277. package/docs/modules/GuideLinePluginType.html +0 -348
  278. package/docs/modules/PanoVideoPluginType.html +0 -301
  279. package/docs/modules/Util.html +0 -351
  280. package/docs/modules.html +0 -540
  281. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
  282. package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
  283. package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
  284. package/docs/types/ArrayPosition.html +0 -279
  285. package/docs/types/AudioAppearance.html +0 -279
  286. package/docs/types/AudioTagTypeConfigKey.html +0 -279
  287. package/docs/types/CSS3DRenderExportType.html +0 -279
  288. package/docs/types/CSS3DRenderPluginExportType.html +0 -279
  289. package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
  290. package/docs/types/ClassFunctionParameters.html +0 -286
  291. package/docs/types/Color.html +0 -279
  292. package/docs/types/ContentTypeConfigKey.html +0 -279
  293. package/docs/types/ContentTypeConfigKeySplit.html +0 -279
  294. package/docs/types/ContentTypeMap.html +0 -279
  295. package/docs/types/Create3DDomContainerReturnType.html +0 -279
  296. package/docs/types/Create3DElementReturnType.html +0 -279
  297. package/docs/types/CruisePluginExportType.html +0 -279
  298. package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
  299. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
  300. package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
  301. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
  302. package/docs/types/DeprecatedTagProperty.html +0 -294
  303. package/docs/types/Direction-1.html +0 -279
  304. package/docs/types/Direction4.html +0 -279
  305. package/docs/types/ElementRenderer.html +0 -303
  306. package/docs/types/FloorplanRuleLabels.html +0 -282
  307. package/docs/types/FloorplanServerRuleLabels.html +0 -279
  308. package/docs/types/GuideLinePluginExportType.html +0 -279
  309. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
  310. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
  311. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
  312. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
  313. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
  314. package/docs/types/GuideLinePluginType.PathItem.html +0 -308
  315. package/docs/types/GuideLinePluginType.PluginData.html +0 -317
  316. package/docs/types/HelperEventMap.html +0 -517
  317. package/docs/types/LoadTagConfig.html +0 -279
  318. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
  319. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
  320. package/docs/types/MediaData.html +0 -295
  321. package/docs/types/MediaStore.html +0 -284
  322. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
  323. package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
  324. package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
  325. package/docs/types/ModelId.html +0 -279
  326. package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
  327. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
  328. package/docs/types/MoveArgs.html +0 -289
  329. package/docs/types/MoveOpts.html +0 -287
  330. package/docs/types/Object3DHelperEventMap.html +0 -372
  331. package/docs/types/ObjectFit.html +0 -279
  332. package/docs/types/PaintBrushEventMap.html +0 -310
  333. package/docs/types/PanoCompassPluginData.html +0 -279
  334. package/docs/types/PanoCompassPluginExportType.html +0 -279
  335. package/docs/types/PanoCompassPluginParameterType.html +0 -279
  336. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
  337. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
  338. package/docs/types/PanoIndex.html +0 -279
  339. package/docs/types/PanoMeasurePluginEvent.html +0 -279
  340. package/docs/types/PanoMeasureReturnType.html +0 -279
  341. package/docs/types/PanoSpatialTagPluginId.html +0 -279
  342. package/docs/types/PanoTagPluginExportInterface.html +0 -279
  343. package/docs/types/PanoTagPluginParamsInterface.html +0 -279
  344. package/docs/types/PanoVideoPluginParameterType.html +0 -279
  345. package/docs/types/PanoVideoPluginReturnType.html +0 -279
  346. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
  347. package/docs/types/PipelinePluginParameterType.html +0 -279
  348. package/docs/types/PipelinePluginReturnType.html +0 -279
  349. package/docs/types/PlaneTag.html +0 -287
  350. package/docs/types/Point2DTag.html +0 -287
  351. package/docs/types/Point3DTag.html +0 -287
  352. package/docs/types/PointTag.html +0 -284
  353. package/docs/types/PointTagInstance.html +0 -284
  354. package/docs/types/Position.html +0 -279
  355. package/docs/types/RotateArgs.html +0 -291
  356. package/docs/types/RotateOpts.html +0 -287
  357. package/docs/types/RuleLabelsKey.html +0 -279
  358. package/docs/types/RuleLabelsValue.html +0 -279
  359. package/docs/types/StickType.html +0 -279
  360. package/docs/types/Tag.html +0 -345
  361. package/docs/types/Tag2D.html +0 -287
  362. package/docs/types/Tag3D.html +0 -287
  363. package/docs/types/TagConfigByKey.html +0 -284
  364. package/docs/types/TagContentType.html +0 -279
  365. package/docs/types/TagDimensionType.html +0 -281
  366. package/docs/types/TagElement.html +0 -289
  367. package/docs/types/TagEvents.html +0 -332
  368. package/docs/types/TagGLTFObject.html +0 -302
  369. package/docs/types/TagHooks.html +0 -279
  370. package/docs/types/TagId.html +0 -279
  371. package/docs/types/TagInstance.html +0 -353
  372. package/docs/types/TagPointType.html +0 -282
  373. package/docs/types/TagRendererMap.html +0 -284
  374. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
  375. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
  376. package/docs/types/WorkCode.html +0 -279
  377. package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
  378. package/docs/variables/PLUGIN.html +0 -279
  379. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
  380. package/docs/variables/ROOM_TYPE_MAP.html +0 -289
  381. package/docs/variables/defaultGlobalConfig.html +0 -279
  382. package/docs/variables/itemLabelPluginServerParams.html +0 -286
  383. package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
  384. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
  385. package/libs/shared-utils/five/adapt.d.ts +0 -9
  386. package/libs/shared-utils/five/adapt.js +0 -16
@@ -1,89 +1,119 @@
1
- var O = Object.defineProperty, g = Object.defineProperties;
2
- var H = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
4
- var L = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
5
- var f = (i, e, t) => e in i ? O(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, p = (i, e) => {
1
+ var g = Object.defineProperty;
2
+ var _ = Object.getOwnPropertySymbols;
3
+ var y = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
4
+ var E = (u, e, t) => e in u ? g(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
- L.call(e, t) && f(i, t, e[t]);
8
- if (m)
9
- for (var t of m(e))
10
- $.call(e, t) && f(i, t, e[t]);
11
- return i;
12
- }, _ = (i, e) => g(i, H(e));
13
- var u = (i, e, t) => (f(i, typeof e != "symbol" ? e + "" : e, t), t);
14
- import { getObjectVisible as x } from "../three/getObjectVisible.js";
15
- class G {
6
+ y.call(e, t) && E(u, t, e[t]);
7
+ if (_)
8
+ for (var t of _(e))
9
+ H.call(e, t) && E(u, t, e[t]);
10
+ return u;
11
+ };
12
+ var v = (u, e, t) => (E(u, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import * as L from "three";
14
+ import { getObjectVisible as $ } from "../three/getObjectVisible.js";
15
+ import { calculateThreeMouse as x } from "./calculateThreeMouse.js";
16
+ class D {
16
17
  constructor(e) {
17
- u(this, "five");
18
- u(this, "boundObject", {});
19
- u(this, "handleWantsTapGesture", (e) => {
20
- var d;
21
- const t = "click", n = this.boundObject[t];
22
- if (!n || (n == null ? void 0 : n.length) === 0)
18
+ v(this, "five");
19
+ v(this, "boundObject", {});
20
+ v(this, "handleWantsGesture", (e, t) => {
21
+ if (t.length !== 1)
23
22
  return;
24
- const o = this.five.model.intersectRaycaster(e), s = e.intersectObjects(n, !0);
25
- if (o.length > 0 && s.length > 0 && o[0].distance < s[0].distance)
23
+ const n = t[0];
24
+ if (n) {
25
+ if (e === "mouseMove")
26
+ return this.onDomEvent("hover", n);
27
+ if (e === "tap")
28
+ return this.onDomEvent("click", n);
29
+ }
30
+ });
31
+ v(this, "onDomEvent", (e, t) => {
32
+ var f, i;
33
+ const n = this.boundObject[e];
34
+ if (!n || (n == null ? void 0 : n.length) === 0 || !t)
26
35
  return;
27
- const r = (d = s[0]) == null ? void 0 : d.object;
28
- if (!r || !this.objectIsBound(r))
36
+ const s = (f = t.raycaster) != null ? f : this.getRaycaster(t), r = (() => {
37
+ var h;
38
+ const d = s.intersectObjects(n, !0);
39
+ if (d.length === 0)
40
+ return;
41
+ const o = this.five.model.intersectRaycaster(s);
42
+ if (!(o.length > 0 && d.length > 0 && o[0].distance < d[0].distance))
43
+ return (h = d[0]) == null ? void 0 : h.object;
44
+ })();
45
+ if (!r || !this.objectIsBound(r)) {
46
+ for (const d of (i = this.boundObject.hover) != null ? i : [])
47
+ d._hovered && this.notify("unHover", d);
29
48
  return;
30
- if (this.notify(t, r))
49
+ }
50
+ if (this.notify(e, r))
31
51
  return !1;
32
52
  });
33
- u(this, "objectIsBound", (e) => {
53
+ v(this, "objectIsBound", (e) => {
34
54
  let t = e._domEvent, n = e.parent;
35
55
  for (; typeof t == "undefined" && n; )
36
56
  t = n._domEvent, n = n.parent;
37
57
  return !!t;
38
58
  });
39
59
  // eslint-disable-next-line max-params
40
- u(this, "notify", (e, t, n, o) => {
41
- let s = !1, r = [];
42
- const l = [t];
43
- let d = t;
44
- for (; d.parent; )
45
- d = d.parent, l.push(d);
46
- for (const a of l) {
47
- if (s)
60
+ v(this, "notify", (e, t, n, s) => {
61
+ var d;
62
+ let r = !1, a = [];
63
+ const f = [];
64
+ let i = t;
65
+ for (f.push(i); i.parent; )
66
+ i = i.parent, f.push(i);
67
+ for (const o of f) {
68
+ if (r)
48
69
  break;
49
- const h = a._domEvent;
70
+ const h = o._domEvent;
50
71
  if (!h)
51
72
  continue;
52
- const E = h[`${e}Handler`];
53
- if (E)
54
- for (const [b, v] of E) {
55
- if (v != null && v.checkVisible && !x(a))
73
+ const p = h[`${e}Handler`];
74
+ if (p)
75
+ for (const [O, l] of p) {
76
+ if (l != null && l.checkVisible && !$(o))
56
77
  continue;
57
- const c = b({
78
+ if (e === "hover") {
79
+ if (o._hovered)
80
+ continue;
81
+ o._hovered = !0;
82
+ for (const c of (d = this.boundObject.hover) != null ? d : [])
83
+ c !== o && c._hovered && this.notify("unHover", c);
84
+ }
85
+ if (e === "unHover") {
86
+ if (!o._hovered)
87
+ continue;
88
+ o._hovered = !1;
89
+ }
90
+ const m = O({
58
91
  type: e,
59
- target: a,
92
+ target: o,
60
93
  origDomEvent: n,
61
- intersect: o,
94
+ intersect: s,
62
95
  stopPropagation: () => {
63
- s = !0;
96
+ r = !0;
64
97
  }
65
98
  });
66
- r.push(c != null ? c : !0);
99
+ a.push(m != null ? m : !0);
67
100
  }
68
101
  }
69
- return r.some((a) => a === !0);
102
+ if (e === "click")
103
+ return a.some((o) => o === !0);
70
104
  });
71
- this.five = e, e.on("wantsTapGesture", this.handleWantsTapGesture);
105
+ this.five = e, e.on("wantsGesture", this.handleWantsGesture);
72
106
  }
73
107
  /**
74
108
  * @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
75
109
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
76
110
  * @todo: added 和 removed 还是不太智能
77
111
  */
78
- addAutoBindEventListener(...e) {
79
- const t = e[0];
80
- t.addEventListener("added", () => {
81
- this.addEventListener(...e);
82
- }), t.addEventListener("removed", () => {
83
- this.removeEventListener(...e);
84
- }), t.addEventListener("dispose", () => {
85
- this.removeEventListener(...e);
86
- });
112
+ addAutoBindEventListener(e, t, n, s) {
113
+ const r = () => this.addEventListener(e, t, n, s), a = () => this.removeEventListener(e, t, n, s);
114
+ return e.addEventListener("added", r), e.addEventListener("removed", a), e.addEventListener("dispose", a), () => {
115
+ e.removeEventListener("added", r), e.removeEventListener("removed", a), e.removeEventListener("dispose", a);
116
+ };
87
117
  }
88
118
  /**
89
119
  * @description: add event listener
@@ -92,24 +122,32 @@ class G {
92
122
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
93
123
  * @return {void}
94
124
  */
95
- addEventListener(e, t, n, o) {
96
- var s;
97
- e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, _(p({}, o), { checkVisible: !0 })]), (s = this.boundObject[t]) == null || s.push(e);
125
+ addEventListener(e, t, n, s) {
126
+ var r;
127
+ 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 }, s)]), (r = this.boundObject[t]) == null || r.push(e);
98
128
  }
99
- removeEventListener(e, t, n, ...o) {
100
- var r, l;
129
+ removeEventListener(e, t, n, ...s) {
130
+ var a, f;
101
131
  if (!e._domEvent || !e._domEvent[`${t}Handler`])
102
132
  return;
103
- const s = e._domEvent[`${t}Handler`].findIndex((d) => d[0] === n);
104
- if (s !== -1 && (e._domEvent[`${t}Handler`].splice(s, 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)) {
105
- const d = (r = this.boundObject[t]) == null ? void 0 : r.findIndex((a) => a === e);
106
- d !== -1 && ((l = this.boundObject[t]) == null || l.splice(d, 1));
133
+ const r = e._domEvent[`${t}Handler`].findIndex((i) => i[0] === n);
134
+ if (r !== -1 && (e._domEvent[`${t}Handler`].splice(r, 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)) {
135
+ const i = (a = this.boundObject[t]) == null ? void 0 : a.findIndex((d) => d === e);
136
+ i !== -1 && ((f = this.boundObject[t]) == null || f.splice(i, 1));
107
137
  }
108
138
  }
109
139
  dispose() {
110
- this.five.off("wantsTapGesture", this.handleWantsTapGesture), this.boundObject = {};
140
+ var e;
141
+ (e = this.five) == null || e.off("wantsGesture", this.handleWantsGesture), this.boundObject = {};
142
+ }
143
+ getRaycaster(e) {
144
+ const t = this.five.getElement();
145
+ if (!t)
146
+ return;
147
+ const n = x(e, t), s = new L.Raycaster();
148
+ return s.setFromCamera(n, this.five.camera), s;
111
149
  }
112
150
  }
113
151
  export {
114
- G as FiveDomEvents
152
+ D as FiveDomEvents
115
153
  };
@@ -0,0 +1,11 @@
1
+ import * as THREE from 'three';
2
+ /**
3
+ * 计算 three 中的 mouse 的值
4
+ * @param mouseXY - 鼠标相对屏幕位置
5
+ * @param element - canvas元素(three的展示元素)
6
+ */
7
+ declare function calculateThreeMouse(mouseXY: {
8
+ x: number;
9
+ y: number;
10
+ }, element: HTMLElement): THREE.Vector2;
11
+ export { calculateThreeMouse };
@@ -0,0 +1,8 @@
1
+ import * as i from "three";
2
+ function h(t, e) {
3
+ const { top: n, left: o, width: r, height: c } = e.getBoundingClientRect();
4
+ return new i.Vector2((t.x - o) / r * 2 - 1, -(t.y - n) / c * 2 + 1);
5
+ }
6
+ export {
7
+ h as calculateThreeMouse
8
+ };
@@ -14,17 +14,17 @@ var f = (t, c, n) => new Promise((e, r) => {
14
14
  }, u = (o) => o.done ? e(o.value) : Promise.resolve(o.value).then(a, i);
15
15
  u((n = n.apply(t, c)).next());
16
16
  });
17
- import { nearlyEqual as d } from "../nearlyEqual.js";
18
- import { to as l } from "../to.js";
19
- function h(t) {
17
+ import { nearlyEqualRad as d, nearlyEqual as m } from "../nearlyEqual.js";
18
+ import { to as h } from "../to.js";
19
+ function w(t) {
20
20
  return Object.prototype.toString.call(t) === "[object Object]";
21
21
  }
22
- function m(t) {
23
- return h(t) && !!t.isVector3;
22
+ function l(t) {
23
+ return w(t) && !!t.isVector3;
24
24
  }
25
- function g(t, c) {
25
+ function j(t, c) {
26
26
  return f(this, null, function* () {
27
- const [n] = yield l(t.changeMode(...c));
27
+ const [n] = yield h(t.changeMode(...c));
28
28
  if (n)
29
29
  throw new Error("change mode canceled");
30
30
  yield new Promise((i) => {
@@ -36,16 +36,16 @@ function g(t, c) {
36
36
  if (!e)
37
37
  return !0;
38
38
  const r = t.getCurrentState();
39
- if (!w(e, r))
39
+ if (!b(e, r))
40
40
  throw new Error("pose 与预期不符");
41
41
  });
42
42
  }
43
- function w(t, c) {
43
+ function b(t, c) {
44
44
  return Object.keys(t).every((n) => {
45
45
  const e = c[n], r = t[n];
46
- return e === void 0 || r === void 0 ? !0 : typeof e == "number" && typeof r == "number" ? d(e, r, 2) : m(r) && m(e) ? r.distanceTo(e) < 0.01 : e === r;
46
+ return e === void 0 || r === void 0 ? !0 : n === "longitude" || n === "latitude" ? d(e, r, 2) : typeof e == "number" && typeof r == "number" ? m(e, r, 2) : l(r) && l(e) ? r.distanceTo(e) < 0.01 : e === r;
47
47
  });
48
48
  }
49
49
  export {
50
- g as changeMode
50
+ j as changeMode
51
51
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.0.0-dev.2",
3
+ "%c %c@realsee/dnalogel %cv3.0.0",
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",
@@ -5,3 +5,10 @@
5
5
  * @param accuracy 精度:精确到小数点后几位,默认精确到 小数点后四位
6
6
  */
7
7
  export default function nearlyEqual(num1: number, num2: number, accuracy?: number): boolean;
8
+ /**
9
+ * 比较两个弧度近似相等
10
+ * @param rad1 弧度1
11
+ * @param rad2 弧度2
12
+ * @param accuracy 精度:精确到小数点后几位,默认精确到 小数点后四位
13
+ */
14
+ export declare function nearlyEqualRad(rad1: number, rad2: number, accuracy?: number): boolean;
@@ -1,6 +1,12 @@
1
- function a(t, r, o = 4) {
2
- return Math.floor(t * Math.pow(10, o)) === Math.floor(r * Math.pow(10, o));
1
+ function r(t, a, n = 4) {
2
+ return Math.abs(t - a) < Math.pow(10, -n);
3
3
  }
4
+ function h(t, a, n = 4) {
5
+ const o = Math.PI * 2, s = t % o, e = a % o, i = Math.min(s, e), c = Math.max(s, e);
6
+ return r(i, c, n) || r(i + o, c, n);
7
+ }
8
+ Object.assign(window, { nearlyEqual: r, nearlyEqualRad: h });
4
9
  export {
5
- a as nearlyEqual
10
+ r as nearlyEqual,
11
+ h as nearlyEqualRad
6
12
  };
@@ -1,27 +1,27 @@
1
- var u = Object.defineProperty, v = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
1
+ var P = Object.defineProperty, S = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
3
  var m = Object.getOwnPropertySymbols;
4
- var S = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var p = (s, e, t) => e in s ? u(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, a = (s, e) => {
4
+ var H = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var d = (s, e, t) => e in s ? P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
6
6
  for (var t in e || (e = {}))
7
- S.call(e, t) && p(s, t, e[t]);
7
+ H.call(e, t) && d(s, t, e[t]);
8
8
  if (m)
9
9
  for (var t of m(e))
10
- w.call(e, t) && p(s, t, e[t]);
10
+ b.call(e, t) && d(s, t, e[t]);
11
11
  return s;
12
- }, c = (s, e) => v(s, P(e));
13
- var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
14
- import { Subscribe as H } from "@realsee/five";
15
- import { PointSelectorHelper as b } from "./PointSelectorHelper.js";
16
- import { isTouchDevice as y } from "../isTouchDevice.js";
17
- import F from "hammerjs";
18
- import { getIntersectionFromEvent as d } from "../getIntersectionFromEvent.js";
19
- import { Vector3 as U, Object3D as E, Face3 as M, Vector2 as I, Raycaster as O } from "three";
20
- import { getIntersectFromRelativePosition as V } from "./getIntersect.js";
12
+ }, c = (s, e) => S(s, w(e));
13
+ var i = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import { Subscribe as y } from "@realsee/five";
15
+ import { PointSelectorHelper as F } from "./PointSelectorHelper.js";
16
+ import { isTouchDevice as E } from "../isTouchDevice.js";
17
+ import U from "hammerjs";
18
+ import { getIntersectionFromEvent as f } from "../getIntersectionFromEvent.js";
19
+ import { Vector3 as M, Object3D as I, Face3 as O, Vector2 as V, Raycaster as C } from "three";
20
+ import { getIntersectFromRelativePosition as k } from "./getIntersect.js";
21
21
  const l = () => !1;
22
- class W {
22
+ class N {
23
23
  constructor(e, t) {
24
- i(this, "hook", new H());
24
+ i(this, "hook", new y());
25
25
  /**
26
26
  * @description: 不在 five canvas 上时为 true
27
27
  */
@@ -60,7 +60,7 @@ class W {
60
60
  this.pointSelectorHelper.hide(), this.outOfFive = !0, this.hook.emit("intersectionUpdate", null);
61
61
  });
62
62
  i(this, "onTap", (e) => {
63
- const [t] = d(this.five, e);
63
+ const [t] = f(this.five, e);
64
64
  t != null && t.face && this.select(t);
65
65
  });
66
66
  /**
@@ -70,14 +70,14 @@ class W {
70
70
  i(this, "onPan", (e) => {
71
71
  if (!this.pressDown)
72
72
  return;
73
- const [t] = d(this.five, e);
73
+ const [t] = f(this.five, e);
74
74
  t != null && t.face && this.intersectionOnModelUpdate(t);
75
75
  });
76
76
  /**
77
77
  * @description: 长按屏幕后,更新长按点的位置
78
78
  */
79
79
  i(this, "onPress", (e) => {
80
- const [t] = d(this.five, e);
80
+ const [t] = f(this.five, e);
81
81
  t != null && t.face && (this.pressDown = !0, this.intersectionOnModelUpdate(t));
82
82
  });
83
83
  /**
@@ -93,17 +93,17 @@ class W {
93
93
  const t = this.five.getElement();
94
94
  if (!t)
95
95
  return;
96
- const { clientX: o, clientY: r } = e, n = {
97
- x: o / t.clientWidth,
98
- y: 1 - r / t.clientHeight
96
+ const { top: o, left: r, width: n, height: a } = t.getBoundingClientRect(), { clientX: p, clientY: u } = e, v = {
97
+ x: (p - r) / n,
98
+ y: 1 - (u - o) / a
99
99
  };
100
- this.updateByNdcPosition(n);
100
+ this.updateByNdcPosition(v);
101
101
  });
102
102
  /**
103
103
  * @description: 根据鼠标位置更新helper位置
104
104
  */
105
105
  i(this, "updateByNdcPosition", (e) => {
106
- const t = V(this.five, e), o = (() => t ? c(a({}, t), { isVirtual: !1 }) : c(a({}, C(this.five, e)), { isVirtual: !0 }))();
106
+ const t = k(this.five, e), o = (() => t ? c(h({}, t), { isVirtual: !1 }) : c(h({}, G(this.five, e)), { isVirtual: !0 }))();
107
107
  this.updatePointSelectorHelperIntersect(o);
108
108
  });
109
109
  /**
@@ -111,7 +111,7 @@ class W {
111
111
  */
112
112
  i(this, "updatePointSelectorHelperIntersect", (e) => {
113
113
  var r;
114
- const t = a({}, e);
114
+ const t = h({}, e);
115
115
  let o = !1;
116
116
  if (((r = this.adherePoints) == null ? void 0 : r.length) > 0 && typeof this.adherePointsRadius == "number") {
117
117
  for (const n of this.adherePoints)
@@ -132,16 +132,16 @@ class W {
132
132
  i(this, "emitIntersectionUpdate", (e) => {
133
133
  this.hook.emit("intersectionUpdate", e);
134
134
  });
135
- var n, h;
135
+ var n, a;
136
136
  this.five = e;
137
137
  const o = (n = t == null ? void 0 : t.mode) != null ? n : "auto";
138
- o === "auto" ? this.mode = y ? "fixed" : "cursor" : this.mode = o;
138
+ o === "auto" ? this.mode = E ? "fixed" : "cursor" : this.mode = o;
139
139
  const r = {
140
140
  autoFixPCPosition: this.mode === "cursor",
141
141
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
142
142
  };
143
- this.pointSelectorHelper = new b(e, c(a({}, t == null ? void 0 : t.pointSelectorHelperParams), {
144
- magnifierParams: a(a({}, r), (h = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : h.magnifierParams)
143
+ this.pointSelectorHelper = new F(e, c(h({}, t == null ? void 0 : t.pointSelectorHelperParams), {
144
+ magnifierParams: h(h({}, r), (a = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : a.magnifierParams)
145
145
  })), this.pointSelectorHelper.hide();
146
146
  }
147
147
  get position() {
@@ -154,7 +154,7 @@ class W {
154
154
  const e = this.five.getElement();
155
155
  if (!e)
156
156
  throw new Error("five element not found");
157
- this.hammer || (this.hammer = new F(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsChangeMode", l), this.five.on("wantsTapGesture", l), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1;
157
+ this.hammer || (this.hammer = new U(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsChangeMode", l), this.five.on("wantsTapGesture", l), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1;
158
158
  }
159
159
  disable() {
160
160
  if (!this.enabled)
@@ -170,19 +170,19 @@ class W {
170
170
  e ? this.adherePoints = Array.isArray(e) ? e : [e] : this.adherePoints = null, typeof t == "number" && (this.adherePointsRadius = t);
171
171
  }
172
172
  }
173
- function k(s, e) {
174
- const { x: t, y: o } = e, r = t * 2 - 1, n = o * 2 - 1, h = new I().fromArray([r, n]), f = new O();
175
- return f.setFromCamera(h, s.camera), f;
173
+ function x(s, e) {
174
+ const { x: t, y: o } = e, r = t * 2 - 1, n = o * 2 - 1, a = new V().fromArray([r, n]), p = new C();
175
+ return p.setFromCamera(a, s.camera), p;
176
176
  }
177
- function C(s, e) {
178
- const t = k(s, e), o = 3, r = new U().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(o)), n = t.ray.direction.clone().negate();
177
+ function G(s, e) {
178
+ const t = x(s, e), o = 3, r = new M().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(o)), n = t.ray.direction.clone().negate();
179
179
  return {
180
180
  distance: o,
181
181
  point: r,
182
- object: new E(),
183
- face: new M(0, 0, 0, n)
182
+ object: new I(),
183
+ face: new O(0, 0, 0, n)
184
184
  };
185
185
  }
186
186
  export {
187
- W as PointSelector
187
+ N as PointSelector
188
188
  };
@@ -3,10 +3,11 @@ import { Subscribe } from '@realsee/five';
3
3
  import { Magnifier, PointHelper, PointDomHelper } from '.';
4
4
  import type { Intersection } from '../../typings/typings';
5
5
  interface Options {
6
- magnifier: Magnifier | null;
7
- magnifierParams: ConstructorParameters<typeof Magnifier>[1];
8
- pointHelper: PointHelper | null;
9
- pointDomHelper: PointDomHelper | null;
6
+ magnifier?: Magnifier | null;
7
+ magnifierParams?: ConstructorParameters<typeof Magnifier>[1];
8
+ pointHelper?: PointHelper | null;
9
+ pointDomHelper?: PointDomHelper | null;
10
+ container?: Element;
10
11
  }
11
12
  type EventMap = {
12
13
  intersectionUpdate: (intersection: PointIntersection) => void;
@@ -27,7 +28,7 @@ export declare class PointSelectorHelper {
27
28
  private pointDomHelper;
28
29
  private state;
29
30
  private group;
30
- constructor(five: Five, options?: Partial<Options>);
31
+ constructor(five: Five, options?: Options);
31
32
  show: () => void;
32
33
  hide: () => void;
33
34
  enable(): void;
@@ -3,8 +3,8 @@ var l = (r, i, e) => i in r ? a(r, i, { enumerable: !0, configurable: !0, writab
3
3
  var t = (r, i, e) => (l(r, typeof i != "symbol" ? i + "" : i, e), e);
4
4
  import * as h from "three";
5
5
  import { Subscribe as p } from "@realsee/five";
6
- import { Magnifier as o } from "./Magnifier.js";
7
- import { PointHelper as d } from "./PointHelper.js";
6
+ import { Magnifier as d } from "./Magnifier.js";
7
+ import { PointHelper as o } from "./PointHelper.js";
8
8
  import { PointDomHelper as f } from "./PointDomHelper.js";
9
9
  class v {
10
10
  constructor(i, e) {
@@ -30,8 +30,8 @@ class v {
30
30
  });
31
31
  t(this, "abortUpdateMagnifier", () => {
32
32
  });
33
- var s;
34
- this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new o(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new d(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new f(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo(document.body);
33
+ var s, n;
34
+ this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new d(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new o(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new f(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo((n = e.container) != null ? n : document.body);
35
35
  }
36
36
  enable() {
37
37
  var i, e;
@@ -1,9 +1,9 @@
1
- import { Vector3 as s } from "three";
2
- function p(o, r = 1) {
1
+ import { Vector3 as u } from "three";
2
+ function p(o, r) {
3
3
  if (o.length < 3)
4
- return console.error("points.length < 3"), new s(0, 0, 0);
5
- const [t, n, e] = o, l = t.clone().sub(n), c = e.clone().sub(n);
6
- return l.cross(c).normalize().multiplyScalar(r);
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
7
  }
8
8
  export {
9
9
  p as getNormal
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-dev.2",
10
+ "version": "3.0.0",
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*",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/core": "^7.22.9",
39
- "@realsee/five": "6.0.0-alpha.8",
39
+ "@realsee/five": "6.0.0-alpha.24",
40
40
  "@sveltejs/vite-plugin-svelte": "^2.4.2",
41
41
  "@tsconfig/svelte": "^4.0.1",
42
42
  "@tweenjs/tween.js": "^20.0.3",
@@ -1,9 +0,0 @@
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;
package/docs/.nojekyll DELETED
@@ -1 +0,0 @@
1
- TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.