@realsee/dnalogel 3.29.7 → 3.30.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 (394) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/Sculpt/Meshes/Prism.d.ts +5 -0
  3. package/dist/index.cjs.js +14 -14
  4. package/dist/index.js +102 -84
  5. package/dist/index.umd.js +13 -13
  6. package/dist/shared-utils/three/getIntersect.d.ts +2 -0
  7. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
  8. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
  9. package/docs/classes/CSS3DRender.html +3 -3
  10. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  11. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  12. package/docs/classes/ModelMakerPluginType.ModelMakerController.html +13 -13
  13. package/docs/classes/ModelRoomLabelController.html +3 -3
  14. package/docs/classes/MoveController.html +3 -3
  15. package/docs/classes/Object3DHelperController.html +3 -3
  16. package/docs/classes/PaintBrush.html +3 -3
  17. package/docs/classes/PanoMeasurePluginLine.html +3 -3
  18. package/docs/classes/PanoMeasurePluginModel.html +3 -3
  19. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  20. package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
  21. package/docs/classes/PanoTagPluginController.html +5 -5
  22. package/docs/classes/Sculpt.html +3 -3
  23. package/docs/classes/Util.BetterTween.html +3 -3
  24. package/docs/classes/Util.Interval.html +3 -3
  25. package/docs/classes/Util.LineSegments.html +3 -3
  26. package/docs/classes/Util.Magnifier.html +11 -11
  27. package/docs/classes/Util.Object3D.html +3 -3
  28. package/docs/classes/Util.PointDomHelper.html +3 -3
  29. package/docs/classes/Util.PointHelper.html +3 -3
  30. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  31. package/docs/classes/Util.Rectangle.html +3 -3
  32. package/docs/classes/WalkController.html +3 -3
  33. package/docs/enums/CameraMovementEffect.html +3 -3
  34. package/docs/enums/ContentType.html +3 -3
  35. package/docs/enums/DIRECTION.html +3 -3
  36. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  37. package/docs/enums/DimensionType.html +3 -3
  38. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  39. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  40. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  41. package/docs/enums/PointType.html +3 -3
  42. package/docs/enums/Rotation.html +3 -3
  43. package/docs/functions/AreaMakerPlugin.html +3 -3
  44. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  45. package/docs/functions/CameraMovementPlugin.html +4 -4
  46. package/docs/functions/CruisePlugin.html +4 -4
  47. package/docs/functions/CurrentPanoImagePlugin.html +4 -4
  48. package/docs/functions/GuideLinePlugin.html +3 -3
  49. package/docs/functions/ItemLabelPlugin.html +4 -4
  50. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  51. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  52. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  53. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  54. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  55. package/docs/functions/ModelMakerPlugin.html +3 -3
  56. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  57. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  58. package/docs/functions/ModelViewPlugin.html +4 -4
  59. package/docs/functions/MovePlugin.html +4 -4
  60. package/docs/functions/Object3DHelperPlugin.html +4 -4
  61. package/docs/functions/PanoCompassPlugin.html +4 -4
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  63. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  65. package/docs/functions/PanoMeasurePlugin.html +4 -4
  66. package/docs/functions/PanoRulerPlugin.html +4 -4
  67. package/docs/functions/PanoRulerProPlugin.html +4 -4
  68. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  69. package/docs/functions/PanoTagPlugin.html +4 -4
  70. package/docs/functions/PanoVideoPlugin.html +4 -4
  71. package/docs/functions/PipelinePlugin.html +4 -4
  72. package/docs/functions/SculptPlugin.html +3 -3
  73. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  74. package/docs/functions/Util.absoluteUrl.html +3 -3
  75. package/docs/functions/Util.blink.html +3 -3
  76. package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
  77. package/docs/functions/Util.equal.html +3 -3
  78. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  79. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  80. package/docs/functions/Util.getFrameTime.html +3 -3
  81. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  82. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  83. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  84. package/docs/functions/Util.isModelLike.html +3 -3
  85. package/docs/functions/Util.isNil.html +3 -3
  86. package/docs/functions/Util.isPanoramaLike.html +3 -3
  87. package/docs/functions/Util.nextFrame.html +3 -3
  88. package/docs/functions/Util.notNil.html +3 -3
  89. package/docs/functions/Util.reblink.html +3 -3
  90. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  91. package/docs/functions/Util.tweenProgress.html +3 -3
  92. package/docs/functions/Util.uuid.html +3 -3
  93. package/docs/functions/pluginFlag.html +3 -3
  94. package/docs/index.html +4 -4
  95. package/docs/interfaces/AddTagConfig.html +3 -3
  96. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  97. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  98. package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
  99. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  100. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
  101. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  102. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  103. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  104. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
  105. package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
  106. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  107. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  108. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  109. package/docs/interfaces/ContentTypeMapInterface.html +3 -3
  110. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  111. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  112. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  113. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  114. package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -5
  115. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -5
  116. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -5
  117. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  118. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  119. package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -5
  120. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
  121. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
  122. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  123. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
  124. package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
  125. package/docs/interfaces/EventMap.html +3 -3
  126. package/docs/interfaces/FloorplanBounding.html +3 -3
  127. package/docs/interfaces/FloorplanData.html +3 -3
  128. package/docs/interfaces/FloorplanEntrance.html +3 -3
  129. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  130. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  131. package/docs/interfaces/FloorplanFloorData.html +3 -3
  132. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  133. package/docs/interfaces/FloorplanObserver.html +3 -3
  134. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  135. package/docs/interfaces/FloorplanPosition.html +3 -3
  136. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  137. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  138. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  139. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  140. package/docs/interfaces/FloorplanServerData.html +3 -3
  141. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  142. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  143. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  144. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  145. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  146. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  147. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  148. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  149. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  150. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  151. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  152. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  153. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  154. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  155. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  165. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  167. package/docs/interfaces/HelperOffset.html +3 -3
  168. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  169. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  172. package/docs/interfaces/MinMax.html +3 -3
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  178. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  181. package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
  182. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  183. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
  184. package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
  185. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
  186. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
  187. package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
  188. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  189. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  190. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  191. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  192. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  193. package/docs/interfaces/Object3DHelperState.html +3 -3
  194. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  195. package/docs/interfaces/PaintBrushAction.html +3 -3
  196. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  197. package/docs/interfaces/PaintBrushState.html +3 -3
  198. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  199. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  200. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  201. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  202. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  203. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  204. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  205. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  206. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  207. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  208. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  209. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  210. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  211. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  212. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  213. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  214. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  215. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  216. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  217. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  218. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  219. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  220. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  221. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  222. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  223. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  224. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  225. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  226. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  227. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  228. package/docs/interfaces/Point.html +3 -3
  229. package/docs/interfaces/Room.html +3 -3
  230. package/docs/interfaces/RoomInfo.html +3 -3
  231. package/docs/interfaces/RoomLabel.html +3 -3
  232. package/docs/interfaces/RoomRules.html +3 -3
  233. package/docs/interfaces/Rooms.html +3 -3
  234. package/docs/interfaces/Scissor.html +3 -3
  235. package/docs/interfaces/State.html +3 -3
  236. package/docs/interfaces/TagCacheInterface.html +3 -3
  237. package/docs/interfaces/TagConfig.html +3 -3
  238. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  239. package/docs/interfaces/TagIconUrl.html +3 -3
  240. package/docs/interfaces/TagObjectGroup.html +3 -3
  241. package/docs/interfaces/TagStyle.html +3 -3
  242. package/docs/interfaces/Tags.html +3 -3
  243. package/docs/interfaces/TemporaryState.html +3 -3
  244. package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
  245. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  246. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  247. package/docs/interfaces/Util.PointIntersection.html +3 -3
  248. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  249. package/docs/modules/AreaMakerPluginType.html +3 -3
  250. package/docs/modules/CruisePluginTypes.html +3 -3
  251. package/docs/modules/CurrentPanoImagePluginType.html +3 -3
  252. package/docs/modules/GuideLineItem.html +3 -3
  253. package/docs/modules/GuideLineModeItem.html +3 -3
  254. package/docs/modules/GuideLinePluginType.html +3 -3
  255. package/docs/modules/ModelMakerPluginType.html +3 -3
  256. package/docs/modules/PanoVideoPluginType.html +3 -3
  257. package/docs/modules/SculptData.html +3 -3
  258. package/docs/modules/Util.html +3 -3
  259. package/docs/modules.html +4 -4
  260. package/docs/types/AddObject3DHelperConfig.html +3 -3
  261. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
  262. package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
  263. package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
  264. package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
  265. package/docs/types/ArrayPosition.html +3 -3
  266. package/docs/types/AudioAppearance.html +3 -3
  267. package/docs/types/CSS3DRenderExportType.html +3 -3
  268. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  269. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  270. package/docs/types/ClassFunctionParameters.html +3 -3
  271. package/docs/types/Color.html +3 -3
  272. package/docs/types/ContentTypeConfigKey.html +3 -3
  273. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  274. package/docs/types/ContentTypeMap.html +3 -3
  275. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  276. package/docs/types/Create3DElementReturnType.html +3 -3
  277. package/docs/types/CruisePluginExportType.html +3 -3
  278. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  279. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  280. package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
  281. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  282. package/docs/types/DeprecatedTagProperty.html +3 -3
  283. package/docs/types/Direction-1.html +3 -3
  284. package/docs/types/Direction4.html +3 -3
  285. package/docs/types/ElementRenderer.html +3 -3
  286. package/docs/types/FloorplanRuleLabels.html +3 -3
  287. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  288. package/docs/types/GuideLinePluginExportType.html +3 -3
  289. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
  290. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  291. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  292. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  293. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  294. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  295. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  296. package/docs/types/HelperEventMap.html +3 -3
  297. package/docs/types/InternalHelperEventMap.html +3 -3
  298. package/docs/types/LoadTagConfig.html +3 -3
  299. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  300. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  301. package/docs/types/MediaData.html +3 -3
  302. package/docs/types/MediaStore.html +3 -3
  303. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  304. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  305. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  306. package/docs/types/ModelId.html +3 -3
  307. package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
  308. package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
  309. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  310. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  311. package/docs/types/MoveArgs.html +3 -3
  312. package/docs/types/MoveOpts.html +3 -3
  313. package/docs/types/Object3DHelperEventMap.html +3 -3
  314. package/docs/types/ObjectFit.html +3 -3
  315. package/docs/types/PaintBrushEventMap.html +3 -3
  316. package/docs/types/PanoCompassPluginData.html +3 -3
  317. package/docs/types/PanoCompassPluginExportType.html +3 -3
  318. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  319. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  320. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  321. package/docs/types/PanoIndex.html +3 -3
  322. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  323. package/docs/types/PanoMeasureReturnType.html +3 -3
  324. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  325. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  326. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  327. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  328. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  329. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  330. package/docs/types/PipelinePluginParameterType.html +3 -3
  331. package/docs/types/PipelinePluginReturnType.html +3 -3
  332. package/docs/types/PlaneTag.html +3 -3
  333. package/docs/types/Point2DTag.html +3 -3
  334. package/docs/types/Point3DTag.html +3 -3
  335. package/docs/types/PointTag.html +3 -3
  336. package/docs/types/PointTagInstance.html +3 -3
  337. package/docs/types/Position.html +3 -3
  338. package/docs/types/PositionFrom.html +3 -3
  339. package/docs/types/RotateArgs.html +3 -3
  340. package/docs/types/RotateOpts.html +3 -3
  341. package/docs/types/RuleLabelsKey.html +3 -3
  342. package/docs/types/RuleLabelsValue.html +3 -3
  343. package/docs/types/ScaleCallback.html +3 -3
  344. package/docs/types/ScalePosition.html +3 -3
  345. package/docs/types/SculptData.BoxData.html +3 -3
  346. package/docs/types/SculptData.CircleData.html +3 -3
  347. package/docs/types/SculptData.CylinderData.html +3 -3
  348. package/docs/types/SculptData.PointData.html +3 -3
  349. package/docs/types/SculptData.PolygonData.html +3 -3
  350. package/docs/types/SculptData.PolylineData.html +3 -3
  351. package/docs/types/SculptData.PrismData.html +3 -3
  352. package/docs/types/SculptData.RectangleData.html +3 -3
  353. package/docs/types/StickType.html +3 -3
  354. package/docs/types/Tag.html +3 -3
  355. package/docs/types/Tag2D.html +3 -3
  356. package/docs/types/Tag3D.html +3 -3
  357. package/docs/types/TagConfigByKey.html +3 -3
  358. package/docs/types/TagContentType.html +3 -3
  359. package/docs/types/TagContentTypeMapping.html +3 -3
  360. package/docs/types/TagDimensionType.html +3 -3
  361. package/docs/types/TagElement.html +3 -3
  362. package/docs/types/TagEvents.html +3 -3
  363. package/docs/types/TagGLTFObject.html +3 -3
  364. package/docs/types/TagHooks.html +3 -3
  365. package/docs/types/TagId.html +3 -3
  366. package/docs/types/TagInstance.html +3 -3
  367. package/docs/types/TagPointType.html +3 -3
  368. package/docs/types/TagRendererMap.html +3 -3
  369. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  370. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  371. package/docs/types/WorkCode.html +3 -3
  372. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  373. package/docs/variables/PLUGIN.html +3 -3
  374. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  375. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  376. package/docs/variables/defaultGlobalConfig.html +3 -3
  377. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  378. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  379. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  380. package/libs/ModelMakerPlugin/Controller.js +17 -17
  381. package/libs/ModelMakerPlugin/item/baseItem.js +16 -16
  382. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -4
  383. package/libs/PanoCompassPlugin/Controller.js +3 -3
  384. package/libs/Sculpt/Meshes/Prism.d.ts +5 -0
  385. package/libs/Sculpt/Meshes/Prism.js +17 -8
  386. package/libs/Sculpt/Objects/Base/index.js +24 -20
  387. package/libs/Sculpt/Objects/Box/Editor.js +1 -1
  388. package/libs/Sculpt/Objects/Prism/Editor.js +2 -2
  389. package/libs/base/BasePlugin.js +1 -1
  390. package/libs/shared-utils/logger.js +1 -1
  391. package/libs/shared-utils/tag.js +17 -16
  392. package/libs/shared-utils/three/Magnifier.js +17 -15
  393. package/libs/shared-utils/three/getIntersect.d.ts +2 -0
  394. package/package.json +2 -2
@@ -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;
@@ -17,7 +17,12 @@ export declare class PrismMesh extends IObject3D {
17
17
  heightPoint: THREE.Vector3;
18
18
  bottomPolygon: PolygonWithEdgeMesh;
19
19
  topPolygon: PolygonWithEdgeMesh;
20
+ /**
21
+ * @deprecated notice: please use specified center instead, such as `localCenter` or `worldCenter`
22
+ */
20
23
  get center(): THREE.Vector3;
24
+ get localCenter(): THREE.Vector3;
25
+ get worldCenter(): THREE.Vector3;
21
26
  get color(): THREE.Color;
22
27
  get lineWidth(): number;
23
28
  get lineColor(): THREE.Color;
@@ -1,8 +1,8 @@
1
1
  var d = Object.defineProperty;
2
- var b = (n, e, t) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var h = (n, e, t) => (b(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { IObject3D as P } from "../../shared-utils/three/IObject3D.js";
5
- import { anyPositionToVector3 as r } from "../../shared-utils/positionToVector3.js";
2
+ var a = (n, e, t) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var h = (n, e, t) => (a(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { IObject3D as r } from "../../shared-utils/three/IObject3D.js";
5
+ import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
6
6
  import "hammerjs";
7
7
  import * as m from "three";
8
8
  import "@realsee/five";
@@ -14,22 +14,31 @@ import { notNil as c } from "../../shared-utils/isNil.js";
14
14
  import { PolygonMesh as p } from "./Polygon.js";
15
15
  import { LineMesh as y } from "./Line.js";
16
16
  import { PolygonWithEdgeMesh as f } from "./PolygonWithEdge.js";
17
- class B extends P {
17
+ class B extends r {
18
18
  constructor(t) {
19
19
  super();
20
20
  h(this, "name", "PrismMesh");
21
21
  h(this, "heightPoint");
22
22
  h(this, "bottomPolygon", new f());
23
23
  h(this, "topPolygon", new f());
24
- h(this, "edgePlanes", new P());
24
+ h(this, "edgePlanes", new r());
25
25
  this.topPolygon.name = "TopPolygon", this.bottomPolygon.name = "BottomPolygon", this.edgePlanes.name = "EdgePlanes", this.addIfNotExists(this.bottomPolygon), t && this.setPoints(t), t && this.setStyle(t);
26
26
  }
27
+ /**
28
+ * @deprecated notice: please use specified center instead, such as `localCenter` or `worldCenter`
29
+ */
27
30
  get center() {
31
+ return this.localCenter;
32
+ }
33
+ get localCenter() {
28
34
  var s, i;
29
35
  const t = (s = this.topPolygon) == null ? void 0 : s.center, o = (i = this.bottomPolygon) == null ? void 0 : i.center;
30
36
  if (t && o)
31
37
  return new m.Vector3().lerpVectors(t, o, 0.5);
32
38
  }
39
+ get worldCenter() {
40
+ return this.updateMatrixWorld(), this.localToWorld(this.localCenter);
41
+ }
33
42
  get color() {
34
43
  return this.bottomPolygon.color;
35
44
  }
@@ -45,7 +54,7 @@ class B extends P {
45
54
  });
46
55
  }
47
56
  setPoints(t) {
48
- c(t.points) && this.setBottomPoints(t.points), c(t.heightPoint) && this.setTopHeightPoint(r(t.heightPoint));
57
+ c(t.points) && this.setBottomPoints(t.points), c(t.heightPoint) && this.setTopHeightPoint(P(t.heightPoint));
49
58
  }
50
59
  highlight() {
51
60
  this.bottomPolygon.highlight(), this.topPolygon.highlight(), this.edgePlanes.children.forEach((t) => {
@@ -58,7 +67,7 @@ class B extends P {
58
67
  });
59
68
  }
60
69
  setBottomPoints(t) {
61
- this.bottomPolygon.setPoints(t.map(r)), this.heightPoint && this.setTopHeightPoint(this.heightPoint);
70
+ this.bottomPolygon.setPoints(t.map(P)), this.heightPoint && this.setTopHeightPoint(this.heightPoint);
62
71
  }
63
72
  setTopHeightPoint(t) {
64
73
  this.heightPoint = t, this.addIfNotExists(this.topPolygon);
@@ -1,21 +1,22 @@
1
1
  var f = Object.defineProperty;
2
2
  var u = Object.getOwnPropertySymbols;
3
3
  var b = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
- var n = (s, t, e) => t in s ? f(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, p = (s, t) => {
4
+ var c = (s, t, e) => t in s ? f(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, d = (s, t) => {
5
5
  for (var e in t || (t = {}))
6
- b.call(t, e) && n(s, e, t[e]);
6
+ b.call(t, e) && c(s, e, t[e]);
7
7
  if (u)
8
8
  for (var e of u(t))
9
- g.call(t, e) && n(s, e, t[e]);
9
+ g.call(t, e) && c(s, e, t[e]);
10
10
  return s;
11
11
  };
12
- var r = (s, t, e) => (n(s, typeof t != "symbol" ? t + "" : t, e), e);
13
- import { hotkeys as d } from "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
14
- import { Sculpt as o } from "../../index.js";
12
+ var r = (s, t, e) => (c(s, typeof t != "symbol" ? t + "" : t, e), e);
13
+ import { hotkeys as p } from "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
14
+ import { Sculpt as n } from "../../index.js";
15
15
  import { IObject3D as m } from "../../../shared-utils/three/IObject3D.js";
16
+ import { toArray as y } from "../../../shared-utils/util.js";
16
17
  const a = /* @__PURE__ */ new Map();
17
- class x extends m {
18
- constructor(e, l) {
18
+ class A extends m {
19
+ constructor(e, o) {
19
20
  super();
20
21
  r(this, "name", "Sculpt");
21
22
  r(this, "isSculptObject", !0);
@@ -29,17 +30,17 @@ class x extends m {
29
30
  */
30
31
  r(this, "config");
31
32
  r(this, "editor");
32
- r(this, "on", (e, l, i) => o.modules.fiveDomEvents.addEventListener(this, e, l, i));
33
- r(this, "off", (...e) => o.modules.fiveDomEvents.removeEventListener(this, ...e));
34
- e != null && e.id && (this.uuid = e.id), this.config = p({ canEdit: !0, occlusionVisibility: !0 }, l), e != null && e.style && (e.style.occlusionVisibility = this.config.occlusionVisibility), this.config.canEdit && (d("backspace, delete", () => {
33
+ r(this, "on", (e, o, i) => n.modules.fiveDomEvents.addEventListener(this, e, o, i));
34
+ r(this, "off", (...e) => n.modules.fiveDomEvents.removeEventListener(this, ...e));
35
+ e != null && e.id && (this.uuid = e.id), this.config = d({ canEdit: !0, occlusionVisibility: !0 }, o), e != null && e.style && (e.style.occlusionVisibility = this.config.occlusionVisibility), this.config.canEdit && (p("backspace, delete", () => {
35
36
  this.selected && this.delete();
36
37
  }), this.on("click", () => {
37
- var c, h;
38
+ var l, h;
38
39
  if (this.pointSelector.enabled)
39
40
  return;
40
41
  let i = a.get(this.parent.uuid);
41
- i && (i.selected = !1, i.unhighlight(), (c = i.editor) == null || c.disable()), a.set(this.parent.uuid, this), this.selected = !0, this.highlight(), (h = this.editor) == null || h.enable();
42
- }), d("esc", () => {
42
+ i && (i.selected = !1, i.unhighlight(), (l = i.editor) == null || l.disable()), a.set(this.parent.uuid, this), this.selected = !0, this.highlight(), (h = this.editor) == null || h.enable();
43
+ }), p("esc", () => {
43
44
  var i;
44
45
  this.selected = !1, this.unhighlight(), !this.pointSelector.enabled && ((i = this.editor) == null || i.disable());
45
46
  }));
@@ -51,13 +52,13 @@ class x extends m {
51
52
  };
52
53
  }
53
54
  get pointSelector() {
54
- return o.modules.pointSelector;
55
+ return n.modules.pointSelector;
55
56
  }
56
57
  /**
57
58
  * @description 停止创建当前物体,等同于`esc`
58
59
  */
59
60
  stopCreating() {
60
- o.modules.pointSelector.disable();
61
+ n.modules.pointSelector.disable();
61
62
  }
62
63
  /**
63
64
  * @description 从场景中删除当前物体
@@ -77,13 +78,16 @@ class x extends m {
77
78
  unhighlight() {
78
79
  }
79
80
  applyObjectMatrixWorld(e) {
80
- return Array.isArray(e) ? e.map((l) => l.clone().applyMatrix4(this.matrixWorld)) : e.clone().applyMatrix4(this.matrixWorld);
81
+ const o = y(e);
82
+ this.updateMatrixWorld();
83
+ const i = o.map((l) => this.localToWorld(l.clone()));
84
+ return Array.isArray(e) ? i : i[0];
81
85
  }
82
86
  applyObjectQuaternion(e) {
83
- const l = this.quaternion.clone();
84
- return Array.isArray(e) ? e.map((i) => i.clone().applyQuaternion(l)) : e.clone().applyQuaternion(l);
87
+ const o = this.quaternion.clone();
88
+ return Array.isArray(e) ? e.map((i) => i.clone().applyQuaternion(o)) : e.clone().applyQuaternion(o);
85
89
  }
86
90
  }
87
91
  export {
88
- x as BaseObject
92
+ A as BaseObject
89
93
  };
@@ -5,7 +5,7 @@ class m extends a {
5
5
  super(e, () => {
6
6
  const i = () => {
7
7
  var s, t;
8
- const o = (s = e.boxMesh.topPlane.getGeometryInfo()) == null ? void 0 : s.center, n = (t = e.boxMesh.bottomPlane.getGeometryInfo()) == null ? void 0 : t.center, r = new c.Vector3().lerpVectors(o, n, 0.5);
8
+ const o = (s = e.boxMesh.topPlane) == null ? void 0 : s.center, n = (t = e.boxMesh.bottomPlane) == null ? void 0 : t.center, r = new c.Vector3().lerpVectors(o, n, 0.5);
9
9
  return { topCenter: o, bottomCenter: n, boxCenter: r };
10
10
  };
11
11
  return {
@@ -1,11 +1,11 @@
1
1
  import { BaseEditorWithObjectHelper as l } from "../Base/Editor.js";
2
- import * as m from "three";
2
+ import * as a from "three";
3
3
  class P extends l {
4
4
  constructor(t) {
5
5
  super(t, () => {
6
6
  const i = () => {
7
7
  var n, e;
8
- const o = (n = t.prismMesh.topPolygon.getGeometryInfo()) == null ? void 0 : n.center, s = (e = t.prismMesh.bottomPolygon.getGeometryInfo()) == null ? void 0 : e.center, r = new m.Vector3().lerpVectors(o, s, 0.5);
8
+ const o = (n = t.prismMesh.topPolygon) == null ? void 0 : n.center, s = (e = t.prismMesh.bottomPolygon) == null ? void 0 : e.center, r = new a.Vector3().lerpVectors(o, s, 0.5);
9
9
  return { topCenter: o, bottomCenter: s, boxCenter: r };
10
10
  };
11
11
  return {
@@ -15,7 +15,7 @@ let C = class {
15
15
  /**
16
16
  * @realsee/dnalogel 版本号
17
17
  */
18
- i(this, "VERSION", "3.29.7");
18
+ i(this, "VERSION", "3.30.0");
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.7",
3
+ "%c %c@realsee/dnalogel %cv3.30.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",
@@ -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.7",
3
+ "version": "3.30.0",
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",