@realsee/dnalogel 3.29.9 → 3.30.1

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 (396) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/ModelMakerPlugin/index.d.ts +2 -0
  3. package/dist/ModelMakerPlugin/typings/data.d.ts +17 -4
  4. package/dist/ModelMakerPlugin/typings/index.d.ts +0 -11
  5. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  6. package/dist/index.cjs.js +5 -5
  7. package/dist/index.js +20 -14
  8. package/dist/index.umd.js +5 -5
  9. package/dist/shared-utils/three/getIntersect.d.ts +2 -0
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +4 -3
  12. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +4 -3
  13. package/docs/classes/CSS3DRender.html +4 -3
  14. package/docs/classes/GuideLineItem.GuideLineItem.html +4 -3
  15. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +4 -3
  16. package/docs/classes/{ModelMakerPluginType.ModelMakerController.html → ModelMakerPluginInstance.html} +43 -56
  17. package/docs/classes/ModelRoomLabelController.html +4 -3
  18. package/docs/classes/MoveController.html +4 -3
  19. package/docs/classes/Object3DHelperController.html +4 -3
  20. package/docs/classes/PaintBrush.html +4 -3
  21. package/docs/classes/PanoMeasurePluginLine.html +4 -3
  22. package/docs/classes/PanoMeasurePluginModel.html +4 -3
  23. package/docs/classes/PanoMeasurePluginPoint.html +4 -3
  24. package/docs/classes/PanoMeasurePluginPolyline.html +4 -3
  25. package/docs/classes/PanoTagPluginController.html +4 -3
  26. package/docs/classes/Sculpt.html +4 -3
  27. package/docs/classes/Util.BetterTween.html +4 -3
  28. package/docs/classes/Util.Interval.html +4 -3
  29. package/docs/classes/Util.LineSegments.html +4 -3
  30. package/docs/classes/Util.Magnifier.html +12 -11
  31. package/docs/classes/Util.Object3D.html +4 -3
  32. package/docs/classes/Util.PointDomHelper.html +4 -3
  33. package/docs/classes/Util.PointHelper.html +4 -3
  34. package/docs/classes/Util.PointSelectorHelper.html +4 -3
  35. package/docs/classes/Util.Rectangle.html +4 -3
  36. package/docs/classes/WalkController.html +4 -3
  37. package/docs/enums/CameraMovementEffect.html +4 -3
  38. package/docs/enums/ContentType.html +4 -3
  39. package/docs/enums/DIRECTION.html +4 -3
  40. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -3
  41. package/docs/enums/DimensionType.html +4 -3
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -3
  43. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -3
  44. package/docs/enums/PaintBrushTypeEnum.html +4 -3
  45. package/docs/enums/PointType.html +4 -3
  46. package/docs/enums/Rotation.html +4 -3
  47. package/docs/functions/AreaMakerPlugin.html +4 -3
  48. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  49. package/docs/functions/CameraMovementPlugin.html +5 -4
  50. package/docs/functions/CruisePlugin.html +5 -4
  51. package/docs/functions/CurrentPanoImagePlugin.html +5 -4
  52. package/docs/functions/GuideLinePlugin.html +4 -3
  53. package/docs/functions/ItemLabelPlugin.html +5 -4
  54. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  55. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  56. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  57. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  58. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  59. package/docs/functions/ModelMakerPlugin.html +6 -5
  60. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  61. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  62. package/docs/functions/ModelViewPlugin.html +5 -4
  63. package/docs/functions/MovePlugin.html +5 -4
  64. package/docs/functions/Object3DHelperPlugin.html +5 -4
  65. package/docs/functions/PanoCompassPlugin.html +5 -4
  66. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  67. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  68. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  69. package/docs/functions/PanoMeasurePlugin.html +5 -4
  70. package/docs/functions/PanoRulerPlugin.html +5 -4
  71. package/docs/functions/PanoRulerProPlugin.html +5 -4
  72. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  73. package/docs/functions/PanoTagPlugin.html +5 -4
  74. package/docs/functions/PanoVideoPlugin.html +5 -4
  75. package/docs/functions/PipelinePlugin.html +5 -4
  76. package/docs/functions/SculptPlugin.html +4 -3
  77. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  78. package/docs/functions/Util.absoluteUrl.html +4 -3
  79. package/docs/functions/Util.blink.html +4 -3
  80. package/docs/functions/Util.checkFiveModelLoaded.html +4 -3
  81. package/docs/functions/Util.equal.html +4 -3
  82. package/docs/functions/Util.getCoordsFromClient.html +4 -3
  83. package/docs/functions/Util.getCoordsFromElement.html +4 -3
  84. package/docs/functions/Util.getFrameTime.html +4 -3
  85. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -3
  86. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -3
  87. package/docs/functions/Util.isAbsoluteURL.html +4 -3
  88. package/docs/functions/Util.isModelLike.html +4 -3
  89. package/docs/functions/Util.isNil.html +4 -3
  90. package/docs/functions/Util.isPanoramaLike.html +4 -3
  91. package/docs/functions/Util.nextFrame.html +4 -3
  92. package/docs/functions/Util.notNil.html +4 -3
  93. package/docs/functions/Util.reblink.html +4 -3
  94. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -3
  95. package/docs/functions/Util.tweenProgress.html +4 -3
  96. package/docs/functions/Util.uuid.html +4 -3
  97. package/docs/functions/pluginFlag.html +4 -3
  98. package/docs/index.html +5 -4
  99. package/docs/interfaces/AddTagConfig.html +4 -3
  100. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -3
  101. package/docs/interfaces/AreaMakerPluginType.Config.html +4 -3
  102. package/docs/interfaces/AreaMakerPluginType.EventMap.html +4 -3
  103. package/docs/interfaces/AreaMakerPluginType.Params.html +4 -3
  104. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -3
  105. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +4 -3
  106. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +4 -3
  107. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +4 -3
  108. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +4 -3
  109. package/docs/interfaces/AreaMakerPluginType.State.html +4 -3
  110. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -3
  111. package/docs/interfaces/CSS3DRenderPluginState.html +4 -3
  112. package/docs/interfaces/CameraMovementPluginExportType.html +4 -3
  113. package/docs/interfaces/ContentTypeMapInterface.html +4 -3
  114. package/docs/interfaces/CruisePluginTypes.Config.html +4 -3
  115. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +4 -3
  116. package/docs/interfaces/CruisePluginTypes.EventMap.html +4 -3
  117. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +4 -3
  118. package/docs/interfaces/CruisePluginTypes.MoveAction.html +6 -5
  119. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +6 -5
  120. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +6 -5
  121. package/docs/interfaces/CruisePluginTypes.PluginData.html +4 -3
  122. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +4 -3
  123. package/docs/interfaces/CruisePluginTypes.PluginState.html +6 -5
  124. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +4 -3
  125. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +4 -3
  126. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -3
  127. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +4 -3
  128. package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -3
  129. package/docs/interfaces/EventMap.html +4 -3
  130. package/docs/interfaces/FloorplanBounding.html +4 -3
  131. package/docs/interfaces/FloorplanData.html +4 -3
  132. package/docs/interfaces/FloorplanEntrance.html +4 -3
  133. package/docs/interfaces/FloorplanExtraObject.html +4 -3
  134. package/docs/interfaces/FloorplanExtraObject3D.html +4 -3
  135. package/docs/interfaces/FloorplanFloorData.html +4 -3
  136. package/docs/interfaces/FloorplanImagePosition.html +4 -3
  137. package/docs/interfaces/FloorplanObserver.html +4 -3
  138. package/docs/interfaces/FloorplanOutlineItem.html +4 -3
  139. package/docs/interfaces/FloorplanPosition.html +4 -3
  140. package/docs/interfaces/FloorplanRoomItem.html +4 -3
  141. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -3
  142. package/docs/interfaces/FloorplanServerBounding.html +4 -3
  143. package/docs/interfaces/FloorplanServerComputedData.html +4 -3
  144. package/docs/interfaces/FloorplanServerData.html +4 -3
  145. package/docs/interfaces/FloorplanServerDoorItem.html +4 -3
  146. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -3
  147. package/docs/interfaces/FloorplanServerEntrance.html +4 -3
  148. package/docs/interfaces/FloorplanServerFloorData.html +4 -3
  149. package/docs/interfaces/FloorplanServerImagePosition.html +4 -3
  150. package/docs/interfaces/FloorplanServerObserver.html +4 -3
  151. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -3
  152. package/docs/interfaces/FloorplanServerPosition.html +4 -3
  153. package/docs/interfaces/FloorplanServerRoomItem.html +4 -3
  154. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -3
  155. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -3
  156. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +4 -3
  157. package/docs/interfaces/GuideLinePluginType.EventMap.html +4 -3
  158. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +4 -3
  159. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +4 -3
  160. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +4 -3
  161. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -3
  162. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +4 -3
  163. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +4 -3
  164. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +4 -3
  165. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +4 -3
  166. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -3
  167. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +4 -3
  168. package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -3
  169. package/docs/interfaces/GuideLinePluginType.Route.html +4 -3
  170. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -3
  171. package/docs/interfaces/HelperOffset.html +4 -3
  172. package/docs/interfaces/ImagePlaneGroup.html +4 -3
  173. package/docs/interfaces/ItemLabelPluginData.html +4 -3
  174. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -3
  175. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -3
  176. package/docs/interfaces/MinMax.html +4 -3
  177. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -3
  178. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -3
  179. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -3
  180. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -3
  181. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -3
  182. package/docs/interfaces/ModelItemLabelPluginData.html +4 -3
  183. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -3
  184. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -3
  185. package/docs/interfaces/ModelMakerPluginType.EventMap.html +13 -47
  186. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +16 -9
  187. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +29 -16
  188. package/docs/interfaces/ModelMakerPluginType.ServerData.html +6 -5
  189. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +48 -20
  190. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +32 -18
  191. package/docs/interfaces/ModelMakerPluginType.State.html +9 -8
  192. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -3
  193. package/docs/interfaces/ModelTVVideoPluginData.html +4 -3
  194. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -3
  195. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -3
  196. package/docs/interfaces/ModelViewPluginExportType.html +4 -3
  197. package/docs/interfaces/Object3DHelperState.html +4 -3
  198. package/docs/interfaces/ObjectHelperControllers.html +4 -3
  199. package/docs/interfaces/PaintBrushAction.html +4 -3
  200. package/docs/interfaces/PaintBrushConfigs.html +4 -3
  201. package/docs/interfaces/PaintBrushState.html +4 -3
  202. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -3
  203. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -3
  204. package/docs/interfaces/PanoMeasureParameterType.html +4 -3
  205. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -3
  206. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -3
  207. package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -3
  208. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -3
  209. package/docs/interfaces/PanoRulerPluginExportType.html +4 -3
  210. package/docs/interfaces/PanoRulerPluginOptions.html +4 -3
  211. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -3
  212. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -3
  213. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -3
  214. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -3
  215. package/docs/interfaces/PanoRulerProPluginState.html +4 -3
  216. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -3
  217. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -3
  218. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -3
  219. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -3
  220. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -3
  221. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -3
  222. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -3
  223. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -3
  224. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -3
  225. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -3
  226. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -3
  227. package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -3
  228. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -3
  229. package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -3
  230. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -3
  231. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -3
  232. package/docs/interfaces/Point.html +4 -3
  233. package/docs/interfaces/Room.html +4 -3
  234. package/docs/interfaces/RoomInfo.html +4 -3
  235. package/docs/interfaces/RoomLabel.html +4 -3
  236. package/docs/interfaces/RoomRules.html +4 -3
  237. package/docs/interfaces/Rooms.html +4 -3
  238. package/docs/interfaces/Scissor.html +4 -3
  239. package/docs/interfaces/State.html +4 -3
  240. package/docs/interfaces/TagCacheInterface.html +4 -3
  241. package/docs/interfaces/TagConfig.html +4 -3
  242. package/docs/interfaces/TagGLTFObjectGroup.html +4 -3
  243. package/docs/interfaces/TagIconUrl.html +4 -3
  244. package/docs/interfaces/TagObjectGroup.html +4 -3
  245. package/docs/interfaces/TagStyle.html +4 -3
  246. package/docs/interfaces/Tags.html +4 -3
  247. package/docs/interfaces/TemporaryState.html +4 -3
  248. package/docs/interfaces/Util.BlinkAnimeOptions.html +4 -3
  249. package/docs/interfaces/Util.MagnifierParameter.html +4 -3
  250. package/docs/interfaces/Util.MouseGroupParameter.html +4 -3
  251. package/docs/interfaces/Util.PointIntersection.html +4 -3
  252. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +4 -3
  253. package/docs/modules/AreaMakerPluginType.html +4 -3
  254. package/docs/modules/CruisePluginTypes.html +4 -3
  255. package/docs/modules/CurrentPanoImagePluginType.html +4 -3
  256. package/docs/modules/GuideLineItem.html +4 -3
  257. package/docs/modules/GuideLineModeItem.html +4 -3
  258. package/docs/modules/GuideLinePluginType.html +4 -3
  259. package/docs/modules/ModelMakerPluginType.html +23 -11
  260. package/docs/modules/PanoVideoPluginType.html +4 -3
  261. package/docs/modules/SculptData.html +4 -3
  262. package/docs/modules/Util.html +4 -3
  263. package/docs/modules.html +6 -4
  264. package/docs/types/AddObject3DHelperConfig.html +4 -3
  265. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -3
  266. package/docs/types/AreaMakerPluginType.ItemRenderer.html +4 -3
  267. package/docs/types/AreaMakerPluginType.PluginData.html +4 -3
  268. package/docs/types/AreaMakerPluginType.ServerData.html +4 -3
  269. package/docs/types/ArrayPosition.html +4 -3
  270. package/docs/types/AudioAppearance.html +4 -3
  271. package/docs/types/CSS3DRenderExportType.html +4 -3
  272. package/docs/types/CSS3DRenderPluginExportType.html +4 -3
  273. package/docs/types/CSS3DRenderPluginParameterType.html +4 -3
  274. package/docs/types/ClassFunctionParameters.html +4 -3
  275. package/docs/types/Color.html +4 -3
  276. package/docs/types/ContentTypeConfigKey.html +5 -4
  277. package/docs/types/ContentTypeConfigKeySplit.html +5 -4
  278. package/docs/types/ContentTypeMap.html +4 -3
  279. package/docs/types/Create3DDomContainerReturnType.html +4 -3
  280. package/docs/types/Create3DElementReturnType.html +4 -3
  281. package/docs/types/CruisePluginExportType.html +4 -3
  282. package/docs/types/CruisePluginTypes.CruiseData.html +4 -3
  283. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -3
  284. package/docs/types/CurrentPanoImagePluginExportType.html +4 -3
  285. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -3
  286. package/docs/types/DeprecatedTagProperty.html +4 -3
  287. package/docs/types/Direction-1.html +4 -3
  288. package/docs/types/Direction4.html +4 -3
  289. package/docs/types/ElementRenderer.html +4 -3
  290. package/docs/types/FloorplanRuleLabels.html +4 -3
  291. package/docs/types/FloorplanServerRuleLabels.html +4 -3
  292. package/docs/types/GuideLinePluginExportType.html +4 -3
  293. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -3
  294. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -3
  295. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -3
  296. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -3
  297. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -3
  298. package/docs/types/GuideLinePluginType.PathItem.html +4 -3
  299. package/docs/types/GuideLinePluginType.PluginData.html +4 -3
  300. package/docs/types/HelperEventMap.html +4 -3
  301. package/docs/types/InternalHelperEventMap.html +4 -3
  302. package/docs/types/LoadTagConfig.html +4 -3
  303. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -3
  304. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -3
  305. package/docs/types/MediaData.html +4 -3
  306. package/docs/types/MediaStore.html +4 -3
  307. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -3
  308. package/docs/types/ModelFloorplanPluginParameterType.html +4 -3
  309. package/docs/types/ModelFloorplanPluginReturnType.html +4 -3
  310. package/docs/types/ModelId.html +4 -3
  311. package/docs/types/ModelMakerPluginType.ElementRenderer.html +7 -6
  312. package/docs/types/ModelMakerPluginType.ItemType.html +7 -6
  313. package/docs/types/ModelRoomLabelPluginParameters.html +4 -3
  314. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -3
  315. package/docs/types/MoveArgs.html +4 -3
  316. package/docs/types/MoveOpts.html +4 -3
  317. package/docs/types/Object3DHelperEventMap.html +4 -3
  318. package/docs/types/ObjectFit.html +4 -3
  319. package/docs/types/PaintBrushEventMap.html +4 -3
  320. package/docs/types/PanoCompassPluginData.html +4 -3
  321. package/docs/types/PanoCompassPluginExportType.html +4 -3
  322. package/docs/types/PanoCompassPluginParameterType.html +4 -3
  323. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -3
  324. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -3
  325. package/docs/types/PanoIndex.html +4 -3
  326. package/docs/types/PanoMeasurePluginEvent.html +4 -3
  327. package/docs/types/PanoMeasureReturnType.html +4 -3
  328. package/docs/types/PanoSpatialTagPluginId.html +4 -3
  329. package/docs/types/PanoTagPluginExportInterface.html +4 -3
  330. package/docs/types/PanoTagPluginParamsInterface.html +4 -3
  331. package/docs/types/PanoVideoPluginParameterType.html +4 -3
  332. package/docs/types/PanoVideoPluginReturnType.html +4 -3
  333. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -4
  334. package/docs/types/PipelinePluginParameterType.html +4 -3
  335. package/docs/types/PipelinePluginReturnType.html +4 -3
  336. package/docs/types/PlaneTag.html +5 -4
  337. package/docs/types/Point2DTag.html +5 -4
  338. package/docs/types/Point3DTag.html +5 -4
  339. package/docs/types/PointTag.html +5 -4
  340. package/docs/types/PointTagInstance.html +4 -3
  341. package/docs/types/Position.html +4 -3
  342. package/docs/types/PositionFrom.html +4 -3
  343. package/docs/types/RotateArgs.html +4 -3
  344. package/docs/types/RotateOpts.html +4 -3
  345. package/docs/types/RuleLabelsKey.html +4 -3
  346. package/docs/types/RuleLabelsValue.html +4 -3
  347. package/docs/types/ScaleCallback.html +4 -3
  348. package/docs/types/ScalePosition.html +4 -3
  349. package/docs/types/SculptData.BoxData.html +4 -3
  350. package/docs/types/SculptData.CircleData.html +4 -3
  351. package/docs/types/SculptData.CylinderData.html +4 -3
  352. package/docs/types/SculptData.PointData.html +4 -3
  353. package/docs/types/SculptData.PolygonData.html +4 -3
  354. package/docs/types/SculptData.PolylineData.html +4 -3
  355. package/docs/types/SculptData.PrismData.html +4 -3
  356. package/docs/types/SculptData.RectangleData.html +4 -3
  357. package/docs/types/StickType.html +4 -3
  358. package/docs/types/Tag.html +4 -3
  359. package/docs/types/Tag2D.html +4 -3
  360. package/docs/types/Tag3D.html +4 -3
  361. package/docs/types/TagConfigByKey.html +5 -4
  362. package/docs/types/TagContentType.html +4 -3
  363. package/docs/types/TagContentTypeMapping.html +4 -3
  364. package/docs/types/TagDimensionType.html +4 -3
  365. package/docs/types/TagElement.html +4 -3
  366. package/docs/types/TagEvents.html +4 -3
  367. package/docs/types/TagGLTFObject.html +4 -3
  368. package/docs/types/TagHooks.html +4 -3
  369. package/docs/types/TagId.html +4 -3
  370. package/docs/types/TagInstance.html +4 -3
  371. package/docs/types/TagPointType.html +4 -3
  372. package/docs/types/TagRendererMap.html +4 -3
  373. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -3
  374. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -3
  375. package/docs/types/WorkCode.html +4 -3
  376. package/docs/variables/FLOOR_TYPE_MAP.html +4 -3
  377. package/docs/variables/PLUGIN.html +4 -3
  378. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -3
  379. package/docs/variables/ROOM_TYPE_MAP.html +4 -3
  380. package/docs/variables/defaultGlobalConfig.html +4 -3
  381. package/docs/variables/itemLabelPluginServerParams.html +4 -3
  382. package/docs/variables/modelItemLabelPluginServerParams.html +4 -3
  383. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -3
  384. package/libs/ModelMakerPlugin/Controller.js +49 -49
  385. package/libs/ModelMakerPlugin/index.d.ts +2 -0
  386. package/libs/ModelMakerPlugin/typings/data.d.ts +17 -4
  387. package/libs/ModelMakerPlugin/typings/index.d.ts +0 -11
  388. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -4
  389. package/libs/PanoCompassPlugin/Controller.js +3 -3
  390. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  391. package/libs/base/BasePlugin.js +1 -1
  392. package/libs/shared-utils/logger.js +1 -1
  393. package/libs/shared-utils/tag.js +17 -16
  394. package/libs/shared-utils/three/Magnifier.js +17 -15
  395. package/libs/shared-utils/three/getIntersect.d.ts +2 -0
  396. package/package.json +2 -2
@@ -1,28 +1,28 @@
1
- var k = Object.defineProperty;
2
- var D = (p, n, e) => n in p ? k(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e;
3
- var s = (p, n, e) => (D(p, typeof n != "symbol" ? n + "" : n, e), e);
4
- var M = (p, n, e) => new Promise((r, t) => {
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
5
  var m = (i) => {
6
6
  try {
7
7
  a(e.next(i));
8
- } catch (h) {
9
- t(h);
8
+ } catch (p) {
9
+ t(p);
10
10
  }
11
11
  }, o = (i) => {
12
12
  try {
13
13
  a(e.throw(i));
14
- } catch (h) {
15
- t(h);
14
+ } catch (p) {
15
+ t(p);
16
16
  }
17
- }, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(m, o);
18
- a((e = e.apply(p, n)).next());
17
+ }, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(m, o);
18
+ a((e = e.apply(l, n)).next());
19
19
  });
20
- import { Controller as I } from "../base/BasePluginWithData.js";
21
- import * as l from "three";
22
- import { ModelMakerBoxItem as T } from "./item/boxItem.js";
20
+ import { Controller as A } from "../base/BasePluginWithData.js";
21
+ import * as h from "three";
22
+ import { ModelMakerBoxItem as C } from "./item/boxItem.js";
23
23
  import { PrismMesh as j } from "../Sculpt/Meshes/Prism.js";
24
- import { anyPositionToVector3 as H } from "../shared-utils/positionToVector3.js";
25
- import { PolygonWithEdgeMesh as C } from "../Sculpt/Meshes/PolygonWithEdge.js";
24
+ import { anyPositionToVector3 as I } from "../shared-utils/positionToVector3.js";
25
+ import { PolygonWithEdgeMesh as T } 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";
@@ -30,9 +30,9 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
30
30
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
31
31
  import "animejs";
32
32
  import { notNil as x } from "../shared-utils/isNil.js";
33
- import { tagRendererMap as F } from "./utils/tagRenderer.js";
34
- import { ModelMakerPrismItem as A } from "./item/prismItem.js";
35
- import { ModelMakerPolygonItem as z } from "./item/polygonItem.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";
36
36
  import { boxVertex as c } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
37
37
  import { getFiveDomEvent as O } from "./utils/getFiveDomEvent.js";
38
38
  import "../base/BasePlugin.js";
@@ -75,45 +75,45 @@ 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 Ye extends I {
78
+ class Se extends A {
79
79
  constructor(e) {
80
80
  super(e);
81
- s(this, "state");
82
- s(this, "items", []);
83
- s(this, "data");
84
- s(this, "group", new l.Group());
85
- s(this, "tagRendererMap", {});
86
- s(this, "fiveDomEvents");
87
- s(this, "zFightingOffset", 0);
88
- s(this, "handleEnable", () => {
81
+ r(this, "state");
82
+ r(this, "items", []);
83
+ r(this, "data");
84
+ r(this, "group", new h.Group());
85
+ r(this, "tagRendererMap", {});
86
+ r(this, "fiveDomEvents");
87
+ r(this, "zFightingOffset", 0);
88
+ r(this, "handleEnable", () => {
89
89
  this.items.forEach((e) => e.enable());
90
90
  });
91
- s(this, "handleDisable", () => {
91
+ r(this, "handleDisable", () => {
92
92
  this.items.forEach((e) => e.disable());
93
93
  });
94
- s(this, "updateTagRenderer", () => {
94
+ r(this, "updateTagRenderer", () => {
95
95
  this.items.forEach((e) => {
96
96
  var t;
97
- const r = (t = this.tagRendererMap[e.type]) != null ? t : F[e.type];
98
- r && e.__renderer !== r && (e.__renderer = r, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = r(e.tag.container, e));
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));
99
99
  });
100
100
  });
101
- this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = O(e), e.scene.add(this.group), this.handleEnable();
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
102
  }
103
103
  load(e) {
104
104
  return M(this, null, function* () {
105
- var r;
106
- this.clear(), this.data = e, (r = e == null ? void 0 : e.list) == null || r.forEach((t) => {
105
+ var s;
106
+ this.clear(), this.data = e, (s = e == null ? void 0 : e.list) == null || s.forEach((t) => {
107
107
  var m;
108
108
  if (t.type === "triangles") {
109
- const o = new C();
109
+ const o = new T();
110
110
  o.setPoints(t.object_data.points), o.setStyle({
111
111
  color: t.object_data.color,
112
112
  opacity: t.object_data.opacity,
113
113
  lineColor: t.object_data.color,
114
114
  occlusionVisibility: !1
115
115
  }), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
116
- const a = new z({
116
+ const a = new L({
117
117
  five: this.five,
118
118
  model: o,
119
119
  group: this.group,
@@ -125,17 +125,17 @@ class Ye extends I {
125
125
  const o = new j();
126
126
  this.zFightingOffset += 1e-4, o.setPoints({
127
127
  points: t.object_data.points.map((i) => {
128
- var h;
129
- return [i[0], i[1] + ((h = t.object_data.fixedY) != null ? h : 0), i[2]];
128
+ var p;
129
+ return [i[0], i[1] + ((p = t.object_data.fixedY) != null ? p : 0), i[2]];
130
130
  }),
131
- heightPoint: H(t.object_data.points[0]).add(new l.Vector3().setY(t.object_data.height + ((m = t.object_data.fixedHeight) != null ? m : 0))).add(new l.Vector3().setY(this.zFightingOffset))
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))
132
132
  }), o.setStyle({
133
133
  color: t.object_data.color,
134
134
  opacity: t.object_data.opacity,
135
135
  lineColor: t.object_data.color,
136
136
  occlusionVisibility: !1
137
137
  });
138
- const a = new A({
138
+ const a = new F({
139
139
  five: this.five,
140
140
  model: o,
141
141
  group: this.group,
@@ -144,22 +144,22 @@ class Ye extends I {
144
144
  });
145
145
  this.items.push(a);
146
146
  } else if (t.type === "box") {
147
- const o = new j(), { start: a, end: i, rotation: h, opacity: V, color: b } = t.object_data, f = new l.Vector3().fromArray(a), u = new l.Vector3().fromArray(i), R = new l.Euler().fromArray(h), g = new l.Quaternion().setFromEuler(R), y = g.clone().inverse(), v = new l.Vector3().lerpVectors(f, u, 0.5), w = v.clone().negate(), E = f.clone().add(w).applyQuaternion(y), _ = u.clone().add(w).applyQuaternion(y), d = new l.Box3(E.clone().max(_), E.clone().min(_));
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));
148
148
  o.setPoints({
149
149
  points: [c(d, 2), c(d, 3), c(d, 7), c(d, 6)],
150
150
  heightPoint: c(d, 0)
151
- }), o.position.copy(v), o.quaternion.copy(g), o.setStyle({ color: b, opacity: V, lineColor: b, occlusionVisibility: !1 });
152
- const P = new T({ five: this.five, model: o, group: this.group, type: t.type, rawData: t });
153
- this.items.push(P);
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
154
  }
155
- }), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer();
155
+ }), 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
156
  });
157
157
  }
158
158
  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: "我不知道捏" })), 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: "我不知道捏" }));
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: "我不知道捏" }));
160
160
  }
161
161
  getItemById(e) {
162
- return this.items.find((r) => r.rawData.id === e);
162
+ return this.items.find((s) => s.rawData.id === e);
163
163
  }
164
164
  registerTagRenderer(e) {
165
165
  this.tagRendererMap = e, this.updateTagRenderer();
@@ -180,7 +180,7 @@ class Ye extends I {
180
180
  this.zFightingOffset = 0, this.handleDisable(), this.items = [];
181
181
  }
182
182
  dispose() {
183
- this.handleDisable();
183
+ this.hooks.emit("dispose"), this.handleDisable();
184
184
  }
185
185
  handleShow() {
186
186
  this.items.forEach((e) => e.show());
@@ -190,5 +190,5 @@ class Ye extends I {
190
190
  }
191
191
  }
192
192
  export {
193
- Ye as Controller
193
+ Se as Controller
194
194
  };
@@ -1,4 +1,6 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  import type * as ModelMakerPluginType from './typings';
3
+ import { Controller } from './Controller';
3
4
  export declare const ModelMakerPlugin: (five: Five) => ModelMakerPluginType.ModelMakerController;
5
+ export type { Controller as ModelMakerPluginInstance };
4
6
  export type { ModelMakerPluginType };
@@ -2,7 +2,9 @@ export interface ServerData {
2
2
  list: (ServerBoxItem | ServerTrianglesItem | ServerPrismItem)[];
3
3
  }
4
4
  export interface ServerBaseItem {
5
+ /** 唯一标识 */
5
6
  id?: number;
7
+ /** 标签名 */
6
8
  name?: string;
7
9
  }
8
10
  export interface ServerBoxItem extends ServerBaseItem {
@@ -13,29 +15,40 @@ export interface ServerBoxItem extends ServerBaseItem {
13
15
  /** start 对角位置的顶点坐标 */
14
16
  end: number[];
15
17
  /** box 的欧拉角旋转,旋转顺序是 [XYZ] */
16
- rotation: number[];
18
+ rotation?: number[];
19
+ /** 标注颜色 */
17
20
  color?: string;
21
+ /** 透明度 */
18
22
  opacity?: number;
19
23
  };
20
24
  }
21
25
  export interface ServerTrianglesItem extends ServerBaseItem {
22
26
  type: 'triangles';
23
27
  object_data: {
24
- panoIndex: number;
28
+ /** 多边形的顶点坐标数组 */
25
29
  points: number[][];
30
+ /** 标注颜色 */
26
31
  color?: string;
32
+ /** 透明度 */
27
33
  opacity?: number;
28
34
  };
29
35
  }
30
36
  export interface ServerPrismItem extends ServerBaseItem {
31
37
  type: 'prism';
32
38
  object_data: {
39
+ /** 绘制平面的三维世界坐标点数组 */
33
40
  points: number[][];
34
- floorIndex?: number;
41
+ /** 楼层高度 */
35
42
  height: number;
43
+ /** 所在楼层 */
44
+ floorIndex?: number;
45
+ /** 人工设置的y坐标方向偏移 */
36
46
  fixedY?: number;
47
+ /** 人工设置的高度修正 */
37
48
  fixedHeight?: number;
38
- color: string;
49
+ /** 标注颜色 */
50
+ color?: string;
51
+ /** 透明度 */
39
52
  opacity?: number;
40
53
  };
41
54
  }
@@ -1,5 +1,4 @@
1
1
  import type * as BasePlugin from '../../base/BasePluginWithData';
2
- import type * as THREE from 'three';
3
2
  import type { ModelMakerBaseItem } from '../item/baseItem';
4
3
  import type { ServerData } from './data';
5
4
  export type { Controller as ModelMakerController } from '../Controller';
@@ -37,16 +36,6 @@ export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
37
36
  disable: (event: {
38
37
  userAction: boolean;
39
38
  }) => void;
40
- /** 插件内容点击的回调
41
- * @param event.target 点击的标注实例
42
- * @param event.intersectObjects 射线与标注模型的交点集合
43
- * @param event.wantsFiveTapGestureParams Five wantsFiveTapGesture 的回调参数
44
- * @returns <boolean> | <void> 返回 false 会阻止 Five wantsFiveTapGesture 的回调,其余 return 值会被忽略
45
- */
46
- wantsTap: (event: {
47
- target: any;
48
- intersectObjects: THREE.Intersection[];
49
- }) => boolean | void;
50
39
  }
51
40
  export type ItemType = ServerData['list'][number]['type'];
52
41
  export type ElementRenderer = (container: HTMLElement, item: ModelMakerBaseItem) => () => void;
@@ -1,9 +1,12 @@
1
- import { FiveDomEvents as o } from "../../shared-utils/five/FiveDomEvents.js";
1
+ import { FiveDomEvents as n } from "../../shared-utils/five/FiveDomEvents.js";
2
2
  import "three";
3
3
  import "../../shared-utils/three/getObjectVisible.js";
4
4
  import "../../shared-utils/five/calculateThreeMouse.js";
5
- let e;
6
- const v = (t) => e || (e = new o(t, { noEmitWhenHide: !0 }), e);
5
+ let t;
6
+ const p = (e) => ((!t || e !== t.five) && (t = {
7
+ instance: new n(e, { noEmitWhenHide: !0 }),
8
+ five: e
9
+ }), t.instance);
7
10
  export {
8
- v as getFiveDomEvent
11
+ p as getFiveDomEvent
9
12
  };
@@ -142,10 +142,10 @@ class pe extends A {
142
142
  r(this, "onFivePanoArrived", (e) => {
143
143
  var o, s, i, l, p, c, y, I;
144
144
  const t = (i = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : i.standingPosition;
145
- if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((l = this.compassMeshTween) == null || l.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
145
+ if (this.compassMesh && t && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((l = this.compassMeshTween) == null || l.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
146
146
  var m;
147
147
  (m = this.compassMesh) == null || m.material.setValues({ opacity: v }), this.five.needsRender = !0;
148
- }).play())), this.logoMesh && (this.logoMesh.position.copy(t.clone().setY(t.y + 0.011)), this.logoMesh.material.opacity === 0 && ((p = this.logoMeshTween) == null || p.dispose(), this.logoMeshTween = D(1e3).onUpdate(({ progress: v }) => {
148
+ }).play())), this.logoMesh && t && (this.logoMesh.position.copy(t.clone().setY(t.y + 0.011)), this.logoMesh.material.opacity === 0 && ((p = this.logoMeshTween) == null || p.dispose(), this.logoMeshTween = D(1e3).onUpdate(({ progress: v }) => {
149
149
  var m;
150
150
  (m = this.logoMesh) == null || m.material.setValues({ opacity: v }), this.five.needsRender = !0;
151
151
  }).play())), this.entryDoorMesh) {
@@ -156,7 +156,7 @@ class pe extends A {
156
156
  ).clone().setY(t.y).sub(t).normalize(), w = t.clone().add(m.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
157
157
  this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(m), this.entryDoorMesh.position.copy(w), ((c = this.data) == null ? void 0 : c.room_observers[e].room.type) === 1 ? (y = this.entryDoorMesh) == null || y.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
158
158
  }
159
- this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
159
+ this.roomInfoInstance && this.roomInfoWrapperInstance && t && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
160
160
  });
161
161
  r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
162
162
  var o, s;
@@ -66,7 +66,7 @@ export interface ImagePlaneGroup extends Group {
66
66
  export type AudioAppearance = TagInstance<'Audio'>['data']['appearance'];
67
67
  type _ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | `Any-Audio-${AudioAppearance}` | 'Any';
68
68
  export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance] | ['Any'] | [];
69
- type FiveModeType = `[${Exclude<Mode, 'DepthPanorama'> | 'PanoramaLike' | 'ModelLike'}]`;
69
+ type FiveModeType = `[${Mode | 'PanoramaLike' | 'ModelLike'}]`;
70
70
  export type ContentTypeConfigKey = FiveModeType | `${FiveModeType}-${_ContentTypeConfigKey}` | _ContentTypeConfigKey;
71
71
  /**
72
72
  * @description 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥
@@ -15,7 +15,7 @@ let C = class {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- i(this, "VERSION", "3.29.9");
18
+ i(this, "VERSION", "3.30.1");
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.29.9",
3
+ "%c %c@realsee/dnalogel %cv3.30.1",
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",
@@ -1,11 +1,11 @@
1
- var r = Object.defineProperty;
2
- var h = (o, t, e) => t in o ? r(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var n = (o, t, e) => (h(o, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { anyPositionToVector3 as c } from "./positionToVector3.js";
5
- import * as l from "three";
6
- import { vector3ToScreen as d } from "./five/vector3ToScreen.js";
7
- const a = "LightTagContainer_shgjakdhwakjdhsja";
8
- class p {
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";
5
+ import * as d from "three";
6
+ import { vector3ToScreen as p } from "./five/vector3ToScreen.js";
7
+ const r = "LightTagContainer_shgjakdhwakjdhsja";
8
+ class f {
9
9
  constructor(t, e) {
10
10
  n(this, "container");
11
11
  n(this, "visible", !1);
@@ -17,19 +17,19 @@ class p {
17
17
  n(this, "onCameraUpdate", () => {
18
18
  if (this.visible === !1)
19
19
  return;
20
- const t = d(this.five.camera, this.position);
20
+ const t = p(this.five.camera, this.position);
21
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");
22
22
  });
23
23
  n(this, "onFiveEveryReady", () => {
24
24
  var t;
25
25
  if (this.visible && this.five.state.mode !== "Panorama") {
26
- const e = new l.Raycaster();
26
+ const e = new d.Raycaster();
27
27
  e.set(this.five.camera.position, this.position.clone().sub(this.five.camera.position));
28
28
  const i = (t = this.five.model.intersectRaycaster(e)) == null ? void 0 : t[0];
29
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");
30
30
  }
31
31
  });
32
- this.five = t, this.position = c(e).clone(), this.container = (() => {
32
+ this.five = t, this.position = l(e).clone(), this.container = (() => {
33
33
  const i = document.createElement("div");
34
34
  return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i;
35
35
  })(), this.enable(), this.show();
@@ -44,9 +44,10 @@ class p {
44
44
  var i;
45
45
  if (this.enabled)
46
46
  return;
47
- this.enabled = !0, this.wrapper = (i = document.getElementById(a)) != null ? i : (() => {
47
+ this.enabled = !0, this.wrapper = (i = document.getElementById(r)) != null ? i : (() => {
48
+ var a;
48
49
  const s = document.createElement("div");
49
- return s.id = a, s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", this.five.getElement().parentElement.appendChild(s), s;
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;
50
51
  })(), this.wrapper.appendChild(this.container);
51
52
  let t = !1;
52
53
  const e = () => {
@@ -63,9 +64,9 @@ class p {
63
64
  this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (t = this.disposer) == null || t.call(this));
64
65
  }
65
66
  }
66
- function m(o, t) {
67
- return new p(o, t);
67
+ function u(o, t) {
68
+ return new f(o, t);
68
69
  }
69
70
  export {
70
- m as tag
71
+ u as tag
71
72
  };
@@ -3,13 +3,13 @@ var b = (r, t, e) => t in r ? p(r, t, { enumerable: !0, configurable: !0, writab
3
3
  var n = (r, t, e) => (b(r, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import C from "hammerjs";
5
5
  import * as l from "three";
6
- import { Subscribe as w } from "@realsee/five";
6
+ import { Subscribe as R } from "@realsee/five";
7
7
  class Y {
8
8
  constructor(t, e) {
9
9
  n(this, "width");
10
10
  n(this, "height");
11
11
  n(this, "containerDom");
12
- n(this, "hooks", new w());
12
+ n(this, "hooks", new R());
13
13
  n(this, "canvas", document.createElement("canvas"));
14
14
  n(this, "config");
15
15
  n(this, "state", { enabled: !1 });
@@ -37,8 +37,10 @@ class Y {
37
37
  this.canvas.style.transform = `translate3d(${e}px, ${i}px, 100px)`, this.offset = { x: e, y: i };
38
38
  });
39
39
  var s, h, o, a;
40
- if (!t.renderer)
41
- throw new Error("Five Render 未初始化");
40
+ if (!t.renderer) {
41
+ console.error("Five Render 未初始化");
42
+ return;
43
+ }
42
44
  this.five = t, this.scale = (s = e == null ? void 0 : e.scale) != null ? s : 2, this.width = (h = e == null ? void 0 : e.width) != null ? h : 190, this.height = (a = (o = e == null ? void 0 : e.height) != null ? o : e == null ? void 0 : e.width) != null ? a : 190, this.config = {
43
45
  dragEnabled: (e == null ? void 0 : e.dragEnabled) || !1,
44
46
  autoFixPCPosition: (e == null ? void 0 : e.autoFixPCPosition) || !1,
@@ -98,12 +100,12 @@ class Y {
98
100
  return;
99
101
  const { width: t, height: e } = this, { clientWidth: i, clientHeight: s } = this.containerDom, [h, o, a] = (() => {
100
102
  if (this.renderCenter instanceof l.Vector3) {
101
- const f = this.renderCenter.clone().project(this.five.camera);
103
+ const c = this.renderCenter.clone().project(this.five.camera);
102
104
  return [
103
105
  //
104
- (f.x + 1) / 2 * i,
105
- -(f.x - 1) / 2 * i,
106
- -(f.y - 1) / 2 * s
106
+ (c.x + 1) / 2 * i,
107
+ -(c.x - 1) / 2 * i,
108
+ -(c.y - 1) / 2 * s
107
109
  ];
108
110
  } else
109
111
  return [this.renderCenter.x, i - this.renderCenter.x, this.renderCenter.y];
@@ -119,8 +121,8 @@ class Y {
119
121
  return [(y.x + 1) / 2 * h.x, (y.y + 1) / 2 * h.y];
120
122
  } else
121
123
  return [this.renderCenter.x, h.y - this.renderCenter.y];
122
- })(), f = 1, c = i / t, x = s / t, P = f * t, g = this.five.getPixels(o - c / 2, a - c / 2, c, x, P), m = Math.floor(i * f), u = Math.floor(s * f);
123
- R(g, m, u);
124
+ })(), c = 1, f = i / t, x = s / t, P = c * t, g = this.five.getPixels(o - f / 2, a - f / 2, f, x, P), m = Math.floor(i * c), u = Math.floor(s * c);
125
+ w(g, m, u);
124
126
  const v = new ImageData(m, u);
125
127
  v.data.set(g), e.putImageData(v, 0, 0), this.canvas.style.visibility = "visible";
126
128
  }
@@ -134,21 +136,21 @@ class Y {
134
136
  const {
135
137
  min: { x: i, y: s },
136
138
  max: { x: h, y: o }
137
- } = e, a = this.offset.x + t.deltaX, f = this.offset.y + t.deltaY, c = Math.min(Math.max(a, i), h), x = Math.min(Math.max(f, s), o);
138
- return { translateX: c, translateY: x };
139
+ } = e, a = this.offset.x + t.deltaX, c = this.offset.y + t.deltaY, f = Math.min(Math.max(a, i), h), x = Math.min(Math.max(c, s), o);
140
+ return { translateX: f, translateY: x };
139
141
  }
140
142
  }
141
143
  function d(r, t, e) {
142
144
  const i = r[t], s = r[e];
143
145
  i === void 0 || s === void 0 || (r[t] = s, r[e] = i);
144
146
  }
145
- function R(r, t, e) {
147
+ function w(r, t, e) {
146
148
  const i = e / 2;
147
149
  for (let s = 1; s <= i; s++) {
148
150
  const h = e - (s - 1);
149
151
  for (let o = 1; o <= t; o++) {
150
- const a = (s - 1) * t + o - 1, f = (h - 1) * t + o - 1;
151
- d(r, a * 4 + 0, f * 4 + 0), d(r, a * 4 + 1, f * 4 + 1), d(r, a * 4 + 2, f * 4 + 2), d(r, a * 4 + 3, f * 4 + 3);
152
+ const a = (s - 1) * t + o - 1, c = (h - 1) * t + o - 1;
153
+ d(r, a * 4 + 0, c * 4 + 0), d(r, a * 4 + 1, c * 4 + 1), d(r, a * 4 + 2, c * 4 + 2), d(r, a * 4 + 3, c * 4 + 3);
152
154
  }
153
155
  }
154
156
  }
@@ -7,6 +7,8 @@ export declare function getIntersectFromRelativePosition(five: Five, position: {
7
7
  raycaster: THREE.Raycaster;
8
8
  isVirtual: boolean;
9
9
  floor: number;
10
+ model?: import("@realsee/five").Model;
11
+ viewLayer?: import("@realsee/five").ModelViewLayer;
10
12
  distance: number;
11
13
  distanceToRay?: number;
12
14
  point: THREE.Vector3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.29.9",
3
+ "version": "3.30.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@babel/core": "^7.22.9",
43
- "@realsee/five": "6.0.0-alpha.74",
43
+ "@realsee/five": "6.0.0-alpha.98",
44
44
  "@sveltejs/vite-plugin-svelte": "^2.4.2",
45
45
  "@tsconfig/svelte": "^4.0.1",
46
46
  "@tweenjs/tween.js": "^23.1.1",