@realsee/dnalogel 2.27.3-dev.0 → 2.27.4-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 (379) hide show
  1. package/dist/AreaMakerPlugin/Controller.d.ts +94 -0
  2. package/dist/AreaMakerPlugin/index.d.ts +4 -0
  3. package/dist/AreaMakerPlugin/typing.d.ts +148 -0
  4. package/dist/AreaMakerPlugin/utils/Item.d.ts +114 -0
  5. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  6. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -2
  7. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
  8. package/dist/base/BasePluginWithData.d.ts +1 -1
  9. package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  10. package/dist/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
  11. package/dist/index.cjs.js +52 -52
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +4946 -4289
  14. package/dist/index.umd.js +54 -54
  15. package/dist/shared-utils/index.d.ts +1 -0
  16. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  17. package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
  18. package/dist/shared-utils/three/index.d.ts +2 -0
  19. package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
  20. package/docs/assets/search.js +1 -1
  21. package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
  22. package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
  23. package/docs/classes/CSS3DRender.html +33 -31
  24. package/docs/classes/CruisePluginController.html +29 -27
  25. package/docs/classes/GuideLineItem.GuideLineItem.html +22 -20
  26. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -35
  27. package/docs/classes/Magnifier.html +22 -20
  28. package/docs/classes/ModelRoomLabelController.html +13 -11
  29. package/docs/classes/Object3DHelperController.html +27 -25
  30. package/docs/classes/PaintBrush.html +17 -15
  31. package/docs/classes/PanoMeasurePluginLine.html +29 -27
  32. package/docs/classes/PanoMeasurePluginModel.html +29 -27
  33. package/docs/classes/PanoMeasurePluginPoint.html +13 -11
  34. package/docs/classes/PanoMeasurePluginPolyline.html +29 -27
  35. package/docs/classes/PanoTagPluginController.html +49 -47
  36. package/docs/classes/Util.BetterTween.html +13 -8
  37. package/docs/classes/Util.Interval.html +16 -11
  38. package/docs/classes/Util.LineSegments.html +379 -0
  39. package/docs/classes/Util.Magnifier.html +24 -19
  40. package/docs/classes/Util.Object3D.html +401 -0
  41. package/docs/classes/Util.PointDomHelper.html +15 -10
  42. package/docs/classes/Util.PointHelper.html +15 -10
  43. package/docs/classes/Util.PointSelectorHelper.html +20 -15
  44. package/docs/classes/Util.Rectangle.html +17 -12
  45. package/docs/enums/CameraMovementEffect.html +9 -7
  46. package/docs/enums/ContentType.html +22 -20
  47. package/docs/enums/DIRECTION.html +11 -9
  48. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
  49. package/docs/enums/DimensionType.html +9 -7
  50. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
  51. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
  52. package/docs/enums/PaintBrushTypeEnum.html +10 -8
  53. package/docs/enums/PointType.html +9 -7
  54. package/docs/enums/Rotation.html +10 -8
  55. package/docs/functions/AreaMakerPluginPlugin.html +284 -0
  56. package/docs/functions/CSS3DRenderPlugin.html +6 -4
  57. package/docs/functions/CameraMovementPlugin.html +6 -4
  58. package/docs/functions/CruisePlugin.html +7 -5
  59. package/docs/functions/GuideLinePlugin.html +7 -5
  60. package/docs/functions/ItemLabelPlugin.html +6 -4
  61. package/docs/functions/MapviewFloorplanPlugin.html +6 -4
  62. package/docs/functions/ModelChassisCompassPlugin.html +6 -4
  63. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
  64. package/docs/functions/ModelFloorplanPlugin.html +6 -4
  65. package/docs/functions/ModelItemLabelPlugin.html +6 -4
  66. package/docs/functions/ModelRoomLabelPlugin.html +6 -4
  67. package/docs/functions/ModelTVVideoPlugin.html +6 -4
  68. package/docs/functions/ModelViewPlugin.html +6 -4
  69. package/docs/functions/Object3DHelperPlugin.html +6 -4
  70. package/docs/functions/PanoCompassPlugin.html +6 -4
  71. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
  72. package/docs/functions/PanoDoorLabelPlugin.html +6 -4
  73. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
  74. package/docs/functions/PanoMeasurePlugin.html +6 -4
  75. package/docs/functions/PanoRulerPlugin.html +6 -4
  76. package/docs/functions/PanoRulerProPlugin.html +6 -4
  77. package/docs/functions/PanoSpatialTagPlugin.html +6 -4
  78. package/docs/functions/PanoTagPlugin.html +6 -4
  79. package/docs/functions/PanoVideoPlugin.html +6 -4
  80. package/docs/functions/PipelinePlugin.html +6 -4
  81. package/docs/functions/TopviewFloorplanPlugin.html +6 -4
  82. package/docs/functions/Util.absoluteUrl.html +9 -4
  83. package/docs/functions/Util.equal.html +333 -0
  84. package/docs/functions/Util.getCoordsFromClient.html +9 -4
  85. package/docs/functions/Util.getCoordsFromElement.html +9 -4
  86. package/docs/functions/Util.getFrameTime.html +9 -4
  87. package/docs/functions/Util.getIntersectFromRelativePosition.html +9 -4
  88. package/docs/functions/Util.getRaycasterFromFivePointer.html +9 -4
  89. package/docs/functions/Util.isAbsoluteURL.html +9 -4
  90. package/docs/functions/Util.isModelLike.html +9 -4
  91. package/docs/functions/Util.isNil.html +9 -4
  92. package/docs/functions/Util.isPanoramaLike.html +9 -4
  93. package/docs/functions/Util.nextFrame.html +9 -4
  94. package/docs/functions/Util.notNil.html +9 -4
  95. package/docs/functions/Util.requestAnimationFrameInterval.html +9 -4
  96. package/docs/functions/Util.tweenProgress.html +9 -4
  97. package/docs/functions/Util.uuid.html +9 -4
  98. package/docs/functions/pluginFlag.html +7 -5
  99. package/docs/index.html +7 -5
  100. package/docs/interfaces/AddTagConfig.html +8 -6
  101. package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
  102. package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
  103. package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
  104. package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
  105. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
  106. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
  107. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
  108. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
  109. package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
  110. package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
  111. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
  112. package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
  113. package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
  114. package/docs/interfaces/CruisePluginTypes.Config.html +10 -8
  115. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -12
  116. package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -20
  117. package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -12
  118. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -14
  119. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -14
  120. package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -9
  121. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -6
  122. package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -11
  123. package/docs/interfaces/EventMap.html +17 -15
  124. package/docs/interfaces/FloorplanBounding.html +10 -8
  125. package/docs/interfaces/FloorplanData.html +12 -10
  126. package/docs/interfaces/FloorplanEntrance.html +13 -11
  127. package/docs/interfaces/FloorplanExtraObject.html +12 -10
  128. package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
  129. package/docs/interfaces/FloorplanFloorData.html +11 -9
  130. package/docs/interfaces/FloorplanImagePosition.html +9 -7
  131. package/docs/interfaces/FloorplanObserver.html +11 -9
  132. package/docs/interfaces/FloorplanOutlineItem.html +11 -9
  133. package/docs/interfaces/FloorplanPosition.html +9 -7
  134. package/docs/interfaces/FloorplanRoomItem.html +15 -13
  135. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
  136. package/docs/interfaces/FloorplanServerBounding.html +10 -8
  137. package/docs/interfaces/FloorplanServerComputedData.html +12 -10
  138. package/docs/interfaces/FloorplanServerData.html +9 -7
  139. package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
  140. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
  141. package/docs/interfaces/FloorplanServerEntrance.html +13 -11
  142. package/docs/interfaces/FloorplanServerFloorData.html +11 -9
  143. package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
  144. package/docs/interfaces/FloorplanServerObserver.html +11 -9
  145. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
  146. package/docs/interfaces/FloorplanServerPosition.html +9 -7
  147. package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
  148. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
  149. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -8
  150. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -10
  151. package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -13
  152. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -8
  153. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -6
  154. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -13
  155. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -8
  156. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -18
  157. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -7
  158. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -18
  159. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -5
  160. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -6
  161. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -8
  162. package/docs/interfaces/GuideLinePluginType.Route.html +13 -11
  163. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -9
  164. package/docs/interfaces/HelperOffset.html +10 -8
  165. package/docs/interfaces/ImagePlaneGroup.html +8 -6
  166. package/docs/interfaces/ItemLabelPluginData.html +8 -6
  167. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
  168. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
  169. package/docs/interfaces/MinMax.html +9 -7
  170. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
  171. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
  172. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
  173. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
  174. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
  175. package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
  176. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
  177. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
  178. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
  179. package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
  180. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
  181. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
  182. package/docs/interfaces/ModelViewPluginExportType.html +13 -11
  183. package/docs/interfaces/Object3DHelperState.html +10 -8
  184. package/docs/interfaces/ObjectHelperControllers.html +11 -9
  185. package/docs/interfaces/PaintBrushAction.html +14 -12
  186. package/docs/interfaces/PaintBrushConfigs.html +14 -12
  187. package/docs/interfaces/PaintBrushState.html +12 -10
  188. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
  189. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
  190. package/docs/interfaces/PanoMeasureParameterType.html +18 -16
  191. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
  192. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
  193. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
  194. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
  195. package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
  196. package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
  197. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
  198. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
  199. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
  200. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
  201. package/docs/interfaces/PanoRulerProPluginState.html +10 -8
  202. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
  203. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
  204. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
  205. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
  206. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
  207. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
  208. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
  209. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
  210. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
  211. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
  212. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
  213. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
  214. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
  215. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
  216. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
  217. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
  218. package/docs/interfaces/Point.html +10 -8
  219. package/docs/interfaces/Room.html +11 -9
  220. package/docs/interfaces/RoomInfo.html +9 -7
  221. package/docs/interfaces/RoomLabel.html +16 -14
  222. package/docs/interfaces/RoomRules.html +7 -5
  223. package/docs/interfaces/Rooms.html +7 -5
  224. package/docs/interfaces/Scissor.html +11 -9
  225. package/docs/interfaces/State.html +10 -8
  226. package/docs/interfaces/TagCacheInterface.html +14 -12
  227. package/docs/interfaces/TagConfig.html +16 -14
  228. package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
  229. package/docs/interfaces/TagIconUrl.html +14 -12
  230. package/docs/interfaces/TagObjectGroup.html +8 -6
  231. package/docs/interfaces/TagStyle.html +8 -6
  232. package/docs/interfaces/Tags.html +11 -9
  233. package/docs/interfaces/TemporaryState.html +8 -6
  234. package/docs/interfaces/Util.MagnifierParameter.html +15 -10
  235. package/docs/interfaces/Util.MouseGroupParameter.html +12 -7
  236. package/docs/interfaces/Util.PointIntersection.html +12 -7
  237. package/docs/modules/AreaMakerPluginPluginType.html +319 -0
  238. package/docs/modules/CruisePluginTypes.html +7 -5
  239. package/docs/modules/GuideLineItem.html +7 -5
  240. package/docs/modules/GuideLineModeItem.html +7 -5
  241. package/docs/modules/GuideLinePluginType.html +7 -5
  242. package/docs/modules/PanoVideoPluginType.html +7 -5
  243. package/docs/modules/Util.html +12 -4
  244. package/docs/modules.html +10 -6
  245. package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
  246. package/docs/types/AreaMakerPluginPluginType.PluginData.html +297 -0
  247. package/docs/types/AreaMakerPluginPluginType.ServerData.html +297 -0
  248. package/docs/types/ArrayPosition.html +7 -5
  249. package/docs/types/AudioAppearance.html +7 -5
  250. package/docs/types/AudioTagTypeConfigKey.html +7 -5
  251. package/docs/types/CSS3DRenderExportType.html +7 -5
  252. package/docs/types/CSS3DRenderPluginExportType.html +7 -5
  253. package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
  254. package/docs/types/ClassFunctionParameters.html +7 -5
  255. package/docs/types/Color.html +7 -5
  256. package/docs/types/ContentTypeConfigKey.html +7 -5
  257. package/docs/types/ContentTypeConfigKeySplit.html +7 -5
  258. package/docs/types/ContentTypeMap.html +7 -5
  259. package/docs/types/Create3DDomContainerReturnType.html +7 -5
  260. package/docs/types/Create3DElementReturnType.html +7 -5
  261. package/docs/types/CruisePluginExportType.html +7 -5
  262. package/docs/types/CruisePluginTypes.CruiseData.html +7 -5
  263. package/docs/types/CruisePluginTypes.MoveEffect.html +7 -5
  264. package/docs/types/DeprecatedMediaPlaneProperty.html +7 -5
  265. package/docs/types/DeprecatedTagProperty.html +7 -5
  266. package/docs/types/Direction-1.html +7 -5
  267. package/docs/types/Direction4.html +7 -5
  268. package/docs/types/ElementRenderer.html +7 -5
  269. package/docs/types/FloorplanRuleLabels.html +7 -5
  270. package/docs/types/FloorplanServerRuleLabels.html +7 -5
  271. package/docs/types/GuideLinePluginExportType.html +7 -5
  272. package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -5
  273. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -5
  274. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -5
  275. package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -5
  276. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -5
  277. package/docs/types/GuideLinePluginType.PathItem.html +7 -5
  278. package/docs/types/GuideLinePluginType.PluginData.html +7 -5
  279. package/docs/types/HelperEventMap.html +7 -5
  280. package/docs/types/LoadTagConfig.html +7 -5
  281. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
  282. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
  283. package/docs/types/MediaData.html +7 -5
  284. package/docs/types/MediaStore.html +7 -5
  285. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
  286. package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
  287. package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
  288. package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
  289. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
  290. package/docs/types/MoveArgs.html +7 -5
  291. package/docs/types/MoveOpts.html +7 -5
  292. package/docs/types/Object3DHelperEventMap.html +7 -5
  293. package/docs/types/ObjectFit.html +7 -5
  294. package/docs/types/PaintBrushEventMap.html +7 -5
  295. package/docs/types/PanoCompassPluginData.html +7 -5
  296. package/docs/types/PanoCompassPluginExportType.html +7 -5
  297. package/docs/types/PanoCompassPluginParameterType.html +7 -5
  298. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
  299. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
  300. package/docs/types/PanoIndex.html +7 -5
  301. package/docs/types/PanoMeasurePluginEvent.html +7 -5
  302. package/docs/types/PanoMeasureReturnType.html +7 -5
  303. package/docs/types/PanoSpatialTagPluginId.html +7 -5
  304. package/docs/types/PanoTagPluginExportInterface.html +7 -5
  305. package/docs/types/PanoTagPluginParamsInterface.html +7 -5
  306. package/docs/types/PanoVideoPluginParameterType.html +7 -5
  307. package/docs/types/PanoVideoPluginReturnType.html +7 -5
  308. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -5
  309. package/docs/types/PipelinePluginParameterType.html +7 -5
  310. package/docs/types/PipelinePluginReturnType.html +7 -5
  311. package/docs/types/PlaneTag.html +7 -5
  312. package/docs/types/Point2DTag.html +7 -5
  313. package/docs/types/Point3DTag.html +7 -5
  314. package/docs/types/PointTag.html +7 -5
  315. package/docs/types/PointTagInstance.html +7 -5
  316. package/docs/types/Position.html +7 -5
  317. package/docs/types/RotateArgs.html +7 -5
  318. package/docs/types/RotateOpts.html +7 -5
  319. package/docs/types/RuleLabelsKey.html +7 -5
  320. package/docs/types/RuleLabelsValue.html +7 -5
  321. package/docs/types/StickType.html +7 -5
  322. package/docs/types/Tag.html +9 -12
  323. package/docs/types/Tag2D.html +7 -5
  324. package/docs/types/Tag3D.html +7 -5
  325. package/docs/types/TagConfigByKey.html +7 -5
  326. package/docs/types/TagContentType.html +7 -5
  327. package/docs/types/TagDimensionType.html +7 -5
  328. package/docs/types/TagElement.html +7 -5
  329. package/docs/types/TagEvents.html +7 -5
  330. package/docs/types/TagGLTFObject.html +7 -5
  331. package/docs/types/TagHooks.html +7 -5
  332. package/docs/types/TagId.html +7 -5
  333. package/docs/types/TagInstance.html +7 -5
  334. package/docs/types/TagPointType.html +7 -5
  335. package/docs/types/TagRendererMap.html +7 -5
  336. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
  337. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
  338. package/docs/types/WorkCode.html +7 -5
  339. package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
  340. package/docs/variables/PLUGIN.html +7 -5
  341. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
  342. package/docs/variables/ROOM_TYPE_MAP.html +7 -5
  343. package/docs/variables/defaultGlobalConfig.html +8 -6
  344. package/docs/variables/itemLabelPluginServerParams.html +7 -5
  345. package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
  346. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
  347. package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
  348. package/libs/AreaMakerPlugin/Controller.js +336 -0
  349. package/libs/AreaMakerPlugin/index.d.ts +4 -0
  350. package/libs/AreaMakerPlugin/index.js +37 -0
  351. package/libs/AreaMakerPlugin/typing.d.ts +148 -0
  352. package/libs/AreaMakerPlugin/typing.js +1 -0
  353. package/libs/AreaMakerPlugin/utils/Item.d.ts +114 -0
  354. package/libs/AreaMakerPlugin/utils/Item.js +263 -0
  355. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
  356. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  357. package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
  358. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -2
  359. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
  360. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +10 -10
  361. package/libs/base/BasePlugin.js +1 -1
  362. package/libs/base/BasePluginWithData.d.ts +1 -1
  363. package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  364. package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
  365. package/libs/components/AreaLabel/LabelItem.js +125 -0
  366. package/libs/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
  367. package/libs/index.d.ts +1 -0
  368. package/libs/index.js +120 -112
  369. package/libs/shared-utils/index.d.ts +1 -0
  370. package/libs/shared-utils/index.js +27 -21
  371. package/libs/shared-utils/logger.js +1 -1
  372. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  373. package/libs/shared-utils/math/planimetry.js +36 -29
  374. package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
  375. package/libs/shared-utils/three/core/Object3D.js +22 -0
  376. package/libs/shared-utils/three/index.d.ts +2 -0
  377. package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
  378. package/libs/shared-utils/three/objects/LineSegments.js +9 -0
  379. package/package.json +1 -1
@@ -2,14 +2,14 @@ var k = Object.defineProperty, w = Object.defineProperties;
2
2
  var P = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var F = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var v = (n, e, t) => e in n ? k(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, m = (n, e) => {
5
+ var v = (n, e, t) => e in n ? k(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, p = (n, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  F.call(e, t) && v(n, t, e[t]);
8
8
  if (C)
9
9
  for (var t of C(e))
10
10
  L.call(e, t) && v(n, t, e[t]);
11
11
  return n;
12
- }, p = (n, e) => w(n, P(e));
12
+ }, c = (n, e) => w(n, P(e));
13
13
  var i = (n, e, t) => (v(n, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import * as l from "three";
15
15
  import { logWarning as T, logError as V } from "../../shared-utils/log.js";
@@ -185,19 +185,19 @@ class R {
185
185
  this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
186
186
  });
187
187
  i(this, "onFlickerAnimeUpdate", (e) => {
188
- var a, r;
188
+ var r, a, o, d;
189
189
  const { progress: t } = e, s = 1 - t;
190
- this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(p(m({}, this.startTagContainer.tag.data), {
190
+ this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(c(p({}, this.startTagContainer.tag.data), {
191
191
  opacity: s,
192
192
  name: this.name,
193
- distance: Math.round(this.curvePath.getLength())
194
- }))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((r = this.endTagContainer.app) == null || r.$set(p(m({}, this.endTagContainer.tag.data), { opacity: s })));
193
+ distance: Math.round((a = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? a : 0)
194
+ }))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((d = this.endTagContainer.app) == null || d.$set(c(p({}, this.endTagContainer.tag.data), { opacity: s })));
195
195
  });
196
196
  i(this, "logWarning", (e) => T("GuideLineModeItem: ", e));
197
197
  i(this, "logError", (e) => V("GuideLineModeItem: ", e));
198
- var r, o;
198
+ var a, o;
199
199
  this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new y(this.five) }, this.endTagContainer = { tag: null, plugin: new y(this.five) };
200
- const s = new l.BufferGeometry(), a = new l.ShaderMaterial({
200
+ const s = new l.BufferGeometry(), r = new l.ShaderMaterial({
201
201
  vertexShader: B,
202
202
  fragmentShader: I,
203
203
  transparent: !0,
@@ -216,7 +216,7 @@ class R {
216
216
  vOffset: { value: 0 }
217
217
  }
218
218
  });
219
- this.mesh = new l.Mesh(s, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (r = this.five.model) == null ? void 0 : r.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
219
+ this.mesh = new l.Mesh(s, r), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (a = this.five.model) == null ? void 0 : a.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
220
220
  }
221
221
  get panoGroup() {
222
222
  return this._panoGroup;
@@ -265,26 +265,26 @@ class R {
265
265
  return this.logError("setPathByPanoGroup: work is not ready");
266
266
  const s = S(e);
267
267
  if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
268
- const r = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
269
- this.skippedPositions = r;
268
+ const a = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
269
+ this.skippedPositions = a;
270
270
  }
271
- const a = this.getPathFromPanoGroup(s, this.five.work, t);
272
- this.path = a, this.setGeometryByPath(a, t);
271
+ const r = this.getPathFromPanoGroup(s, this.five.work, t);
272
+ this.path = r, this.setGeometryByPath(r, t);
273
273
  }
274
274
  /** 通过路径设置线条形状 */
275
275
  setGeometryByPath(e, t) {
276
- var f, g, c;
276
+ var h, g, f;
277
277
  if (this.disposed)
278
278
  return this.logError("disposed");
279
- const s = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, a = (g = t == null ? void 0 : t.width) != null ? g : this.width, r = (c = t == null ? void 0 : t.unit_length) != null ? c : this.unitLength;
280
- this.path = e, this.scale = s, this.width = a, this.unitLength = r;
281
- const { geometry: o, maxU: u, curvePath: d, curvePoints: h } = U({
279
+ const s = (h = t == null ? void 0 : t.scale) != null ? h : this.scale, r = (g = t == null ? void 0 : t.width) != null ? g : this.width, a = (f = t == null ? void 0 : t.unit_length) != null ? f : this.unitLength;
280
+ this.path = e, this.scale = s, this.width = r, this.unitLength = a;
281
+ const { geometry: o, maxU: d, curvePath: m, curvePoints: u } = U({
282
282
  path: e,
283
- width: a * s,
284
- unitLength: r * s,
283
+ width: r * s,
284
+ unitLength: a * s,
285
285
  skipPositions: this.skippedPositions
286
286
  });
287
- this._curvePath = d, this._curvePoints = h, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = u, this.five.needsRender = !0;
287
+ this._curvePath = m, this._curvePoints = u, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
288
288
  }
289
289
  /** 设置线条材质 */
290
290
  setMartial(e) {
@@ -371,32 +371,35 @@ class R {
371
371
  return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
372
372
  }
373
373
  getPanoGroupLengths() {
374
- const e = this.panoGroup.map((h) => this.five.work.observers[h]), t = this.curvePoints.length, s = this.curvePath.getLength(), a = t - 1, r = s / a, o = this.curvePath.getLengths(a), u = [];
375
- let d = 0;
374
+ var u;
375
+ if (!this.curvePoints || !this.curvePath)
376
+ return [];
377
+ const e = this.panoGroup.map((h) => this.five.work.observers[h]), t = this.curvePoints.length, s = this.curvePath.getLength(), r = t - 1, a = s / r, o = (u = this.curvePath.getLengths(r)) != null ? u : [], d = [];
378
+ let m = 0;
376
379
  for (let h = 0; h < t; h++) {
377
- const f = this.curvePoints[h], g = e[d];
378
- if (!g)
380
+ const g = this.curvePoints[h], f = e[m];
381
+ if (!f)
379
382
  break;
380
- g.standingPosition.clone().setY(0).distanceTo(f.clone().setY(0)) < r && (u.push(o[h]), d += 1);
383
+ f.standingPosition.clone().setY(0).distanceTo(g.clone().setY(0)) < a && (d.push(o[h]), m += 1);
381
384
  }
382
- return u;
385
+ return d;
383
386
  }
384
387
  setTag(e, t) {
385
- const s = e === "start" ? this.startTagContainer : this.endTagContainer;
386
- t || s.plugin.clearTags();
387
- const r = A({}, {
388
+ const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
389
+ t || r.plugin.clearTags();
390
+ const o = A({}, {
388
391
  contentType: "Custom",
389
392
  stickType: "2DPoint",
390
393
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
391
394
  style: { point: { enabled: !1 } },
392
395
  data: {}
393
396
  }, t);
394
- s.tag = r, b(r) && (s.tag.element = (o) => {
395
- var h;
396
- (h = s.app) == null || h.$destroy();
397
- const u = e === "start" ? p(m({}, r.data), { name: this.name, distance: Math.round(this.curvePath.getLength()), i18n: this.plugin.config.i18n }) : r.data, d = new O({ target: o, intro: !0, props: u });
398
- return s.app = d, () => d.$destroy();
399
- }), s.plugin.load({ tagList: [s.tag] });
397
+ r.tag = o, b(o) && (r.tag.element = (d) => {
398
+ var h, g;
399
+ (h = r.app) == null || h.$destroy();
400
+ const m = e === "start" ? c(p({}, o.data), { name: this.name, distance: Math.round((g = s.getLength()) != null ? g : 0), i18n: this.plugin.config.i18n }) : o.data, u = new O({ target: d, intro: !0, props: m });
401
+ return r.app = u, () => u.$destroy();
402
+ }), r.plugin.load({ tagList: [r.tag] });
400
403
  }
401
404
  doShow() {
402
405
  this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
@@ -408,18 +411,18 @@ class R {
408
411
  getPathFromPanoGroup(e, t, s) {
409
412
  if (e.length < 2)
410
413
  return [];
411
- const r = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
412
- return [m({ type: "CatmullRomCurve3", points: r }, s)];
414
+ const a = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
415
+ return [p({ type: "CatmullRomCurve3", points: a }, s)];
413
416
  }
414
417
  }
415
418
  function b(n) {
416
419
  return n.contentType === "Custom";
417
420
  }
418
- const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
421
+ const ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
419
422
  __proto__: null,
420
423
  GuideLineModeItem: R
421
424
  }, Symbol.toStringTag, { value: "Module" }));
422
425
  export {
423
426
  R as GuideLineModeItem,
424
- te as GuideLineModeItem$1
427
+ ie as GuideLineModeItem$1
425
428
  };
@@ -17,11 +17,6 @@ interface LineGeometryOption {
17
17
  * @returns THREE BufferGeometry
18
18
  */
19
19
  export declare function createLineGeometry(options: LineGeometryOption): {
20
- geometry: THREE.BufferGeometry;
21
- maxU: number;
22
- curvePath?: undefined;
23
- curvePoints?: undefined;
24
- } | {
25
20
  geometry: THREE.BufferGeometry;
26
21
  maxU: number;
27
22
  curvePath: THREE.CurvePath<THREE.Vector3>;
@@ -11,31 +11,31 @@ const z = 2, M = 3, X = 3, k = 2;
11
11
  function Q(e) {
12
12
  const i = e.width, g = e.unitLength / i, c = i / 2, E = e.path;
13
13
  if (E.length === 0)
14
- return { geometry: new n.BufferGeometry(), maxU: 0 };
14
+ return { geometry: new n.BufferGeometry(), maxU: 0, curvePath: null, curvePoints: null };
15
15
  const u = new n.CurvePath();
16
16
  E.forEach((t) => {
17
- const m = I(t);
18
- m && u.add(m);
17
+ const l = I(t);
18
+ l && u.add(l);
19
19
  });
20
20
  const w = Math.ceil(u.getLength() * 100);
21
21
  u.arcLengthDivisions = w;
22
22
  const o = u.getPoints(w), y = o.length, L = G(o.map((t) => [t.x, t.z])), B = (y - 1) * z * M, d = 2 * y, C = d * X, U = d * k, r = new Uint32Array(B), s = new Float32Array(C), a = new Float32Array(U);
23
- let N = 0, R = 0;
23
+ let N = 0, P = 0;
24
24
  for (let t = 0; t < o.length; t++) {
25
- const [m, A] = L[t][0], T = o[t], { x: _, y: b, z: P } = T, f = new x(_ + m * c, b + 0.05, P + A * c);
26
- s[t * 6 + 0] = f.x, s[t * 6 + 1] = f.y, s[t * 6 + 2] = f.z;
27
- const h = new x(_ - m * c, b + 0.05, P - A * c);
28
- s[t * 6 + 3] = h.x, s[t * 6 + 4] = h.y, s[t * 6 + 5] = h.z, N += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
29
- const v = N / i / g;
30
- if (R = v, a[t * 4 + 0] = 0, a[t * 4 + 1] = v, a[t * 4 + 2] = 1, a[t * 4 + 3] = v, e.skipPositions) {
31
- const V = new n.Vector3().lerpVectors(f, h, 0.5);
25
+ const [l, R] = L[t][0], T = o[t], { x: A, y: _, z: b } = T, v = new x(A + l * c, _ + 0.05, b + R * c);
26
+ s[t * 6 + 0] = v.x, s[t * 6 + 1] = v.y, s[t * 6 + 2] = v.z;
27
+ const f = new x(A - l * c, _ + 0.05, b - R * c);
28
+ s[t * 6 + 3] = f.x, s[t * 6 + 4] = f.y, s[t * 6 + 5] = f.z, N += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
29
+ const h = N / i / g;
30
+ if (P = h, a[t * 4 + 0] = 0, a[t * 4 + 1] = h, a[t * 4 + 2] = 1, a[t * 4 + 3] = h, e.skipPositions) {
31
+ const V = new n.Vector3().lerpVectors(v, f, 0.5);
32
32
  if (e.skipPositions.some((F) => F.distanceTo(V) < 0.26))
33
33
  continue;
34
34
  }
35
35
  t !== o.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
36
36
  }
37
- const l = new n.BufferGeometry();
38
- return l.setAttribute("position", new n.BufferAttribute(s, 3)), l.setAttribute("uv", new n.BufferAttribute(a, 2)), l.setIndex(new n.BufferAttribute(r, 1)), { geometry: l, maxU: R, curvePath: u, curvePoints: o };
37
+ const m = new n.BufferGeometry();
38
+ return m.setAttribute("position", new n.BufferAttribute(s, 3)), m.setAttribute("uv", new n.BufferAttribute(a, 2)), m.setIndex(new n.BufferAttribute(r, 1)), { geometry: m, maxU: P, curvePath: u, curvePoints: o };
39
39
  }
40
40
  function I(e) {
41
41
  if (O(e)) {
@@ -40,8 +40,6 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
40
40
  fiveState?: Partial<FiveState>;
41
41
  /** 样式 */
42
42
  style?: TagStyle;
43
- } & {
44
- contentType: string;
45
43
  } & (S extends '3DPoint' ? {
46
44
  normal: Position;
47
45
  } : unknown) & // 三维标签需要法向量
@@ -171,5 +171,5 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
171
171
  clickable?: boolean;
172
172
  isMerged?: boolean;
173
173
  }
174
- export declare const defaultGlobalConfig: TagConfig<any>;
174
+ export declare const defaultGlobalConfig: TagConfig;
175
175
  export {};
@@ -24,7 +24,7 @@ import { loadTexture as T } from "../../../shared-utils/three/loadTexture.js";
24
24
  import { QuadrangleGeometry as F, QuadrangleMesh as I } from "../../../shared-utils/three/Quadrangle.js";
25
25
  import { getVideoTexture as B } from "../../../shared-utils/three/loadVideoTexture.js";
26
26
  import { Image_Play_Icon_With_Text as L, Image_Play_Icon as b } from "../../Assets/Icon.js";
27
- import { getPositionsByObjectFit as g } from "../../../shared-utils/three/getPositionsByObjectFit.js";
27
+ import { getPositionsByObjectFit as f } from "../../../shared-utils/three/getPositionsByObjectFit.js";
28
28
  import { FragmentTransparencyMaterial as H } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
29
29
  import "../../../shared-utils/math/pointIsRectangle.js";
30
30
  import "../../../shared-utils/device.js";
@@ -65,15 +65,15 @@ class G extends P {
65
65
  a = t.map((h) => h.clone().add(i));
66
66
  }
67
67
  T(e).then((i) => {
68
- var f;
69
- const h = new URL(e, location.href).pathname.endsWith(".png"), u = new l.MeshBasicMaterial({ map: i, transparent: h }), p = g(
70
- (f = s == null ? void 0 : s.objectFit) != null ? f : "contain",
68
+ var g;
69
+ const h = new URL(e, location.href).pathname.endsWith(".png"), u = new l.MeshBasicMaterial({ map: i, transparent: h }), p = f(
70
+ (g = s == null ? void 0 : s.objectFit) != null ? g : "contain",
71
71
  a,
72
72
  i.image.width / i.image.height
73
73
  ), m = x(...p), M = p.map((V) => V.clone().sub(m)), y = new F(M);
74
74
  this.position.copy(m), this.geometry = y, this.material = u;
75
75
  }).catch((i) => {
76
- console.error(`Imageplane error ${i}`);
76
+ console.error(`Imageplane error ${i == null ? void 0 : i.message}`);
77
77
  });
78
78
  }
79
79
  }
@@ -155,7 +155,7 @@ class O extends P {
155
155
  const t = yield this.getImageTexture(this.videoCoverSrc);
156
156
  if (!t)
157
157
  return;
158
- const s = new l.MeshBasicMaterial({ transparent: !1, map: t }), o = g(this.objectFit, this.cornerPoints, t.image.width / t.image.height), a = new I(o, s);
158
+ const s = new l.MeshBasicMaterial({ transparent: !1, map: t }), o = f(this.objectFit, this.cornerPoints, t.image.width / t.image.height), a = new I(o, s);
159
159
  return a.position.copy(new w(0, 0, 0)), a.name = "videoCoverMesh", a;
160
160
  }))();
161
161
  return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
@@ -171,9 +171,9 @@ class O extends P {
171
171
  if (!this.src)
172
172
  return;
173
173
  const s = this.getVideoTexture(this.src), o = new l.MeshBasicMaterial({ transparent: !1, map: s }), a = yield new Promise((i) => {
174
- s.metadataLoaded ? i(g(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
174
+ s.metadataLoaded ? i(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
175
175
  "videoLoaded",
176
- () => i(g(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
176
+ () => i(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
177
177
  );
178
178
  }), n = new I(a, o);
179
179
  return n.name = "videoMesh", n.position.copy(new w(0, 0, 0)), n;
@@ -196,10 +196,10 @@ class O extends P {
196
196
  if (this.children.includes(this.buttonMesh))
197
197
  return;
198
198
  const e = yield (() => v(this, null, function* () {
199
- var m, M, y, f;
199
+ var m, M, y, g;
200
200
  if (this.buttonMesh)
201
201
  return this.buttonMesh;
202
- const t = (M = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? M : 1 / 0, s = (f = (y = this.coverMesh) == null ? void 0 : y.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? f : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, s, o) / o * 0.3, i = yield this.getImageTexture(this.buttonSrc), h = g("contain", this.cornerPoints, i.image.width / i.image.height), u = new I(h, new H(i));
202
+ const t = (M = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? M : 1 / 0, s = (g = (y = this.coverMesh) == null ? void 0 : y.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? g : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, s, o) / o * 0.3, i = yield this.getImageTexture(this.buttonSrc), h = f("contain", this.cornerPoints, i.image.width / i.image.height), u = new I(h, new H(i));
203
203
  u.position.copy(new w(0, 0, 0)), u.name = "buttonMesh", u.scale.set(n, n, n), this.domEvents.addAutoBindEventListener(u, "click", () => this.play());
204
204
  const p = new l.Vector3().crossVectors(new l.Vector3().subVectors(h[0], h[1]), new l.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
205
205
  return u.position.add(p), u;
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "2.27.3-dev.0");
17
+ i(this, "VERSION", "2.27.4-0");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -16,7 +16,7 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
16
16
  */
17
17
  abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
18
18
  /** 把原始数据转化为插件数据 */
19
- protected abstract formatData?(serverData: PluginServerData): Promise<PluginData>;
19
+ protected abstract formatData?(serverData: PluginServerData): Promise<PluginData> | PluginData;
20
20
  }
21
21
  export type { State, EventMap, Config };
22
22
  export type { BaseOptions } from './BasePlugin';
@@ -0,0 +1 @@
1
+ export declare const ROOM_LABEL_BG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2SDQ1xh9ALH4yN0M2BNZrKwtFc9Fmkquuma5HJBzvLiIONBnx40B7QIzTdxCcNwj3dYlEoUmabAU+UFZDpxah22Ng2NjQXH0LrwccGwyEzXfWhWQwSYQHYuFevXj14/vnn37h79+7Nr7766gup/FX5PnAj33///f/46aef3vj444/vfPbZZz9IYGMcnDbkhEYQL001Hfsu775i+7j6LID6cDQWYo8mabGMxOr+e/ye3y7989p3/9jfvHnz2q1bt25oMb549913/3Lwzjvv/Mu3337775988smdzz///AcVQ+IecsAOp8OOHRpkiJniWQnrBJmwc7EF8atxBA2ihx/obf7Qqa+un+aDI0f7k08nU+PLj3PBR+qpcvFdd3BNP7YgI7mnHqHzBRndv1hH33///QNtlAcvvfTSq999992dQzFu/vjjj/c//fTTu1z+unT2wDFoHN13QbVg5CQS3tBfQGwHoo+chltPto4FMsR3nKCZ7a3KyDM+UOOyHzV4xxAHOTjGqfVcVv23b9++++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ZHv9oK/mwaPOlm/ukkbFwjKLj428j8t8DEEvN9xJoJuhsDI9lxOeHXr3zE8cGm7fpQMfNgR54ntXmYXzx1ltvbX64VUl4SH//66+/fl2/5ndLC/BHMV/Q6ypN06Bm3lgFaKMcEbj+bDHN88/curvewF4hjhNWasrwhy/0waIPjylyYjp49Ag++NhFhi7F+jeEFcc/H6w5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";
2
+ export {
3
+ A as ROOM_LABEL_BG
4
+ };
@@ -0,0 +1,125 @@
1
+ import { SvelteComponent as v, init as p, safe_not_equal as h, append_styles as z, element as d, text as k, space as y, attr as u, set_style as l, toggle_class as g, insert as q, append as b, listen as w, set_data as x, noop as _, detach as C, is_function as I } from "../../vendor/svelte/internal/index.js";
2
+ import { ROOM_LABEL_BG as L } from "./Assets/roomLabelBg.js";
3
+ function B(t) {
4
+ z(t, "svelte-qxepni", ".room-label-item.svelte-qxepni{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.room-label-item__text.svelte-qxepni{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-qxepni{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-qxepni{font-size:0.625rem}");
5
+ }
6
+ function O(t) {
7
+ let e, i, r, f, a, m, c;
8
+ return {
9
+ c() {
10
+ e = d("div"), i = d("span"), r = k(
11
+ /*content*/
12
+ t[0]
13
+ ), f = y(), a = d("div"), u(i, "class", "room-label-item__text svelte-qxepni"), l(i, "background-image", "url(" + L + ")"), g(
14
+ i,
15
+ "wide",
16
+ /*content*/
17
+ t[0].length > 3
18
+ ), u(a, "class", "room-label-item__bar svelte-qxepni"), u(e, "class", "room-label-item svelte-qxepni"), l(
19
+ e,
20
+ "z-index",
21
+ /*zIndex*/
22
+ t[2]
23
+ ), l(
24
+ e,
25
+ "transform",
26
+ /*transform*/
27
+ t[3]
28
+ ), l(
29
+ e,
30
+ "opacity",
31
+ /*opacity*/
32
+ t[1]
33
+ ), l(
34
+ e,
35
+ "visibility",
36
+ /*visibility*/
37
+ t[5]
38
+ );
39
+ },
40
+ m(s, o) {
41
+ q(s, e, o), b(e, i), b(i, r), b(e, f), b(e, a), m || (c = w(i, "click", function() {
42
+ I(
43
+ /*onClick*/
44
+ t[4]
45
+ ) && t[4].apply(this, arguments);
46
+ }), m = !0);
47
+ },
48
+ p(s, [o]) {
49
+ t = s, o & /*content*/
50
+ 1 && x(
51
+ r,
52
+ /*content*/
53
+ t[0]
54
+ ), o & /*content*/
55
+ 1 && g(
56
+ i,
57
+ "wide",
58
+ /*content*/
59
+ t[0].length > 3
60
+ ), o & /*zIndex*/
61
+ 4 && l(
62
+ e,
63
+ "z-index",
64
+ /*zIndex*/
65
+ t[2]
66
+ ), o & /*transform*/
67
+ 8 && l(
68
+ e,
69
+ "transform",
70
+ /*transform*/
71
+ t[3]
72
+ ), o & /*opacity*/
73
+ 2 && l(
74
+ e,
75
+ "opacity",
76
+ /*opacity*/
77
+ t[1]
78
+ ), o & /*visibility*/
79
+ 32 && l(
80
+ e,
81
+ "visibility",
82
+ /*visibility*/
83
+ t[5]
84
+ );
85
+ },
86
+ i: _,
87
+ o: _,
88
+ d(s) {
89
+ s && C(e), m = !1, c();
90
+ }
91
+ };
92
+ }
93
+ function j(t, e, i) {
94
+ let r, { content: f } = e, { visible: a } = e, { opacity: m = 1 } = e, { zIndex: c = 0 } = e, { transform: s } = e, { onClick: o = () => {
95
+ } } = e;
96
+ return t.$$set = (n) => {
97
+ "content" in n && i(0, f = n.content), "visible" in n && i(6, a = n.visible), "opacity" in n && i(1, m = n.opacity), "zIndex" in n && i(2, c = n.zIndex), "transform" in n && i(3, s = n.transform), "onClick" in n && i(4, o = n.onClick);
98
+ }, t.$$.update = () => {
99
+ t.$$.dirty & /*visible*/
100
+ 64 && i(5, r = a ? "visible" : "hidden");
101
+ }, [f, m, c, s, o, r, a];
102
+ }
103
+ class G extends v {
104
+ constructor(e) {
105
+ super(), p(
106
+ this,
107
+ e,
108
+ j,
109
+ O,
110
+ h,
111
+ {
112
+ content: 0,
113
+ visible: 6,
114
+ opacity: 1,
115
+ zIndex: 2,
116
+ transform: 3,
117
+ onClick: 4
118
+ },
119
+ B
120
+ );
121
+ }
122
+ }
123
+ export {
124
+ G as LabelItem
125
+ };
@@ -0,0 +1 @@
1
+ export { SvelteComponentTyped as default } from 'svelte/internal';
package/libs/index.d.ts CHANGED
@@ -22,4 +22,5 @@ export * from './PanoTagPlugin';
22
22
  export * from './Object3DHelperPlugin';
23
23
  export * from './PanoVideoPlugin';
24
24
  export * from './PipelinePlugin';
25
+ export * from './AreaMakerPlugin';
25
26
  export * as Util from './shared-utils';