@realsee/dnalogel 2.2.4 → 2.2.5-alpha.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 (297) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
  3. package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  5. package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  6. package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  7. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  8. package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  9. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
  10. package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
  11. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  12. package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  13. package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  14. package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  15. package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
  16. package/dist/index.cjs.js +46 -46
  17. package/dist/index.js +5021 -4928
  18. package/dist/index.umd.js +39 -39
  19. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  20. package/docs/assets/highlight.css +7 -0
  21. package/docs/assets/search.js +1 -1
  22. package/docs/classes/CSS3DRender.html +533 -0
  23. package/docs/classes/CruisePluginController.html +24 -24
  24. package/docs/classes/Magnifier.html +16 -16
  25. package/docs/classes/ModelRoomLabelController.html +11 -11
  26. package/docs/classes/Object3DHelperController.html +24 -24
  27. package/docs/classes/PaintBrush.html +15 -15
  28. package/docs/classes/PanoTagPluginController.html +39 -39
  29. package/docs/classes/Util.BetterTween.html +8 -8
  30. package/docs/classes/Util.FivePointSelector.html +12 -12
  31. package/docs/classes/Util.Interval.html +12 -12
  32. package/docs/classes/Util.Magnifier.html +17 -17
  33. package/docs/classes/Util.PointDomHelper.html +11 -11
  34. package/docs/classes/Util.PointHelper.html +11 -11
  35. package/docs/classes/Util.Rectangle.html +13 -13
  36. package/docs/enums/CameraMovementEffect.html +7 -7
  37. package/docs/enums/ContentType.html +12 -12
  38. package/docs/enums/DIRECTION.html +9 -9
  39. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  40. package/docs/enums/DimensionType.html +7 -7
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  43. package/docs/enums/LinkType.html +7 -7
  44. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  45. package/docs/enums/PointType.html +7 -7
  46. package/docs/enums/Rotation.html +8 -8
  47. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  48. package/docs/functions/CameraMovementPlugin.html +6 -5
  49. package/docs/functions/CruisePlugin.html +6 -5
  50. package/docs/functions/GuideLinePlugin.html +7 -6
  51. package/docs/functions/ItemLabelPlugin.html +6 -5
  52. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  53. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  55. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  56. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  57. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  58. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  59. package/docs/functions/ModelViewPlugin.html +6 -5
  60. package/docs/functions/Object3DHelperPlugin.html +6 -5
  61. package/docs/functions/PanoCompassPlugin.html +6 -5
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  63. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  65. package/docs/functions/PanoMeasurePlugin.html +6 -5
  66. package/docs/functions/PanoRulerPlugin.html +6 -5
  67. package/docs/functions/PanoRulerProPlugin.html +6 -5
  68. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  69. package/docs/functions/PanoTagPlugin.html +6 -5
  70. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  71. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  72. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  73. package/docs/functions/Util.getFrameTime.html +5 -5
  74. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  75. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  76. package/docs/functions/Util.isNil.html +5 -5
  77. package/docs/functions/Util.nextFrame.html +5 -5
  78. package/docs/functions/Util.notNil.html +5 -5
  79. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  80. package/docs/functions/Util.tweenProgress.html +5 -5
  81. package/docs/functions/pluginFlag.html +7 -6
  82. package/docs/index.html +6 -5
  83. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  84. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  85. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  86. package/docs/interfaces/ContentTypeMap.html +12 -12
  87. package/docs/interfaces/FloorplanBounding.html +8 -8
  88. package/docs/interfaces/FloorplanData.html +10 -10
  89. package/docs/interfaces/FloorplanEntrance.html +11 -11
  90. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  91. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  92. package/docs/interfaces/FloorplanFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanObserver.html +9 -9
  95. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanPosition.html +7 -7
  97. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  98. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  99. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  100. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  101. package/docs/interfaces/FloorplanServerData.html +7 -7
  102. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  103. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  104. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  105. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  106. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  107. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  108. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  109. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  110. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  111. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  112. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  113. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  114. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  115. package/docs/interfaces/LineJson.html +7 -7
  116. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  117. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  118. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  119. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  120. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  121. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  122. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  123. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  124. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  125. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  126. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  127. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  128. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  129. package/docs/interfaces/Object3DHelperState.html +8 -8
  130. package/docs/interfaces/OpenParameter.html +7 -7
  131. package/docs/interfaces/PaintBrushAction.html +12 -12
  132. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  133. package/docs/interfaces/PaintBrushState.html +10 -10
  134. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  135. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
  136. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  137. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  138. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  139. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  140. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  141. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  142. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  143. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  144. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
  145. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
  146. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  147. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  148. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  149. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  150. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  151. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  152. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  153. package/docs/interfaces/Point.html +8 -8
  154. package/docs/interfaces/PointJson.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 +7 -6
  159. package/docs/interfaces/Rooms.html +7 -6
  160. package/docs/interfaces/Scissor.html +9 -9
  161. package/docs/interfaces/TagConfig.html +10 -10
  162. package/docs/interfaces/Tags.html +9 -9
  163. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  164. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  165. package/docs/modules/Util.html +5 -5
  166. package/docs/modules.html +7 -5
  167. package/docs/types/ArrayPosition.html +7 -6
  168. package/docs/types/CSS3DRenderExportType.html +8 -7
  169. package/docs/types/CSS3DRenderPluginExportType.html +7 -6
  170. package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
  171. package/docs/types/Color.html +7 -6
  172. package/docs/types/ContentTypeConfigKey.html +7 -6
  173. package/docs/types/ContentTypeConfigKeyArray.html +7 -6
  174. package/docs/types/Create3DDomContainerReturnType.html +7 -6
  175. package/docs/types/Create3DElementReturnType.html +8 -7
  176. package/docs/types/CruisePluginExportType.html +7 -6
  177. package/docs/types/Direction-1.html +7 -6
  178. package/docs/types/Direction4.html +7 -6
  179. package/docs/types/FloorplanRuleLabels.html +7 -6
  180. package/docs/types/FloorplanServerRuleLabels.html +7 -6
  181. package/docs/types/GuideLinePluginExportType.html +7 -6
  182. package/docs/types/HelperEventMap.html +7 -6
  183. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
  184. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
  185. package/docs/types/MediaData.html +7 -6
  186. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
  187. package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
  188. package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
  189. package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
  190. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
  191. package/docs/types/MoveArgs.html +7 -6
  192. package/docs/types/MoveOpts.html +7 -6
  193. package/docs/types/Object3DHelperEventMap.html +7 -6
  194. package/docs/types/ObjectFit.html +7 -6
  195. package/docs/types/PaintBrushEventMap.html +7 -6
  196. package/docs/types/PanoCompassPluginData.html +7 -6
  197. package/docs/types/PanoCompassPluginExportType.html +7 -6
  198. package/docs/types/PanoCompassPluginParameterType.html +7 -6
  199. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
  200. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
  201. package/docs/types/PanoMeasurePluginEvent.html +7 -6
  202. package/docs/types/PanoMeasureReturnType.html +7 -6
  203. package/docs/types/PanoSpatialTagPluginId.html +7 -6
  204. package/docs/types/PanoTagPluginExportInterface.html +7 -6
  205. package/docs/types/PanoTagPluginParamsInterface.html +7 -6
  206. package/docs/types/PlaneTag.html +7 -6
  207. package/docs/types/PointTag.html +7 -6
  208. package/docs/types/Position.html +7 -6
  209. package/docs/types/RotateArgs.html +7 -6
  210. package/docs/types/RotateOpts.html +7 -6
  211. package/docs/types/RuleLabelsKey.html +7 -6
  212. package/docs/types/RuleLabelsValue.html +7 -6
  213. package/docs/types/Tag.html +7 -6
  214. package/docs/types/Tag2D.html +7 -6
  215. package/docs/types/Tag3D.html +7 -6
  216. package/docs/types/TagId.html +7 -6
  217. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
  218. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
  219. package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
  220. package/docs/variables/PLUGIN.html +7 -6
  221. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
  222. package/docs/variables/ROOM_TYPE_MAP.html +7 -6
  223. package/docs/variables/VERSION.html +7 -6
  224. package/docs/variables/itemLabelPluginServerParams.html +7 -6
  225. package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
  226. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
  227. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
  228. package/libs/CSS3DRenderPlugin/CSS3DRender.js +187 -251
  229. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  230. package/libs/CSS3DRenderPlugin/Controller.js +48 -57
  231. package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
  232. package/libs/CSS3DRenderPlugin/index.js +3 -2
  233. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  234. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
  235. package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  236. package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
  237. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  238. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
  239. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  240. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
  241. package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  242. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +39 -0
  244. package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
  245. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +93 -0
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  247. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
  248. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  249. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
  250. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  251. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
  252. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  253. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
  254. package/libs/CruisePlugin/Controller.js +16 -16
  255. package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
  256. package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
  257. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
  258. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
  259. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
  260. package/libs/ModelTVVideoPlugin/index.js +2 -1
  261. package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
  262. package/libs/Object3DHelperPlugin/Controller.js +89 -74
  263. package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
  264. package/libs/PanoSpatialTagPlugin/Components/origins.js +39 -39
  265. package/libs/PanoSpatialTagPlugin/index.js +2 -1
  266. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -1
  267. package/libs/PanoTagPlugin/Components/Common/Media.js +53 -53
  268. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +2 -2
  269. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +8 -8
  270. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +13 -13
  271. package/libs/PanoTagPlugin/Components/Common/Shadow.js +5 -5
  272. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +12 -12
  273. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +48 -78
  274. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +25 -25
  275. package/libs/PanoTagPlugin/Components/Tag/index.js +35 -35
  276. package/libs/PanoTagPlugin/Components/TagContainer.js +2 -2
  277. package/libs/PanoTagPlugin/Components/TagWrapper.js +2 -2
  278. package/libs/floorplan/Components/Camera.js +23 -23
  279. package/libs/floorplan/Components/Compass.js +2 -2
  280. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +31 -31
  281. package/libs/floorplan/Components/RuleLabels/RuleItem.js +51 -51
  282. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +2 -2
  283. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +2 -2
  284. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +26 -26
  285. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +16 -16
  286. package/libs/index.js +106 -97
  287. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  288. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
  289. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  290. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  291. package/libs/shared-utils/three/index.js +2 -1
  292. package/libs/vendor/svelte/internal/index.js +151 -152
  293. package/package.json +14 -14
  294. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  295. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
  296. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  297. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
@@ -2,7 +2,7 @@ var G = Object.defineProperty, K = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var E = Object.getOwnPropertySymbols;
4
4
  var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e, S = (g, c) => {
5
+ var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e, P = (g, c) => {
6
6
  for (var e in c || (c = {}))
7
7
  T.call(c, e) && x(g, e, c[e]);
8
8
  if (E)
@@ -10,7 +10,7 @@ var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writab
10
10
  A.call(c, e) && x(g, e, c[e]);
11
11
  return g;
12
12
  }, L = (g, c) => K(g, U(c));
13
- var P = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
13
+ var S = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
14
14
  var y = (g, c, e) => new Promise((t, i) => {
15
15
  var a = (s) => {
16
16
  try {
@@ -47,7 +47,7 @@ const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
47
47
  class B extends O {
48
48
  constructor(e, t) {
49
49
  super(e, t);
50
- P(this, "state", {
50
+ S(this, "state", {
51
51
  visible: !0,
52
52
  enabled: !0,
53
53
  disposed: !1,
@@ -62,9 +62,9 @@ class B extends O {
62
62
  }
63
63
  }
64
64
  });
65
- P(this, "data");
66
- P(this, "config");
67
- P(this, "privateState", {
65
+ S(this, "data");
66
+ S(this, "config");
67
+ S(this, "privateState", {
68
68
  playing: !1,
69
69
  currentPlayQueue: [],
70
70
  currentPlayKeyframe: null,
@@ -72,7 +72,7 @@ class B extends O {
72
72
  disposers: [],
73
73
  modeChanging: !1
74
74
  });
75
- P(this, "GuideLine");
75
+ S(this, "GuideLine");
76
76
  this.config = t, Object.assign(window, { [`__${D}_DEBUG__`]: this });
77
77
  const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
78
78
  this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
@@ -115,7 +115,7 @@ class B extends O {
115
115
  this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
116
116
  }
117
117
  playFromStart(e) {
118
- return this.playFrom(L(S({}, e), { index: 0 }));
118
+ return this.playFrom(L(P({}, e), { index: 0 }));
119
119
  }
120
120
  pause(e) {
121
121
  this.setState({ playing: !1 }, e);
@@ -145,8 +145,8 @@ class B extends O {
145
145
  return F();
146
146
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
147
147
  return q();
148
- const i = S({}, this.state);
149
- this.state = S(S({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), $(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
148
+ const i = P({}, this.state);
149
+ this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), $(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
150
150
  }
151
151
  formatData(e) {
152
152
  return y(this, null, function* () {
@@ -161,7 +161,7 @@ class B extends O {
161
161
  keyframes: i.keyframes.map((a, o) => {
162
162
  var r;
163
163
  const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
164
- return S({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
164
+ return P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
165
165
  })
166
166
  };
167
167
  if (i.panoIndexList) {
@@ -182,9 +182,9 @@ class B extends O {
182
182
  i.moveType === void 0 || i.moveType === "justMove" ? a.push({
183
183
  moveIndex: r,
184
184
  stay: i.stay,
185
- data: S({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
186
- }) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: S({ effect: "Rotate", panoIndex: s }, d) }));
187
- }), { keyframesId: k(), keyframes: a.map((s, r) => S({ id: k(), index: r }, s)) };
185
+ data: P({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
186
+ }) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: P({ effect: "Rotate", panoIndex: s }, d) }));
187
+ }), { keyframesId: k(), keyframes: a.map((s, r) => P({ id: k(), index: r }, s)) };
188
188
  } else
189
189
  throw new Error("format error: data no keyframes or no panoIndexList");
190
190
  });
@@ -417,7 +417,7 @@ class B extends O {
417
417
  }
418
418
  changeMode(e, t) {
419
419
  return y(this, null, function* () {
420
- e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, console.log("this.privateState.modeChanging", this.privateState.modeChanging), yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
420
+ e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
421
421
  });
422
422
  }
423
423
  forceInteruptUpdateCamera() {
@@ -478,7 +478,7 @@ class B extends O {
478
478
  !this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
479
479
  }
480
480
  }
481
- P(B, "PluginVersion", M);
481
+ S(B, "PluginVersion", M);
482
482
  export {
483
483
  B as CruisePluginController
484
484
  };
@@ -98,7 +98,7 @@ function Te(i) {
98
98
  t = _e("div");
99
99
  for (let c = 0; c < e.length; c += 1)
100
100
  e[c].c();
101
- be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => i[12].call(t)), W(t, "opacity", i[5] ? 1 : 0, !1);
101
+ be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => i[12].call(t)), W(t, "opacity", i[5] ? 1 : 0);
102
102
  },
103
103
  m(c, a) {
104
104
  v(c, t, a);
@@ -107,7 +107,7 @@ function Te(i) {
107
107
  f = ge(t, i[12].bind(t)), o = !0;
108
108
  },
109
109
  p(c, a) {
110
- a[0] & 71 && (d = c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & 32 && W(t, "opacity", c[5] ? 1 : 0, !1);
110
+ a[0] & 71 && (d = c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & 32 && W(t, "opacity", c[5] ? 1 : 0);
111
111
  },
112
112
  i(c) {
113
113
  if (!o) {
@@ -11,11 +11,11 @@ function D(l) {
11
11
  c() {
12
12
  a && a.c(), e = z(), t = w("div"), n = w("span"), h = L(s), o = z(), m = w("span"), g = L(r), c(n, "class", "item-model svelte-gduhqw"), c(m, "class", "item-name svelte-gduhqw"), c(t, "class", "item-label-text svelte-gduhqw");
13
13
  },
14
- m(i, f) {
15
- a && a.m(i, f), q(i, e, f), q(i, t, f), v(t, n), v(n, h), v(t, o), v(t, m), v(m, g);
14
+ m(i, b) {
15
+ a && a.m(i, b), q(i, e, b), q(i, t, b), v(t, n), v(n, h), v(t, o), v(t, m), v(m, g);
16
16
  },
17
- p(i, f) {
18
- i[0].icon ? a ? a.p(i, f) : (a = E(i), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), f & 1 && s !== (s = (i[0].code || i[0].id) + "") && C(h, s), f & 1 && r !== (r = i[0].name + "") && C(g, r);
17
+ p(i, b) {
18
+ i[0].icon ? a ? a.p(i, b) : (a = E(i), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), b & 1 && s !== (s = (i[0].code || i[0].id) + "") && C(h, s), b & 1 && r !== (r = i[0].name + "") && C(g, r);
19
19
  },
20
20
  d(i) {
21
21
  a && a.d(i), i && y(e), i && y(t);
@@ -59,25 +59,25 @@ function H(l) {
59
59
  function i(d, u) {
60
60
  return u & 1 && (n = null), n == null && (n = !!Boolean(typeof d[0].render == "function")), n ? G : D;
61
61
  }
62
- let f = i(l, -1), b = f(l);
62
+ let b = i(l, -1), f = b(l);
63
63
  return {
64
64
  c() {
65
- e = w("div"), t = w("div"), b.c(), h = z(), o = w("div"), c(t, "class", s = p(k("item-label-item__text-wrap", {
65
+ e = w("div"), t = w("div"), f.c(), h = z(), o = w("div"), c(t, "class", s = p(k("item-label-item__text-wrap", {
66
66
  "item-label-item__custom": Boolean(typeof l[0].render == "function")
67
- })) + " svelte-gduhqw"), _(t, "bottom", `${l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: l[1] })) + " svelte-gduhqw"), _(o, "height", `${l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: l[0].isFold })) + " svelte-gduhqw"), _(e, "z-index", l[0].zIndex, !1), _(e, "transform", l[0].transform, !1);
67
+ })) + " svelte-gduhqw"), _(t, "bottom", `${l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: l[1] })) + " svelte-gduhqw"), _(o, "height", `${l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: l[0].isFold })) + " svelte-gduhqw"), _(e, "z-index", l[0].zIndex), _(e, "transform", l[0].transform);
68
68
  },
69
69
  m(d, u) {
70
- q(d, e, u), v(e, t), b.m(t, null), v(e, h), v(e, o), g || (a = j(t, "click", l[4]), g = !0);
70
+ q(d, e, u), v(e, t), f.m(t, null), v(e, h), v(e, o), g || (a = j(t, "click", l[4]), g = !0);
71
71
  },
72
72
  p(d, [u]) {
73
- f === (f = i(d, u)) && b ? b.p(d, u) : (b.d(1), b = f(d), b && (b.c(), b.m(t, null))), u & 1 && s !== (s = p(k("item-label-item__text-wrap", {
73
+ b === (b = i(d, u)) && f ? f.p(d, u) : (f.d(1), f = b(d), f && (f.c(), f.m(t, null))), u & 1 && s !== (s = p(k("item-label-item__text-wrap", {
74
74
  "item-label-item__custom": Boolean(typeof d[0].render == "function")
75
- })) + " svelte-gduhqw") && c(t, "class", s), u & 1 && _(t, "bottom", `${d[0].strokeLength}px`), u & 2 && m !== (m = p(k("item-label-item__bar", { anchor: d[1] })) + " svelte-gduhqw") && c(o, "class", m), u & 1 && _(o, "height", `${d[0].strokeLength}px`), u & 1 && r !== (r = p(k("item-label-item", { fold: d[0].isFold })) + " svelte-gduhqw") && c(e, "class", r), u & 1 && _(e, "z-index", d[0].zIndex, !1), u & 1 && _(e, "transform", d[0].transform, !1);
75
+ })) + " svelte-gduhqw") && c(t, "class", s), u & 1 && _(t, "bottom", `${d[0].strokeLength}px`), u & 2 && m !== (m = p(k("item-label-item__bar", { anchor: d[1] })) + " svelte-gduhqw") && c(o, "class", m), u & 1 && _(o, "height", `${d[0].strokeLength}px`), u & 1 && r !== (r = p(k("item-label-item", { fold: d[0].isFold })) + " svelte-gduhqw") && c(e, "class", r), u & 1 && _(e, "z-index", d[0].zIndex), u & 1 && _(e, "transform", d[0].transform);
76
76
  },
77
77
  i: I,
78
78
  o: I,
79
79
  d(d) {
80
- d && y(e), b.d(), g = !1, a();
80
+ d && y(e), f.d(), g = !1, a();
81
81
  }
82
82
  };
83
83
  }
@@ -67,7 +67,7 @@ function Te(o) {
67
67
  t = le("div");
68
68
  for (let l = 0; l < e.length; l += 1)
69
69
  e[l].c();
70
- ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0, !1);
70
+ ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0);
71
71
  },
72
72
  m(l, s) {
73
73
  V(l, t, s);
@@ -76,7 +76,7 @@ function Te(o) {
76
76
  h = me(t, o[9].bind(t)), r = !0;
77
77
  },
78
78
  p(l, [s]) {
79
- s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0, !1);
79
+ s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0);
80
80
  },
81
81
  i(l) {
82
82
  if (!r) {
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as g, text as z, space as I, attr as b, set_style as r, null_to_empty as v, insert as x, append as c, listen as C, set_data as F, noop as h, detach as j } from "../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as f, text as z, space as I, attr as b, set_style as r, null_to_empty as v, insert as x, append as c, listen as C, set_data as F, noop as h, detach as j } from "../vendor/svelte/internal/index.js";
2
2
  import u from "classnames";
3
3
  function q(t) {
4
4
  w(t, "svelte-1ir3cyd", `.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
@@ -6,16 +6,16 @@ function q(t) {
6
6
  }}`);
7
7
  }
8
8
  function A(t) {
9
- let e, a, l, o = (t[0].name.length > 6 ? `${t[0].name.slice(0, 6)}...` : t[0].name) + "", m, s, d, f, p, _;
9
+ let e, o, l, n = (t[0].name.length > 6 ? `${t[0].name.slice(0, 6)}...` : t[0].name) + "", m, s, d, g, p, _;
10
10
  return {
11
11
  c() {
12
- e = g("div"), a = g("div"), l = g("span"), m = z(o), s = I(), d = g("div"), b(l, "class", "item-label-item__text svelte-1ir3cyd"), b(a, "class", "item-label-item__text-wrap svelte-1ir3cyd"), r(a, "top", `-${t[0].strokeLength + 26}px`), b(d, "class", "item-label-item__bar svelte-1ir3cyd"), r(d, "height", `${t[0].strokeLength}px`), b(e, "class", f = v(u("item-label-item", { visible: t[0].visible })) + " svelte-1ir3cyd"), r(e, "z-index", t[0].zIndex, !1), r(e, "transform", t[0].transform, !1);
12
+ e = f("div"), o = f("div"), l = f("span"), m = z(n), s = I(), d = f("div"), b(l, "class", "item-label-item__text svelte-1ir3cyd"), b(o, "class", "item-label-item__text-wrap svelte-1ir3cyd"), r(o, "top", `-${t[0].strokeLength + 26}px`), b(d, "class", "item-label-item__bar svelte-1ir3cyd"), r(d, "height", `${t[0].strokeLength}px`), b(e, "class", g = v(u("item-label-item", { visible: t[0].visible })) + " svelte-1ir3cyd"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform);
13
13
  },
14
- m(i, n) {
15
- x(i, e, n), c(e, a), c(a, l), c(l, m), c(e, s), c(e, d), p || (_ = C(l, "click", t[1]), p = !0);
14
+ m(i, a) {
15
+ x(i, e, a), c(e, o), c(o, l), c(l, m), c(e, s), c(e, d), p || (_ = C(l, "click", t[1]), p = !0);
16
16
  },
17
- p(i, [n]) {
18
- n & 1 && o !== (o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "") && F(m, o), n & 1 && r(a, "top", `-${i[0].strokeLength + 26}px`), n & 1 && r(d, "height", `${i[0].strokeLength}px`), n & 1 && f !== (f = v(u("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd") && b(e, "class", f), n & 1 && r(e, "z-index", i[0].zIndex, !1), n & 1 && r(e, "transform", i[0].transform, !1);
17
+ p(i, [a]) {
18
+ a & 1 && n !== (n = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "") && F(m, n), a & 1 && r(o, "top", `-${i[0].strokeLength + 26}px`), a & 1 && r(d, "height", `${i[0].strokeLength}px`), a & 1 && g !== (g = v(u("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd") && b(e, "class", g), a & 1 && r(e, "z-index", i[0].zIndex), a & 1 && r(e, "transform", i[0].transform);
19
19
  },
20
20
  i: h,
21
21
  o: h,
@@ -24,14 +24,14 @@ function A(t) {
24
24
  }
25
25
  };
26
26
  }
27
- function E(t, e, a) {
28
- let { itemLabel: l } = e, { hooks: o } = e;
27
+ function E(t, e, o) {
28
+ let { itemLabel: l } = e, { hooks: n } = e;
29
29
  function m() {
30
- console.log("__onclick___: ", l), o.emit("onLabelClick", l);
30
+ console.log("__onclick___: ", l), n.emit("onLabelClick", l);
31
31
  }
32
32
  return t.$$set = (s) => {
33
- "itemLabel" in s && a(0, l = s.itemLabel), "hooks" in s && a(2, o = s.hooks);
34
- }, [l, m, o];
33
+ "itemLabel" in s && o(0, l = s.itemLabel), "hooks" in s && o(2, n = s.hooks);
34
+ }, [l, m, n];
35
35
  }
36
36
  class B extends y {
37
37
  constructor(e) {
@@ -1,39 +1,39 @@
1
- import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as u, text as w, space as k, attr as b, set_style as r, toggle_class as p, insert as L, append as d, listen as I, set_data as x, noop as v, detach as y } from "../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as f, text as w, space as k, attr as b, set_style as r, toggle_class as p, insert as L, append as d, listen as I, set_data as x, noop as v, detach as y } from "../vendor/svelte/internal/index.js";
2
2
  import { ROOM_LABEL_BG as B } from "./Assets/roomLabelBg.js";
3
3
  function C(t) {
4
4
  z(t, "svelte-1d7uzh5", ".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}");
5
5
  }
6
6
  function O(t) {
7
- let e, n, a = t[0].name + "", l, m, i, f, c;
7
+ let e, n, i = t[0].name + "", a, m, l, u, c;
8
8
  return {
9
9
  c() {
10
- e = u("div"), n = u("span"), l = w(a), m = k(), i = u("div"), b(n, "class", "room-label-item__text svelte-1d7uzh5"), r(n, "background-image", "url(" + B + ")"), p(n, "wide", t[0].name.length > 3), b(i, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(e, "z-index", t[0].zIndex, !1), r(e, "transform", t[0].transform, !1), r(e, "opacity", t[0].visible ? 1 : 0, !1);
10
+ e = f("div"), n = f("span"), a = w(i), m = k(), l = f("div"), b(n, "class", "room-label-item__text svelte-1d7uzh5"), r(n, "background-image", "url(" + B + ")"), p(n, "wide", t[0].name.length > 3), b(l, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform), r(e, "opacity", t[0].visible ? 1 : 0);
11
11
  },
12
12
  m(o, s) {
13
- L(o, e, s), d(e, n), d(n, l), d(e, m), d(e, i), f || (c = I(n, "click", t[1]), f = !0);
13
+ L(o, e, s), d(e, n), d(n, a), d(e, m), d(e, l), u || (c = I(n, "click", t[1]), u = !0);
14
14
  },
15
15
  p(o, [s]) {
16
- s & 1 && a !== (a = o[0].name + "") && x(l, a), s & 1 && p(n, "wide", o[0].name.length > 3), s & 1 && r(e, "z-index", o[0].zIndex, !1), s & 1 && r(e, "transform", o[0].transform, !1), s & 1 && r(e, "opacity", o[0].visible ? 1 : 0, !1);
16
+ s & 1 && i !== (i = o[0].name + "") && x(a, i), s & 1 && p(n, "wide", o[0].name.length > 3), s & 1 && r(e, "z-index", o[0].zIndex), s & 1 && r(e, "transform", o[0].transform), s & 1 && r(e, "opacity", o[0].visible ? 1 : 0);
17
17
  },
18
18
  i: v,
19
19
  o: v,
20
20
  d(o) {
21
- o && y(e), f = !1, c();
21
+ o && y(e), u = !1, c();
22
22
  }
23
23
  };
24
24
  }
25
25
  function R(t, e, n) {
26
- let { five: a } = e, { roomLabel: l } = e;
26
+ let { five: i } = e, { roomLabel: a } = e;
27
27
  function m() {
28
- a.setState({
29
- panoIndex: l.panoIndex,
28
+ i.setState({
29
+ panoIndex: a.panoIndex,
30
30
  mode: "Panorama",
31
- longitude: l.longitude
31
+ longitude: a.longitude
32
32
  });
33
33
  }
34
- return t.$$set = (i) => {
35
- "five" in i && n(2, a = i.five), "roomLabel" in i && n(0, l = i.roomLabel);
36
- }, [l, m, a];
34
+ return t.$$set = (l) => {
35
+ "five" in l && n(2, i = l.five), "roomLabel" in l && n(0, a = l.roomLabel);
36
+ }, [a, m, i];
37
37
  }
38
38
  class q extends g {
39
39
  constructor(e) {
@@ -1,2 +1,3 @@
1
1
  import "three";
2
- import "three/examples/jsm/renderers/CSS3DRenderer";
2
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
3
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
@@ -11,6 +11,8 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
11
11
  name: string;
12
12
  state: Object3DHelperState;
13
13
  objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
14
+ private css3DObjectParentMap;
15
+ private css3DRender;
14
16
  constructor(five: Five);
15
17
  /**
16
18
  * @description Show guide line
@@ -1,61 +1,66 @@
1
- var E = Object.defineProperty;
2
- var S = Object.getOwnPropertySymbols;
3
- var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
- var b = (i, s, e) => s in i ? E(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
1
+ var O = Object.defineProperty;
2
+ var w = Object.getOwnPropertySymbols;
3
+ var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var m = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, b = (i, s) => {
5
5
  for (var e in s || (s = {}))
6
- M.call(s, e) && b(i, e, s[e]);
7
- if (S)
8
- for (var e of S(s))
9
- O.call(s, e) && b(i, e, s[e]);
6
+ M.call(s, e) && m(i, e, s[e]);
7
+ if (w)
8
+ for (var e of w(s))
9
+ E.call(s, e) && m(i, e, s[e]);
10
10
  return i;
11
11
  };
12
- var h = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
13
- var u = (i, s, e) => new Promise((t, r) => {
14
- var l = (o) => {
12
+ var d = (i, s, e) => (m(i, typeof s != "symbol" ? s + "" : s, e), e);
13
+ var u = (i, s, e) => new Promise((r, t) => {
14
+ var l = (n) => {
15
15
  try {
16
- a(e.next(o));
17
- } catch (p) {
18
- r(p);
16
+ p(e.next(n));
17
+ } catch (h) {
18
+ t(h);
19
19
  }
20
- }, c = (o) => {
20
+ }, c = (n) => {
21
21
  try {
22
- a(e.throw(o));
23
- } catch (p) {
24
- r(p);
22
+ p(e.throw(n));
23
+ } catch (h) {
24
+ t(h);
25
25
  }
26
- }, a = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(l, c);
27
- a((e = e.apply(i, s)).next());
26
+ }, p = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
27
+ p((e = e.apply(i, s)).next());
28
28
  });
29
- import { Controller as D } from "../base/BasePlugin.js";
29
+ import { Controller as R } from "../base/BasePlugin.js";
30
30
  import "three";
31
- import { MoveHelper as y } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
- import { RotateHelper as I } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
- import { RectangleScaleHelper as k } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
31
+ import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
+ import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
+ import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
34
34
  import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
35
35
  import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
36
- import { ControllerWrapper as m } from "./FiveControllerWrapper.js";
37
- import { Object3DHelper as P } from "../shared-utils/Object3DHelper/index.js";
38
- import { RotateController as $ } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
- import { CSS3DScaleController as j } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
- const g = "v1.0.0", v = "Object3DHelperPlugin", H = `${v}@${g}`, L = () => {
41
- console.error(`${H} is disposed`);
42
- }, _ = () => {
43
- console.warn(`${H} is disabled`);
44
- }, B = () => {
45
- console.error(`${H} is disabled`);
36
+ import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
37
+ import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
38
+ import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
+ import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
+ import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
41
+ import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
+ const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
44
+ console.error(`${C} is disposed`);
45
+ }, G = () => {
46
+ console.warn(`${C} is disabled`);
47
+ }, N = () => {
48
+ console.error(`${C} is disabled`);
46
49
  };
47
- class K extends D {
50
+ class re extends R {
48
51
  constructor(e) {
49
52
  super(e);
50
- h(this, "version", g);
51
- h(this, "name", v);
52
- h(this, "state", {
53
+ d(this, "version", g);
54
+ d(this, "name", H);
55
+ d(this, "state", {
53
56
  visible: !0,
54
57
  enabled: !0,
55
58
  disposed: !1
56
59
  });
57
- h(this, "objectHelperMap", /* @__PURE__ */ new Map());
58
- this.five = e, console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${v.toUpperCase()}_DEBUG__`]: this });
60
+ d(this, "objectHelperMap", /* @__PURE__ */ new Map());
61
+ d(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
62
+ d(this, "css3DRender");
63
+ this.five = e, this.css3DRender = new L(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${H.toUpperCase()}_DEBUG__`]: this });
59
64
  }
60
65
  show(e) {
61
66
  return u(this, null, function* () {
@@ -76,70 +81,80 @@ class K extends D {
76
81
  dispose() {
77
82
  this.setState({ disposed: !0 });
78
83
  }
79
- setState(e, t) {
84
+ setState(e, r) {
80
85
  if (this.state.disposed)
81
- return L();
86
+ return _();
82
87
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
83
- return B();
84
- const r = f({}, this.state);
85
- this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
88
+ return N();
89
+ const t = b({}, this.state);
90
+ this.state = b(b({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
86
91
  }
87
92
  getObject3DHelper(e) {
88
93
  return this.objectHelperMap.get(e);
89
94
  }
90
- addObject3DHelper(e, t = {}) {
91
- var C;
95
+ addObject3DHelper(e, r = {}) {
96
+ var S;
92
97
  if (!e)
93
98
  return console.error("Object3D is undefined");
94
99
  if (this.objectHelperMap.has(e)) {
95
100
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
96
101
  return;
97
102
  }
98
- const r = new P();
99
- this.objectHelperMap.set(e, r);
100
- const l = (C = this.five.getElement()) == null ? void 0 : C.parentElement, c = this.five.camera, { moveHelper: a = !0, rotateHelper: o = !0, scaleHelper: p = !0 } = t;
101
- if (a) {
102
- const n = new y(e), d = new m(this.five, F, e, n);
103
- r.addControllers({ moveController: d.helperController });
103
+ const t = new I();
104
+ this.objectHelperMap.set(e, t);
105
+ const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: p = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
106
+ if (p) {
107
+ const o = new j(e), a = new v(this.five, F, e, o);
108
+ t.addControllers({ moveController: a.helperController });
104
109
  }
105
- if (o) {
106
- let n;
107
- l && c && (n = { container: l });
108
- const d = new I(e, n), w = new m(this.five, $, e, d);
109
- r.addControllers({ rotateController: w.helperController });
110
+ if (n) {
111
+ let o;
112
+ l && c && (o = { container: l });
113
+ const a = new P(e, o), f = new v(this.five, k, e, a);
114
+ t.addControllers({ rotateController: f.helperController });
110
115
  }
111
- if (p && l) {
112
- const n = new k(e, l, c, this.five.scene), d = new m(this.five, j, e, n);
113
- r.addControllers({ scaleController: d.helperController });
116
+ if (h && l) {
117
+ const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
118
+ t.addControllers({ scaleController: a.helperController });
114
119
  }
115
- e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
120
+ e.isCSS3DObjectPlus && $(this.five).then(() => {
121
+ var f, D;
122
+ const o = e, a = (f = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? f : W(this.five);
123
+ a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
124
+ });
116
125
  }
117
126
  removeObject3DHelper(e) {
118
- const t = this.objectHelperMap.get(e);
119
- !t || (e.isCSS3DObjectPlus && e.changeMode("front"), this.objectHelperMap.delete(e), t.dispose());
127
+ const r = this.objectHelperMap.get(e);
128
+ if (!!r) {
129
+ if (e.isCSS3DObjectPlus) {
130
+ const t = e, l = this.css3DObjectParentMap.get(t);
131
+ l == null || l.add(t), this.css3DRender.render(this.five.camera);
132
+ }
133
+ this.objectHelperMap.delete(e), r.dispose();
134
+ }
120
135
  }
121
- handleEnable(e, t = !0) {
122
- e ? (this.everyHelperDo((r) => r.enable()), this.hooks.emit("enable", { userAction: t })) : (this.everyHelperDo((r) => r.disable()), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
136
+ handleEnable(e, r = !0) {
137
+ e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: r })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: r })), this.state.enabled = e;
123
138
  }
124
- handleVisible(e, t = !0) {
125
- e ? (this.everyHelperDo((r) => r.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : (this.everyHelperDo((r) => r.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
139
+ handleVisible(e, r = !0) {
140
+ e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: r }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: r }))), this.state.visible = e;
126
141
  }
127
142
  handleDispose() {
128
143
  this.everyHelperDo((e) => e.dispose());
129
144
  }
130
145
  everyHelperDo(e) {
131
- this.objectHelperMap.forEach((t) => {
132
- t && e(t);
146
+ this.objectHelperMap.forEach((r) => {
147
+ r && e(r);
133
148
  });
134
149
  }
135
- actionIfStateIsEnabled(e, t) {
150
+ actionIfStateIsEnabled(e, r) {
136
151
  if (this.state.enabled)
137
152
  return e();
138
- t != null && t.warnLog && _();
153
+ r != null && r.warnLog && G();
139
154
  }
140
155
  }
141
156
  export {
142
- K as Object3DHelperController,
143
- H as PLUGIN,
157
+ re as Object3DHelperController,
158
+ C as PLUGIN,
144
159
  g as VERSION
145
160
  };