@realsee/dnalogel 2.13.1 → 2.13.2-dev.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 (291) hide show
  1. package/dist/index.cjs.js +51 -51
  2. package/dist/index.js +5485 -5179
  3. package/dist/index.umd.js +46 -46
  4. package/dist/shared-utils/svelte/resizeObserver.d.ts +10 -0
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +25 -25
  7. package/docs/classes/Magnifier.html +20 -20
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +25 -25
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  12. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  13. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  14. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  15. package/docs/classes/PanoTagPluginController.html +45 -45
  16. package/docs/classes/Util.BetterTween.html +8 -8
  17. package/docs/classes/Util.FivePointSelector.html +12 -12
  18. package/docs/classes/Util.Interval.html +12 -12
  19. package/docs/classes/Util.Magnifier.html +17 -17
  20. package/docs/classes/Util.PointDomHelper.html +11 -11
  21. package/docs/classes/Util.PointHelper.html +11 -11
  22. package/docs/classes/Util.Rectangle.html +13 -13
  23. package/docs/enums/CameraMovementEffect.html +7 -7
  24. package/docs/enums/ContentType.html +19 -19
  25. package/docs/enums/DIRECTION.html +9 -9
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/DimensionType.html +7 -7
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  31. package/docs/enums/PointType.html +7 -7
  32. package/docs/enums/Rotation.html +8 -8
  33. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  34. package/docs/functions/CameraMovementPlugin.html +5 -5
  35. package/docs/functions/CruisePlugin.html +5 -5
  36. package/docs/functions/GuideLinePlugin.html +5 -5
  37. package/docs/functions/ItemLabelPlugin.html +5 -5
  38. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  39. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  40. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  41. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  42. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  43. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  44. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  45. package/docs/functions/ModelViewPlugin.html +5 -5
  46. package/docs/functions/Object3DHelperPlugin.html +5 -5
  47. package/docs/functions/PanoCompassPlugin.html +5 -5
  48. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  49. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  50. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  51. package/docs/functions/PanoMeasurePlugin.html +5 -5
  52. package/docs/functions/PanoRulerPlugin.html +5 -5
  53. package/docs/functions/PanoRulerProPlugin.html +5 -5
  54. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  55. package/docs/functions/PanoTagPlugin.html +5 -5
  56. package/docs/functions/PanoVideoPlugin.html +5 -5
  57. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  58. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  59. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  60. package/docs/functions/Util.getFrameTime.html +5 -5
  61. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  62. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  63. package/docs/functions/Util.isNil.html +5 -5
  64. package/docs/functions/Util.nextFrame.html +5 -5
  65. package/docs/functions/Util.notNil.html +5 -5
  66. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  67. package/docs/functions/Util.tweenProgress.html +5 -5
  68. package/docs/functions/pluginFlag.html +5 -5
  69. package/docs/index.html +4 -4
  70. package/docs/interfaces/AddTagConfig.html +6 -6
  71. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  72. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  73. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  74. package/docs/interfaces/EventMap.html +15 -15
  75. package/docs/interfaces/FloorplanBounding.html +8 -8
  76. package/docs/interfaces/FloorplanData.html +10 -10
  77. package/docs/interfaces/FloorplanEntrance.html +11 -11
  78. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  79. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  80. package/docs/interfaces/FloorplanFloorData.html +9 -9
  81. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  82. package/docs/interfaces/FloorplanObserver.html +9 -9
  83. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  84. package/docs/interfaces/FloorplanPosition.html +7 -7
  85. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  86. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  87. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  88. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  89. package/docs/interfaces/FloorplanServerData.html +7 -7
  90. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  91. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  92. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  93. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  94. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  95. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  96. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  97. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  98. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  99. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  100. package/docs/interfaces/HelperOffset.html +8 -8
  101. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  102. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  103. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  104. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  105. package/docs/interfaces/MinMax.html +7 -7
  106. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  107. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  108. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  109. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  110. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  111. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  112. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  113. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  114. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  115. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  116. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  117. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  118. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  119. package/docs/interfaces/Object3DHelperState.html +8 -8
  120. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  121. package/docs/interfaces/PaintBrushAction.html +12 -12
  122. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  123. package/docs/interfaces/PaintBrushState.html +10 -10
  124. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  125. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  126. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  127. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  128. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  129. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  130. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  131. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  132. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  133. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  134. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  135. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  136. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  137. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  138. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  139. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  140. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  141. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  142. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  143. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  144. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  145. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  146. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  147. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  148. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  149. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  150. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  151. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  152. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  153. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  154. package/docs/interfaces/Point.html +8 -8
  155. package/docs/interfaces/Room.html +9 -9
  156. package/docs/interfaces/RoomInfo.html +7 -7
  157. package/docs/interfaces/RoomLabel.html +14 -14
  158. package/docs/interfaces/RoomRules.html +5 -5
  159. package/docs/interfaces/Rooms.html +5 -5
  160. package/docs/interfaces/Scissor.html +9 -9
  161. package/docs/interfaces/State.html +8 -8
  162. package/docs/interfaces/TagCacheInterface.html +12 -12
  163. package/docs/interfaces/TagConfig.html +11 -11
  164. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  165. package/docs/interfaces/TagIconUrl.html +11 -11
  166. package/docs/interfaces/TagObjectGroup.html +6 -6
  167. package/docs/interfaces/TagStyle.html +6 -6
  168. package/docs/interfaces/Tags.html +9 -9
  169. package/docs/interfaces/TemporaryState.html +6 -6
  170. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  171. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  172. package/docs/modules/PanoVideoPluginType.html +5 -5
  173. package/docs/modules/Util.html +5 -5
  174. package/docs/modules.html +4 -4
  175. package/docs/types/ArrayPosition.html +5 -5
  176. package/docs/types/AudioAppearance.html +5 -5
  177. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  178. package/docs/types/CSS3DRenderExportType.html +5 -5
  179. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  180. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  181. package/docs/types/ClassFunctionParameters.html +5 -5
  182. package/docs/types/Color.html +5 -5
  183. package/docs/types/ContentTypeConfigKey.html +5 -5
  184. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  185. package/docs/types/ContentTypeMap.html +5 -5
  186. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  187. package/docs/types/Create3DElementReturnType.html +5 -5
  188. package/docs/types/CruisePluginExportType.html +5 -5
  189. package/docs/types/Direction-1.html +5 -5
  190. package/docs/types/Direction4.html +5 -5
  191. package/docs/types/FloorplanRuleLabels.html +5 -5
  192. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  193. package/docs/types/GuideLinePluginExportType.html +5 -5
  194. package/docs/types/HelperEventMap.html +5 -5
  195. package/docs/types/LoadTagConfig.html +5 -5
  196. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/types/MediaData.html +5 -5
  199. package/docs/types/MediaStore.html +5 -5
  200. package/docs/types/ModelElement.html +5 -5
  201. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  202. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  203. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  204. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  205. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  206. package/docs/types/MoveArgs.html +5 -5
  207. package/docs/types/MoveOpts.html +5 -5
  208. package/docs/types/Object3DHelperEventMap.html +5 -5
  209. package/docs/types/ObjectFit.html +5 -5
  210. package/docs/types/PaintBrushEventMap.html +5 -5
  211. package/docs/types/PanoCompassPluginData.html +5 -5
  212. package/docs/types/PanoCompassPluginExportType.html +5 -5
  213. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  214. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  215. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  216. package/docs/types/PanoIndex.html +5 -5
  217. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  218. package/docs/types/PanoMeasureReturnType.html +5 -5
  219. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  220. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  221. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  222. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  223. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  224. package/docs/types/PlaneTag.html +5 -5
  225. package/docs/types/PlaneTagElement.html +5 -5
  226. package/docs/types/Point2DElement.html +5 -5
  227. package/docs/types/Point2DTag.html +5 -5
  228. package/docs/types/Point3DElement.html +5 -5
  229. package/docs/types/Point3DTag.html +5 -5
  230. package/docs/types/PointTag.html +5 -5
  231. package/docs/types/PointTagElement.html +5 -5
  232. package/docs/types/Position.html +5 -5
  233. package/docs/types/RotateArgs.html +5 -5
  234. package/docs/types/RotateOpts.html +5 -5
  235. package/docs/types/RuleLabelsKey.html +5 -5
  236. package/docs/types/RuleLabelsValue.html +5 -5
  237. package/docs/types/StickType.html +5 -5
  238. package/docs/types/Tag.html +5 -5
  239. package/docs/types/Tag2D.html +5 -5
  240. package/docs/types/Tag3D.html +5 -5
  241. package/docs/types/TagContentType.html +5 -5
  242. package/docs/types/TagDimensionType.html +5 -5
  243. package/docs/types/TagElement.html +5 -5
  244. package/docs/types/TagEvents.html +5 -5
  245. package/docs/types/TagGLTFObject.html +5 -5
  246. package/docs/types/TagHooks.html +5 -5
  247. package/docs/types/TagIconSize.html +5 -5
  248. package/docs/types/TagId.html +5 -5
  249. package/docs/types/TagPointType.html +5 -5
  250. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  251. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  252. package/docs/types/WorkCode.html +5 -5
  253. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  254. package/docs/variables/PLUGIN.html +5 -5
  255. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  256. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  257. package/docs/variables/VERSION.html +5 -5
  258. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  259. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  260. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  261. package/libs/ModelRoomLabelPlugin/Controller.js +4 -2
  262. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +118 -109
  263. package/libs/ModelRoomLabelPlugin/index.js +7 -5
  264. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +99 -93
  265. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
  266. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +72 -66
  267. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +4 -2
  268. package/libs/PanoTagPlugin/Components/Tag/index.js +4 -2
  269. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
  270. package/libs/PanoTagPlugin/Components/TagItem.js +4 -2
  271. package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
  272. package/libs/PanoTagPlugin/controller/index.js +7 -5
  273. package/libs/PanoTagPlugin/index.js +13 -11
  274. package/libs/base/BasePlugin.js +1 -1
  275. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +108 -100
  276. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +96 -92
  277. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +33 -31
  278. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
  279. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
  280. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
  281. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +109 -100
  282. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +4 -2
  283. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
  284. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
  285. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
  286. package/libs/floorplan/index.js +1 -0
  287. package/libs/index.js +106 -104
  288. package/libs/shared-utils/svelte/resizeObserver.d.ts +10 -0
  289. package/libs/shared-utils/svelte/resizeObserver.js +12 -0
  290. package/libs/vendor/resize-observer-polyfill/dist/ResizeObserver.es.js +269 -0
  291. package/package.json +2 -1
@@ -78,6 +78,8 @@ import "../utils/search.js";
78
78
  import "../utils/constants.js";
79
79
  import "../Components/Common/Arrow.js";
80
80
  import "../utils/doUtil.js";
81
+ import "../../shared-utils/svelte/resizeObserver.js";
82
+ import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
81
83
  import "../Components/Tag/TextTag/TextPlaneTag.js";
82
84
  import "../Components/Common/Text/MText.js";
83
85
  import "../Components/Tag/ImageTextTag.js";
@@ -128,7 +130,7 @@ import "../../CSS3DRenderPlugin/Controller.js";
128
130
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
129
131
  import "@realsee/five/gltf-loader";
130
132
  import "../../shared-utils/three/loadTexture.js";
131
- class We extends w {
133
+ class $e extends w {
132
134
  constructor(e) {
133
135
  super(e);
134
136
  l(this, "group", new S());
@@ -310,5 +312,5 @@ class We extends w {
310
312
  }
311
313
  }
312
314
  export {
313
- We as TagRender
315
+ $e as TagRender
314
316
  };
@@ -87,6 +87,8 @@ import "../utils/constants.js";
87
87
  import "../Components/Common/Arrow.js";
88
88
  import "../Assets/Icon.js";
89
89
  import "../utils/doUtil.js";
90
+ import "../../shared-utils/svelte/resizeObserver.js";
91
+ import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
90
92
  import "../Components/Tag/TextTag/TextPlaneTag.js";
91
93
  import "../Components/Common/Text/MText.js";
92
94
  import "../utils/px2rem.js";
@@ -145,8 +147,8 @@ import "../../shared-utils/three/GLTFLoader.js";
145
147
  import "@realsee/five/gltf-loader";
146
148
  import "../utils/model/imageModel.js";
147
149
  import "../../shared-utils/three/loadTexture.js";
148
- const D = "Dnalogel-PanoTagPlugin", qt = (d) => `${D}--${d}`;
149
- class Kt extends k {
150
+ const D = "Dnalogel-PanoTagPlugin", Qt = (d) => `${D}--${d}`;
151
+ class Xt extends k {
150
152
  constructor(e, t) {
151
153
  super(e);
152
154
  p(this, "state", { enabled: !0, visible: !0 });
@@ -410,7 +412,7 @@ class Kt extends k {
410
412
  }
411
413
  }
412
414
  export {
413
- Kt as PanoTagPluginController,
414
- Kt as default,
415
- qt as pluginFlag
415
+ Xt as PanoTagPluginController,
416
+ Xt as default,
417
+ Qt as pluginFlag
416
418
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./controller/index.js";
2
- import { default as Cr, pluginFlag as dr } from "./controller/index.js";
3
- import { ContentType as wr } from "./typings/tag/TagData.js";
4
- import { DimensionType as Fr, PointType as br } from "./typings/tag/Utils.js";
2
+ import { default as cr, pluginFlag as wr } from "./controller/index.js";
3
+ import { ContentType as Fr } from "./typings/tag/TagData.js";
4
+ import { DimensionType as hr, PointType as jr } from "./typings/tag/Utils.js";
5
5
  import "@realsee/five";
6
6
  import "object-assign-deep";
7
7
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
@@ -62,6 +62,8 @@ import "./utils/constants.js";
62
62
  import "./Components/Common/Arrow.js";
63
63
  import "./Assets/Icon.js";
64
64
  import "./utils/doUtil.js";
65
+ import "../shared-utils/svelte/resizeObserver.js";
66
+ import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
65
67
  import "./Components/Tag/TextTag/TextPlaneTag.js";
66
68
  import "./Components/Common/Text/MText.js";
67
69
  import "./utils/px2rem.js";
@@ -120,13 +122,13 @@ import "../shared-utils/three/GLTFLoader.js";
120
122
  import "@realsee/five/gltf-loader";
121
123
  import "./utils/model/imageModel.js";
122
124
  import "../shared-utils/three/loadTexture.js";
123
- const sr = (o, r) => new t(o, r);
125
+ const yr = (o, r) => new t(o, r);
124
126
  export {
125
- wr as ContentType,
126
- Fr as DimensionType,
127
- sr as PanoTagPlugin,
128
- Cr as PanoTagPluginController,
129
- br as PointType,
130
- sr as default,
131
- dr as pluginFlag
127
+ Fr as ContentType,
128
+ hr as DimensionType,
129
+ yr as PanoTagPlugin,
130
+ cr as PanoTagPluginController,
131
+ jr as PointType,
132
+ yr as default,
133
+ wr as pluginFlag
132
134
  };
@@ -4,7 +4,7 @@ var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import { Subscribe as c } from "../shared-utils/Subscribe.js";
5
5
  class x {
6
6
  constructor(r, t) {
7
- s(this, "VERSION", "2.13.1");
7
+ s(this, "VERSION", "2.13.2-dev.0");
8
8
  s(this, "five");
9
9
  s(this, "hooks", new c());
10
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -1,169 +1,177 @@
1
- import { SvelteComponent as ie, init as oe, safe_not_equal as ne, append_styles as le, element as I, attr as N, add_render_callback as fe, set_style as y, insert as b, add_resize_listener as re, noop as V, detach as d, HtmlTag as ae, empty as M, space as ce, text as S, append as q, set_data as U } from "../../../vendor/svelte/internal/index.js";
2
- function me(l) {
3
- le(l, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
1
+ import { SvelteComponent as le, init as ne, safe_not_equal as fe, append_styles as re, element as I, attr as N, set_style as y, insert as b, action_destroyer as ae, listen as C, noop as V, detach as d, run_all as ce, HtmlTag as se, empty as S, space as me, text as q, append as O, set_data as U } from "../../../vendor/svelte/internal/index.js";
2
+ import { svelteResizeObserver as ue } from "../../../shared-utils/svelte/resizeObserver.js";
3
+ function be(n) {
4
+ re(n, "svelte-12pzct5", ".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}");
4
5
  }
5
- function se(l) {
6
- let e, o = l[8].outerHTML + "", n;
6
+ function de(n) {
7
+ let e, t = n[8].outerHTML + "", l;
7
8
  return {
8
9
  c() {
9
- e = new ae(!1), n = M(), e.a = n;
10
+ e = new se(!1), l = S(), e.a = l;
10
11
  },
11
- m(i, t) {
12
- e.m(o, i, t), b(i, n, t);
12
+ m(o, i) {
13
+ e.m(t, o, i), b(o, l, i);
13
14
  },
14
- p(i, t) {
15
- t & 256 && o !== (o = i[8].outerHTML + "") && e.p(o);
15
+ p(o, i) {
16
+ i & 256 && t !== (t = o[8].outerHTML + "") && e.p(t);
16
17
  },
17
- d(i) {
18
- i && d(n), i && e.d();
18
+ d(o) {
19
+ o && d(l), o && e.d();
19
20
  }
20
21
  };
21
22
  }
22
- function ue(l) {
23
- let e, o, n = l[1] && W(l), i = l[0] && j(l);
23
+ function _e(n) {
24
+ let e, t, l = n[1] && j(n), o = n[0] && M(n);
24
25
  return {
25
26
  c() {
26
- n && n.c(), e = ce(), i && i.c(), o = M();
27
+ l && l.c(), e = me(), o && o.c(), t = S();
27
28
  },
28
- m(t, f) {
29
- n && n.m(t, f), b(t, e, f), i && i.m(t, f), b(t, o, f);
29
+ m(i, f) {
30
+ l && l.m(i, f), b(i, e, f), o && o.m(i, f), b(i, t, f);
30
31
  },
31
- p(t, f) {
32
- t[1] ? n ? n.p(t, f) : (n = W(t), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), t[0] ? i ? i.p(t, f) : (i = j(t), i.c(), i.m(o.parentNode, o)) : i && (i.d(1), i = null);
32
+ p(i, f) {
33
+ i[1] ? l ? l.p(i, f) : (l = j(i), l.c(), l.m(e.parentNode, e)) : l && (l.d(1), l = null), i[0] ? o ? o.p(i, f) : (o = M(i), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
33
34
  },
34
- d(t) {
35
- n && n.d(t), t && d(e), i && i.d(t), t && d(o);
35
+ d(i) {
36
+ l && l.d(i), i && d(e), o && o.d(i), i && d(t);
36
37
  }
37
38
  };
38
39
  }
39
- function W(l) {
40
- let e, o = l[2].name + "", n;
40
+ function j(n) {
41
+ let e, t = n[2].name + "", l;
41
42
  return {
42
43
  c() {
43
- e = I("span"), n = S(o), N(e, "class", "floorplan-plugin__room-name");
44
+ e = I("span"), l = q(t), N(e, "class", "floorplan-plugin__room-name");
44
45
  },
45
- m(i, t) {
46
- b(i, e, t), q(e, n);
46
+ m(o, i) {
47
+ b(o, e, i), O(e, l);
47
48
  },
48
- p(i, t) {
49
- t & 4 && o !== (o = i[2].name + "") && U(n, o);
49
+ p(o, i) {
50
+ i & 4 && t !== (t = o[2].name + "") && U(l, t);
50
51
  },
51
- d(i) {
52
- i && d(e);
52
+ d(o) {
53
+ o && d(e);
53
54
  }
54
55
  };
55
56
  }
56
- function j(l) {
57
- let e, o;
57
+ function M(n) {
58
+ let e, t;
58
59
  return {
59
60
  c() {
60
- e = I("span"), o = S(l[7]), N(e, "class", "floorplan-plugin__room-size svelte-12pzct5");
61
+ e = I("span"), t = q(n[7]), N(e, "class", "floorplan-plugin__room-size svelte-12pzct5");
61
62
  },
62
- m(n, i) {
63
- b(n, e, i), q(e, o);
63
+ m(l, o) {
64
+ b(l, e, o), O(e, t);
64
65
  },
65
- p(n, i) {
66
- i & 128 && U(o, n[7]);
66
+ p(l, o) {
67
+ o & 128 && U(t, l[7]);
67
68
  },
68
- d(n) {
69
- n && d(e);
69
+ d(l) {
70
+ l && d(e);
70
71
  }
71
72
  };
72
73
  }
73
- function be(l) {
74
- let e, o;
75
- function n(f, a) {
76
- if (f[3] === void 0)
77
- return ue;
78
- if (f[8])
79
- return se;
74
+ function he(n) {
75
+ let e, t, l;
76
+ function o(a, c) {
77
+ if (a[3] === void 0)
78
+ return _e;
79
+ if (a[8])
80
+ return de;
80
81
  }
81
- let i = n(l), t = i && i(l);
82
+ let i = o(n), f = i && i(n);
82
83
  return {
83
84
  c() {
84
- e = I("div"), t && t.c(), N(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), fe(() => l[19].call(e)), y(e, "left", l[9]), y(e, "top", l[10]), y(e, "font-size", l[11]), y(e, "opacity", l[6] ? "1" : "0");
85
+ e = I("div"), f && f.c(), N(e, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), y(e, "left", n[9]), y(e, "top", n[10]), y(e, "font-size", n[11]), y(e, "opacity", n[6] ? "1" : "0");
85
86
  },
86
- m(f, a) {
87
- b(f, e, a), t && t.m(e, null), o = re(e, l[19].bind(e));
87
+ m(a, c) {
88
+ b(a, e, c), f && f.m(e, null), t || (l = [
89
+ ae(ue.call(null, e)),
90
+ C(e, "clientWidth", n[19]),
91
+ C(e, "clientHeight", n[20])
92
+ ], t = !0);
88
93
  },
89
- p(f, [a]) {
90
- i === (i = n(f)) && t ? t.p(f, a) : (t && t.d(1), t = i && i(f), t && (t.c(), t.m(e, null))), a & 64 && y(e, "opacity", f[6] ? "1" : "0");
94
+ p(a, [c]) {
95
+ i === (i = o(a)) && f ? f.p(a, c) : (f && f.d(1), f = i && i(a), f && (f.c(), f.m(e, null))), c & 64 && y(e, "opacity", a[6] ? "1" : "0");
91
96
  },
92
97
  i: V,
93
98
  o: V,
94
- d(f) {
95
- f && d(e), t && t.d(), o();
99
+ d(a) {
100
+ a && d(e), f && f.d(), t = !1, ce(l);
96
101
  }
97
102
  };
98
103
  }
99
- function de(l, e) {
100
- const o = l[0], n = l[1];
101
- let i = !1;
102
- for (let t = 0, f = e.length - 1; t < e.length; f = t++) {
103
- const a = e[t][0], m = e[t][1], g = e[f][0], _ = e[f][1];
104
- m > n != _ > n && o < (g - a) * (n - m) / (_ - m) + a && (i = !i);
104
+ function ye(n, e) {
105
+ const t = n[0], l = n[1];
106
+ let o = !1;
107
+ for (let i = 0, f = e.length - 1; i < e.length; f = i++) {
108
+ const a = e[i][0], c = e[i][1], g = e[f][0], _ = e[f][1];
109
+ c > l != _ > l && t < (g - a) * (l - c) / (_ - c) + a && (o = !o);
105
110
  }
106
- return i;
111
+ return o;
107
112
  }
108
- function _e(l, e, o) {
109
- let n, i, t, f, a, { pxmm: m } = e, { roomAreaEnable: g } = e, { roomNameEnable: _ } = e, { room: c } = e, { hoveredRoom: H } = e, { getRoomAreaText: w } = e, { getLabelElement: h } = e, { adaptiveRoomLabelVisibleEnable: A } = e;
110
- function X(r, s) {
111
- if (s.width === 0 || s.height === 0)
113
+ function ge(n, e, t) {
114
+ let l, o, i, f, a, { pxmm: c } = e, { roomAreaEnable: g } = e, { roomNameEnable: _ } = e, { room: s } = e, { hoveredRoom: z } = e, { getRoomAreaText: H } = e, { getLabelElement: h } = e, { adaptiveRoomLabelVisibleEnable: k } = e;
115
+ function X(r, m) {
116
+ if (m.width === 0 || m.height === 0)
112
117
  return () => !1;
113
- const K = r.path.map(({ x: C, y: u }) => [C, u]), O = r.roomLabel.position, { x: Q, y: Z } = O, { width: x, height: $ } = s, z = x / 2, E = $ / 2;
118
+ const Q = r.path.map(({ x: W, y: u }) => [W, u]), Z = r.roomLabel.position, { x, y: $ } = Z, { width: ee, height: te } = m, p = ee / 2, R = te / 2;
114
119
  return function(u) {
115
- const L = Q * u, k = Z * u, ee = K.map(([T, te]) => [T * u, te * u]);
120
+ const E = x * u, L = $ * u, oe = Q.map(([T, ie]) => [T * u, ie * u]);
116
121
  return [
117
- [L + z, k - E],
118
- [L - z, k - E],
119
- [L - z, k + E],
120
- [L + z, k + E]
121
- ].every((T) => de(T, ee));
122
+ [E + p, L - R],
123
+ [E - p, L - R],
124
+ [E - p, L + R],
125
+ [E + p, L + R]
126
+ ].every((T) => ye(T, oe));
122
127
  };
123
128
  }
124
- const Y = document.body.clientWidth, B = document.body.clientHeight, P = c.roomLabel, D = P.positionInImage.x * 100 + "%", F = P.positionInImage.y * 100 + "%", G = (Y < 500 || B < 500 ? 10 : 14) + "px";
125
- let p = 0, R = 0, v = !1;
126
- H.subscribe(function(s) {
127
- o(16, v = !!s && s.id === c.id);
129
+ const Y = document.body.clientWidth, B = document.body.clientHeight, P = s.roomLabel, D = P.positionInImage.x * 100 + "%", F = P.positionInImage.y * 100 + "%", G = (Y < 500 || B < 500 ? 10 : 14) + "px";
130
+ let w = 0, A = 0, v = !1;
131
+ z.subscribe(function(m) {
132
+ t(16, v = !!m && m.id === s.id);
128
133
  });
129
- function J() {
130
- p = this.clientWidth, R = this.clientHeight, o(4, p), o(5, R);
131
- }
132
- return l.$$set = (r) => {
133
- "pxmm" in r && o(12, m = r.pxmm), "roomAreaEnable" in r && o(0, g = r.roomAreaEnable), "roomNameEnable" in r && o(1, _ = r.roomNameEnable), "room" in r && o(2, c = r.room), "hoveredRoom" in r && o(13, H = r.hoveredRoom), "getRoomAreaText" in r && o(14, w = r.getRoomAreaText), "getLabelElement" in r && o(3, h = r.getLabelElement), "adaptiveRoomLabelVisibleEnable" in r && o(15, A = r.adaptiveRoomLabelVisibleEnable);
134
- }, l.$$.update = () => {
135
- l.$$.dirty & 12 && o(8, n = h == null ? void 0 : h(c)), l.$$.dirty & 16388 && o(7, i = c.size ? w(c.size) : ""), l.$$.dirty & 48 && o(18, t = { width: p, height: R }), l.$$.dirty & 262148 && o(17, f = t ? X(c, t) : void 0), l.$$.dirty & 233472 && o(6, a = A ? v ? !0 : !!(f != null && f(m)) : !0);
134
+ const J = (r) => {
135
+ t(4, w = r.detail);
136
+ }, K = (r) => {
137
+ t(5, A = r.detail);
138
+ };
139
+ return n.$$set = (r) => {
140
+ "pxmm" in r && t(12, c = r.pxmm), "roomAreaEnable" in r && t(0, g = r.roomAreaEnable), "roomNameEnable" in r && t(1, _ = r.roomNameEnable), "room" in r && t(2, s = r.room), "hoveredRoom" in r && t(13, z = r.hoveredRoom), "getRoomAreaText" in r && t(14, H = r.getRoomAreaText), "getLabelElement" in r && t(3, h = r.getLabelElement), "adaptiveRoomLabelVisibleEnable" in r && t(15, k = r.adaptiveRoomLabelVisibleEnable);
141
+ }, n.$$.update = () => {
142
+ n.$$.dirty & 12 && t(8, l = h == null ? void 0 : h(s)), n.$$.dirty & 16388 && t(7, o = s.size ? H(s.size) : ""), n.$$.dirty & 48 && t(18, i = { width: w, height: A }), n.$$.dirty & 262148 && t(17, f = i ? X(s, i) : void 0), n.$$.dirty & 233472 && t(6, a = k ? v ? !0 : !!(f != null && f(c)) : !0);
136
143
  }, [
137
144
  g,
138
145
  _,
139
- c,
146
+ s,
140
147
  h,
141
- p,
142
- R,
148
+ w,
149
+ A,
143
150
  a,
144
- i,
145
- n,
151
+ o,
152
+ l,
146
153
  D,
147
154
  F,
148
155
  G,
149
- m,
156
+ c,
157
+ z,
150
158
  H,
151
- w,
152
- A,
159
+ k,
153
160
  v,
154
161
  f,
155
- t,
156
- J
162
+ i,
163
+ J,
164
+ K
157
165
  ];
158
166
  }
159
- class ge extends ie {
167
+ class Le extends le {
160
168
  constructor(e) {
161
- super(), oe(
169
+ super(), ne(
162
170
  this,
163
171
  e,
164
- _e,
165
- be,
166
- ne,
172
+ ge,
173
+ he,
174
+ fe,
167
175
  {
168
176
  pxmm: 12,
169
177
  roomAreaEnable: 0,
@@ -174,10 +182,10 @@ class ge extends ie {
174
182
  getLabelElement: 3,
175
183
  adaptiveRoomLabelVisibleEnable: 15
176
184
  },
177
- me
185
+ be
178
186
  );
179
187
  }
180
188
  }
181
189
  export {
182
- ge as RoomLabel
190
+ Le as RoomLabel
183
191
  };