@realsee/dnalogel 3.34.0 → 3.34.2

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 (392) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +4 -1
  3. package/dist/ModelMakerPlugin/index.d.ts +3 -2
  4. package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -0
  5. package/dist/index.cjs.js +3 -3
  6. package/dist/index.js +72 -56
  7. package/dist/index.umd.js +3 -3
  8. package/dist/shared-utils/tag.d.ts +7 -2
  9. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
  10. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
  11. package/docs/classes/CSS3DRender.html +3 -3
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  14. package/docs/classes/ModelMakerPluginInstance.html +21 -16
  15. package/docs/classes/ModelRoomLabelController.html +3 -3
  16. package/docs/classes/MoveController.html +3 -3
  17. package/docs/classes/Object3DHelperController.html +3 -3
  18. package/docs/classes/PaintBrush.html +3 -3
  19. package/docs/classes/PanoMeasurePluginLine.html +3 -3
  20. package/docs/classes/PanoMeasurePluginModel.html +3 -3
  21. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  22. package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
  23. package/docs/classes/PanoTagPluginController.html +3 -3
  24. package/docs/classes/Sculpt.html +3 -3
  25. package/docs/classes/Util.BetterTween.html +3 -3
  26. package/docs/classes/Util.Interval.html +3 -3
  27. package/docs/classes/Util.LineSegments.html +3 -3
  28. package/docs/classes/Util.Magnifier.html +3 -3
  29. package/docs/classes/Util.Object3D.html +3 -3
  30. package/docs/classes/Util.PointDomHelper.html +3 -3
  31. package/docs/classes/Util.PointHelper.html +3 -3
  32. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  33. package/docs/classes/Util.Rectangle.html +3 -3
  34. package/docs/classes/WalkController.html +3 -3
  35. package/docs/enums/CameraMovementEffect.html +3 -3
  36. package/docs/enums/ContentType.html +3 -3
  37. package/docs/enums/DIRECTION.html +3 -3
  38. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  39. package/docs/enums/DimensionType.html +3 -3
  40. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  41. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  42. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  43. package/docs/enums/PointType.html +3 -3
  44. package/docs/enums/Rotation.html +3 -3
  45. package/docs/functions/AreaMakerPlugin.html +3 -3
  46. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  47. package/docs/functions/CameraMovementPlugin.html +3 -3
  48. package/docs/functions/CruisePlugin.html +3 -3
  49. package/docs/functions/CurrentPanoImagePlugin.html +3 -3
  50. package/docs/functions/GuideLinePlugin.html +3 -3
  51. package/docs/functions/ItemLabelPlugin.html +3 -3
  52. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  53. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  55. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  56. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  57. package/docs/functions/ModelMakerPlugin.html +6 -6
  58. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  59. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  60. package/docs/functions/ModelViewPlugin.html +3 -3
  61. package/docs/functions/MovePlugin.html +3 -3
  62. package/docs/functions/Object3DHelperPlugin.html +3 -3
  63. package/docs/functions/PanoCompassPlugin.html +3 -3
  64. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  65. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  66. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  67. package/docs/functions/PanoMeasurePlugin.html +3 -3
  68. package/docs/functions/PanoRulerPlugin.html +3 -3
  69. package/docs/functions/PanoRulerProPlugin.html +3 -3
  70. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  71. package/docs/functions/PanoTagPlugin.html +3 -3
  72. package/docs/functions/PanoVideoPlugin.html +3 -3
  73. package/docs/functions/PipelinePlugin.html +3 -3
  74. package/docs/functions/SculptPlugin.html +3 -3
  75. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  76. package/docs/functions/Util.absoluteUrl.html +3 -3
  77. package/docs/functions/Util.blink.html +3 -3
  78. package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
  79. package/docs/functions/Util.equal.html +3 -3
  80. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  81. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  82. package/docs/functions/Util.getFrameTime.html +3 -3
  83. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  84. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  85. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  86. package/docs/functions/Util.isModelLike.html +3 -3
  87. package/docs/functions/Util.isNil.html +3 -3
  88. package/docs/functions/Util.isPanoramaLike.html +3 -3
  89. package/docs/functions/Util.nextFrame.html +3 -3
  90. package/docs/functions/Util.notNil.html +3 -3
  91. package/docs/functions/Util.reblink.html +3 -3
  92. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  93. package/docs/functions/Util.tweenProgress.html +3 -3
  94. package/docs/functions/Util.uuid.html +3 -3
  95. package/docs/functions/pluginFlag.html +3 -3
  96. package/docs/index.html +4 -4
  97. package/docs/interfaces/AddTagConfig.html +3 -3
  98. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  99. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  100. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
  101. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  102. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
  103. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  104. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  105. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  106. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
  107. package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
  108. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  109. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  110. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  111. package/docs/interfaces/ContentTypeMapInterface.html +3 -3
  112. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  113. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  114. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  115. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  116. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  117. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  118. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  119. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  120. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  121. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  122. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
  123. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
  124. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  125. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
  126. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
  127. package/docs/interfaces/EventMap.html +3 -3
  128. package/docs/interfaces/FloorplanBounding.html +3 -3
  129. package/docs/interfaces/FloorplanData.html +3 -3
  130. package/docs/interfaces/FloorplanEntrance.html +3 -3
  131. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  132. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  133. package/docs/interfaces/FloorplanFloorData.html +3 -3
  134. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  135. package/docs/interfaces/FloorplanObserver.html +3 -3
  136. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  137. package/docs/interfaces/FloorplanPosition.html +3 -3
  138. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  139. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  140. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  141. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  142. package/docs/interfaces/FloorplanServerData.html +3 -3
  143. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  144. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  145. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  146. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  147. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  148. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  149. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  150. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  151. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  152. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  153. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  154. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  155. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  156. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  157. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  158. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  159. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  160. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  161. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  162. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  163. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  164. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  165. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  166. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  167. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  168. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  169. package/docs/interfaces/HelperOffset.html +3 -3
  170. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  171. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  172. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  173. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  174. package/docs/interfaces/MinMax.html +3 -3
  175. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  176. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  177. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  178. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  179. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  180. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  181. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  182. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  183. package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
  184. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  185. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
  186. package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
  187. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
  188. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
  189. package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
  190. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  191. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  192. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  193. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  194. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  195. package/docs/interfaces/Object3DHelperState.html +3 -3
  196. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  197. package/docs/interfaces/PaintBrushAction.html +3 -3
  198. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  199. package/docs/interfaces/PaintBrushState.html +3 -3
  200. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  201. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  202. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  203. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  204. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  205. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  206. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  207. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  208. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  209. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  210. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  211. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  212. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  213. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  214. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  215. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  216. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  217. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  218. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  219. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  220. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  221. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  222. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  223. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  224. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  225. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  226. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  227. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  228. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  229. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  230. package/docs/interfaces/Point.html +3 -3
  231. package/docs/interfaces/Room.html +3 -3
  232. package/docs/interfaces/RoomInfo.html +3 -3
  233. package/docs/interfaces/RoomLabel.html +3 -3
  234. package/docs/interfaces/RoomRules.html +3 -3
  235. package/docs/interfaces/Rooms.html +3 -3
  236. package/docs/interfaces/Scissor.html +3 -3
  237. package/docs/interfaces/State.html +3 -3
  238. package/docs/interfaces/TagCacheInterface.html +3 -3
  239. package/docs/interfaces/TagConfig.html +3 -3
  240. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  241. package/docs/interfaces/TagIconUrl.html +3 -3
  242. package/docs/interfaces/TagObjectGroup.html +3 -3
  243. package/docs/interfaces/TagStyle.html +3 -3
  244. package/docs/interfaces/Tags.html +3 -3
  245. package/docs/interfaces/TemporaryState.html +3 -3
  246. package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
  247. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  248. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  249. package/docs/interfaces/Util.PointIntersection.html +3 -3
  250. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  251. package/docs/modules/AreaMakerPluginType.html +3 -3
  252. package/docs/modules/CruisePluginTypes.html +3 -3
  253. package/docs/modules/CurrentPanoImagePluginType.html +3 -3
  254. package/docs/modules/GuideLineItem.html +3 -3
  255. package/docs/modules/GuideLineModeItem.html +3 -3
  256. package/docs/modules/GuideLinePluginType.html +3 -3
  257. package/docs/modules/ModelMakerPluginType.html +3 -3
  258. package/docs/modules/PanoVideoPluginType.html +3 -3
  259. package/docs/modules/SculptData.html +3 -3
  260. package/docs/modules/Util.html +3 -3
  261. package/docs/modules.html +4 -4
  262. package/docs/types/AddObject3DHelperConfig.html +3 -3
  263. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
  264. package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
  265. package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
  266. package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
  267. package/docs/types/ArrayPosition.html +3 -3
  268. package/docs/types/AudioAppearance.html +3 -3
  269. package/docs/types/CSS3DRenderExportType.html +3 -3
  270. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  271. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  272. package/docs/types/ClassFunctionParameters.html +3 -3
  273. package/docs/types/Color.html +3 -3
  274. package/docs/types/ContentTypeConfigKey.html +3 -3
  275. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  276. package/docs/types/ContentTypeMap.html +3 -3
  277. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  278. package/docs/types/Create3DElementReturnType.html +3 -3
  279. package/docs/types/CruisePluginExportType.html +3 -3
  280. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  281. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  282. package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
  283. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  284. package/docs/types/DeprecatedTagProperty.html +3 -3
  285. package/docs/types/Direction-1.html +3 -3
  286. package/docs/types/Direction4.html +3 -3
  287. package/docs/types/ElementRenderer.html +3 -3
  288. package/docs/types/FloorplanRuleLabels.html +3 -3
  289. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  290. package/docs/types/GuideLinePluginExportType.html +3 -3
  291. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
  292. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  293. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  294. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  295. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  296. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  297. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  298. package/docs/types/HelperEventMap.html +3 -3
  299. package/docs/types/InternalHelperEventMap.html +3 -3
  300. package/docs/types/LoadTagConfig.html +3 -3
  301. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  302. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  303. package/docs/types/MediaData.html +3 -3
  304. package/docs/types/MediaStore.html +3 -3
  305. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  306. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  307. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  308. package/docs/types/ModelId.html +3 -3
  309. package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
  310. package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
  311. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  312. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  313. package/docs/types/MoveArgs.html +3 -3
  314. package/docs/types/MoveOpts.html +3 -3
  315. package/docs/types/Object3DHelperEventMap.html +3 -3
  316. package/docs/types/ObjectFit.html +3 -3
  317. package/docs/types/PaintBrushEventMap.html +3 -3
  318. package/docs/types/PanoCompassPluginData.html +3 -3
  319. package/docs/types/PanoCompassPluginExportType.html +3 -3
  320. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  321. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  322. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  323. package/docs/types/PanoIndex.html +3 -3
  324. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  325. package/docs/types/PanoMeasureReturnType.html +3 -3
  326. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  327. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  328. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  329. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  330. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  331. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  332. package/docs/types/PipelinePluginParameterType.html +3 -3
  333. package/docs/types/PipelinePluginReturnType.html +3 -3
  334. package/docs/types/PlaneTag.html +3 -3
  335. package/docs/types/Point2DTag.html +3 -3
  336. package/docs/types/Point3DTag.html +3 -3
  337. package/docs/types/PointTag.html +3 -3
  338. package/docs/types/PointTagInstance.html +3 -3
  339. package/docs/types/Position.html +3 -3
  340. package/docs/types/PositionFrom.html +3 -3
  341. package/docs/types/RotateArgs.html +3 -3
  342. package/docs/types/RotateOpts.html +3 -3
  343. package/docs/types/RuleLabelsKey.html +3 -3
  344. package/docs/types/RuleLabelsValue.html +3 -3
  345. package/docs/types/ScaleCallback.html +3 -3
  346. package/docs/types/ScalePosition.html +3 -3
  347. package/docs/types/SculptData.BoxData.html +3 -3
  348. package/docs/types/SculptData.CircleData.html +3 -3
  349. package/docs/types/SculptData.CylinderData.html +3 -3
  350. package/docs/types/SculptData.PointData.html +3 -3
  351. package/docs/types/SculptData.PolygonData.html +3 -3
  352. package/docs/types/SculptData.PolylineData.html +3 -3
  353. package/docs/types/SculptData.PrismData.html +3 -3
  354. package/docs/types/SculptData.RectangleData.html +3 -3
  355. package/docs/types/StickType.html +3 -3
  356. package/docs/types/Tag.html +3 -3
  357. package/docs/types/Tag2D.html +3 -3
  358. package/docs/types/Tag3D.html +3 -3
  359. package/docs/types/TagConfigByKey.html +3 -3
  360. package/docs/types/TagContentType.html +3 -3
  361. package/docs/types/TagContentTypeMapping.html +3 -3
  362. package/docs/types/TagDimensionType.html +3 -3
  363. package/docs/types/TagElement.html +3 -3
  364. package/docs/types/TagEvents.html +3 -3
  365. package/docs/types/TagGLTFObject.html +3 -3
  366. package/docs/types/TagHooks.html +3 -3
  367. package/docs/types/TagId.html +3 -3
  368. package/docs/types/TagInstance.html +3 -3
  369. package/docs/types/TagPointType.html +3 -3
  370. package/docs/types/TagRendererMap.html +3 -3
  371. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  372. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  373. package/docs/types/WorkCode.html +3 -3
  374. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  375. package/docs/variables/PLUGIN.html +3 -3
  376. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  377. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  378. package/docs/variables/defaultGlobalConfig.html +3 -3
  379. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  380. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  381. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  382. package/libs/ModelMakerPlugin/Controller.d.ts +4 -1
  383. package/libs/ModelMakerPlugin/Controller.js +63 -51
  384. package/libs/ModelMakerPlugin/index.d.ts +3 -2
  385. package/libs/ModelMakerPlugin/index.js +1 -1
  386. package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -0
  387. package/libs/ModelMakerPlugin/item/baseItem.js +15 -15
  388. package/libs/base/BasePlugin.js +1 -1
  389. package/libs/shared-utils/logger.js +1 -1
  390. package/libs/shared-utils/tag.d.ts +7 -2
  391. package/libs/shared-utils/tag.js +49 -45
  392. package/package.json +1 -1
@@ -1,40 +1,40 @@
1
- var P = Object.defineProperty;
2
- var D = (l, n, e) => n in l ? P(l, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[n] = e;
3
- var r = (l, n, e) => (D(l, typeof n != "symbol" ? n + "" : n, e), e);
4
- var M = (l, n, e) => new Promise((s, t) => {
5
- var m = (i) => {
1
+ var I = Object.defineProperty;
2
+ var P = (l, n, e) => n in l ? I(l, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[n] = e;
3
+ var r = (l, n, e) => (P(l, typeof n != "symbol" ? n + "" : n, e), e);
4
+ var x = (l, n, e) => new Promise((i, d) => {
5
+ var t = (s) => {
6
6
  try {
7
- a(e.next(i));
8
- } catch (p) {
9
- t(p);
7
+ o(e.next(s));
8
+ } catch (a) {
9
+ d(a);
10
10
  }
11
- }, o = (i) => {
11
+ }, m = (s) => {
12
12
  try {
13
- a(e.throw(i));
14
- } catch (p) {
15
- t(p);
13
+ o(e.throw(s));
14
+ } catch (a) {
15
+ d(a);
16
16
  }
17
- }, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(m, o);
18
- a((e = e.apply(l, n)).next());
17
+ }, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(t, m);
18
+ o((e = e.apply(l, n)).next());
19
19
  });
20
- import { Controller as A } from "../base/BasePluginWithData.js";
20
+ import { Controller as D } from "../base/BasePluginWithData.js";
21
21
  import * as h from "three";
22
- import { ModelMakerBoxItem as C } from "./item/boxItem.js";
22
+ import { ModelMakerBoxItem as A } from "./item/boxItem.js";
23
23
  import { PrismMesh as j } from "../Sculpt/Meshes/Prism.js";
24
- import { anyPositionToVector3 as I } from "../shared-utils/positionToVector3.js";
25
- import { PolygonWithEdgeMesh as T } from "../Sculpt/Meshes/PolygonWithEdge.js";
24
+ import { anyPositionToVector3 as T } from "../shared-utils/positionToVector3.js";
25
+ import { PolygonWithEdgeMesh as H } from "../Sculpt/Meshes/PolygonWithEdge.js";
26
26
  import "hammerjs";
27
27
  import "@realsee/five";
28
28
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
29
29
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
30
30
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
31
31
  import "animejs";
32
- import { notNil as x } from "../shared-utils/isNil.js";
33
- import { tagRendererMap as H } from "./utils/tagRenderer.js";
34
- import { ModelMakerPrismItem as F } from "./item/prismItem.js";
35
- import { ModelMakerPolygonItem as L } from "./item/polygonItem.js";
32
+ import { notNil as V } from "../shared-utils/isNil.js";
33
+ import { tagRendererMap as F } from "./utils/tagRenderer.js";
34
+ import { ModelMakerPrismItem as L } from "./item/prismItem.js";
35
+ import { ModelMakerPolygonItem as O } from "./item/polygonItem.js";
36
36
  import { boxVertex as c } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
37
- import { getFiveDomEvent as O } from "./utils/getFiveDomEvent.js";
37
+ import { getFiveDomEvent as z } from "./utils/getFiveDomEvent.js";
38
38
  import "../base/BasePlugin.js";
39
39
  import "../shared-utils/Subscribe.js";
40
40
  import "../shared-utils/url/absoluteUrl.js";
@@ -75,8 +75,8 @@ import "../shared-utils/tag.js";
75
75
  import "../shared-utils/five/vector3ToScreen.js";
76
76
  import "../shared-utils/five/FiveDomEvents.js";
77
77
  import "../shared-utils/five/calculateThreeMouse.js";
78
- class Se extends A {
79
- constructor(e) {
78
+ class Se extends D {
79
+ constructor(e, i) {
80
80
  super(e);
81
81
  r(this, "state");
82
82
  r(this, "items", []);
@@ -85,6 +85,7 @@ class Se extends A {
85
85
  r(this, "tagRendererMap", {});
86
86
  r(this, "fiveDomEvents");
87
87
  r(this, "zFightingOffset", 0);
88
+ r(this, "tagContainerZIndex");
88
89
  r(this, "handleEnable", () => {
89
90
  this.items.forEach((e) => e.enable());
90
91
  });
@@ -93,73 +94,84 @@ class Se extends A {
93
94
  });
94
95
  r(this, "updateTagRenderer", () => {
95
96
  this.items.forEach((e) => {
96
- var t;
97
- const s = (t = this.tagRendererMap[e.type]) != null ? t : H[e.type];
98
- s && e.__renderer !== s && (e.__renderer = s, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = s(e.tag.container, e));
97
+ var d;
98
+ const i = (d = this.tagRendererMap[e.type]) != null ? d : F[e.type];
99
+ i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
99
100
  });
100
101
  });
101
- this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = O(e), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
102
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = z(e), this.tagContainerZIndex = 1, e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
102
103
  }
103
104
  load(e) {
104
- return M(this, null, function* () {
105
- var s;
106
- this.clear(), this.data = e, (s = e == null ? void 0 : e.list) == null || s.forEach((t) => {
105
+ return x(this, null, function* () {
106
+ var d;
107
+ this.clear(), this.data = e;
108
+ const i = this.tagContainerZIndex;
109
+ (d = e == null ? void 0 : e.list) == null || d.forEach((t) => {
107
110
  var m;
108
111
  if (t.type === "triangles") {
109
- const o = new T();
112
+ const o = new H();
110
113
  o.setPoints(t.object_data.points), o.setStyle({
111
114
  color: t.object_data.color,
112
115
  opacity: t.object_data.opacity,
113
116
  lineColor: t.object_data.color,
114
117
  occlusionVisibility: !1
115
118
  }), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
116
- const a = new L({
119
+ const s = new O({
117
120
  five: this.five,
118
121
  model: o,
119
122
  group: this.group,
120
123
  type: t.type,
121
- rawData: t
124
+ rawData: t,
125
+ tagContainerZIndex: i
122
126
  });
123
- this.items.push(a);
127
+ this.items.push(s);
124
128
  } else if (t.type === "prism") {
125
129
  const o = new j();
126
130
  this.zFightingOffset += 1e-4, o.setPoints({
127
- points: t.object_data.points.map((i) => {
128
- var p;
129
- return [i[0], i[1] + ((p = t.object_data.fixedY) != null ? p : 0), i[2]];
131
+ points: t.object_data.points.map((a) => {
132
+ var b;
133
+ return [a[0], a[1] + ((b = t.object_data.fixedY) != null ? b : 0), a[2]];
130
134
  }),
131
- heightPoint: I(t.object_data.points[0]).add(new h.Vector3().setY(t.object_data.height + ((m = t.object_data.fixedHeight) != null ? m : 0))).add(new h.Vector3().setY(this.zFightingOffset))
135
+ heightPoint: T(t.object_data.points[0]).add(new h.Vector3().setY(t.object_data.height + ((m = t.object_data.fixedHeight) != null ? m : 0))).add(new h.Vector3().setY(this.zFightingOffset))
132
136
  }), o.setStyle({
133
137
  color: t.object_data.color,
134
138
  opacity: t.object_data.opacity,
135
139
  lineColor: t.object_data.color,
136
140
  occlusionVisibility: !1
137
141
  });
138
- const a = new F({
142
+ const s = new L({
139
143
  five: this.five,
140
144
  model: o,
141
145
  group: this.group,
142
146
  type: t.type,
143
- rawData: t
147
+ rawData: t,
148
+ tagContainerZIndex: i
144
149
  });
145
- this.items.push(a);
150
+ this.items.push(s);
146
151
  } else if (t.type === "box") {
147
- const o = new j(), { start: a, end: i, rotation: p = [0, 0, 0, 0], opacity: V, color: b } = t.object_data, f = new h.Vector3().fromArray(a), u = new h.Vector3().fromArray(i), R = new h.Euler().fromArray(p), g = new h.Quaternion().setFromEuler(R), y = g.clone().inverse(), _ = new h.Vector3().lerpVectors(f, u, 0.5), w = _.clone().negate(), v = f.clone().add(w).applyQuaternion(y), E = u.clone().add(w).applyQuaternion(y), d = new h.Box3(v.clone().max(E), v.clone().min(E));
152
+ const o = new j(), { start: s, end: a, rotation: b = [0, 0, 0, 0], opacity: R, color: f } = t.object_data, g = new h.Vector3().fromArray(s), u = new h.Vector3().fromArray(a), k = new h.Euler().fromArray(b), y = new h.Quaternion().setFromEuler(k), _ = y.clone().inverse(), w = new h.Vector3().lerpVectors(g, u, 0.5), v = w.clone().negate(), E = g.clone().add(v).applyQuaternion(_), M = u.clone().add(v).applyQuaternion(_), p = new h.Box3(E.clone().max(M), E.clone().min(M));
148
153
  o.setPoints({
149
- points: [c(d, 2), c(d, 3), c(d, 7), c(d, 6)],
150
- heightPoint: c(d, 0)
151
- }), o.position.copy(_), o.quaternion.copy(g), o.setStyle({ color: b, opacity: V, lineColor: b, occlusionVisibility: !1 });
152
- const k = new C({ five: this.five, model: o, group: this.group, type: t.type, rawData: t });
153
- this.items.push(k);
154
+ points: [c(p, 2), c(p, 3), c(p, 7), c(p, 6)],
155
+ heightPoint: c(p, 0)
156
+ }), o.position.copy(w), o.quaternion.copy(y), o.setStyle({ color: f, opacity: R, lineColor: f, occlusionVisibility: !1 });
157
+ const C = new A({
158
+ five: this.five,
159
+ model: o,
160
+ group: this.group,
161
+ type: t.type,
162
+ rawData: t,
163
+ tagContainerZIndex: i
164
+ });
165
+ this.items.push(C);
154
166
  }
155
167
  }), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e);
156
168
  });
157
169
  }
158
170
  setState(e) {
159
- x(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), x(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
171
+ V(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), V(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
160
172
  }
161
173
  getItemById(e) {
162
- return this.items.find((s) => s.rawData.id === e);
174
+ return this.items.find((i) => i.rawData.id === e);
163
175
  }
164
176
  registerTagRenderer(e) {
165
177
  this.tagRendererMap = e, this.updateTagRenderer();
@@ -1,6 +1,7 @@
1
- import type { Five } from '@realsee/five';
2
1
  import type * as ModelMakerPluginType from './typings';
3
2
  import { Controller } from './Controller';
4
- export declare const ModelMakerPlugin: (five: Five) => ModelMakerPluginType.ModelMakerController;
3
+ export declare const ModelMakerPlugin: (five: import("@realsee/five").Five, config?: {
4
+ tagContainerZIndex?: number;
5
+ }) => ModelMakerPluginType.ModelMakerController;
5
6
  export type { Controller as ModelMakerPluginInstance };
6
7
  export type { ModelMakerPluginType };
@@ -57,7 +57,7 @@ import "../vendor/svelte/internal/index.js";
57
57
  import "../components/AreaLabel/LabelItem.js";
58
58
  import "../components/AreaLabel/Assets/roomLabelBg.js";
59
59
  import "./item/prismItem.js";
60
- const lo = (o) => new r(o);
60
+ const lo = (...o) => new r(...o);
61
61
  export {
62
62
  lo as ModelMakerPlugin
63
63
  };
@@ -32,6 +32,7 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
32
32
  rawData?: any;
33
33
  visibleMode?: Mode[];
34
34
  position?: THREE.Vector3;
35
+ tagContainerZIndex?: number;
35
36
  });
36
37
  show(): void;
37
38
  hide(): void;
@@ -1,20 +1,20 @@
1
- var d = Object.defineProperty;
2
- var l = (s, i, e) => i in s ? d(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
3
- var t = (s, i, e) => (l(s, typeof i != "symbol" ? i + "" : i, e), e);
4
- import * as m from "three";
5
- import { addIfNotExists as a } from "../../shared-utils/three/addIfNotExists.js";
6
- import { Subscribe as v } from "../../shared-utils/Subscribe.js";
7
- import { tag as f } from "../../shared-utils/tag.js";
8
- import { boundingBox as b } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
9
- import { getFiveDomEvent as c } from "../utils/getFiveDomEvent.js";
1
+ var l = Object.defineProperty;
2
+ var m = (s, i, e) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
3
+ var t = (s, i, e) => (m(s, typeof i != "symbol" ? i + "" : i, e), e);
4
+ import * as a from "three";
5
+ import { addIfNotExists as v } from "../../shared-utils/three/addIfNotExists.js";
6
+ import { Subscribe as f } from "../../shared-utils/Subscribe.js";
7
+ import { tag as b } from "../../shared-utils/tag.js";
8
+ import { boundingBox as c } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
9
+ import { getFiveDomEvent as u } from "../utils/getFiveDomEvent.js";
10
10
  import "../../shared-utils/positionToVector3.js";
11
11
  import "../../shared-utils/five/vector3ToScreen.js";
12
12
  import "../../shared-utils/five/FiveDomEvents.js";
13
13
  import "../../shared-utils/three/getObjectVisible.js";
14
14
  import "../../shared-utils/five/calculateThreeMouse.js";
15
- class B extends v {
15
+ class B extends f {
16
16
  constructor(e) {
17
- var o, r, h;
17
+ var o, r, n, h;
18
18
  super();
19
19
  t(this, "type");
20
20
  t(this, "tag");
@@ -24,9 +24,9 @@ class B extends v {
24
24
  t(this, "group");
25
25
  t(this, "enabled", !1);
26
26
  t(this, "fiveDomEvents");
27
- this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = c(this.five);
28
- const n = (h = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? h : b(this.model).getCenter(new m.Vector3());
29
- this.tag = f(this.five, n);
27
+ this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = u(this.five);
28
+ const d = (n = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? n : c(this.model).getCenter(new a.Vector3());
29
+ this.tag = b(this.five, d, { wrapperStyle: { zIndex: `${(h = e.tagContainerZIndex) != null ? h : ""}` } });
30
30
  }
31
31
  get container() {
32
32
  return this.tag.container;
@@ -46,7 +46,7 @@ class B extends v {
46
46
  enable() {
47
47
  if (this.enabled)
48
48
  return;
49
- this.enabled = !0, a(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
49
+ this.enabled = !0, v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
50
50
  const e = this.onClick.bind(this);
51
51
  this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
52
52
  }
@@ -15,7 +15,7 @@ let C = class {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- i(this, "VERSION", "3.34.0");
18
+ i(this, "VERSION", "3.34.2");
19
19
  i(this, "five");
20
20
  /**
21
21
  * @description: 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.34.0",
3
+ "%c %c@realsee/dnalogel %cv3.34.2",
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",
@@ -8,7 +8,10 @@ export declare class LightTag {
8
8
  private position;
9
9
  private wrapper;
10
10
  private disposer;
11
- constructor(five: Five, position: AnyPosition);
11
+ private wrapperStyle;
12
+ constructor(five: Five, position: AnyPosition, config?: {
13
+ wrapperStyle?: Partial<CSSStyleDeclaration>;
14
+ });
12
15
  show(): void;
13
16
  hide(params?: {
14
17
  withAnimation?: boolean;
@@ -18,4 +21,6 @@ export declare class LightTag {
18
21
  private onCameraUpdate;
19
22
  private onFiveEveryReady;
20
23
  }
21
- export declare function tag(five: Five, position: AnyPosition): LightTag;
24
+ export declare function tag(five: Five, position: AnyPosition, config?: {
25
+ wrapperStyle?: Partial<CSSStyleDeclaration>;
26
+ }): LightTag;
@@ -1,72 +1,76 @@
1
- var h = Object.defineProperty;
2
- var c = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var n = (o, t, e) => (c(o, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { anyPositionToVector3 as l } from "./positionToVector3.js";
1
+ var l = Object.defineProperty;
2
+ var c = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { anyPositionToVector3 as p } from "./positionToVector3.js";
5
5
  import * as d from "three";
6
- import { vector3ToScreen as p } from "./five/vector3ToScreen.js";
7
- const r = "LightTagContainer_shgjakdhwakjdhsja";
6
+ import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
7
+ const h = "LightTagContainer_shgjakdhwakjdhsja";
8
8
  class f {
9
- constructor(t, e) {
10
- n(this, "container");
11
- n(this, "visible", !1);
12
- n(this, "enabled", !1);
13
- n(this, "five");
14
- n(this, "position");
15
- n(this, "wrapper");
16
- n(this, "disposer");
17
- n(this, "onCameraUpdate", () => {
9
+ constructor(e, t, n) {
10
+ s(this, "container");
11
+ s(this, "visible", !1);
12
+ s(this, "enabled", !1);
13
+ s(this, "five");
14
+ s(this, "position");
15
+ s(this, "wrapper");
16
+ s(this, "disposer");
17
+ s(this, "wrapperStyle", {});
18
+ s(this, "onCameraUpdate", () => {
18
19
  if (this.visible === !1)
19
20
  return;
20
- const t = p(this.five.camera, this.position);
21
- t ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.left = t.leftPercent + "%", this.container.style.top = t.topPercent + "%") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
21
+ const e = y(this.five.camera, this.position);
22
+ e ? (this.container.style.left = e.leftPercent + "%", this.container.style.top = e.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
22
23
  });
23
- n(this, "onFiveEveryReady", () => {
24
- var t;
24
+ s(this, "onFiveEveryReady", () => {
25
+ var e;
25
26
  if (this.visible && this.five.state.mode !== "Panorama") {
26
- const e = new d.Raycaster();
27
- e.set(this.five.camera.position, this.position.clone().sub(this.five.camera.position));
28
- const i = (t = this.five.model.intersectRaycaster(e)) == null ? void 0 : t[0];
29
- (i == null ? void 0 : i.distance) > this.position.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
27
+ const t = new d.Raycaster();
28
+ t.set(this.five.camera.position, this.position.clone().sub(this.five.camera.position));
29
+ const n = (e = this.five.model.intersectRaycaster(t)) == null ? void 0 : e[0];
30
+ (n == null ? void 0 : n.distance) > this.position.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
30
31
  }
31
32
  });
32
- this.five = t, this.position = l(e).clone(), this.container = (() => {
33
- const i = document.createElement("div");
34
- return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i;
35
- })(), this.enable(), this.show();
33
+ var i;
34
+ this.five = e, this.position = p(t).clone(), this.container = (() => {
35
+ const a = document.createElement("div");
36
+ return a.style.width = "0", a.style.height = "0", a.style.position = "absolute", a;
37
+ })(), this.wrapperStyle = (i = n == null ? void 0 : n.wrapperStyle) != null ? i : {}, this.enable(), this.show();
36
38
  }
37
39
  show() {
38
- this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.classList.add("withAnimation"), this.onCameraUpdate();
40
+ this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
39
41
  }
40
- hide(t) {
41
- this.visible = !1, t != null && t.withAnimation ? this.container.classList.add("withAnimation") : this.container.classList.remove("withAnimation"), this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
42
+ hide(e) {
43
+ this.visible = !1, e != null && e.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
42
44
  }
43
45
  enable() {
44
- var i;
46
+ var n;
45
47
  if (this.enabled)
46
48
  return;
47
- this.enabled = !0, this.wrapper = (i = document.getElementById(r)) != null ? i : (() => {
49
+ this.enabled = !0, this.wrapper = (n = document.getElementById(h)) != null ? n : (() => {
48
50
  var a;
49
- const s = document.createElement("div");
50
- return s.id = r, s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", (a = this.five.getElement()) == null || a.parentElement.appendChild(s), s;
51
+ const i = document.createElement("div");
52
+ return i.id = h, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", Object.keys(this.wrapperStyle).forEach((r) => {
53
+ i.style[r] = this.wrapperStyle[r];
54
+ }), (a = this.five.getElement()) == null || a.parentElement.appendChild(i), i;
51
55
  })(), this.wrapper.appendChild(this.container);
52
- let t = !1;
53
- const e = () => {
54
- t || (t = !0, this.five.ready().then(() => {
55
- this.onFiveEveryReady(), t = !1;
56
+ let e = !1;
57
+ const t = () => {
58
+ e || (e = !0, this.five.ready().then(() => {
59
+ this.onFiveEveryReady(), e = !1;
56
60
  }));
57
61
  };
58
- this.five.on("cameraUpdate", e), this.five.on("cameraUpdate", this.onCameraUpdate), this.disposer = () => {
59
- this.five.off("cameraUpdate", e), this.five.off("cameraUpdate", this.onCameraUpdate);
62
+ this.five.on("cameraUpdate", t), this.five.on("cameraUpdate", this.onCameraUpdate), this.disposer = () => {
63
+ this.five.off("cameraUpdate", t), this.five.off("cameraUpdate", this.onCameraUpdate);
60
64
  };
61
65
  }
62
66
  disable() {
63
- var t;
64
- this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (t = this.disposer) == null || t.call(this));
67
+ var e;
68
+ this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (e = this.disposer) == null || e.call(this));
65
69
  }
66
70
  }
67
- function u(o, t) {
68
- return new f(o, t);
71
+ function w(o, e, t) {
72
+ return new f(o, e, t);
69
73
  }
70
74
  export {
71
- u as tag
75
+ w as tag
72
76
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.34.0",
3
+ "version": "3.34.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",