@realsee/dnalogel 3.73.0-alpha.3 → 3.73.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (509) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +9 -1
  3. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -0
  4. package/dist/index.cjs.js +49 -49
  5. package/dist/index.js +3462 -3384
  6. package/dist/index.umd.js +68 -68
  7. package/dist/shared-utils/five/getFloorMesh.d.ts +3 -0
  8. package/libs/CruisePlugin/Move.js +3 -2
  9. package/libs/CruisePlugin/Work.js +3 -2
  10. package/libs/CruisePlugin/index.js +7 -6
  11. package/libs/GuideLinePlugin/Controller.js +5 -4
  12. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  13. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  14. package/libs/GuideLinePlugin/index.js +7 -6
  15. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +230 -230
  16. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +9 -1
  17. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +179 -131
  18. package/libs/PanoTagPlugin/controller/index.js +6 -5
  19. package/libs/PanoTagPlugin/index.js +12 -11
  20. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -0
  21. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +85 -71
  22. package/libs/base/BasePlugin.js +1 -1
  23. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +44 -44
  24. package/libs/index.js +149 -148
  25. package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
  26. package/libs/shared-utils/five/getFloorMesh.js +11 -0
  27. package/libs/shared-utils/logger.js +1 -1
  28. package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
  29. package/package.json +2 -2
  30. package/docs/.nojekyll +0 -1
  31. package/docs/assets/custom.css +0 -0
  32. package/docs/assets/highlight.css +0 -127
  33. package/docs/assets/icons.js +0 -18
  34. package/docs/assets/icons.svg +0 -1
  35. package/docs/assets/main.js +0 -60
  36. package/docs/assets/navigation.js +0 -1
  37. package/docs/assets/search.js +0 -1
  38. package/docs/assets/style.css +0 -1493
  39. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
  40. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
  41. package/docs/classes/CSS3DRender.html +0 -100
  42. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
  43. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -70
  44. package/docs/classes/ModelMakerPluginInstance.html +0 -116
  45. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
  46. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
  47. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
  48. package/docs/classes/ModelRoomLabelController.html +0 -19
  49. package/docs/classes/MoveController.html +0 -45
  50. package/docs/classes/Object3DHelperController.html +0 -45
  51. package/docs/classes/PaintBrush.html +0 -15
  52. package/docs/classes/PanoMeasurePluginLine.html +0 -24
  53. package/docs/classes/PanoMeasurePluginModel.html +0 -23
  54. package/docs/classes/PanoMeasurePluginPoint.html +0 -7
  55. package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
  56. package/docs/classes/PanoTagPluginController.html +0 -111
  57. package/docs/classes/Sculpt.html +0 -77
  58. package/docs/classes/Util.BetterTween.html +0 -6
  59. package/docs/classes/Util.FiveDomEvents.html +0 -13
  60. package/docs/classes/Util.FivePuppet.html +0 -20
  61. package/docs/classes/Util.Interval.html +0 -11
  62. package/docs/classes/Util.LegacyPointHelper.html +0 -7
  63. package/docs/classes/Util.LightTag.html +0 -47
  64. package/docs/classes/Util.LineSegments.html +0 -4
  65. package/docs/classes/Util.Magnifier.html +0 -26
  66. package/docs/classes/Util.Object3D.html +0 -8
  67. package/docs/classes/Util.PointDomHelper.html +0 -8
  68. package/docs/classes/Util.PointHelper.html +0 -10
  69. package/docs/classes/Util.PointSelector.html +0 -66
  70. package/docs/classes/Util.PointSelectorHelper.html +0 -14
  71. package/docs/classes/Util.Rectangle.html +0 -12
  72. package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
  73. package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
  74. package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
  75. package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
  76. package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
  77. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
  78. package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
  79. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
  80. package/docs/classes/Util.sculpt.LineMesh.html +0 -34
  81. package/docs/classes/Util.sculpt.PointMesh.html +0 -24
  82. package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
  83. package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
  84. package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
  85. package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
  86. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
  87. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
  88. package/docs/classes/WalkController.html +0 -42
  89. package/docs/enums/CameraMovementEffect.html +0 -4
  90. package/docs/enums/ContentType.html +0 -34
  91. package/docs/enums/DIRECTION.html +0 -5
  92. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
  93. package/docs/enums/DimensionType.html +0 -4
  94. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
  95. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
  96. package/docs/enums/PaintBrushTypeEnum.html +0 -4
  97. package/docs/enums/PointType.html +0 -4
  98. package/docs/enums/Rotation.html +0 -5
  99. package/docs/functions/AreaMakerPlugin.html +0 -1
  100. package/docs/functions/CSS3DRenderPlugin.html +0 -1
  101. package/docs/functions/CameraMovementPlugin.html +0 -2
  102. package/docs/functions/CruisePlugin.html +0 -1
  103. package/docs/functions/CurrentPanoImagePlugin.html +0 -1
  104. package/docs/functions/FloorplanGuidePlugin.html +0 -1
  105. package/docs/functions/GuideLinePlugin.html +0 -1
  106. package/docs/functions/ItemLabelPlugin.html +0 -1
  107. package/docs/functions/MapviewFloorplanPlugin.html +0 -1
  108. package/docs/functions/MeasurePlugin.html +0 -1
  109. package/docs/functions/ModelChassisCompassPlugin.html +0 -2
  110. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
  111. package/docs/functions/ModelFloorplanPlugin.html +0 -1
  112. package/docs/functions/ModelItemLabelPlugin.html +0 -1
  113. package/docs/functions/ModelMakerPlugin.html +0 -1
  114. package/docs/functions/ModelRoomLabelPlugin.html +0 -1
  115. package/docs/functions/ModelTVVideoPlugin.html +0 -1
  116. package/docs/functions/ModelViewPlugin.html +0 -2
  117. package/docs/functions/MovePlugin.html +0 -1
  118. package/docs/functions/Object3DHelperPlugin.html +0 -1
  119. package/docs/functions/PanoCompassPlugin.html +0 -1
  120. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
  121. package/docs/functions/PanoDoorLabelPlugin.html +0 -1
  122. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
  123. package/docs/functions/PanoMeasurePlugin.html +0 -1
  124. package/docs/functions/PanoRulerPlugin.html +0 -2
  125. package/docs/functions/PanoRulerProPlugin.html +0 -2
  126. package/docs/functions/PanoSpatialTagPlugin.html +0 -2
  127. package/docs/functions/PanoTagPlugin.html +0 -1
  128. package/docs/functions/PanoVideoPlugin.html +0 -10
  129. package/docs/functions/PipelinePlugin.html +0 -1
  130. package/docs/functions/SculptPlugin.html +0 -2
  131. package/docs/functions/SculptPluginForFive.html +0 -2
  132. package/docs/functions/TopviewFloorplanPlugin.html +0 -1
  133. package/docs/functions/Util.awaitNextFrame.html +0 -1
  134. package/docs/functions/Util.blink.html +0 -13
  135. package/docs/functions/Util.blinkWithPreset.html +0 -6
  136. package/docs/functions/Util.bounding.html +0 -1
  137. package/docs/functions/Util.boundingBox.html +0 -1
  138. package/docs/functions/Util.boundingSphere.html +0 -1
  139. package/docs/functions/Util.boxVertex.html +0 -7
  140. package/docs/functions/Util.boxVertexes.html +0 -1
  141. package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
  142. package/docs/functions/Util.cleanup.html +0 -3
  143. package/docs/functions/Util.convexHull.html +0 -2
  144. package/docs/functions/Util.equal.html +0 -5
  145. package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
  146. package/docs/functions/Util.getCoordsFromClient.html +0 -1
  147. package/docs/functions/Util.getCoordsFromElement.html +0 -1
  148. package/docs/functions/Util.getFrameTime.html +0 -3
  149. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
  150. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
  151. package/docs/functions/Util.initialCSS3DRender.html +0 -1
  152. package/docs/functions/Util.inside.html +0 -1
  153. package/docs/functions/Util.isModelLike.html +0 -1
  154. package/docs/functions/Util.isNil.html +0 -2
  155. package/docs/functions/Util.isPanoramaLike.html +0 -1
  156. package/docs/functions/Util.lookObject.html +0 -7
  157. package/docs/functions/Util.lookPoint.html +0 -5
  158. package/docs/functions/Util.nextFrame.html +0 -1
  159. package/docs/functions/Util.notNil.html +0 -2
  160. package/docs/functions/Util.reblink.html +0 -13
  161. package/docs/functions/Util.replaceStaticPrefix.html +0 -8
  162. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
  163. package/docs/functions/Util.sculpt.createBox.html +0 -1
  164. package/docs/functions/Util.sculpt.createCircle.html +0 -1
  165. package/docs/functions/Util.sculpt.createCylinder.html +0 -1
  166. package/docs/functions/Util.sculpt.createLine.html +0 -2
  167. package/docs/functions/Util.sculpt.createPoint.html +0 -1
  168. package/docs/functions/Util.sculpt.createPolygon.html +0 -1
  169. package/docs/functions/Util.sculpt.createPrism.html +0 -1
  170. package/docs/functions/Util.sculpt.createRectangle.html +0 -2
  171. package/docs/functions/Util.tag.html +0 -1
  172. package/docs/functions/Util.tweenProgress.html +0 -1
  173. package/docs/functions/Util.uuid.html +0 -2
  174. package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
  175. package/docs/functions/Util.worldBounding.html +0 -1
  176. package/docs/functions/Util.worldBoundingBox.html +0 -1
  177. package/docs/functions/Util.worldBoundingSphere.html +0 -1
  178. package/docs/functions/createPolyline.html +0 -2
  179. package/docs/functions/pluginFlag.html +0 -1
  180. package/docs/hierarchy.html +0 -1
  181. package/docs/index.html +0 -70
  182. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
  183. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
  184. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
  185. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
  186. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
  187. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
  188. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
  189. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
  190. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
  191. package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
  192. package/docs/interfaces/BoxAnimationConfig.html +0 -6
  193. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
  194. package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
  195. package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
  196. package/docs/interfaces/ContentTypeMapInterface.html +0 -73
  197. package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
  198. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
  199. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
  200. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
  201. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
  202. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
  203. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
  204. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
  205. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
  206. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
  207. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
  208. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
  209. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
  210. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
  211. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
  212. package/docs/interfaces/FloorplanBounding.html +0 -9
  213. package/docs/interfaces/FloorplanData.html +0 -7
  214. package/docs/interfaces/FloorplanEntrance.html +0 -14
  215. package/docs/interfaces/FloorplanExtraObject.html +0 -9
  216. package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
  217. package/docs/interfaces/FloorplanFloorData.html +0 -9
  218. package/docs/interfaces/FloorplanImagePosition.html +0 -4
  219. package/docs/interfaces/FloorplanObserver.html +0 -8
  220. package/docs/interfaces/FloorplanOutlineItem.html +0 -6
  221. package/docs/interfaces/FloorplanPosition.html +0 -4
  222. package/docs/interfaces/FloorplanRoomItem.html +0 -24
  223. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
  224. package/docs/interfaces/FloorplanServerBounding.html +0 -9
  225. package/docs/interfaces/FloorplanServerComputedData.html +0 -6
  226. package/docs/interfaces/FloorplanServerData.html +0 -4
  227. package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
  228. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
  229. package/docs/interfaces/FloorplanServerEntrance.html +0 -14
  230. package/docs/interfaces/FloorplanServerFloorData.html +0 -8
  231. package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
  232. package/docs/interfaces/FloorplanServerObserver.html +0 -8
  233. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
  234. package/docs/interfaces/FloorplanServerPosition.html +0 -4
  235. package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
  236. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
  237. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
  238. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
  239. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
  240. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
  241. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
  242. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
  243. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
  244. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
  245. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
  246. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
  247. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
  248. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
  249. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
  250. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
  251. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
  252. package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
  253. package/docs/interfaces/HelperOffset.html +0 -4
  254. package/docs/interfaces/ImagePlaneGroup.html +0 -3
  255. package/docs/interfaces/ItemLabelPluginData.html +0 -2
  256. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
  257. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
  258. package/docs/interfaces/MinMax.html +0 -3
  259. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
  260. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
  261. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
  262. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
  263. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
  264. package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
  265. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
  266. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
  267. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
  268. package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
  269. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
  270. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
  271. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
  272. package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
  273. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
  274. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
  275. package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
  276. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
  277. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
  278. package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
  279. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
  280. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
  281. package/docs/interfaces/ModelViewPluginExportType.html +0 -8
  282. package/docs/interfaces/Object3DHelperState.html +0 -4
  283. package/docs/interfaces/ObjectHelperControllers.html +0 -5
  284. package/docs/interfaces/PaintBrushAction.html +0 -14
  285. package/docs/interfaces/PaintBrushConfigs.html +0 -8
  286. package/docs/interfaces/PaintBrushState.html +0 -6
  287. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
  288. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
  289. package/docs/interfaces/PanoMeasureParameterType.html +0 -20
  290. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
  291. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
  292. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
  293. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
  294. package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
  295. package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
  296. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
  297. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
  298. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
  299. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
  300. package/docs/interfaces/PanoRulerProPluginState.html +0 -4
  301. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
  302. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
  303. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
  304. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
  305. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
  306. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
  307. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
  308. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
  309. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
  310. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
  311. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
  312. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
  313. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
  314. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
  315. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
  316. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
  317. package/docs/interfaces/PluginEventMap.html +0 -16
  318. package/docs/interfaces/Point.html +0 -4
  319. package/docs/interfaces/Room.html +0 -5
  320. package/docs/interfaces/RoomInfo.html +0 -3
  321. package/docs/interfaces/RoomLabel.html +0 -16
  322. package/docs/interfaces/RoomRules.html +0 -1
  323. package/docs/interfaces/Rooms.html +0 -1
  324. package/docs/interfaces/Scissor.html +0 -13
  325. package/docs/interfaces/SculptConfig.html +0 -14
  326. package/docs/interfaces/State.html +0 -7
  327. package/docs/interfaces/TagCacheInterface.html +0 -9
  328. package/docs/interfaces/TagConfig.html +0 -164
  329. package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
  330. package/docs/interfaces/TagIconAnimationConfig.html +0 -7
  331. package/docs/interfaces/TagIconUrl.html +0 -20
  332. package/docs/interfaces/TagObjectGroup.html +0 -3
  333. package/docs/interfaces/TagState.html +0 -3
  334. package/docs/interfaces/TagStyle.html +0 -5
  335. package/docs/interfaces/Tags.html +0 -8
  336. package/docs/interfaces/TemporaryState.html +0 -2
  337. package/docs/interfaces/Util.AnimeInstance.html +0 -14
  338. package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
  339. package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
  340. package/docs/interfaces/Util.FiveDomEvent.html +0 -7
  341. package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
  342. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
  343. package/docs/interfaces/Util.MagnifierParameter.html +0 -13
  344. package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
  345. package/docs/interfaces/Util.ObjectInitialState.html +0 -9
  346. package/docs/interfaces/Util.PointIntersection.html +0 -21
  347. package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
  348. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
  349. package/docs/modules/AreaMakerPluginType.html +0 -17
  350. package/docs/modules/CruisePluginTypes.html +0 -14
  351. package/docs/modules/CurrentPanoImagePluginType.html +0 -6
  352. package/docs/modules/GuideLineItem.html +0 -2
  353. package/docs/modules/GuideLineModeItem.html +0 -3
  354. package/docs/modules/GuideLinePluginType.html +0 -25
  355. package/docs/modules/ModelMakerPluginType.html +0 -19
  356. package/docs/modules/PanoVideoPluginType.html +0 -8
  357. package/docs/modules/SculptData.html +0 -9
  358. package/docs/modules/SculptType.html +0 -2
  359. package/docs/modules/Util.html +0 -86
  360. package/docs/modules/Util.sculpt.html +0 -25
  361. package/docs/modules.html +0 -279
  362. package/docs/types/AddObject3DHelperConfig.html +0 -19
  363. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
  364. package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
  365. package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
  366. package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
  367. package/docs/types/ArrayPosition.html +0 -1
  368. package/docs/types/AudioAppearance.html +0 -1
  369. package/docs/types/CSS3DRenderExportType.html +0 -1
  370. package/docs/types/CSS3DRenderPluginExportType.html +0 -1
  371. package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
  372. package/docs/types/ClassFunctionParameters.html +0 -1
  373. package/docs/types/Color.html +0 -1
  374. package/docs/types/ContentTypeConfigKey.html +0 -1
  375. package/docs/types/ContentTypeConfigKeySplit.html +0 -1
  376. package/docs/types/ContentTypeMap.html +0 -1
  377. package/docs/types/Create3DDomContainerReturnType.html +0 -1
  378. package/docs/types/Create3DElementReturnType.html +0 -1
  379. package/docs/types/CruisePluginExportType.html +0 -1
  380. package/docs/types/CruisePluginTypes.CruiseData.html +0 -5
  381. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
  382. package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
  383. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
  384. package/docs/types/DeprecatedTagProperty.html +0 -3
  385. package/docs/types/Direction-1.html +0 -1
  386. package/docs/types/Direction4.html +0 -1
  387. package/docs/types/ElementRenderer.html +0 -2
  388. package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
  389. package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
  390. package/docs/types/FloorplanRuleLabels.html +0 -2
  391. package/docs/types/FloorplanServerRuleLabels.html +0 -1
  392. package/docs/types/GuideLinePluginExportType.html +0 -1
  393. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
  394. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
  395. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
  396. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
  397. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
  398. package/docs/types/GuideLinePluginType.PathItem.html +0 -2
  399. package/docs/types/GuideLinePluginType.PluginData.html +0 -2
  400. package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
  401. package/docs/types/HelperEventMap.html +0 -1
  402. package/docs/types/InternalHelperEventMap.html +0 -1
  403. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
  404. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
  405. package/docs/types/MeasureEndReason.html +0 -1
  406. package/docs/types/MeasurePluginConfig.html +0 -5
  407. package/docs/types/MediaData.html +0 -2
  408. package/docs/types/MediaStore.html +0 -1
  409. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
  410. package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
  411. package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
  412. package/docs/types/ModelId.html +0 -1
  413. package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
  414. package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
  415. package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
  416. package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
  417. package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
  418. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
  419. package/docs/types/MoveArgs.html +0 -2
  420. package/docs/types/MoveOpts.html +0 -2
  421. package/docs/types/Object3DHelperEventMap.html +0 -1
  422. package/docs/types/ObjectFit.html +0 -1
  423. package/docs/types/PaintBrushEventMap.html +0 -1
  424. package/docs/types/PanoCompassPluginData.html +0 -1
  425. package/docs/types/PanoCompassPluginExportType.html +0 -1
  426. package/docs/types/PanoCompassPluginParameterType.html +0 -1
  427. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
  428. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
  429. package/docs/types/PanoIndex.html +0 -1
  430. package/docs/types/PanoMeasurePluginEvent.html +0 -1
  431. package/docs/types/PanoMeasureReturnType.html +0 -1
  432. package/docs/types/PanoSpatialTagPluginId.html +0 -1
  433. package/docs/types/PanoTagPluginExportInterface.html +0 -1
  434. package/docs/types/PanoTagPluginParamsInterface.html +0 -1
  435. package/docs/types/PanoVideoPluginParameterType.html +0 -1
  436. package/docs/types/PanoVideoPluginReturnType.html +0 -1
  437. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
  438. package/docs/types/PipelinePluginParameterType.html +0 -1
  439. package/docs/types/PipelinePluginReturnType.html +0 -1
  440. package/docs/types/PlaneTag.html +0 -2
  441. package/docs/types/Point2DTag.html +0 -2
  442. package/docs/types/Point3DTag.html +0 -2
  443. package/docs/types/PointTagInstance.html +0 -1
  444. package/docs/types/Position.html +0 -1
  445. package/docs/types/PositionFrom.html +0 -1
  446. package/docs/types/RotateArgs.html +0 -2
  447. package/docs/types/RotateOpts.html +0 -2
  448. package/docs/types/RuleLabelsKey.html +0 -1
  449. package/docs/types/RuleLabelsValue.html +0 -1
  450. package/docs/types/ScaleCallback.html +0 -1
  451. package/docs/types/ScalePosition.html +0 -3
  452. package/docs/types/SculptData.BoxData.html +0 -1
  453. package/docs/types/SculptData.CircleData.html +0 -1
  454. package/docs/types/SculptData.CylinderData.html +0 -1
  455. package/docs/types/SculptData.PointData.html +0 -1
  456. package/docs/types/SculptData.PolygonData.html +0 -1
  457. package/docs/types/SculptData.PolylineData.html +0 -1
  458. package/docs/types/SculptData.PrismData.html +0 -1
  459. package/docs/types/SculptData.RectangleData.html +0 -1
  460. package/docs/types/SculptType.Theme.html +0 -10
  461. package/docs/types/StickType.html +0 -1
  462. package/docs/types/Tag.html +0 -17
  463. package/docs/types/Tag2D.html +0 -2
  464. package/docs/types/Tag3D.html +0 -2
  465. package/docs/types/TagClickParams.html +0 -1
  466. package/docs/types/TagConfigByKey.html +0 -1
  467. package/docs/types/TagContentType.html +0 -1
  468. package/docs/types/TagContentTypeMapping.html +0 -1
  469. package/docs/types/TagDimensionType.html +0 -1
  470. package/docs/types/TagElement.html +0 -2
  471. package/docs/types/TagEvents.html +0 -1
  472. package/docs/types/TagGLTFObject.html +0 -1
  473. package/docs/types/TagHooks.html +0 -1
  474. package/docs/types/TagId.html +0 -1
  475. package/docs/types/TagInstance.html +0 -1
  476. package/docs/types/TagPlacement.html +0 -5
  477. package/docs/types/TagPointType.html +0 -2
  478. package/docs/types/TagRendererMap.html +0 -1
  479. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
  480. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
  481. package/docs/types/Util.ActionIfNoIntersection.html +0 -1
  482. package/docs/types/Util.AdherePoint.html +0 -2
  483. package/docs/types/Util.PointSelectorConfig.html +0 -1
  484. package/docs/types/Util.SupportedTarget.html +0 -2
  485. package/docs/types/Util.Target.html +0 -2
  486. package/docs/types/Util.ThreeObject.html +0 -2
  487. package/docs/types/WorkCode.html +0 -1
  488. package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
  489. package/docs/variables/PLUGIN.html +0 -1
  490. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
  491. package/docs/variables/ROOM_TYPE_MAP.html +0 -2
  492. package/docs/variables/Util.ANIME_PRESETS.html +0 -2
  493. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
  494. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
  495. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
  496. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
  497. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
  498. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
  499. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
  500. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
  501. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
  502. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
  503. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
  504. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
  505. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
  506. package/docs/variables/defaultGlobalConfig.html +0 -1
  507. package/docs/variables/itemLabelPluginServerParams.html +0 -1
  508. package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
  509. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
@@ -6,11 +6,19 @@ import type { Vector3 } from 'three';
6
6
  import { Rectangle } from '../../../Sculpt/Objects/Rectangle';
7
7
  export type PlaneTagInterface<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;
8
8
  export declare class PlaneTag<C extends TagContentType = TagContentType> extends BaseTag<C, 'Plane'> {
9
- constructor(plugin: PanoTagPluginController, tagData: TagData);
10
9
  rectanglePlane?: Rectangle;
10
+ private _floorIndex?;
11
+ private _floorIndexDirty;
12
+ constructor(plugin: PanoTagPluginController, tagData: TagData);
13
+ /** 获取楼层索引(惰性计算 + 缓存) */
14
+ get floorIndex(): number | undefined;
15
+ /** 标记 floorIndex 需要重新计算(在位置等相关数据变化时调用) */
16
+ invalidateFloorIndex(): void;
11
17
  applyVisible(): void;
12
18
  set(tag: PartialObjectDeep<Tag<C, 'Plane'>>, deepMerge?: boolean): void;
13
19
  setData(...data: Parameters<InstanceType<typeof BaseTag<C, 'Plane'>>['setData']>): void;
20
+ /** 计算楼层索引 */
21
+ private computeFloorIndex;
14
22
  private loadModel;
15
23
  private initialSculpt;
16
24
  editorEnable(): void;
@@ -1,44 +1,46 @@
1
- var F = Object.defineProperty, T = Object.defineProperties;
2
- var j = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
4
- var R = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
5
- var S = (l, i, t) => i in l ? F(l, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[i] = t, v = (l, i) => {
6
- for (var t in i || (i = {}))
7
- R.call(i, t) && S(l, t, i[t]);
8
- if (b)
9
- for (var t of b(i))
10
- k.call(i, t) && S(l, t, i[t]);
11
- return l;
12
- }, D = (l, i) => T(l, j(i));
13
- var C = (l, i, t) => new Promise((e, o) => {
14
- var n = (s) => {
1
+ var j = Object.defineProperty, R = Object.defineProperties;
2
+ var V = Object.getOwnPropertyDescriptors;
3
+ var F = Object.getOwnPropertySymbols;
4
+ var k = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
5
+ var y = (d, m, t) => m in d ? j(d, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[m] = t, I = (d, m) => {
6
+ for (var t in m || (m = {}))
7
+ k.call(m, t) && y(d, t, m[t]);
8
+ if (F)
9
+ for (var t of F(m))
10
+ M.call(m, t) && y(d, t, m[t]);
11
+ return d;
12
+ }, S = (d, m) => R(d, V(m));
13
+ var b = (d, m, t) => (y(d, typeof m != "symbol" ? m + "" : m, t), t);
14
+ var C = (d, m, t) => new Promise((o, i) => {
15
+ var a = (r) => {
15
16
  try {
16
- r(t.next(s));
17
- } catch (d) {
18
- o(d);
17
+ e(t.next(r));
18
+ } catch (p) {
19
+ i(p);
19
20
  }
20
- }, m = (s) => {
21
+ }, n = (r) => {
21
22
  try {
22
- r(t.throw(s));
23
- } catch (d) {
24
- o(d);
23
+ e(t.throw(r));
24
+ } catch (p) {
25
+ i(p);
25
26
  }
26
- }, r = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(n, m);
27
- r((t = t.apply(l, i)).next());
27
+ }, e = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(a, n);
28
+ e((t = t.apply(d, m)).next());
28
29
  });
29
- import { CONST as E } from "../../../shared-utils/constants.js";
30
- import { CSS3DObjectPlus as V } from "../../../shared-utils/CSS3DRender/CSS3DObject.js";
31
- import { anyPositionToVector3 as M, arrayPositionToVector3 as u } from "../../../shared-utils/positionToVector3.js";
32
- import "three";
33
- import { planeNormal as O } from "../../utils/planeNormal.js";
34
- import { VideoPlane as w, ImagePlane as G } from "../../utils/model/mediaPlane.js";
35
- import L from "../../Components/Tag/index.js";
36
- import { BaseTag as A } from "./BaseTag.js";
30
+ import { CONST as w } from "../../../shared-utils/constants.js";
31
+ import { CSS3DObjectPlus as O } from "../../../shared-utils/CSS3DRender/CSS3DObject.js";
32
+ import { anyPositionToVector3 as T, arrayPositionToVector3 as g } from "../../../shared-utils/positionToVector3.js";
33
+ import * as E from "three";
34
+ import { planeNormal as _ } from "../../utils/planeNormal.js";
35
+ import { centerPoint as G } from "../../../shared-utils/three/centerPoint.js";
36
+ import { VideoPlane as L, ImagePlane as A } from "../../utils/model/mediaPlane.js";
37
+ import N from "../../Components/Tag/index.js";
38
+ import { BaseTag as B } from "./BaseTag.js";
37
39
  import "../../../shared-utils/tag.js";
38
40
  import "../../../vendor/hammerjs/hammer.js";
39
41
  import "../../../shared-utils/three/PointSelector/index.js";
40
42
  import "../../../shared-utils/three/CSS3DRenderer/index.js";
41
- import { initialCSS3DRender as N } from "../../../shared-utils/CSS3DRender/index.js";
43
+ import { initialCSS3DRender as H } from "../../../shared-utils/CSS3DRender/index.js";
42
44
  import "@realsee/five/line";
43
45
  import "../../../shared-utils/three/core/Five_LineMaterial2.js";
44
46
  import "../../../shared-utils/three/core/Sphere.js";
@@ -46,14 +48,14 @@ import "../../../shared-utils/three/blink.js";
46
48
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
47
49
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
48
50
  import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
49
- import { waitFiveModelLoaded as I } from "../../../shared-utils/five/fiveModelLoad.js";
50
- import { uuid as B } from "../../../shared-utils/uuid.js";
51
+ import { waitFiveModelLoaded as x } from "../../../shared-utils/five/fiveModelLoad.js";
52
+ import { uuid as $ } from "../../../shared-utils/uuid.js";
51
53
  import "../../../shared-utils/five/FivePuppet.js";
52
- import { Sculpt as x } from "../../../Sculpt/index.js";
53
- import { Rectangle as H } from "../../../Sculpt/Objects/Rectangle/index.js";
54
+ import { Sculpt as U } from "../../../Sculpt/index.js";
55
+ import { Rectangle as q } from "../../../Sculpt/Objects/Rectangle/index.js";
56
+ import { getFloorMesh as W } from "../../../shared-utils/five/getFloorMesh.js";
54
57
  import "../../../shared-utils/even.js";
55
58
  import "../../../shared-utils/CSS3DRender/OpacityMesh.js";
56
- import "../../../shared-utils/three/centerPoint.js";
57
59
  import "../../../shared-utils/isNil.js";
58
60
  import "../../../shared-utils/three/loadTexture.js";
59
61
  import "../../../shared-utils/three/Quadrangle.js";
@@ -297,43 +299,89 @@ import "../../../shared-utils/forReverseEach.js";
297
299
  import "../../../Sculpt/Objects/Line/index.js";
298
300
  import "../../../Sculpt/Editors/RectangleMeshEditor.js";
299
301
  import "../../../Sculpt/utils/sortPositionsByCameraPosition.js";
300
- const $ = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
301
- class Zr extends A {
302
- constructor(i, t) {
303
- super(i, t), this.state.unfolded = !0, this.loadModel();
302
+ const Z = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map();
303
+ class Xr extends B {
304
+ constructor(t, o) {
305
+ super(t, o);
306
+ b(this, "_floorIndex");
307
+ b(this, "_floorIndexDirty", !0);
308
+ this.state.unfolded = !0, this.loadModel();
309
+ }
310
+ /** 获取楼层索引(惰性计算 + 缓存) */
311
+ get floorIndex() {
312
+ return (this._floorIndexDirty || this._floorIndex === void 0) && (this._floorIndex = this.computeFloorIndex(), this._floorIndexDirty = !1), this._floorIndex;
313
+ }
314
+ /** 标记 floorIndex 需要重新计算(在位置等相关数据变化时调用) */
315
+ invalidateFloorIndex() {
316
+ this._floorIndexDirty = !0;
304
317
  }
305
318
  applyVisible() {
306
- var t, e, o, n, m, r;
307
- this.computeRenderType() === "Mesh" ? (this.initialSculpt(), ((e = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : e.type) === "Video" ? this.renderVideoPlane() : ((n = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : n.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane()) : ((m = this.tag3DContentSvelte) == null || m.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (r = this.tag3DContentSvelte) != null && r.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible, this.five.needsRender = !0));
319
+ var o, i, a, n, e, r;
320
+ this.computeRenderType() === "Mesh" ? (this.initialSculpt(), ((i = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((n = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : n.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane()) : ((e = this.tag3DContentSvelte) == null || e.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (r = this.tag3DContentSvelte) != null && r.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible, this.five.needsRender = !0));
308
321
  }
309
- set(i, t = !0) {
310
- super.set(i, t), I(this.five).then(() => {
311
- this.tag3DContentSvelte && (i.data ? this.tag3DContentSvelte.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }) : i.position && this.loadModel());
322
+ set(t, o = !0) {
323
+ super.set(t, o), x(this.five).then(() => {
324
+ this.tag3DContentSvelte && (t.data ? this.tag3DContentSvelte.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }) : t.position && this.loadModel());
312
325
  });
313
326
  }
314
- setData(...i) {
315
- var e, o, n, m, r;
316
- super.setData(...i), this.computeRenderType() === "Mesh" ? ((o = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : o.type) === "Video" ? this.renderVideoPlane() : ((m = (n = this.data.mediaData) == null ? void 0 : n[0]) == null ? void 0 : m.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane() : (r = this.tag3DContentSvelte) == null || r.svelteApp.$set({ tag: this });
327
+ setData(...t) {
328
+ var i, a, n, e, r;
329
+ super.setData(...t), this.computeRenderType() === "Mesh" ? ((a = (i = this.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : a.type) === "Video" ? this.renderVideoPlane() : ((e = (n = this.data.mediaData) == null ? void 0 : n[0]) == null ? void 0 : e.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane() : (r = this.tag3DContentSvelte) == null || r.svelteApp.$set({ tag: this });
330
+ }
331
+ /** 计算楼层索引 */
332
+ computeFloorIndex() {
333
+ const t = /* @__PURE__ */ new Map();
334
+ this.five.observers.forEach((n) => {
335
+ var r;
336
+ const e = (r = n.floorIndex) != null ? r : 0;
337
+ if (!t.has(e)) {
338
+ const p = W(this.five, e);
339
+ p.isEmpty() || t.set(e, p);
340
+ }
341
+ });
342
+ const o = G(...this.position.map(T)), i = [], a = [];
343
+ if (t.forEach((n, e) => {
344
+ a.push({ floorIndex: e, box: n }), n.containsPoint(o) && i.push({ floorIndex: e, box: n });
345
+ }), i.length === 1)
346
+ return i[0].floorIndex;
347
+ if (i.length > 1) {
348
+ let n = 1 / 0, e = i[0].floorIndex;
349
+ return i.forEach(({ floorIndex: r, box: p }) => {
350
+ const h = new E.Vector3();
351
+ p.getCenter(h);
352
+ const c = o.distanceTo(h);
353
+ c < n && (n = c, e = r);
354
+ }), e;
355
+ }
356
+ if (a.length > 0) {
357
+ let n = 1 / 0, e = a[0].floorIndex;
358
+ return a.forEach(({ floorIndex: r, box: p }) => {
359
+ const h = new E.Vector3();
360
+ p.getCenter(h);
361
+ const c = o.distanceTo(h);
362
+ c < n && (n = c, e = r);
363
+ }), e;
364
+ }
317
365
  }
318
366
  loadModel() {
319
367
  return C(this, null, function* () {
320
- var t, e, o, n, m, r;
321
- if (yield I(this.five), this.computeRenderType() === "Mesh")
322
- this.initialSculpt(), ((e = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : e.type) === "Video" ? this.renderVideoPlane() : ((n = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : n.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane();
368
+ var o, i, a, n, e, r;
369
+ if (yield x(this.five), this.computeRenderType() === "Mesh")
370
+ this.initialSculpt(), ((i = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((n = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : n.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane();
323
371
  else {
324
- N(this.five);
325
- const s = this.position.map(M);
326
- (r = (m = this.tag3DContentSvelte) == null ? void 0 : m.dispose) == null || r.call(m);
327
- const d = document.createElement("div");
328
- d.classList.add("tag-media-container");
329
- const g = v({ mode: "front", cornerPoints: s, container: d }, this.config.tag3DConfig), P = this.computeRenderType() === "BehindDom" || g.mode === "behind" ? "behind" : "front", p = new V(D(v({}, g), { mode: P })), a = this.computeNormal();
330
- p.position.add(a.clone().setLength(E.Z_FIGHTING_OFFSET)), this.plugin.group.add(p);
331
- let f;
332
- p.mode === "behind" && this.config.clickable !== !1 && (f = this.addObjectClickHandler(this, p, (c) => {
333
- this.plugin.hooks.emit("click", { event: c, target: "TagContent", tag: this });
372
+ H(this.five);
373
+ const p = this.position.map(T);
374
+ (r = (e = this.tag3DContentSvelte) == null ? void 0 : e.dispose) == null || r.call(e);
375
+ const h = document.createElement("div");
376
+ h.classList.add("tag-media-container");
377
+ const c = I({ mode: "front", cornerPoints: p, container: h }, this.config.tag3DConfig), P = this.computeRenderType() === "BehindDom" || c.mode === "behind" ? "behind" : "front", l = new O(S(I({}, c), { mode: P })), s = this.computeNormal();
378
+ l.position.add(s.clone().setLength(w.Z_FIGHTING_OFFSET)), this.plugin.group.add(l);
379
+ let v;
380
+ l.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, l, (f) => {
381
+ this.plugin.hooks.emit("click", { event: f, target: "TagContent", tag: this });
334
382
  }));
335
- const h = new L({
336
- target: d,
383
+ const u = new N({
384
+ target: h,
337
385
  props: {
338
386
  tag: this,
339
387
  hooks: this.plugin.hooks,
@@ -344,15 +392,15 @@ class Zr extends A {
344
392
  }
345
393
  });
346
394
  this.tag3DContentSvelte = {
347
- svelteApp: h,
395
+ svelteApp: u,
348
396
  domContainer: {
349
- css3DObject: p
397
+ css3DObject: l
350
398
  },
351
- css3DInstance: p,
352
- initialNormal: a,
353
- currentNormal: a,
399
+ css3DInstance: l,
400
+ initialNormal: s,
401
+ currentNormal: s,
354
402
  dispose: () => {
355
- h.$destroy(), p.dispose(), f == null || f();
403
+ u.$destroy(), l.dispose(), v == null || v();
356
404
  }
357
405
  }, this.five.needsRender = !0;
358
406
  }
@@ -361,15 +409,15 @@ class Zr extends A {
361
409
  initialSculpt() {
362
410
  if (this.rectanglePlane)
363
411
  return;
364
- const i = new x(this.five, void 0, {
412
+ const t = new U(this.five, void 0, {
365
413
  magnifier: null
366
414
  });
367
- i.clear(), i.group.removeFromParent();
368
- const t = B(), e = new H(
415
+ t.clear(), t.group.removeFromParent();
416
+ const o = $(), i = new q(
369
417
  {
370
- id: t,
418
+ id: o,
371
419
  type: "Rectangle",
372
- points: this.position.map(u),
420
+ points: this.position.map(g),
373
421
  style: {
374
422
  color: 2203620,
375
423
  opacity: 0.1,
@@ -380,91 +428,91 @@ class Zr extends A {
380
428
  defaultAction: !1
381
429
  }
382
430
  );
383
- e.visible = !1, this.plugin.imagePlaneGroup.add(e), this.rectanglePlane = e, e.editor.hooks.on("objectUpdate", () => {
384
- var o;
385
- (o = this.mediaPlane) == null || o.changePointsOrParams({ cornerPoints: e.data.points.map(u) });
386
- }), e.editor.disable();
431
+ i.visible = !1, this.plugin.imagePlaneGroup.add(i), this.rectanglePlane = i, i.editor.hooks.on("objectUpdate", () => {
432
+ var a;
433
+ (a = this.mediaPlane) == null || a.changePointsOrParams({ cornerPoints: i.data.points.map(g) });
434
+ }), i.editor.disable();
387
435
  }
388
436
  editorEnable() {
389
437
  this.rectanglePlane || this.initialSculpt(), this.rectanglePlane.visible = !0, this.rectanglePlane.editor.enable();
390
438
  }
391
- editorDisable(i) {
392
- var e;
439
+ editorDisable(t) {
440
+ var i;
393
441
  this.rectanglePlane.visible = !1;
394
- const t = i || this.position.map(u);
395
- (e = this.mediaPlane) == null || e.changePointsOrParams({ cornerPoints: t }), this.rectanglePlane.setData({
396
- points: t
442
+ const o = t || this.position.map(g);
443
+ (i = this.mediaPlane) == null || i.changePointsOrParams({ cornerPoints: o }), this.rectanglePlane.setData({
444
+ points: o
397
445
  }), this.rectanglePlane.editor.disable();
398
446
  }
399
447
  renderVideoPlane() {
400
- var d, g, P;
401
- const i = this.data.mediaData[0];
402
- if (!i)
403
- return;
404
- const { url: t } = i;
448
+ var h, c, P;
449
+ const t = this.data.mediaData[0];
405
450
  if (!t)
406
451
  return;
407
- const e = (d = this.data.objectFit) != null ? d : "contain", o = this.currentVisible, n = (() => !!(this.mediaPlane && !o))(), m = (() => !!(!this.mediaPlane && o))(), r = (() => !!(this.mediaPlane && (this.mediaPlane.src !== t || this.mediaPlane.objectFit !== e)))();
452
+ const { url: o } = t;
453
+ if (!o)
454
+ return;
455
+ const i = (h = this.data.objectFit) != null ? h : "contain", a = this.currentVisible, n = (() => !!(this.mediaPlane && !a))(), e = (() => !!(!this.mediaPlane && a))(), r = (() => !!(this.mediaPlane && (this.mediaPlane.src !== o || this.mediaPlane.objectFit !== i)))();
408
456
  (n || r) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0);
409
- const s = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== e))();
410
- if (m || r) {
411
- let p = this.position.map(u);
412
- this.rectanglePlane && (p = this.rectanglePlane.data.points.map(u));
413
- const a = new w(t, p, {
414
- videoCoverSrc: i.videoCoverUrl,
457
+ const p = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== i))();
458
+ if (e || r) {
459
+ let l = this.position.map(g);
460
+ this.rectanglePlane && (l = this.rectanglePlane.data.points.map(g));
461
+ const s = new L(o, l, {
462
+ videoCoverSrc: t.videoCoverUrl,
415
463
  playButton: this.data.playIcon,
416
- paused: !((g = this.data.autoplayConfig) != null && g.autoplayVideo),
464
+ paused: !((c = this.data.autoplayConfig) != null && c.autoplayVideo),
417
465
  objectFit: this.data.objectFit,
418
- videoTextureMap: $,
419
- ImageTextureMap: U,
466
+ videoTextureMap: Z,
467
+ ImageTextureMap: z,
420
468
  domEvents: this.plugin.domEvents
421
469
  });
422
- this.plugin.domEvents.addAutoBindEventListener(a, "click", (h) => {
423
- var c, y;
424
- !((c = a.videoInstance) != null && c.paused) && ((y = a.videoInstance) == null ? void 0 : y.muted) === !1 && this.plugin.hooks.emit("playStateChange", {
425
- event: h,
470
+ this.plugin.domEvents.addAutoBindEventListener(s, "click", (u) => {
471
+ var f, D;
472
+ !((f = s.videoInstance) != null && f.paused) && ((D = s.videoInstance) == null ? void 0 : D.muted) === !1 && this.plugin.hooks.emit("playStateChange", {
473
+ event: u,
426
474
  state: "playing",
427
475
  tag: this,
428
- mediaInstance: a.videoInstance
476
+ mediaInstance: s.videoInstance
429
477
  });
430
- }), a.onVideoReady = (h) => {
431
- h.addEventListener("play", (c) => {
432
- this.plugin.mediaStore.set({ currentMediaElement: a.videoInstance }), this.plugin.hooks.emit("playStateChange", { event: c, state: "playing", tag: this, mediaInstance: a.videoInstance });
433
- }), h.addEventListener("pause", (c) => {
434
- this.plugin.hooks.emit("playStateChange", { event: c, state: "paused", tag: this, mediaInstance: a.videoInstance });
435
- }), h.addEventListener("ended", (c) => {
436
- this.plugin.hooks.emit("playStateChange", { event: c, state: "paused", tag: this, mediaInstance: a.videoInstance });
478
+ }), s.onVideoReady = (u) => {
479
+ u.addEventListener("play", (f) => {
480
+ this.plugin.mediaStore.set({ currentMediaElement: s.videoInstance }), this.plugin.hooks.emit("playStateChange", { event: f, state: "playing", tag: this, mediaInstance: s.videoInstance });
481
+ }), u.addEventListener("pause", (f) => {
482
+ this.plugin.hooks.emit("playStateChange", { event: f, state: "paused", tag: this, mediaInstance: s.videoInstance });
483
+ }), u.addEventListener("ended", (f) => {
484
+ this.plugin.hooks.emit("playStateChange", { event: f, state: "paused", tag: this, mediaInstance: s.videoInstance });
437
485
  });
438
486
  };
439
- const f = (h) => (this.five.on("renderFrame", h), () => this.five.off("renderFrame", h));
440
- a.initialRenderHooks(f), this.mediaPlane = a, this.play = () => a.play(), this.pause = () => a.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
487
+ const v = (u) => (this.five.on("renderFrame", u), () => this.five.off("renderFrame", u));
488
+ s.initialRenderHooks(v), this.mediaPlane = s, this.play = () => s.play(), this.pause = () => s.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
441
489
  }
442
- if (s) {
443
- const p = this.rectanglePlane.data.points.map(u);
444
- (P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints: p, params: { objectFit: e } });
490
+ if (p) {
491
+ const l = this.rectanglePlane.data.points.map(g);
492
+ (P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints: l, params: { objectFit: i } });
445
493
  }
446
494
  this.five.needsRender = !0;
447
495
  }
448
496
  renderImagePlane() {
449
- var g, P;
450
- const i = this.data.mediaData[0], t = (g = this.data.objectFit) != null ? g : "contain";
451
- if (!i)
497
+ var c, P;
498
+ const t = this.data.mediaData[0], o = (c = this.data.objectFit) != null ? c : "contain";
499
+ if (!t)
452
500
  return;
453
- const { url: e } = i;
454
- if (!e)
501
+ const { url: i } = t;
502
+ if (!i)
455
503
  return;
456
- let o = this.position.map(u);
457
- const n = this.currentVisible, m = (() => !!(this.mediaPlane && !n))(), r = (() => !!(!this.mediaPlane && n))(), s = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))(), d = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== t))();
458
- if ((m || s) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (r || s) && (this.rectanglePlane && (o = this.rectanglePlane.data.points.map(u)), this.mediaPlane = new G(e, o, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
504
+ let a = this.position.map(g);
505
+ const n = this.currentVisible, e = (() => !!(this.mediaPlane && !n))(), r = (() => !!(!this.mediaPlane && n))(), p = (() => !!(this.mediaPlane && this.mediaPlane.src !== i))(), h = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== o))();
506
+ if ((e || p) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (r || p) && (this.rectanglePlane && (a = this.rectanglePlane.data.points.map(g)), this.mediaPlane = new A(i, a, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
459
507
  this.mediaPlane,
460
508
  "click",
461
- (p) => {
462
- this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: p.origDomEvent });
509
+ (l) => {
510
+ this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: l.origDomEvent });
463
511
  },
464
512
  { noEmitWhenHide: !0 }
465
- ), this.plugin.imagePlaneGroup.add(this.mediaPlane)), d) {
466
- const p = this.rectanglePlane.data.points.map(u);
467
- (P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints: p, params: { objectFit: t } });
513
+ ), this.plugin.imagePlaneGroup.add(this.mediaPlane)), h) {
514
+ const l = this.rectanglePlane.data.points.map(g);
515
+ (P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints: l, params: { objectFit: o } });
468
516
  }
469
517
  this.five.needsRender = !0;
470
518
  }
@@ -472,9 +520,9 @@ class Zr extends A {
472
520
  this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0);
473
521
  }
474
522
  computeNormal() {
475
- return O(this.position);
523
+ return _(this.position);
476
524
  }
477
525
  }
478
526
  export {
479
- Zr as PlaneTag
527
+ Xr as PlaneTag
480
528
  };
@@ -312,6 +312,7 @@ import "../../Sculpt/Editors/BoxMeshEditor.js";
312
312
  import "../../Sculpt/Meshes/Box.js";
313
313
  import "../../shared-utils/forReverseEach.js";
314
314
  import "../../Sculpt/Objects/Line/index.js";
315
+ import "../../shared-utils/five/getFloorMesh.js";
315
316
  import "../Components/TagItem.js";
316
317
  import "../Components/Common/TagPoint.js";
317
318
  import "../Components/Tag/AudioTag/AudioPoint.js";
@@ -328,8 +329,8 @@ import "../Components/Common/TagPopover/TagPopoverToolBar.js";
328
329
  import "../Components/Common/TagPopover/ArrowRightIcon.js";
329
330
  import "../Components/Common/TagPopover/ShareIcon.js";
330
331
  import "../utils/popoverContainer.js";
331
- const D = "Dnalogel-PanoTagPlugin", Us = (h) => `${D}--${h}`;
332
- class _s extends R {
332
+ const D = "Dnalogel-PanoTagPlugin", _s = (h) => `${D}--${h}`;
333
+ class Fs extends R {
333
334
  constructor(e, t) {
334
335
  super(e);
335
336
  /** state */
@@ -802,7 +803,7 @@ class _s extends R {
802
803
  }
803
804
  }
804
805
  export {
805
- _s as PanoTagPluginController,
806
- _s as default,
807
- Us as pluginFlag
806
+ Fs as PanoTagPluginController,
807
+ Fs as default,
808
+ _s as pluginFlag
808
809
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as Ki } from "./controller/index.js";
3
- import { defaultGlobalConfig as Mi } from "./typings/tag/TagConfig.js";
4
- import { ContentType as Oi, DimensionType as Qi, PointType as Ri } from "./Archive/deprecated.js";
2
+ import { pluginFlag as Li } from "./controller/index.js";
3
+ import { defaultGlobalConfig as Ni } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as Qi, DimensionType as Ri, PointType as Si } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
7
  import "../shared-utils/positionToVector3.js";
@@ -284,6 +284,7 @@ import "../Sculpt/Editors/BoxMeshEditor.js";
284
284
  import "../Sculpt/Meshes/Box.js";
285
285
  import "../shared-utils/forReverseEach.js";
286
286
  import "../Sculpt/Objects/Line/index.js";
287
+ import "../shared-utils/five/getFloorMesh.js";
287
288
  import "./Components/TagContainer.js";
288
289
  import "./Components/TagItem.js";
289
290
  import "./Components/Common/TagPoint.js";
@@ -302,14 +303,14 @@ import "./Components/Common/TagPopover/ArrowRightIcon.js";
302
303
  import "./Components/Common/TagPopover/ShareIcon.js";
303
304
  import "./utils/popoverContainer.js";
304
305
  import "../shared-utils/animationFrame/BetterTween.js";
305
- const Hi = (o, t) => new r(o, t);
306
+ const Ii = (o, t) => new r(o, t);
306
307
  export {
307
- Oi as ContentType,
308
- Qi as DimensionType,
309
- Hi as PanoTagPlugin,
308
+ Qi as ContentType,
309
+ Ri as DimensionType,
310
+ Ii as PanoTagPlugin,
310
311
  r as PanoTagPluginController,
311
- Ri as PointType,
312
- Hi as default,
313
- Mi as defaultGlobalConfig,
314
- Ki as pluginFlag
312
+ Si as PointType,
313
+ Ii as default,
314
+ Ni as defaultGlobalConfig,
315
+ Li as pluginFlag
315
316
  };
@@ -15,6 +15,10 @@ declare abstract class MediaPlane extends THREE.Mesh<THREE.BufferGeometry | THRE
15
15
  name: string;
16
16
  src?: string;
17
17
  objectFit: ObjectFit;
18
+ /** 获取透明度 */
19
+ get opacity(): number;
20
+ /** 设置透明度 (0-1) */
21
+ set opacity(value: number);
18
22
  removeFromParent(): this;
19
23
  dispose(): void;
20
24
  }