@realsee/dnalogel 2.2.7 → 2.3.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 (275) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -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 +25 -0
  10. package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -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 +5013 -4842
  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 +48 -34
  228. package/libs/CSS3DRenderPlugin/CSS3DRender.js +197 -256
  229. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  230. package/libs/CSS3DRenderPlugin/Controller.js +59 -62
  231. package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
  232. package/libs/CSS3DRenderPlugin/index.js +17 -8
  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 +30 -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 +25 -0
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
  244. package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
  245. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -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/ModelTVVideoPlugin/Plugin.js +60 -52
  256. package/libs/ModelTVVideoPlugin/index.js +15 -7
  257. package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
  258. package/libs/Object3DHelperPlugin/Controller.js +103 -83
  259. package/libs/Object3DHelperPlugin/index.js +20 -12
  260. package/libs/PanoCompassPlugin/Controller.js +49 -41
  261. package/libs/PanoCompassPlugin/index.js +13 -5
  262. package/libs/PanoSpatialTagPlugin/Plugin.js +46 -38
  263. package/libs/PanoSpatialTagPlugin/index.js +13 -5
  264. package/libs/PanoTagPlugin/index.js +21 -13
  265. package/libs/index.js +102 -93
  266. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  267. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
  268. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  269. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  270. package/libs/shared-utils/three/index.js +2 -1
  271. package/package.json +15 -14
  272. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  273. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -66
  274. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  275. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
@@ -1,42 +1,45 @@
1
- var E = Object.defineProperty;
2
- var S = Object.getOwnPropertySymbols;
3
- var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
- var f = (o, i, e) => i in o ? E(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, c = (o, i) => {
5
- for (var e in i || (i = {}))
6
- M.call(i, e) && f(o, e, i[e]);
7
- if (S)
8
- for (var e of S(i))
9
- O.call(i, e) && f(o, e, i[e]);
10
- return o;
1
+ var O = Object.defineProperty;
2
+ var w = Object.getOwnPropertySymbols;
3
+ var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
5
+ for (var e in s || (s = {}))
6
+ M.call(s, e) && b(i, e, s[e]);
7
+ if (w)
8
+ for (var e of w(s))
9
+ E.call(s, e) && b(i, e, s[e]);
10
+ return i;
11
11
  };
12
- var h = (o, i, e) => (f(o, typeof i != "symbol" ? i + "" : i, e), e);
13
- var b = (o, i, e) => new Promise((t, r) => {
14
- var l = (s) => {
12
+ var p = (i, s, e) => (b(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(s));
17
- } catch (p) {
18
- r(p);
16
+ d(e.next(n));
17
+ } catch (h) {
18
+ t(h);
19
19
  }
20
- }, m = (s) => {
20
+ }, c = (n) => {
21
21
  try {
22
- a(e.throw(s));
23
- } catch (p) {
24
- r(p);
22
+ d(e.throw(n));
23
+ } catch (h) {
24
+ t(h);
25
25
  }
26
- }, a = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(l, m);
27
- a((e = e.apply(o, i)).next());
26
+ }, d = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
27
+ d((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 u } 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";
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";
40
43
  import "../shared-utils/Subscribe.js";
41
44
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
42
45
  import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
@@ -45,46 +48,53 @@ import "../shared-utils/Object3DHelper/Constants/color.js";
45
48
  import "three/examples/jsm/renderers/CSS3DRenderer";
46
49
  import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
47
50
  import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
48
- import "../CSS3DRenderPlugin/CSS3DRender.js";
49
- import "../CSS3DRenderPlugin/utils/evenNumber.js";
50
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
51
- import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
52
- import "../CSS3DRenderPlugin/utils/centerPoint.js";
53
51
  import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
54
52
  import "../shared-utils/Object3DHelper/Base/BaseController.js";
55
53
  import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
56
54
  import "../shared-utils/isNil.js";
55
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
56
+ import "../CSS3DRenderPlugin/utils/even.js";
57
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
58
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
57
59
  import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
58
60
  import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
59
61
  import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
60
62
  import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
61
- const g = "v1.0.0", v = "Object3DHelperPlugin", H = `${v}@${g}`, L = () => {
62
- console.error(`${H} is disposed`);
63
- }, _ = () => {
64
- console.warn(`${H} is disabled`);
65
- }, B = () => {
66
- console.error(`${H} is disabled`);
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
64
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
65
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
66
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
67
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
68
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
69
+ const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
70
+ console.error(`${C} is disposed`);
71
+ }, G = () => {
72
+ console.warn(`${C} is disabled`);
73
+ }, N = () => {
74
+ console.error(`${C} is disabled`);
67
75
  };
68
- class ue extends D {
76
+ class je extends R {
69
77
  constructor(e) {
70
78
  super(e);
71
- h(this, "version", g);
72
- h(this, "name", v);
73
- h(this, "state", {
79
+ p(this, "version", g);
80
+ p(this, "name", H);
81
+ p(this, "state", {
74
82
  visible: !0,
75
83
  enabled: !0,
76
84
  disposed: !1
77
85
  });
78
- h(this, "objectHelperMap", /* @__PURE__ */ new Map());
79
- 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 });
86
+ p(this, "objectHelperMap", /* @__PURE__ */ new Map());
87
+ p(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
88
+ p(this, "css3DRender");
89
+ 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 });
80
90
  }
81
91
  show(e) {
82
- return b(this, null, function* () {
92
+ return u(this, null, function* () {
83
93
  this.setState({ visible: !0 }, e);
84
94
  });
85
95
  }
86
96
  hide(e) {
87
- return b(this, null, function* () {
97
+ return u(this, null, function* () {
88
98
  this.setState({ visible: !1 }, e);
89
99
  });
90
100
  }
@@ -97,70 +107,80 @@ class ue extends D {
97
107
  dispose() {
98
108
  this.setState({ disposed: !0 });
99
109
  }
100
- setState(e, t) {
110
+ setState(e, r) {
101
111
  if (this.state.disposed)
102
- return L();
112
+ return _();
103
113
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
104
- return B();
105
- const r = c({}, this.state);
106
- this.state = c(c({}, 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 });
114
+ return N();
115
+ const t = f({}, this.state);
116
+ this.state = f(f({}, 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 });
107
117
  }
108
118
  getObject3DHelper(e) {
109
119
  return this.objectHelperMap.get(e);
110
120
  }
111
- addObject3DHelper(e, t = {}) {
112
- var C;
121
+ addObject3DHelper(e, r = {}) {
122
+ var S;
113
123
  if (!e)
114
124
  return console.error("Object3D is undefined");
115
125
  if (this.objectHelperMap.has(e)) {
116
126
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
117
127
  return;
118
128
  }
119
- const r = new P();
120
- this.objectHelperMap.set(e, r);
121
- const l = (C = this.five.getElement()) == null ? void 0 : C.parentElement, m = this.five.camera, { moveHelper: a = !0, rotateHelper: s = !0, scaleHelper: p = !0 } = t;
122
- if (a) {
123
- const n = new y(e), d = new u(this.five, F, e, n);
124
- r.addControllers({ moveController: d.helperController });
129
+ const t = new I();
130
+ this.objectHelperMap.set(e, t);
131
+ const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: d = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
132
+ if (d) {
133
+ const o = new j(e), a = new v(this.five, F, e, o);
134
+ t.addControllers({ moveController: a.helperController });
125
135
  }
126
- if (s) {
127
- let n;
128
- l && m && (n = { container: l });
129
- const d = new I(e, n), w = new u(this.five, $, e, d);
130
- r.addControllers({ rotateController: w.helperController });
136
+ if (n) {
137
+ let o;
138
+ l && c && (o = { container: l });
139
+ const a = new P(e, o), m = new v(this.five, k, e, a);
140
+ t.addControllers({ rotateController: m.helperController });
131
141
  }
132
- if (p && l) {
133
- const n = new k(e, l, m, this.five.scene), d = new u(this.five, j, e, n);
134
- r.addControllers({ scaleController: d.helperController });
142
+ if (h && l) {
143
+ const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
144
+ t.addControllers({ scaleController: a.helperController });
135
145
  }
136
- e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
146
+ e.isCSS3DObjectPlus && $(this.five).then(() => {
147
+ var m, D;
148
+ const o = e, a = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : W(this.five);
149
+ 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));
150
+ });
137
151
  }
138
152
  removeObject3DHelper(e) {
139
- const t = this.objectHelperMap.get(e);
140
- !t || (e.isCSS3DObjectPlus && e.changeMode("front"), this.objectHelperMap.delete(e), t.dispose());
153
+ const r = this.objectHelperMap.get(e);
154
+ if (!!r) {
155
+ if (e.isCSS3DObjectPlus) {
156
+ const t = e, l = this.css3DObjectParentMap.get(t);
157
+ l == null || l.add(t), this.css3DRender.render(this.five.camera);
158
+ }
159
+ this.objectHelperMap.delete(e), r.dispose();
160
+ }
141
161
  }
142
- handleEnable(e, t = !0) {
143
- 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;
162
+ handleEnable(e, r = !0) {
163
+ 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;
144
164
  }
145
- handleVisible(e, t = !0) {
146
- 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;
165
+ handleVisible(e, r = !0) {
166
+ 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;
147
167
  }
148
168
  handleDispose() {
149
169
  this.everyHelperDo((e) => e.dispose());
150
170
  }
151
171
  everyHelperDo(e) {
152
- this.objectHelperMap.forEach((t) => {
153
- t && e(t);
172
+ this.objectHelperMap.forEach((r) => {
173
+ r && e(r);
154
174
  });
155
175
  }
156
- actionIfStateIsEnabled(e, t) {
176
+ actionIfStateIsEnabled(e, r) {
157
177
  if (this.state.enabled)
158
178
  return e();
159
- t != null && t.warnLog && _();
179
+ r != null && r.warnLog && G();
160
180
  }
161
181
  }
162
182
  export {
163
- ue as Object3DHelperController,
164
- H as PLUGIN,
183
+ je as Object3DHelperController,
184
+ C as PLUGIN,
165
185
  g as VERSION
166
186
  };
@@ -1,5 +1,5 @@
1
1
  import { Object3DHelperController as o } from "./Controller.js";
2
- import { Object3DHelperController as y, PLUGIN as z, VERSION as A } from "./Controller.js";
2
+ import { Object3DHelperController as Q, PLUGIN as T, VERSION as W } from "./Controller.js";
3
3
  import "../base/BasePlugin.js";
4
4
  import "../shared-utils/Subscribe.js";
5
5
  import "three";
@@ -8,17 +8,23 @@ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
8
8
  import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
9
9
  import "../shared-utils/Object3DHelper/utils/direction.js";
10
10
  import "../shared-utils/Object3DHelper/Constants/color.js";
11
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
12
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
11
13
  import "three/examples/jsm/renderers/CSS3DRenderer";
14
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
15
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
16
+ import "../CSS3DRenderPlugin/utils/even.js";
17
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
18
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
19
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
20
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
21
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
12
23
  import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
13
24
  import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
14
25
  import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
15
26
  import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
16
27
  import "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
17
- import "../CSS3DRenderPlugin/CSS3DRender.js";
18
- import "../CSS3DRenderPlugin/utils/evenNumber.js";
19
- import "../CSS3DRenderPlugin/utils/positionToVector3.js";
20
- import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
21
- import "../CSS3DRenderPlugin/utils/centerPoint.js";
22
28
  import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
23
29
  import "../shared-utils/Object3DHelper/Controller/MoveController.js";
24
30
  import "../shared-utils/Object3DHelper/Base/BaseController.js";
@@ -32,11 +38,13 @@ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
32
38
  import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
33
39
  import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
34
40
  import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
35
- const k = (r) => new o(r);
41
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
+ const J = (r) => new o(r);
36
44
  export {
37
- y as Object3DHelperController,
38
- k as Object3DHelperPlugin,
39
- z as PLUGIN,
40
- A as VERSION,
41
- k as default
45
+ Q as Object3DHelperController,
46
+ J as Object3DHelperPlugin,
47
+ T as PLUGIN,
48
+ W as VERSION,
49
+ J as default
42
50
  };
@@ -10,21 +10,21 @@ var u = (h, n, e) => n in h ? D(h, n, { enumerable: !0, configurable: !0, writab
10
10
  return h;
11
11
  };
12
12
  var i = (h, n, e) => (u(h, typeof n != "symbol" ? n + "" : n, e), e);
13
- var d = (h, n, e) => new Promise((t, s) => {
14
- var o = (m) => {
13
+ var d = (h, n, e) => new Promise((t, o) => {
14
+ var s = (m) => {
15
15
  try {
16
- c(e.next(m));
17
- } catch (p) {
18
- s(p);
16
+ p(e.next(m));
17
+ } catch (c) {
18
+ o(c);
19
19
  }
20
20
  }, r = (m) => {
21
21
  try {
22
- c(e.throw(m));
23
- } catch (p) {
24
- s(p);
22
+ p(e.throw(m));
23
+ } catch (c) {
24
+ o(c);
25
25
  }
26
- }, c = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(o, r);
27
- c((e = e.apply(h, n)).next());
26
+ }, p = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(s, r);
27
+ p((e = e.apply(h, n)).next());
28
28
  });
29
29
  import * as a from "three";
30
30
  import { Five as C } from "@realsee/five";
@@ -38,15 +38,23 @@ import "../shared-utils/Subscribe.js";
38
38
  import "./Assets/roomInfoIcon.js";
39
39
  import "../CSS3DRenderPlugin/Controller.js";
40
40
  import "../CSS3DRenderPlugin/CSS3DRender.js";
41
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
41
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
42
- import "../CSS3DRenderPlugin/utils/evenNumber.js";
43
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
44
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
45
+ import "../CSS3DRenderPlugin/utils/even.js";
43
46
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
44
- import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
47
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
45
48
  import "../CSS3DRenderPlugin/utils/centerPoint.js";
49
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
50
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
51
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
52
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
53
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
46
54
  import "@tweenjs/tween.js";
47
55
  import "../shared-utils/animationFrame/index.js";
48
56
  const v = { userAction: !0 };
49
- class Z extends A {
57
+ class se extends A {
50
58
  constructor(e, t) {
51
59
  super(e);
52
60
  i(this, "state", {
@@ -65,8 +73,8 @@ class Z extends A {
65
73
  i(this, "compassMesh");
66
74
  i(this, "entryDoorMesh");
67
75
  i(this, "dispose", () => {
68
- var e, t, s, o;
69
- this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (o = (s = this.entryDoorMesh) == null ? void 0 : s.material.map) == null || o.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
76
+ var e, t, o, s;
77
+ this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (s = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || s.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
70
78
  });
71
79
  i(this, "_addEventListener", () => {
72
80
  this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
@@ -92,13 +100,13 @@ class Z extends A {
92
100
  this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
93
101
  });
94
102
  i(this, "onFivePanoWillArrive", (e) => {
95
- var t, s;
96
- e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (s = this.compassMesh) == null || s.material.setValues({ opacity: 0 }));
103
+ var t, o;
104
+ e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }));
97
105
  });
98
106
  i(this, "onFivePanoArrived", (e) => {
99
- var s, o, r, c, m, p, I;
100
- const t = (r = (o = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : o[e]) == null ? void 0 : r.standingPosition;
101
- if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((c = this.compassMeshTween) == null || c.dispose(), this.compassMeshTween = W(1e3).onUpdate(({ progress: y }) => {
107
+ var o, s, r, p, m, c, I;
108
+ const t = (r = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : r.standingPosition;
109
+ if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((p = this.compassMeshTween) == null || p.dispose(), this.compassMeshTween = W(1e3).onUpdate(({ progress: y }) => {
102
110
  var f;
103
111
  (f = this.compassMesh) == null || f.material.setValues({ opacity: y }), this.five.needsRender = !0;
104
112
  }).play())), this.entryDoorMesh) {
@@ -107,7 +115,7 @@ class Z extends A {
107
115
  this.data.entrance.position.y,
108
116
  this.data.entrance.position.z
109
117
  ).clone().setY(t.y).sub(t).normalize(), b = t.clone().add(f.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
110
- this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(f), this.entryDoorMesh.position.copy(b), ((m = this.data) == null ? void 0 : m.room_observers[e].room.type) === 1 ? (p = this.entryDoorMesh) == null || p.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
118
+ this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(f), this.entryDoorMesh.position.copy(b), ((m = this.data) == null ? void 0 : m.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
111
119
  }
112
120
  this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
113
121
  t.clone().setY(t.y + 0.01)
@@ -117,10 +125,10 @@ class Z extends A {
117
125
  longitude: e,
118
126
  latitude: t
119
127
  }) => {
120
- var s, o;
121
- !this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (s = this.roomInfoInstance) == null || s.show() : (o = this.roomInfoInstance) == null || o.hide());
128
+ var o, s;
129
+ !this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
122
130
  });
123
- i(this, "onFiveModeChange", (e, t, s, o, r) => {
131
+ i(this, "onFiveModeChange", (e, t, o, s, r) => {
124
132
  e !== t && this.setState(
125
133
  {
126
134
  visible: e === C.Mode.Panorama
@@ -169,22 +177,22 @@ class Z extends A {
169
177
  ), Promise.resolve();
170
178
  }
171
179
  setState(e, t = { userAction: !0 }) {
172
- var o, r;
173
- const s = JSON.parse(JSON.stringify(this.state));
180
+ var s, r;
181
+ const o = JSON.parse(JSON.stringify(this.state));
174
182
  this.state = {
175
- visible: (o = e.visible) != null ? o : s.visible,
176
- enabled: (r = e.enabled) != null ? r : s.enabled,
177
- config: l(l({}, s.config), e.config || {})
183
+ visible: (s = e.visible) != null ? s : o.visible,
184
+ enabled: (r = e.enabled) != null ? r : o.enabled,
185
+ config: l(l({}, o.config), e.config || {})
178
186
  }, this.hooks.emit("stateChange", {
179
187
  state: this.state,
180
- prevState: s,
188
+ prevState: o,
181
189
  userAction: t.userAction
182
190
  }), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", t)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", t)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", t)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", t)), e.config && this.init();
183
191
  }
184
- load(e, t, s = !0) {
192
+ load(e, t, o = !0) {
185
193
  return d(this, null, function* () {
186
- const o = yield this.formatData(e);
187
- JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = l({}, o), this.init(), t && this.setState(t, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
194
+ const s = yield this.formatData(e);
195
+ JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = l({}, s), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
188
196
  });
189
197
  }
190
198
  formatData(e) {
@@ -192,32 +200,32 @@ class Z extends A {
192
200
  }
193
201
  init() {
194
202
  return d(this, null, function* () {
195
- var s, o, r, c;
196
- const e = (o = (s = this.data) == null ? void 0 : s.north_rad) != null ? o : null;
203
+ var o, s, r, p;
204
+ const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
197
205
  this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh));
198
- const t = (c = (r = this.data) == null ? void 0 : r.entrance) != null ? c : null;
206
+ const t = (p = (r = this.data) == null ? void 0 : r.entrance) != null ? p : null;
199
207
  this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = yield this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = _(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
200
208
  });
201
209
  }
202
210
  loadCompassMesh() {
203
211
  return d(this, null, function* () {
204
- const e = this.state.config.compassImageUrl, t = yield M(e), s = new a.CircleGeometry(0.7, 32), o = new a.MeshBasicMaterial({
212
+ const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), s = new a.MeshBasicMaterial({
205
213
  map: t,
206
214
  transparent: !0,
207
215
  opacity: 0,
208
216
  depthTest: !1
209
- }), r = new a.Mesh(s, o);
217
+ }), r = new a.Mesh(o, s);
210
218
  return r.name = "pano-compass-mesh", r;
211
219
  });
212
220
  }
213
221
  loadEntryDoorMesh() {
214
222
  return d(this, null, function* () {
215
- const e = this.state.config.entryDoorImageUrl, t = yield M(e), s = new a.PlaneGeometry(0.2, 0.16), o = new a.MeshBasicMaterial({
223
+ const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), s = new a.MeshBasicMaterial({
216
224
  map: t,
217
225
  transparent: !0,
218
226
  opacity: 0.8,
219
227
  depthTest: !1
220
- }), r = new a.Mesh(s, o);
228
+ }), r = new a.Mesh(o, s);
221
229
  return r.name = "pano-compass-entry-door", r;
222
230
  });
223
231
  }
@@ -232,5 +240,5 @@ class Z extends A {
232
240
  }
233
241
  }
234
242
  export {
235
- Z as PanoCompassController
243
+ se as PanoCompassController
236
244
  };
@@ -10,16 +10,24 @@ import "../shared-utils/three/loadTexture.js";
10
10
  import "../CSS3DRenderPlugin/index.js";
11
11
  import "../CSS3DRenderPlugin/Controller.js";
12
12
  import "../CSS3DRenderPlugin/CSS3DRender.js";
13
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
13
14
  import "three/examples/jsm/renderers/CSS3DRenderer";
14
- import "../CSS3DRenderPlugin/utils/evenNumber.js";
15
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
16
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
17
+ import "../CSS3DRenderPlugin/utils/even.js";
15
18
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
16
- import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
19
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
17
20
  import "../CSS3DRenderPlugin/utils/centerPoint.js";
21
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
23
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
24
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
25
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
18
26
  import "../shared-utils/animationFrame/BetterTween.js";
19
27
  import "@tweenjs/tween.js";
20
28
  import "../shared-utils/animationFrame/index.js";
21
- const k = (o, r) => new t(o, r);
29
+ const E = (o, r) => new t(o, r);
22
30
  export {
23
- k as PanoCompassPlugin,
24
- k as default
31
+ E as PanoCompassPlugin,
32
+ E as default
25
33
  };