@realsee/dnalogel 2.6.7-dev.1 → 2.6.7-dev.10

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 (319) hide show
  1. package/README.md +0 -20
  2. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +4 -3
  3. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  4. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  5. package/dist/index.cjs.js +55 -52
  6. package/dist/index.js +6717 -5996
  7. package/dist/index.umd.js +45 -42
  8. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
  9. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/CSS3DRender.html +31 -31
  12. package/docs/classes/CruisePluginController.html +24 -24
  13. package/docs/classes/Magnifier.html +20 -20
  14. package/docs/classes/ModelRoomLabelController.html +11 -11
  15. package/docs/classes/Object3DHelperController.html +24 -24
  16. package/docs/classes/PaintBrush.html +15 -15
  17. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  18. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  19. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  20. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  21. package/docs/classes/PanoTagPluginController.html +197 -51
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.FivePointSelector.html +12 -12
  24. package/docs/classes/Util.Interval.html +12 -12
  25. package/docs/classes/Util.Magnifier.html +17 -17
  26. package/docs/classes/Util.PointDomHelper.html +11 -11
  27. package/docs/classes/Util.PointHelper.html +11 -11
  28. package/docs/classes/Util.Rectangle.html +13 -13
  29. package/docs/enums/CameraMovementEffect.html +7 -7
  30. package/docs/enums/ContentType.html +18 -18
  31. package/docs/enums/DIRECTION.html +9 -9
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  33. package/docs/enums/DimensionType.html +7 -7
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  36. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  37. package/docs/enums/PointType.html +7 -7
  38. package/docs/enums/Rotation.html +8 -8
  39. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  40. package/docs/functions/CameraMovementPlugin.html +5 -5
  41. package/docs/functions/CruisePlugin.html +5 -5
  42. package/docs/functions/GuideLinePlugin.html +5 -5
  43. package/docs/functions/ItemLabelPlugin.html +5 -5
  44. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  45. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  47. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  48. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  49. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  50. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  51. package/docs/functions/ModelViewPlugin.html +5 -5
  52. package/docs/functions/Object3DHelperPlugin.html +5 -5
  53. package/docs/functions/PanoCompassPlugin.html +5 -5
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  55. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  57. package/docs/functions/PanoMeasurePlugin.html +5 -5
  58. package/docs/functions/PanoRulerPlugin.html +5 -5
  59. package/docs/functions/PanoRulerProPlugin.html +5 -5
  60. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  61. package/docs/functions/PanoTagPlugin.html +5 -5
  62. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  63. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  64. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  65. package/docs/functions/Util.getFrameTime.html +5 -5
  66. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  67. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  68. package/docs/functions/Util.isNil.html +5 -5
  69. package/docs/functions/Util.nextFrame.html +5 -5
  70. package/docs/functions/Util.notNil.html +5 -5
  71. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  72. package/docs/functions/Util.tweenProgress.html +5 -5
  73. package/docs/functions/pluginFlag.html +5 -5
  74. package/docs/index.html +4 -12
  75. package/docs/interfaces/AddTagConfig.html +6 -6
  76. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  77. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  78. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  79. package/docs/interfaces/EventMap.html +15 -15
  80. package/docs/interfaces/FloorplanBounding.html +8 -8
  81. package/docs/interfaces/FloorplanData.html +10 -10
  82. package/docs/interfaces/FloorplanEntrance.html +11 -11
  83. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  84. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  85. package/docs/interfaces/FloorplanFloorData.html +9 -9
  86. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  87. package/docs/interfaces/FloorplanObserver.html +9 -9
  88. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  89. package/docs/interfaces/FloorplanPosition.html +7 -7
  90. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  91. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  92. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  93. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  94. package/docs/interfaces/FloorplanServerData.html +7 -7
  95. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  96. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  97. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  98. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  99. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  100. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  101. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  102. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  103. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  104. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  105. package/docs/interfaces/HelperOffset.html +8 -8
  106. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  107. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  108. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  109. package/docs/interfaces/MinMax.html +7 -7
  110. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  111. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  112. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  113. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  114. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  115. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  116. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  117. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  118. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  119. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  120. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  121. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  122. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  123. package/docs/interfaces/Object3DHelperState.html +8 -8
  124. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  125. package/docs/interfaces/PaintBrushAction.html +12 -12
  126. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  127. package/docs/interfaces/PaintBrushState.html +10 -10
  128. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  129. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  130. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  131. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  132. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  133. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  134. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  135. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  136. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  137. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  138. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  139. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  140. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  141. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  142. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  143. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  144. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  145. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  146. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  147. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  148. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  149. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  150. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  151. package/docs/interfaces/Point.html +8 -8
  152. package/docs/interfaces/Room.html +9 -9
  153. package/docs/interfaces/RoomInfo.html +7 -7
  154. package/docs/interfaces/RoomLabel.html +14 -14
  155. package/docs/interfaces/RoomRules.html +5 -5
  156. package/docs/interfaces/Rooms.html +5 -5
  157. package/docs/interfaces/Scissor.html +9 -9
  158. package/docs/interfaces/State.html +8 -8
  159. package/docs/interfaces/TagCache.html +12 -12
  160. package/docs/interfaces/TagConfig.html +10 -10
  161. package/docs/interfaces/TagIconUrl.html +9 -9
  162. package/docs/interfaces/Tags.html +9 -9
  163. package/docs/interfaces/TemporaryState.html +6 -6
  164. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  165. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  166. package/docs/modules/Util.html +5 -5
  167. package/docs/modules.html +4 -4
  168. package/docs/types/ArrayPosition.html +5 -5
  169. package/docs/types/AudioAppearance.html +5 -5
  170. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  171. package/docs/types/CSS3DRenderExportType.html +5 -5
  172. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  173. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  174. package/docs/types/ClassFunctionParameters.html +5 -5
  175. package/docs/types/Color.html +5 -5
  176. package/docs/types/ContentTypeConfigKey.html +5 -5
  177. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  178. package/docs/types/ContentTypeMap.html +5 -5
  179. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  180. package/docs/types/Create3DElementReturnType.html +5 -5
  181. package/docs/types/CruisePluginExportType.html +5 -5
  182. package/docs/types/Direction-1.html +5 -5
  183. package/docs/types/Direction4.html +5 -5
  184. package/docs/types/FloorplanRuleLabels.html +5 -5
  185. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  186. package/docs/types/GuideLinePluginExportType.html +5 -5
  187. package/docs/types/HelperEventMap.html +5 -5
  188. package/docs/types/LoadTagConfig.html +5 -5
  189. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  190. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  191. package/docs/types/MediaData.html +5 -5
  192. package/docs/types/MediaStore.html +5 -5
  193. package/docs/types/ModelElement.html +5 -5
  194. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  195. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  196. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  197. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  198. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  199. package/docs/types/MoveArgs.html +5 -5
  200. package/docs/types/MoveOpts.html +5 -5
  201. package/docs/types/Object3DHelperEventMap.html +5 -5
  202. package/docs/types/ObjectFit.html +5 -5
  203. package/docs/types/PaintBrushEventMap.html +5 -5
  204. package/docs/types/PanoCompassPluginData.html +5 -5
  205. package/docs/types/PanoCompassPluginExportType.html +5 -5
  206. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  207. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  208. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  209. package/docs/types/PanoIndex.html +5 -5
  210. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  211. package/docs/types/PanoMeasureReturnType.html +5 -5
  212. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  213. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  214. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  215. package/docs/types/PlaneTag.html +5 -5
  216. package/docs/types/PlaneTagElement.html +5 -5
  217. package/docs/types/Point2DElement.html +5 -5
  218. package/docs/types/Point2DTag.html +5 -5
  219. package/docs/types/Point3DElement.html +5 -5
  220. package/docs/types/Point3DTag.html +5 -5
  221. package/docs/types/PointTag.html +5 -5
  222. package/docs/types/PointTagElement.html +5 -5
  223. package/docs/types/Position.html +5 -5
  224. package/docs/types/RotateArgs.html +5 -5
  225. package/docs/types/RotateOpts.html +5 -5
  226. package/docs/types/RuleLabelsKey.html +5 -5
  227. package/docs/types/RuleLabelsValue.html +5 -5
  228. package/docs/types/StickType.html +5 -5
  229. package/docs/types/Tag.html +5 -5
  230. package/docs/types/Tag2D.html +5 -5
  231. package/docs/types/Tag3D.html +5 -5
  232. package/docs/types/TagContentType.html +5 -5
  233. package/docs/types/TagDimensionType.html +5 -5
  234. package/docs/types/TagElement.html +5 -5
  235. package/docs/types/TagEvents.html +5 -5
  236. package/docs/types/TagGLTFObject.html +5 -5
  237. package/docs/types/TagHooks.html +5 -5
  238. package/docs/types/TagIconSize.html +5 -5
  239. package/docs/types/TagId.html +5 -5
  240. package/docs/types/TagPointType.html +5 -5
  241. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  242. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  243. package/docs/types/WorkCode.html +5 -5
  244. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  245. package/docs/variables/PLUGIN.html +5 -5
  246. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  247. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  248. package/docs/variables/VERSION.html +5 -5
  249. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  250. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  251. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  252. package/libs/CruisePlugin/Controller.js +26 -26
  253. package/libs/GuideLinePlugin/Controller.js +43 -43
  254. package/libs/PanoTagPlugin/Components/Common/Media.js +235 -313
  255. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
  256. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +89 -72
  257. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +86 -72
  258. package/libs/PanoTagPlugin/Components/Tag/index.js +84 -66
  259. package/libs/PanoTagPlugin/Components/TagContainer.js +98 -80
  260. package/libs/PanoTagPlugin/Components/TagItem.js +69 -51
  261. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +4 -3
  262. package/libs/PanoTagPlugin/controller/TagComputer.js +70 -65
  263. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  264. package/libs/PanoTagPlugin/controller/index.js +160 -136
  265. package/libs/PanoTagPlugin/index.js +41 -24
  266. package/libs/PanoTagPlugin/tag.config.js +1 -0
  267. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  268. package/libs/index.js +130 -113
  269. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +38 -38
  270. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
  271. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +26 -23
  272. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
  273. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +28 -22
  274. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +12 -12
  275. package/libs/vendor/simply-reactive/main.js +3 -0
  276. package/libs/vendor/simply-reactive/src/simply-reactive.js +44 -0
  277. package/libs/vendor/simply-reactive/src/utils/object.js +12 -0
  278. package/libs/vendor/simply-reactive/src/utils/subscription.js +28 -0
  279. package/libs/vendor/simply-reactive/src/utils/watcher.js +17 -0
  280. package/libs/vendor/svelte/internal/index.js +267 -274
  281. package/libs/vendor/svelte-carousel/src/actions/hoverable/event.js +18 -0
  282. package/libs/vendor/svelte-carousel/src/actions/hoverable/hoverable.js +19 -0
  283. package/libs/vendor/svelte-carousel/src/actions/hoverable/index.js +1 -0
  284. package/libs/vendor/svelte-carousel/src/actions/swipeable/event.js +26 -0
  285. package/libs/vendor/svelte-carousel/src/actions/swipeable/index.js +1 -0
  286. package/libs/vendor/svelte-carousel/src/actions/swipeable/swipeable.js +51 -0
  287. package/libs/vendor/svelte-carousel/src/actions/tappable/event.js +18 -0
  288. package/libs/vendor/svelte-carousel/src/actions/tappable/index.js +1 -0
  289. package/libs/vendor/svelte-carousel/src/actions/tappable/tappable.js +36 -0
  290. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -0
  291. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +522 -0
  292. package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +255 -0
  293. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +42 -0
  294. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +104 -0
  295. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +40 -0
  296. package/libs/vendor/svelte-carousel/src/direction.js +5 -0
  297. package/libs/vendor/svelte-carousel/src/main.js +1 -0
  298. package/libs/vendor/svelte-carousel/src/units.js +7 -0
  299. package/libs/vendor/svelte-carousel/src/utils/ProgressManager.js +52 -0
  300. package/libs/vendor/svelte-carousel/src/utils/clones.js +59 -0
  301. package/libs/vendor/svelte-carousel/src/utils/event.js +12 -0
  302. package/libs/vendor/svelte-carousel/src/utils/interval.js +4 -0
  303. package/libs/vendor/svelte-carousel/src/utils/lazy.js +45 -0
  304. package/libs/vendor/svelte-carousel/src/utils/math.js +11 -0
  305. package/libs/vendor/svelte-carousel/src/utils/object.js +13 -0
  306. package/libs/vendor/svelte-carousel/src/utils/page.js +154 -0
  307. package/package.json +5 -2
  308. package/dist/PanoTagPlugin/utils/tag/index.d.ts +0 -2
  309. package/libs/PanoTagPlugin/utils/tag/index.d.ts +0 -2
  310. package/libs/PanoTagPlugin/utils/tag/index.js +0 -11
  311. package/libs/vendor/swiper/components-shared/get-changed-params.js +0 -29
  312. package/libs/vendor/swiper/components-shared/get-params.js +0 -23
  313. package/libs/vendor/swiper/components-shared/mount-swiper.js +0 -14
  314. package/libs/vendor/swiper/components-shared/params-list.js +0 -120
  315. package/libs/vendor/swiper/components-shared/update-swiper.js +0 -36
  316. package/libs/vendor/swiper/components-shared/utils.js +0 -32
  317. package/libs/vendor/swiper/svelte/swiper-slide.js +0 -181
  318. package/libs/vendor/swiper/svelte/swiper-svelte.js +0 -2
  319. package/libs/vendor/swiper/svelte/swiper.js +0 -253
@@ -1,24 +1,24 @@
1
- var j = Object.defineProperty, B = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
1
+ var B = Object.defineProperty, V = Object.defineProperties;
2
+ var j = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
- var R = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var T = (g, d, e) => d in g ? j(g, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[d] = e, C = (g, d) => {
4
+ var U = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
5
+ var T = (g, d, e) => d in g ? B(g, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[d] = e, C = (g, d) => {
6
6
  for (var e in d || (d = {}))
7
- R.call(d, e) && T(g, e, d[e]);
7
+ U.call(d, e) && T(g, e, d[e]);
8
8
  if (P)
9
9
  for (var e of P(d))
10
- w.call(d, e) && T(g, e, d[e]);
10
+ R.call(d, e) && T(g, e, d[e]);
11
11
  return g;
12
- }, I = (g, d) => B(g, U(d));
13
- var y = (g, d, e) => (T(g, typeof d != "symbol" ? d + "" : d, e), e);
12
+ }, I = (g, d) => V(g, j(d));
13
+ var m = (g, d, e) => (T(g, typeof d != "symbol" ? d + "" : d, e), e);
14
14
  import x from "object-assign-deep";
15
15
  import * as k from "three";
16
- import { DefaultConfig as V } from "../tag.config.js";
17
- import { isMediaModelTag as m, is3DTag as $ } from "../utils/tag/tagCheck.js";
18
- import { anyPositionToVector3 as E } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
19
- import { planeNormal as A } from "../utils/planeNormal.js";
16
+ import { DefaultConfig as w } from "../tag.config.js";
17
+ import { isMediaModelTag as b, is3DTag as $ } from "../utils/tag/tagCheck.js";
18
+ import { anyPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
19
+ import { planeNormal as E } from "../utils/planeNormal.js";
20
20
  import { getTagPosition as D, tagPosition as M } from "../utils/tagPosition.js";
21
- import { checkRange as b } from "../utils/checkRange.js";
21
+ import { checkRange as y } from "../utils/checkRange.js";
22
22
  import { TagCacheController as F } from "./TagCacheController.js";
23
23
  import "hammerjs";
24
24
  import "@realsee/five";
@@ -44,9 +44,9 @@ import "../../shared-utils/animationFrame/index.js";
44
44
  class ve extends F {
45
45
  constructor(e) {
46
46
  super(e);
47
- y(this, "tags", []);
48
- y(this, "config", V);
49
- y(this, "raycaster", new k.Raycaster());
47
+ m(this, "tags", []);
48
+ m(this, "config", w);
49
+ m(this, "raycaster", new k.Raycaster());
50
50
  }
51
51
  get isPanorama() {
52
52
  return this.five.currentMode === "Panorama";
@@ -65,13 +65,13 @@ class ve extends F {
65
65
  getVisibleByPanoIndex(e, t) {
66
66
  var n;
67
67
  const i = this.getCache({ panoIndex: t, id: e.id }), o = (n = this.five.panoIndex) != null ? n : t;
68
- if (m(e))
68
+ if (b(e))
69
69
  return !0;
70
70
  if (i.visible !== void 0)
71
71
  return i.visible;
72
72
  {
73
- const a = (() => {
74
- var c, u, f;
73
+ const f = (() => {
74
+ var c, u, a;
75
75
  const s = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, l = this.getDistance(e);
76
76
  if (typeof s == "function")
77
77
  return { value: s(this.five, { tag: e, distance: l }), reason: "config function result" };
@@ -88,10 +88,10 @@ class ve extends F {
88
88
  if (s.visiblePanoIndex === "current" && o !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
89
89
  return {
90
90
  value: !1,
91
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${o}, tag.panoIndex: ${(f = e.fiveState) == null ? void 0 : f.panoIndex}`
91
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${o}, tag.panoIndex: ${(a = e.fiveState) == null ? void 0 : a.panoIndex}`
92
92
  };
93
93
  }
94
- if (s.visibleDistance !== void 0 && s.visibleDistance !== "unLimited" && b(l, s.visibleDistance) === !1)
94
+ if (s.visibleDistance !== void 0 && s.visibleDistance !== "unLimited" && y(l, s.visibleDistance) === !1)
95
95
  return {
96
96
  value: !1,
97
97
  reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${s.visibleDistance}`
@@ -108,7 +108,7 @@ class ve extends F {
108
108
  }
109
109
  if (s.angleRange && $(e)) {
110
110
  const r = this.getAngle(e);
111
- if (b(r, s.angleRange) === !1)
111
+ if (y(r, s.angleRange) === !1)
112
112
  return { value: !1, reason: `angle is not in angleRange. angle: ${r}, angleRange: ${s.angleRange}` };
113
113
  }
114
114
  return {
@@ -116,10 +116,10 @@ class ve extends F {
116
116
  reason: "all check passed"
117
117
  };
118
118
  })();
119
- return i.visible = a.value, i.__debug_visible_reason__ = a, i.visible;
119
+ return i.visible = f.value, i.__debug_visible_reason__ = f, i.visible;
120
120
  }
121
121
  }
122
- getVisibelByFiveMode(e, t) {
122
+ getVisibleByFiveMode(e, t) {
123
123
  var n;
124
124
  const i = (n = this.getTagConfig(e).visibleConfig) != null ? n : {};
125
125
  if (typeof i == "function")
@@ -127,6 +127,18 @@ class ve extends F {
127
127
  const o = i == null ? void 0 : i.visibleFiveMode;
128
128
  return o ? o.includes(t) : t === "Panorama";
129
129
  }
130
+ getVisibleByFloorIndex(e) {
131
+ var f;
132
+ const t = e.fiveState;
133
+ if (!t)
134
+ return !0;
135
+ const i = t.panoIndex, o = (f = this.five.work.observers[i]) == null ? void 0 : f.floorIndex, n = this.five.model.shownFloor;
136
+ return n === null || n === o;
137
+ }
138
+ getVisible(e) {
139
+ const t = this.five.getCurrentState(), i = this.getVisibleByFiveMode(e, t.mode), o = b(e) ? this.getVisibleByFloorIndex(e) : !0, n = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
140
+ return i && n && o;
141
+ }
130
142
  getModelMedialVisibleByPanoIndex(e) {
131
143
  const t = this.five.getCurrentState().panoIndex, i = this.getCache({ panoIndex: t, id: e.id });
132
144
  if (i.modelMedialVisible !== void 0)
@@ -144,7 +156,7 @@ class ve extends F {
144
156
  const n = this.getTagConfig(e).unfoldedConfig;
145
157
  if (!n)
146
158
  return;
147
- const a = (() => {
159
+ const f = (() => {
148
160
  const l = this.getDistance(e);
149
161
  if (typeof n == "function")
150
162
  return n(this.five, { tag: e, distance: l });
@@ -152,17 +164,17 @@ class ve extends F {
152
164
  return !1;
153
165
  if (n.keep === "unfolded")
154
166
  return !0;
155
- if (n.unfoldDistance && b(l, n.unfoldDistance) === !1)
167
+ if (n.unfoldDistance && y(l, n.unfoldDistance) === !1)
156
168
  return !1;
157
169
  })();
158
- o.unfolded = a;
170
+ o.unfolded = f;
159
171
  const s = this.getUnfoldedByCamera(e);
160
172
  return s !== void 0 ? s : o.unfolded;
161
173
  }
162
174
  }
163
175
  getUnfoldedByCamera(e) {
164
176
  return this.getVisibleByPanoIndex(e) ? (() => {
165
- var a;
177
+ var f;
166
178
  const o = this.getDistance(e), n = this.getTagConfig(e).unfoldedConfig;
167
179
  if (!!n) {
168
180
  if (typeof n == "function")
@@ -175,24 +187,24 @@ class ve extends F {
175
187
  return;
176
188
  if (n.autoUnfold.strategy === "ScreenPostion") {
177
189
  const s = this.getTagProject(e);
178
- if (s && b(s.x, n.autoUnfold.autoUnfoldProjectX) === !1)
190
+ if (s && y(s.x, n.autoUnfold.autoUnfoldProjectX) === !1)
179
191
  return !1;
180
192
  }
181
193
  if (n.autoUnfold.strategy === "MinimumDistance") {
182
- const c = this.filterPointTag().filter((f) => this.getVisibleByPanoIndex(f)).filter((f) => {
183
- const r = this.getTagProject(f);
194
+ const c = this.filterPointTag().filter((a) => this.getVisibleByPanoIndex(a)).filter((a) => {
195
+ const r = this.getTagProject(a);
184
196
  if (!r)
185
197
  return !1;
186
198
  const { x: p, y: v, z: h } = r;
187
199
  return !(Math.abs(h) > 1 || Math.abs(p) > 1 || Math.abs(v) > 1);
188
- }).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
200
+ }).map((a) => ({ tag: a, id: a.id, tagConfig: this.getTagConfig(a).unfoldedConfig })).filter(({ tag: a, tagConfig: r }) => {
189
201
  var p, v;
190
202
  return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((p = r.autoUnfold) == null ? void 0 : p.enable) === !1 || ((v = r.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
191
- }).map((f) => I(C({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
203
+ }).map((a) => I(C({}, a), { distance: this.getDistance(a.tag) })).filter(({ distance: a, tagConfig: r }) => {
192
204
  var p, v;
193
- return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((p = r.autoUnfold) == null ? void 0 : p.enable) === !1 || ((v = r.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || r.autoUnfold.distance && b(f, r.autoUnfold.distance) === !1);
194
- }).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
195
- if (c === -1 || c <= ((a = n.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
205
+ return !(a === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((p = r.autoUnfold) == null ? void 0 : p.enable) === !1 || ((v = r.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || r.autoUnfold.distance && y(a, r.autoUnfold.distance) === !1);
206
+ }).sort((a, r) => a.distance - r.distance).findIndex((a) => a.id === e.id);
207
+ if (c === -1 || c <= ((f = n.autoUnfold.maxNumber) != null ? f : 1) - 1 === !1)
196
208
  return !1;
197
209
  }
198
210
  return !0;
@@ -200,7 +212,7 @@ class ve extends F {
200
212
  })() : void 0;
201
213
  }
202
214
  getDistance(e, t) {
203
- var n, a, s;
215
+ var n, f, s;
204
216
  const i = (n = this.five.panoIndex) != null ? n : t;
205
217
  if (i === void 0)
206
218
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
@@ -208,7 +220,7 @@ class ve extends F {
208
220
  if (o.distance !== void 0)
209
221
  return o.distance;
210
222
  {
211
- const l = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
223
+ const l = (s = (f = this.five.work) == null ? void 0 : f.observers[i]) == null ? void 0 : s.position;
212
224
  if (l === void 0)
213
225
  throw new Error(`getDistance(): observerPosition is ${l}`);
214
226
  const c = D(e), u = l.distanceTo(c);
@@ -216,7 +228,7 @@ class ve extends F {
216
228
  }
217
229
  }
218
230
  getAngle(e, t) {
219
- var n, a, s;
231
+ var n, f, s;
220
232
  const i = (n = this.five.panoIndex) != null ? n : t;
221
233
  if (i === void 0)
222
234
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
@@ -224,14 +236,14 @@ class ve extends F {
224
236
  if (o.angle !== void 0)
225
237
  return o.angle;
226
238
  {
227
- const l = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
239
+ const l = (s = (f = this.five.work) == null ? void 0 : f.observers[i]) == null ? void 0 : s.position;
228
240
  if (l === void 0)
229
241
  throw new Error(`getAngleRange(): observerPosition is ${l}`);
230
- const c = (() => e.stickType === "3DPoint" ? E(e.normal) : A(e.position))();
242
+ const c = (() => e.stickType === "3DPoint" ? A(e.normal) : E(e.position))();
231
243
  if (!c)
232
244
  return;
233
- const u = new k.Vector3().copy(l).sub(M(e.position)), f = c.angleTo(u) * 180 / Math.PI;
234
- return o.angle = f, o.angle;
245
+ const u = new k.Vector3().copy(l).sub(M(e.position)), a = c.angleTo(u) * 180 / Math.PI;
246
+ return o.angle = a, o.angle;
235
247
  }
236
248
  }
237
249
  getTagConfig(e) {
@@ -239,8 +251,8 @@ class ve extends F {
239
251
  if (!e)
240
252
  return (o = this.config.globalConfig) != null ? o : {};
241
253
  const t = {};
242
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
243
- const s = a;
254
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((f) => {
255
+ const s = f;
244
256
  if (t[s])
245
257
  return;
246
258
  const l = s.split("-");
@@ -253,10 +265,10 @@ class ve extends F {
253
265
  (e.stickType === c || c === "Any") && (e.contentType === u || u === "Any") && (t[s] = this.config.contentTypeConfig[s]);
254
266
  }
255
267
  if (l.length === 3) {
256
- const [c = "Any", u, f] = l;
268
+ const [c = "Any", u, a] = l;
257
269
  if (u === "Audio" && e.contentType === "Audio") {
258
270
  const r = e;
259
- (r.stickType === c || c === "Any") && r.data.appearance === f && (t[s] = this.config.contentTypeConfig[s]);
271
+ (r.stickType === c || c === "Any") && r.data.appearance === a && (t[s] = this.config.contentTypeConfig[s]);
260
272
  }
261
273
  }
262
274
  });
@@ -311,7 +323,7 @@ class ve extends F {
311
323
  }
312
324
  setModelMedialVisibleByPanoIndex() {
313
325
  this.tags.forEach((e) => {
314
- if (!m(e))
326
+ if (!b(e))
315
327
  return;
316
328
  const t = this.getModelMedialVisibleByPanoIndex(e);
317
329
  e.mediaVisible = t;
@@ -329,9 +341,9 @@ class ve extends F {
329
341
  getTagProject(e) {
330
342
  if (!this.getVisibleByPanoIndex(e))
331
343
  return;
332
- const i = M(e.position), { x: o, y: n, z: a } = i.project(this.five.camera);
333
- if (!(a > 1))
334
- return { x: o, y: n, z: a };
344
+ const i = M(e.position), { x: o, y: n, z: f } = i.project(this.five.camera);
345
+ if (!(f > 1))
346
+ return { x: o, y: n, z: f };
335
347
  }
336
348
  filterPointTag() {
337
349
  return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint");
@@ -358,11 +370,11 @@ class ve extends F {
358
370
  });
359
371
  }
360
372
  getTagEnableByIntersect(e, t) {
361
- var c, u, f;
362
- const i = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, o = this.getDistance(e), [n] = this.five.model.intersectRaycaster(t), a = (() => {
363
- if (!m(e))
373
+ var c, u, a;
374
+ const i = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, o = this.getDistance(e), [n] = this.five.model.intersectRaycaster(t), f = (() => {
375
+ if (!b(e))
364
376
  return;
365
- const r = this.tags.filter(m).map((v) => {
377
+ const r = this.tags.filter(b).map((v) => {
366
378
  var h;
367
379
  return (h = v.model) == null ? void 0 : h.object;
368
380
  }).filter(S);
@@ -371,9 +383,10 @@ class ve extends F {
371
383
  var r;
372
384
  return typeof i == "object" && typeof i.intersectRaycaster == "object" && (r = i.intersectRaycaster.distanceAccuracy) != null ? r : 0.01;
373
385
  })();
374
- return Math.min((u = n == null ? void 0 : n.distance) != null ? u : 1 / 0, (f = a == null ? void 0 : a.distance) != null ? f : 1 / 0) + s < o ? {
386
+ return Math.min((u = n == null ? void 0 : n.distance) != null ? u : 1 / 0, (a = f == null ? void 0 : f.distance) != null ? a : 1 / 0) + s < o ? {
375
387
  value: !1,
376
- reason: `intersectRaycaster check failed: distance is ${o}, intersection.point is ${n.point.toArray()}, distanceError is ${s}`
388
+ reason: `intersectRaycaster check failed: distance is ${o}, intersection.point is ${n.point.toArray()},
389
+ customModelIntersection.point is ${f == null ? void 0 : f.point.toArray()} distanceError is ${s}`
377
390
  } : { value: !0, reason: "" };
378
391
  }
379
392
  getRaycasterFromPanoIndex(e, t) {
@@ -384,14 +397,6 @@ class ve extends F {
384
397
  const o = D(e).sub(i).normalize();
385
398
  return this.raycaster.set(i, o), this.raycaster;
386
399
  }
387
- checkFloorIndex(e) {
388
- var a;
389
- const t = e.fiveState;
390
- if (!t)
391
- return !0;
392
- const i = t.panoIndex, o = (a = this.five.work.observers[i]) == null ? void 0 : a.floorIndex, n = this.five.model.shownFloor;
393
- return n === null || n === o;
394
- }
395
400
  }
396
401
  export {
397
402
  ve as TagComputer
@@ -109,6 +109,7 @@ declare class PanoTagPluginController extends TagComputer {
109
109
  * @param scale css3DObject 原始缩放比例
110
110
  */
111
111
  updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagElement<any, S>, model: Object3D): void;
112
+ private updateTagCss3DObjectVisible;
112
113
  /**
113
114
  * @description: 设置 visible 和 unfolded
114
115
  */