@realsee/dnalogel 3.35.0-dev.0 → 3.35.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 (404) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +1 -1
  3. package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -1
  4. package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
  5. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
  6. package/dist/PanoMeasurePlugin/typings/data.d.ts +3 -0
  7. package/dist/PanoVideoPlugin/Controller.d.ts +3 -1
  8. package/dist/PanoVideoPlugin/typings.d.ts +2 -2
  9. package/dist/index.cjs.js +21 -21
  10. package/dist/index.js +111 -100
  11. package/dist/index.umd.js +23 -23
  12. package/dist/shared-utils/tag.d.ts +4 -4
  13. package/docs/assets/search.js +1 -1
  14. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +44 -34
  15. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +44 -34
  16. package/docs/classes/CSS3DRender.html +43 -33
  17. package/docs/classes/GuideLineItem.GuideLineItem.html +31 -21
  18. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +55 -45
  19. package/docs/classes/{Magnifier.html → ModelMakerPluginInstance.html} +203 -111
  20. package/docs/classes/ModelRoomLabelController.html +23 -13
  21. package/docs/classes/MoveController.html +43 -33
  22. package/docs/classes/Object3DHelperController.html +39 -47
  23. package/docs/classes/PaintBrush.html +27 -17
  24. package/docs/classes/PanoMeasurePluginLine.html +56 -36
  25. package/docs/classes/PanoMeasurePluginModel.html +42 -32
  26. package/docs/classes/PanoMeasurePluginPoint.html +23 -13
  27. package/docs/classes/PanoMeasurePluginPolyline.html +61 -34
  28. package/docs/classes/PanoTagPluginController.html +234 -126
  29. package/docs/classes/Sculpt.html +852 -0
  30. package/docs/classes/Util.BetterTween.html +27 -13
  31. package/docs/classes/Util.Interval.html +29 -15
  32. package/docs/classes/Util.LineSegments.html +25 -11
  33. package/docs/classes/Util.Magnifier.html +93 -60
  34. package/docs/classes/Util.Object3D.html +26 -12
  35. package/docs/classes/Util.PointDomHelper.html +28 -14
  36. package/docs/classes/Util.PointHelper.html +28 -14
  37. package/docs/classes/Util.PointSelectorHelper.html +34 -20
  38. package/docs/classes/Util.Rectangle.html +30 -16
  39. package/docs/classes/WalkController.html +39 -29
  40. package/docs/enums/CameraMovementEffect.html +19 -9
  41. package/docs/enums/ContentType.html +33 -23
  42. package/docs/enums/DIRECTION.html +21 -11
  43. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +21 -11
  44. package/docs/enums/DimensionType.html +19 -9
  45. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +20 -10
  46. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +21 -11
  47. package/docs/enums/PaintBrushTypeEnum.html +20 -10
  48. package/docs/enums/PointType.html +19 -9
  49. package/docs/enums/Rotation.html +20 -10
  50. package/docs/functions/AreaMakerPlugin.html +17 -7
  51. package/docs/functions/CSS3DRenderPlugin.html +17 -7
  52. package/docs/functions/CameraMovementPlugin.html +17 -7
  53. package/docs/functions/CruisePlugin.html +17 -7
  54. package/docs/functions/CurrentPanoImagePlugin.html +17 -7
  55. package/docs/functions/GuideLinePlugin.html +17 -7
  56. package/docs/functions/ItemLabelPlugin.html +17 -7
  57. package/docs/functions/MapviewFloorplanPlugin.html +17 -7
  58. package/docs/functions/ModelChassisCompassPlugin.html +17 -7
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +17 -7
  60. package/docs/functions/ModelFloorplanPlugin.html +17 -7
  61. package/docs/functions/ModelItemLabelPlugin.html +17 -7
  62. package/docs/functions/ModelMakerPlugin.html +303 -0
  63. package/docs/functions/ModelRoomLabelPlugin.html +17 -7
  64. package/docs/functions/ModelTVVideoPlugin.html +17 -7
  65. package/docs/functions/ModelViewPlugin.html +17 -7
  66. package/docs/functions/MovePlugin.html +18 -8
  67. package/docs/functions/Object3DHelperPlugin.html +17 -7
  68. package/docs/functions/PanoCompassPlugin.html +17 -7
  69. package/docs/functions/PanoCursorRaycasterPlugin.html +17 -7
  70. package/docs/functions/PanoDoorLabelPlugin.html +17 -7
  71. package/docs/functions/PanoFloorplanRadarPlugin.html +17 -7
  72. package/docs/functions/PanoMeasurePlugin.html +17 -7
  73. package/docs/functions/PanoRulerPlugin.html +17 -7
  74. package/docs/functions/PanoRulerProPlugin.html +17 -7
  75. package/docs/functions/PanoSpatialTagPlugin.html +17 -7
  76. package/docs/functions/PanoTagPlugin.html +20 -8
  77. package/docs/functions/PanoVideoPlugin.html +17 -7
  78. package/docs/functions/PipelinePlugin.html +17 -7
  79. package/docs/functions/SculptPlugin.html +306 -0
  80. package/docs/functions/TopviewFloorplanPlugin.html +17 -7
  81. package/docs/functions/Util.absoluteUrl.html +22 -8
  82. package/docs/functions/Util.blink.html +351 -0
  83. package/docs/functions/Util.checkFiveModelLoaded.html +22 -8
  84. package/docs/functions/Util.equal.html +22 -8
  85. package/docs/functions/Util.getCoordsFromClient.html +22 -8
  86. package/docs/functions/Util.getCoordsFromElement.html +22 -8
  87. package/docs/functions/Util.getFrameTime.html +22 -8
  88. package/docs/functions/Util.getIntersectFromRelativePosition.html +29 -10
  89. package/docs/functions/Util.getRaycasterFromFivePointer.html +22 -8
  90. package/docs/functions/Util.isAbsoluteURL.html +22 -8
  91. package/docs/functions/Util.isModelLike.html +22 -8
  92. package/docs/functions/Util.isNil.html +22 -8
  93. package/docs/functions/Util.isPanoramaLike.html +22 -8
  94. package/docs/functions/Util.nextFrame.html +22 -8
  95. package/docs/functions/Util.notNil.html +22 -8
  96. package/docs/functions/Util.reblink.html +349 -0
  97. package/docs/functions/Util.requestAnimationFrameInterval.html +22 -8
  98. package/docs/functions/Util.tweenProgress.html +22 -8
  99. package/docs/functions/Util.uuid.html +22 -8
  100. package/docs/functions/pluginFlag.html +17 -7
  101. package/docs/index.html +18 -7
  102. package/docs/interfaces/AddTagConfig.html +18 -8
  103. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +17 -7
  104. package/docs/interfaces/AreaMakerPluginType.Config.html +17 -7
  105. package/docs/interfaces/AreaMakerPluginType.EventMap.html +30 -20
  106. package/docs/interfaces/AreaMakerPluginType.Params.html +18 -8
  107. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -10
  108. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +19 -9
  109. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +17 -7
  110. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +17 -7
  111. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +17 -7
  112. package/docs/interfaces/AreaMakerPluginType.State.html +19 -9
  113. package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -13
  114. package/docs/interfaces/CSS3DRenderPluginState.html +20 -10
  115. package/docs/interfaces/CameraMovementPluginExportType.html +19 -9
  116. package/docs/interfaces/ContentTypeMapInterface.html +773 -0
  117. package/docs/interfaces/CruisePluginTypes.Config.html +21 -10
  118. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +24 -13
  119. package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -22
  120. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +352 -0
  121. package/docs/interfaces/CruisePluginTypes.MoveAction.html +39 -23
  122. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +30 -18
  123. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +30 -18
  124. package/docs/interfaces/CruisePluginTypes.PluginData.html +41 -30
  125. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +18 -7
  126. package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -14
  127. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +23 -13
  128. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +24 -14
  129. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +19 -9
  130. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +18 -8
  131. package/docs/interfaces/CurrentPanoImagePluginType.State.html +20 -10
  132. package/docs/interfaces/EventMap.html +27 -17
  133. package/docs/interfaces/FloorplanBounding.html +20 -10
  134. package/docs/interfaces/FloorplanData.html +22 -12
  135. package/docs/interfaces/FloorplanEntrance.html +23 -13
  136. package/docs/interfaces/FloorplanExtraObject.html +22 -12
  137. package/docs/interfaces/FloorplanExtraObject3D.html +20 -10
  138. package/docs/interfaces/FloorplanFloorData.html +21 -11
  139. package/docs/interfaces/FloorplanImagePosition.html +19 -9
  140. package/docs/interfaces/FloorplanObserver.html +21 -11
  141. package/docs/interfaces/FloorplanOutlineItem.html +21 -11
  142. package/docs/interfaces/FloorplanPosition.html +19 -9
  143. package/docs/interfaces/FloorplanRoomItem.html +26 -16
  144. package/docs/interfaces/FloorplanRoomLabelItem.html +19 -9
  145. package/docs/interfaces/FloorplanServerBounding.html +20 -10
  146. package/docs/interfaces/FloorplanServerComputedData.html +22 -12
  147. package/docs/interfaces/FloorplanServerData.html +19 -9
  148. package/docs/interfaces/FloorplanServerDoorItem.html +22 -12
  149. package/docs/interfaces/FloorplanServerDoorPosition.html +20 -10
  150. package/docs/interfaces/FloorplanServerEntrance.html +23 -13
  151. package/docs/interfaces/FloorplanServerFloorData.html +21 -11
  152. package/docs/interfaces/FloorplanServerImagePosition.html +19 -9
  153. package/docs/interfaces/FloorplanServerObserver.html +21 -11
  154. package/docs/interfaces/FloorplanServerOutlineItem.html +21 -11
  155. package/docs/interfaces/FloorplanServerPosition.html +19 -9
  156. package/docs/interfaces/FloorplanServerRoomItem.html +27 -17
  157. package/docs/interfaces/FloorplanServerRoomLabelItem.html +19 -9
  158. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +20 -10
  159. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +21 -11
  160. package/docs/interfaces/GuideLinePluginType.EventMap.html +24 -14
  161. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +19 -9
  162. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +17 -7
  163. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +26 -16
  164. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +17 -7
  165. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +19 -9
  166. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -22
  167. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +18 -8
  168. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +33 -23
  169. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +16 -6
  170. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +17 -7
  171. package/docs/interfaces/GuideLinePluginType.PluginState.html +19 -9
  172. package/docs/interfaces/GuideLinePluginType.Route.html +22 -12
  173. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +20 -10
  174. package/docs/interfaces/HelperOffset.html +20 -10
  175. package/docs/interfaces/ImagePlaneGroup.html +18 -8
  176. package/docs/interfaces/ItemLabelPluginData.html +18 -8
  177. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +23 -13
  178. package/docs/interfaces/ItemLabelPluginParametersType.html +21 -11
  179. package/docs/interfaces/MinMax.html +19 -9
  180. package/docs/interfaces/ModelChassisCompassPluginData.html +19 -9
  181. package/docs/interfaces/ModelChassisCompassPluginExportType.html +20 -10
  182. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +19 -9
  183. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +20 -10
  184. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +20 -10
  185. package/docs/interfaces/ModelItemLabelPluginData.html +18 -8
  186. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +23 -13
  187. package/docs/interfaces/ModelItemLabelPluginParametersType.html +19 -9
  188. package/docs/interfaces/ModelMakerPluginType.EventMap.html +556 -0
  189. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +349 -0
  190. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +391 -0
  191. package/docs/interfaces/ModelMakerPluginType.ServerData.html +332 -0
  192. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +401 -0
  193. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +381 -0
  194. package/docs/interfaces/ModelMakerPluginType.State.html +364 -0
  195. package/docs/interfaces/ModelRoomLabelPluginData.html +18 -8
  196. package/docs/interfaces/ModelTVVideoPluginData.html +21 -11
  197. package/docs/interfaces/ModelTVVideoPluginExportType.html +20 -10
  198. package/docs/interfaces/ModelTVVideoPluginParameterType.html +18 -8
  199. package/docs/interfaces/ModelViewPluginExportType.html +23 -13
  200. package/docs/interfaces/Object3DHelperState.html +20 -10
  201. package/docs/interfaces/ObjectHelperControllers.html +22 -12
  202. package/docs/interfaces/PaintBrushAction.html +24 -14
  203. package/docs/interfaces/PaintBrushConfigs.html +24 -14
  204. package/docs/interfaces/PaintBrushState.html +22 -12
  205. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -12
  206. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +17 -7
  207. package/docs/interfaces/PanoMeasureParameterType.html +28 -18
  208. package/docs/interfaces/PanoMeasurePluginLineJson.html +20 -10
  209. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +19 -9
  210. package/docs/interfaces/PanoMeasurePluginPointJson.html +19 -9
  211. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +30 -10
  212. package/docs/interfaces/PanoRulerPluginExportType.html +22 -12
  213. package/docs/interfaces/PanoRulerPluginOptions.html +19 -9
  214. package/docs/interfaces/PanoRulerPluginParameterType.html +20 -10
  215. package/docs/interfaces/PanoRulerProPluginExportType.html +21 -11
  216. package/docs/interfaces/PanoRulerProPluginOptions.html +19 -9
  217. package/docs/interfaces/PanoRulerProPluginParameterType.html +19 -9
  218. package/docs/interfaces/PanoRulerProPluginState.html +20 -10
  219. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +17 -7
  220. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +17 -7
  221. package/docs/interfaces/PanoSpatialTagPluginData.html +23 -13
  222. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +22 -12
  223. package/docs/interfaces/PanoSpatialTagPluginExportType.html +25 -15
  224. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +22 -12
  225. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +25 -15
  226. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +23 -13
  227. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +22 -12
  228. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +18 -8
  229. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +20 -10
  230. package/docs/interfaces/PanoVideoPluginType.PluginData.html +18 -8
  231. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +78 -18
  232. package/docs/interfaces/PanoVideoPluginType.PluginState.html +18 -8
  233. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +20 -10
  234. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +22 -12
  235. package/docs/interfaces/Point.html +20 -10
  236. package/docs/interfaces/Room.html +21 -11
  237. package/docs/interfaces/RoomInfo.html +19 -9
  238. package/docs/interfaces/RoomLabel.html +26 -16
  239. package/docs/interfaces/RoomRules.html +17 -7
  240. package/docs/interfaces/Rooms.html +17 -7
  241. package/docs/interfaces/Scissor.html +21 -11
  242. package/docs/interfaces/State.html +20 -10
  243. package/docs/interfaces/TagCacheInterface.html +24 -14
  244. package/docs/interfaces/TagConfig.html +65 -49
  245. package/docs/interfaces/TagGLTFObjectGroup.html +18 -8
  246. package/docs/interfaces/TagIconUrl.html +24 -14
  247. package/docs/interfaces/TagObjectGroup.html +18 -8
  248. package/docs/interfaces/TagStyle.html +18 -8
  249. package/docs/interfaces/Tags.html +61 -437
  250. package/docs/interfaces/TemporaryState.html +18 -8
  251. package/docs/interfaces/Util.BlinkAnimeOptions.html +380 -0
  252. package/docs/interfaces/Util.MagnifierParameter.html +43 -24
  253. package/docs/interfaces/Util.MouseGroupParameter.html +25 -11
  254. package/docs/interfaces/Util.PointIntersection.html +33 -12
  255. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +387 -0
  256. package/docs/modules/AreaMakerPluginType.html +16 -6
  257. package/docs/modules/CruisePluginTypes.html +18 -6
  258. package/docs/modules/CurrentPanoImagePluginType.html +17 -7
  259. package/docs/modules/GuideLineItem.html +17 -7
  260. package/docs/modules/GuideLineModeItem.html +17 -7
  261. package/docs/modules/GuideLinePluginType.html +16 -6
  262. package/docs/modules/ModelMakerPluginType.html +339 -0
  263. package/docs/modules/PanoVideoPluginType.html +17 -7
  264. package/docs/modules/SculptData.html +318 -0
  265. package/docs/modules/Util.html +26 -8
  266. package/docs/modules.html +34 -11
  267. package/docs/types/AddObject3DHelperConfig.html +315 -0
  268. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +16 -6
  269. package/docs/types/AreaMakerPluginType.ItemRenderer.html +16 -6
  270. package/docs/types/AreaMakerPluginType.PluginData.html +16 -6
  271. package/docs/types/AreaMakerPluginType.ServerData.html +16 -6
  272. package/docs/types/ArrayPosition.html +17 -7
  273. package/docs/types/AudioAppearance.html +17 -7
  274. package/docs/types/CSS3DRenderExportType.html +17 -7
  275. package/docs/types/CSS3DRenderPluginExportType.html +17 -7
  276. package/docs/types/CSS3DRenderPluginParameterType.html +17 -7
  277. package/docs/types/ClassFunctionParameters.html +17 -7
  278. package/docs/types/Color.html +17 -7
  279. package/docs/types/ContentTypeConfigKey.html +17 -7
  280. package/docs/types/ContentTypeConfigKeySplit.html +18 -8
  281. package/docs/types/ContentTypeMap.html +17 -7
  282. package/docs/types/Create3DDomContainerReturnType.html +17 -7
  283. package/docs/types/Create3DElementReturnType.html +17 -7
  284. package/docs/types/CruisePluginExportType.html +17 -7
  285. package/docs/types/CruisePluginTypes.CruiseData.html +17 -6
  286. package/docs/types/CruisePluginTypes.MoveEffect.html +17 -6
  287. package/docs/types/CurrentPanoImagePluginExportType.html +17 -7
  288. package/docs/types/DeprecatedMediaPlaneProperty.html +17 -7
  289. package/docs/types/DeprecatedTagProperty.html +17 -7
  290. package/docs/types/Direction-1.html +17 -7
  291. package/docs/types/Direction4.html +17 -7
  292. package/docs/types/ElementRenderer.html +17 -7
  293. package/docs/types/FloorplanRuleLabels.html +17 -7
  294. package/docs/types/FloorplanServerRuleLabels.html +17 -7
  295. package/docs/types/GuideLinePluginExportType.html +17 -7
  296. package/docs/types/GuideLinePluginType.GuideLineItem.html +18 -8
  297. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +16 -6
  298. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +16 -6
  299. package/docs/types/GuideLinePluginType.GuideLineStyle.html +16 -6
  300. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +16 -6
  301. package/docs/types/GuideLinePluginType.PathItem.html +16 -6
  302. package/docs/types/GuideLinePluginType.PluginData.html +16 -6
  303. package/docs/types/HelperEventMap.html +17 -7
  304. package/docs/types/InternalHelperEventMap.html +29 -11
  305. package/docs/types/LoadTagConfig.html +17 -7
  306. package/docs/types/MapviewFloorplanPluginParameterType.html +17 -7
  307. package/docs/types/MapviewFloorplanPluginReturnType.html +17 -7
  308. package/docs/types/MediaData.html +20 -10
  309. package/docs/types/MediaStore.html +17 -7
  310. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +17 -7
  311. package/docs/types/ModelFloorplanPluginParameterType.html +17 -7
  312. package/docs/types/ModelFloorplanPluginReturnType.html +17 -7
  313. package/docs/types/ModelId.html +17 -7
  314. package/docs/types/ModelMakerPluginType.ElementRenderer.html +329 -0
  315. package/docs/types/ModelMakerPluginType.ItemType.html +308 -0
  316. package/docs/types/ModelRoomLabelPluginParameters.html +17 -7
  317. package/docs/types/ModelRoomLabelPluginReturnType.html +17 -7
  318. package/docs/types/MoveArgs.html +17 -7
  319. package/docs/types/MoveOpts.html +17 -7
  320. package/docs/types/Object3DHelperEventMap.html +17 -7
  321. package/docs/types/ObjectFit.html +17 -7
  322. package/docs/types/PaintBrushEventMap.html +17 -7
  323. package/docs/types/PanoCompassPluginData.html +17 -7
  324. package/docs/types/PanoCompassPluginExportType.html +17 -7
  325. package/docs/types/PanoCompassPluginParameterType.html +17 -7
  326. package/docs/types/PanoFloorplanRadarPluginParameterType.html +17 -7
  327. package/docs/types/PanoFloorplanRadarPluginReturnType.html +17 -7
  328. package/docs/types/PanoIndex.html +17 -7
  329. package/docs/types/PanoMeasurePluginEvent.html +17 -7
  330. package/docs/types/PanoMeasureReturnType.html +17 -7
  331. package/docs/types/PanoSpatialTagPluginId.html +17 -7
  332. package/docs/types/PanoTagPluginExportInterface.html +17 -7
  333. package/docs/types/PanoTagPluginParamsInterface.html +17 -7
  334. package/docs/types/PanoVideoPluginParameterType.html +17 -7
  335. package/docs/types/PanoVideoPluginReturnType.html +17 -7
  336. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +22 -12
  337. package/docs/types/PipelinePluginParameterType.html +17 -7
  338. package/docs/types/PipelinePluginReturnType.html +17 -7
  339. package/docs/types/PlaneTag.html +17 -7
  340. package/docs/types/Point2DTag.html +17 -7
  341. package/docs/types/Point3DTag.html +17 -7
  342. package/docs/types/PointTag.html +17 -7
  343. package/docs/types/PointTagInstance.html +17 -7
  344. package/docs/types/Position.html +17 -7
  345. package/docs/types/{AudioTagTypeConfigKey.html → PositionFrom.html} +28 -10
  346. package/docs/types/RotateArgs.html +17 -7
  347. package/docs/types/RotateOpts.html +17 -7
  348. package/docs/types/RuleLabelsKey.html +17 -7
  349. package/docs/types/RuleLabelsValue.html +17 -7
  350. package/docs/types/ScaleCallback.html +314 -0
  351. package/docs/types/ScalePosition.html +303 -0
  352. package/docs/types/SculptData.BoxData.html +306 -0
  353. package/docs/types/SculptData.CircleData.html +306 -0
  354. package/docs/types/SculptData.CylinderData.html +306 -0
  355. package/docs/types/SculptData.PointData.html +306 -0
  356. package/docs/types/SculptData.PolygonData.html +306 -0
  357. package/docs/types/SculptData.PolylineData.html +306 -0
  358. package/docs/types/SculptData.PrismData.html +306 -0
  359. package/docs/types/SculptData.RectangleData.html +306 -0
  360. package/docs/types/StickType.html +17 -7
  361. package/docs/types/Tag.html +35 -13
  362. package/docs/types/Tag2D.html +17 -7
  363. package/docs/types/Tag3D.html +17 -7
  364. package/docs/types/TagConfigByKey.html +18 -8
  365. package/docs/types/TagContentType.html +17 -7
  366. package/docs/types/TagContentTypeMapping.html +17 -7
  367. package/docs/types/TagDimensionType.html +17 -7
  368. package/docs/types/TagElement.html +17 -7
  369. package/docs/types/TagEvents.html +38 -12
  370. package/docs/types/TagGLTFObject.html +17 -7
  371. package/docs/types/TagHooks.html +17 -7
  372. package/docs/types/TagId.html +17 -7
  373. package/docs/types/TagInstance.html +44 -8
  374. package/docs/types/TagPointType.html +17 -7
  375. package/docs/types/TagRendererMap.html +17 -7
  376. package/docs/types/TopviewFloorplanPluginParameterType.html +17 -7
  377. package/docs/types/TopviewFloorplanPluginReturnType.html +17 -7
  378. package/docs/types/WorkCode.html +17 -7
  379. package/docs/variables/FLOOR_TYPE_MAP.html +17 -7
  380. package/docs/variables/PLUGIN.html +17 -7
  381. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +17 -7
  382. package/docs/variables/ROOM_TYPE_MAP.html +17 -7
  383. package/docs/variables/defaultGlobalConfig.html +17 -7
  384. package/docs/variables/itemLabelPluginServerParams.html +17 -7
  385. package/docs/variables/modelItemLabelPluginServerParams.html +17 -7
  386. package/docs/variables/modelRoomLabelPluginServerParams.html +17 -7
  387. package/libs/ModelMakerPlugin/Controller.d.ts +1 -1
  388. package/libs/ModelMakerPlugin/Controller.js +88 -86
  389. package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
  390. package/libs/ModelMakerPlugin/item/baseItem.js +23 -26
  391. package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
  392. package/libs/PanoMeasurePlugin/Controller/ViewController.js +49 -35
  393. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
  394. package/libs/PanoMeasurePlugin/Model/polyline.js +37 -35
  395. package/libs/PanoMeasurePlugin/typings/data.d.ts +3 -0
  396. package/libs/PanoRulerPlugin/Plugin.js +15 -15
  397. package/libs/PanoVideoPlugin/Controller.d.ts +3 -1
  398. package/libs/PanoVideoPlugin/Controller.js +41 -41
  399. package/libs/PanoVideoPlugin/typings.d.ts +2 -2
  400. package/libs/base/BasePlugin.js +3 -3
  401. package/libs/shared-utils/logger.js +1 -1
  402. package/libs/shared-utils/tag.d.ts +4 -4
  403. package/libs/shared-utils/tag.js +26 -30
  404. package/package.json +2 -2
@@ -1,8 +1,11 @@
1
+ import type { Mode as FiveMode } from '@realsee/five';
1
2
  export interface PolylineJson {
2
3
  id: string;
3
4
  lines: LineJson[];
4
5
  /** 当前折线在哪个点位上可见,字段不存在时,不做限制 */
5
6
  visiblePanoIndexes?: number[];
7
+ /** 当前折线在哪些 FiveMode 上可见,字段不存在时,不做限制 */
8
+ visibleFiveMode?: FiveMode[];
6
9
  }
7
10
  export interface LineJson {
8
11
  id: string;
@@ -70,10 +70,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
70
70
  `, o = document.createElement("div");
71
71
  return o.setAttribute("class", "PanoRulerPlugin-rule"), o.setAttribute("data-name", r), o.setAttribute("style", "display: none"), o.innerHTML = c, o;
72
72
  }, h = document.createElement("div");
73
- h.setAttribute(
74
- "style",
75
- "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
76
- );
73
+ h.setAttribute("style", "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
77
74
  const S = document.createElement("div");
78
75
  S.innerHTML = ce, h.appendChild(S);
79
76
  const l = {}, u = (r, a) => {
@@ -129,9 +126,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
129
126
  const o = r || n.roomInfo, i = a || n.roomRules;
130
127
  if (!o || !i)
131
128
  throw new Error("标尺数据依赖不齐全!");
132
- return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise(
133
- (y) => t.once("modelLoaded", () => y(u(o, i)))
134
- );
129
+ return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise((y) => t.once("modelLoaded", () => y(u(o, i))));
135
130
  });
136
131
  n.roomInfo && n.roomRules && x(n.roomInfo, n.roomRules);
137
132
  const v = (r, a, c, o) => {
@@ -218,24 +213,29 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
218
213
  continue;
219
214
  }
220
215
  const K = w.distanceTo(_);
221
- if (_.clone().sub(_.clone().sub(w).divide(new L(2, 2, 2))).distanceTo(y) / K > 8) {
216
+ if (_.clone().sub(
217
+ _.clone().sub(w).divide(new L(2, 2, 2))
218
+ ).distanceTo(y) / K > 8) {
222
219
  g.style.display = "none";
223
220
  continue;
224
221
  }
225
222
  const O = w.clone().project(c), R = (O.x + 1) / 2 * m, F = (-O.y + 1) / 2 * d, V = _.clone().project(c), N = (V.x + 1) / 2 * m, D = (-V.y + 1) / 2 * d, E = Math.sqrt(Math.pow(N - R, 2) + Math.pow(D - F, 2));
226
223
  let H = E, z = 50;
227
- const M = v({ x: ~~R, y: ~~F }, {
228
- x: ~~N,
229
- y: ~~D
230
- }, m, d);
224
+ const M = v(
225
+ { x: ~~R, y: ~~F },
226
+ {
227
+ x: ~~N,
228
+ y: ~~D
229
+ },
230
+ m,
231
+ d
232
+ );
231
233
  if (M && M.length === 1 && (f === w ? (H = Math.sqrt(Math.pow(M[0].x - R, 2) + Math.pow(M[0].y - F, 2)), z = H / E * 50) : f === _ && (H = Math.sqrt(Math.pow(M[0].x - N, 2) + Math.pow(M[0].y - D, 2)), z = 100 - H / E * 50)), M && M.length === 2) {
232
234
  const G = {
233
235
  x: (M[0].x + M[1].x) / 2,
234
236
  y: (M[0].y + M[1].y) / 2
235
237
  };
236
- z = Math.sqrt(
237
- Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)
238
- ) / E * 100;
238
+ z = Math.sqrt(Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)) / E * 100;
239
239
  }
240
240
  const te = (Math.PI / 2 - Math.atan2(N - R, F - D)) / Math.PI * 180, W = T.querySelector(".PanoRulerPlugin-rule-label"), U = W.children[0].clientWidth;
241
241
  U >= E || U / 2 >= z / 100 * E || U / 2 >= (1 - z / 100) * E ? T.style.display = "none" : (T.style.display = "block", T.style.width = E + "px", T.style.left = R + "px", T.style.top = F + "px", T.style.transform = `rotate(${-te}deg)`, W.style.left = `${z}%`);
@@ -1,5 +1,6 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  import type { LoadParams, PluginEventMap, PluginState, PluginData, VideoItem } from './typings';
3
+ import { VideoMeshController } from './VideoMeshController';
3
4
  import * as BasePlugin from '../base/BasePlugin';
4
5
  export declare class PanoVideoPluginController extends BasePlugin.Controller<PluginState, PluginEventMap> {
5
6
  /** 插件 State */
@@ -8,8 +9,9 @@ export declare class PanoVideoPluginController extends BasePlugin.Controller<Plu
8
9
  };
9
10
  /** 插件是否已被销毁 */
10
11
  get disposed(): boolean;
12
+ controllerMap: Map<string, VideoMeshController>;
13
+ data?: PluginData;
11
14
  private enabled;
12
- private controllerMap;
13
15
  private _disposed;
14
16
  constructor(five: Five);
15
17
  /** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
@@ -2,15 +2,15 @@ var f = Object.defineProperty, m = Object.defineProperties;
2
2
  var b = Object.getOwnPropertyDescriptors;
3
3
  var p = Object.getOwnPropertySymbols;
4
4
  var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
- var l = (o, t, r) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r, a = (o, t) => {
6
- for (var r in t || (t = {}))
7
- M.call(t, r) && l(o, r, t[r]);
5
+ var l = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, a = (o, t) => {
6
+ for (var e in t || (t = {}))
7
+ M.call(t, e) && l(o, e, t[e]);
8
8
  if (p)
9
- for (var r of p(t))
10
- W.call(t, r) && l(o, r, t[r]);
9
+ for (var e of p(t))
10
+ W.call(t, e) && l(o, e, t[e]);
11
11
  return o;
12
12
  }, d = (o, t) => m(o, b(t));
13
- var s = (o, t, r) => (l(o, typeof t != "symbol" ? t + "" : t, r), r);
13
+ var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  import { VideoMeshController as c } from "./VideoMeshController.js";
15
15
  import { Controller as _ } from "../base/BasePlugin.js";
16
16
  import "./utils/shader.js";
@@ -39,12 +39,12 @@ import "../shared-utils/animationFrame/index.js";
39
39
  import "./utils/index.js";
40
40
  import "../shared-utils/url/absoluteUrl.js";
41
41
  class T extends _ {
42
- constructor(r) {
43
- super(r);
44
- s(this, "enabled", !0);
42
+ constructor(e) {
43
+ super(e);
45
44
  s(this, "controllerMap", /* @__PURE__ */ new Map());
45
+ s(this, "data");
46
+ s(this, "enabled", !0);
46
47
  s(this, "_disposed", !1);
47
- this.five = r;
48
48
  }
49
49
  /** 插件 State */
50
50
  get state() {
@@ -57,11 +57,11 @@ class T extends _ {
57
57
  return this._disposed;
58
58
  }
59
59
  /** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
60
- load(r, e) {
60
+ load(e, r) {
61
61
  var i;
62
62
  if (this.disposed)
63
63
  return this.logWarning("插件已被销毁");
64
- typeof ((i = e == null ? void 0 : e.initialState) == null ? void 0 : i.enabled) != "undefined" && e.initialState.enabled !== this.enabled && (e.initialState.enabled ? this.enable() : this.disable()), r.list.forEach((n) => {
64
+ typeof ((i = r == null ? void 0 : r.initialState) == null ? void 0 : i.enabled) != "undefined" && r.initialState.enabled !== this.enabled && (r.initialState.enabled ? this.enable() : this.disable()), e.list.forEach((n) => {
65
65
  const u = n.pano_index, g = n.render_id;
66
66
  n.video_list.forEach((h) => {
67
67
  this.controllerMap.set(
@@ -73,41 +73,41 @@ class T extends _ {
73
73
  }))
74
74
  );
75
75
  });
76
- });
76
+ }), this.data = e, this.hooks.emit("dataLoaded", e);
77
77
  }
78
78
  /** 开启插件功能。 */
79
- enable(r) {
79
+ enable(e) {
80
80
  var i;
81
81
  if (this.disposed)
82
82
  return this.logWarning("插件已被销毁");
83
83
  if (this.enabled)
84
84
  return;
85
85
  this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
86
- const e = (i = r == null ? void 0 : r.userAction) != null ? i : !0;
87
- this.hooks.emit("enable", { userAction: e });
86
+ const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
87
+ this.hooks.emit("enable", { userAction: r });
88
88
  }
89
89
  /** 禁用插件功能。 */
90
- disable(r) {
90
+ disable(e) {
91
91
  var i;
92
92
  if (this.disposed)
93
93
  return this.logWarning("插件已被销毁");
94
94
  if (!this.enabled)
95
95
  return;
96
96
  this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
97
- const e = (i = r == null ? void 0 : r.userAction) != null ? i : !0;
98
- this.hooks.emit("disable", { userAction: e });
97
+ const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
98
+ this.hooks.emit("disable", { userAction: r });
99
99
  }
100
100
  /** 看向某个视频。
101
101
  * - 会自动切换到全景模式。
102
102
  * - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
103
103
  */
104
- lookAtVideoItemByRenderID(r) {
104
+ lookAtVideoItemByRenderID(e) {
105
105
  if (this.disposed)
106
106
  return this.logWarning("插件已被销毁");
107
- const e = this.controllerMap.get(r);
108
- if (!e)
109
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
110
- e.lookAtVideo();
107
+ const r = this.controllerMap.get(e);
108
+ if (!r)
109
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
110
+ r.lookAtVideo();
111
111
  }
112
112
  /**
113
113
  * 取消静音。
@@ -125,26 +125,26 @@ class T extends _ {
125
125
  * }}
126
126
  * ```
127
127
  */
128
- unmuteByRenderID(r) {
128
+ unmuteByRenderID(e) {
129
129
  if (this.disposed)
130
130
  return this.logWarning("插件已被销毁");
131
- const e = this.controllerMap.get(r);
132
- if (!e)
133
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
134
- e.unmute();
131
+ const r = this.controllerMap.get(e);
132
+ if (!r)
133
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
134
+ r.unmute();
135
135
  }
136
136
  /** 为一个点位添加视频(可以是多条)。 */
137
- add(r, e) {
137
+ add(e, r) {
138
138
  if (this.disposed)
139
139
  return this.logWarning("插件已被销毁");
140
- e.forEach((i) => {
140
+ r.forEach((i) => {
141
141
  if (this.controllerMap.get(i.render_id))
142
142
  return this.logWarning(`ID 为 ${i.render_id} 的点位视频已存在`);
143
143
  const n = i.render_id;
144
144
  this.controllerMap.set(
145
145
  i.render_id,
146
146
  new c(this.five, d(a({}, i), {
147
- panoIndex: r,
147
+ panoIndex: e,
148
148
  renderID: n,
149
149
  initialState: { enabled: this.enabled }
150
150
  }))
@@ -152,30 +152,30 @@ class T extends _ {
152
152
  });
153
153
  }
154
154
  /** 根据 VideoItem render_id 删除某个视频。 */
155
- removeByRenderID(r) {
155
+ removeByRenderID(e) {
156
156
  if (this.disposed)
157
157
  return this.logWarning("插件已被销毁");
158
- const e = this.controllerMap.get(r);
159
- if (!e)
160
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
161
- e.dispose(), this.controllerMap.delete(r);
158
+ const r = this.controllerMap.get(e);
159
+ if (!r)
160
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
161
+ r.dispose(), this.controllerMap.delete(e);
162
162
  }
163
163
  /** 清空现有数据 */
164
164
  clear() {
165
165
  if (this.disposed)
166
166
  return this.logWarning("插件已被销毁");
167
- Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
167
+ Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
168
168
  }
169
169
  /** 销毁插件 */
170
170
  dispose() {
171
171
  if (this.disposed)
172
172
  return this.logWarning("插件已被销毁");
173
- this._disposed = !0, Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
173
+ this._disposed = !0, Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
174
174
  }
175
175
  /** 控制台打印警告 */
176
176
  // TODO: 全局函数 curry 化
177
- logWarning(r) {
178
- console.warn("⛔ ==> [PanoVideoPluginController]:", r);
177
+ logWarning(e) {
178
+ console.warn("⛔ ==> [PanoVideoPluginController]:", e);
179
179
  }
180
180
  }
181
181
  export {
@@ -1,4 +1,4 @@
1
- import type * as BasePlugin from '../base/BasePlugin';
1
+ import type * as BasePlugin from '../base/BasePluginWithData';
2
2
  /** 单个视频元素 */
3
3
  export interface VideoItem {
4
4
  /** client render ID
@@ -52,7 +52,7 @@ export interface PluginState {
52
52
  export interface PluginData {
53
53
  list: PanoVideoItem[];
54
54
  }
55
- export interface PluginEventMap extends BasePlugin.EventMap<PluginState> {
55
+ export interface PluginEventMap extends BasePlugin.EventMap<PluginState, PluginData> {
56
56
  /** 点位视频模型开启 */
57
57
  enable: (params: {
58
58
  userAction: boolean;
@@ -10,12 +10,12 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
10
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
11
11
  import "animejs";
12
12
  import { absoluteUrl as l } from "../shared-utils/url/absoluteUrl.js";
13
- let v = class {
13
+ let C = class {
14
14
  constructor(t, r) {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- i(this, "VERSION", "3.35.0-dev.0");
18
+ i(this, "VERSION", "3.35.0");
19
19
  i(this, "five");
20
20
  /**
21
21
  * @description: 插件事件钩子
@@ -38,5 +38,5 @@ let v = class {
38
38
  }
39
39
  };
40
40
  export {
41
- v as Controller
41
+ C as Controller
42
42
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.35.0-dev.0",
3
+ "%c %c@realsee/dnalogel %cv3.35.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",
@@ -4,13 +4,13 @@ export declare class LightTag {
4
4
  container: HTMLDivElement;
5
5
  visible: boolean;
6
6
  enabled: boolean;
7
+ wrapper: HTMLElement;
7
8
  private five;
8
9
  private position;
9
- private wrapper;
10
10
  private disposer;
11
- private wrapperStyle;
11
+ private config;
12
12
  constructor(five: Five, position: AnyPosition, config?: {
13
- wrapperStyle?: Partial<CSSStyleDeclaration>;
13
+ wrapper?: HTMLElement;
14
14
  });
15
15
  show(): void;
16
16
  hide(params?: {
@@ -22,5 +22,5 @@ export declare class LightTag {
22
22
  private onFiveEveryReady;
23
23
  }
24
24
  export declare function tag(five: Five, position: AnyPosition, config?: {
25
- wrapperStyle?: Partial<CSSStyleDeclaration>;
25
+ wrapper?: HTMLElement;
26
26
  }): LightTag;
@@ -1,27 +1,27 @@
1
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";
2
+ var p = (s, e, t) => e in s ? l(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { anyPositionToVector3 as f } from "./positionToVector3.js";
5
5
  import * as d from "three";
6
6
  import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
7
- const h = "LightTagContainer_shgjakdhwakjdhsja";
8
- class f {
7
+ const c = "LightTagContainer_shgjakdhwakjdhsja";
8
+ class v {
9
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", () => {
10
+ i(this, "container");
11
+ i(this, "visible", !1);
12
+ i(this, "enabled", !1);
13
+ i(this, "wrapper");
14
+ i(this, "five");
15
+ i(this, "position");
16
+ i(this, "disposer");
17
+ i(this, "config");
18
+ i(this, "onCameraUpdate", () => {
19
19
  if (this.visible === !1)
20
20
  return;
21
21
  const e = y(this.five.camera, this.position);
22
22
  e ? (this.container.style.left = e.leftPercent + "%", this.container.style.top = e.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
23
23
  });
24
- s(this, "onFiveEveryReady", () => {
24
+ i(this, "onFiveEveryReady", () => {
25
25
  var e;
26
26
  if (this.visible && this.five.state.mode !== "Panorama") {
27
27
  const t = new d.Raycaster();
@@ -30,11 +30,10 @@ class f {
30
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");
31
31
  }
32
32
  });
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();
33
+ this.five = e, this.position = f(t).clone(), this.container = (() => {
34
+ const o = document.createElement("div");
35
+ return o.style.width = "0", o.style.height = "0", o.style.position = "absolute", o;
36
+ })(), this.config = n, this.enable(), this.show();
38
37
  }
39
38
  show() {
40
39
  this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
@@ -43,16 +42,13 @@ class f {
43
42
  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";
44
43
  }
45
44
  enable() {
46
- var n;
45
+ var n, o, r, h;
47
46
  if (this.enabled)
48
47
  return;
49
- this.enabled = !0, this.wrapper = (n = document.getElementById(h)) != null ? n : (() => {
50
- var a;
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;
55
- })(), this.wrapper.appendChild(this.container);
48
+ this.enabled = !0, this.wrapper || (this.wrapper = (o = (n = this.config.wrapper) != null ? n : document.getElementById(c)) != null ? o : (() => {
49
+ const a = document.createElement("div");
50
+ return a.id = c, a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a;
51
+ })(), (r = this.five.getElement()) != null && r.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
56
52
  let e = !1;
57
53
  const t = () => {
58
54
  e || (e = !0, this.five.ready().then(() => {
@@ -68,8 +64,8 @@ class f {
68
64
  this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (e = this.disposer) == null || e.call(this));
69
65
  }
70
66
  }
71
- function w(o, e, t) {
72
- return new f(o, e, t);
67
+ function w(s, e, t) {
68
+ return new v(s, e, t);
73
69
  }
74
70
  export {
75
71
  w as tag
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.35.0-dev.0",
3
+ "version": "3.35.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
25
25
  "build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
26
26
  "docs": "typedoc --options ./typedoc.json",
27
- "prepublishOnly": "run-p build",
27
+ "prepublishOnly": "run-p build docs",
28
28
  "postpublish": "cnpm sync @realsee/dnalogel"
29
29
  },
30
30
  "files": [