@realsee/dnalogel 2.2.5-alpha.0 → 2.2.6

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 (276) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +34 -47
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
  3. package/dist/CSS3DRenderPlugin/index.d.ts +1 -2
  4. package/dist/CSS3DRenderPlugin/utils/{three/CSS3DObject.d.ts → CSS3DObjectPlus.d.ts} +11 -25
  5. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
  6. package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  7. package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
  8. package/dist/Object3DHelperPlugin/Controller.d.ts +0 -2
  9. package/dist/index.cjs.js +46 -46
  10. package/dist/index.js +4897 -5028
  11. package/dist/index.umd.js +38 -38
  12. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  13. package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
  14. package/docs/assets/highlight.css +0 -7
  15. package/docs/assets/search.js +1 -1
  16. package/docs/classes/CruisePluginController.html +24 -24
  17. package/docs/classes/Magnifier.html +16 -16
  18. package/docs/classes/ModelRoomLabelController.html +11 -11
  19. package/docs/classes/Object3DHelperController.html +24 -24
  20. package/docs/classes/PaintBrush.html +15 -15
  21. package/docs/classes/PanoTagPluginController.html +39 -39
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.FivePointSelector.html +12 -12
  24. package/docs/classes/Util.Interval.html +12 -12
  25. package/docs/classes/Util.Magnifier.html +17 -17
  26. package/docs/classes/Util.PointDomHelper.html +11 -11
  27. package/docs/classes/Util.PointHelper.html +11 -11
  28. package/docs/classes/Util.Rectangle.html +13 -13
  29. package/docs/enums/CameraMovementEffect.html +7 -7
  30. package/docs/enums/ContentType.html +12 -12
  31. package/docs/enums/DIRECTION.html +9 -9
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  33. package/docs/enums/DimensionType.html +7 -7
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  36. package/docs/enums/LinkType.html +7 -7
  37. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  38. package/docs/enums/PointType.html +7 -7
  39. package/docs/enums/Rotation.html +8 -8
  40. package/docs/functions/CSS3DRenderPlugin.html +5 -6
  41. package/docs/functions/CameraMovementPlugin.html +5 -6
  42. package/docs/functions/CruisePlugin.html +5 -6
  43. package/docs/functions/GuideLinePlugin.html +6 -7
  44. package/docs/functions/ItemLabelPlugin.html +5 -6
  45. package/docs/functions/MapviewFloorplanPlugin.html +5 -6
  46. package/docs/functions/ModelChassisCompassPlugin.html +5 -6
  47. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -6
  48. package/docs/functions/ModelFloorplanPlugin.html +5 -6
  49. package/docs/functions/ModelItemLabelPlugin.html +5 -6
  50. package/docs/functions/ModelRoomLabelPlugin.html +5 -6
  51. package/docs/functions/ModelTVVideoPlugin.html +5 -6
  52. package/docs/functions/ModelViewPlugin.html +5 -6
  53. package/docs/functions/Object3DHelperPlugin.html +5 -6
  54. package/docs/functions/PanoCompassPlugin.html +5 -6
  55. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -6
  56. package/docs/functions/PanoDoorLabelPlugin.html +5 -6
  57. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -6
  58. package/docs/functions/PanoMeasurePlugin.html +5 -6
  59. package/docs/functions/PanoRulerPlugin.html +5 -6
  60. package/docs/functions/PanoRulerProPlugin.html +5 -6
  61. package/docs/functions/PanoSpatialTagPlugin.html +5 -6
  62. package/docs/functions/PanoTagPlugin.html +5 -6
  63. package/docs/functions/TopviewFloorplanPlugin.html +5 -6
  64. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  65. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  66. package/docs/functions/Util.getFrameTime.html +5 -5
  67. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  68. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  69. package/docs/functions/Util.isNil.html +5 -5
  70. package/docs/functions/Util.nextFrame.html +5 -5
  71. package/docs/functions/Util.notNil.html +5 -5
  72. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  73. package/docs/functions/Util.tweenProgress.html +5 -5
  74. package/docs/functions/pluginFlag.html +6 -7
  75. package/docs/index.html +5 -6
  76. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  77. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  78. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  79. package/docs/interfaces/ContentTypeMap.html +12 -12
  80. package/docs/interfaces/FloorplanBounding.html +8 -8
  81. package/docs/interfaces/FloorplanData.html +10 -10
  82. package/docs/interfaces/FloorplanEntrance.html +11 -11
  83. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  84. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  85. package/docs/interfaces/FloorplanFloorData.html +9 -9
  86. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  87. package/docs/interfaces/FloorplanObserver.html +9 -9
  88. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  89. package/docs/interfaces/FloorplanPosition.html +7 -7
  90. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  91. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  92. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  93. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  94. package/docs/interfaces/FloorplanServerData.html +7 -7
  95. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  96. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  97. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  98. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  99. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  100. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  101. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  102. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  103. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  104. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  105. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  106. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  107. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  108. package/docs/interfaces/LineJson.html +7 -7
  109. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  110. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  111. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  112. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  113. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  114. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  115. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  116. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  117. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  118. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  119. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  120. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  121. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  122. package/docs/interfaces/Object3DHelperState.html +8 -8
  123. package/docs/interfaces/OpenParameter.html +7 -7
  124. package/docs/interfaces/PaintBrushAction.html +12 -12
  125. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  126. package/docs/interfaces/PaintBrushState.html +10 -10
  127. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  128. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -7
  129. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  130. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  131. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  132. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  133. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  134. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  136. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  137. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -7
  138. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -7
  139. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  140. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  145. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  146. package/docs/interfaces/Point.html +8 -8
  147. package/docs/interfaces/PointJson.html +8 -8
  148. package/docs/interfaces/Room.html +9 -9
  149. package/docs/interfaces/RoomInfo.html +7 -7
  150. package/docs/interfaces/RoomLabel.html +14 -14
  151. package/docs/interfaces/RoomRules.html +6 -7
  152. package/docs/interfaces/Rooms.html +6 -7
  153. package/docs/interfaces/Scissor.html +9 -9
  154. package/docs/interfaces/TagConfig.html +10 -10
  155. package/docs/interfaces/Tags.html +9 -9
  156. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  157. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  158. package/docs/modules/Util.html +5 -5
  159. package/docs/modules.html +5 -7
  160. package/docs/types/ArrayPosition.html +6 -7
  161. package/docs/types/CSS3DRenderExportType.html +7 -8
  162. package/docs/types/CSS3DRenderPluginExportType.html +6 -7
  163. package/docs/types/CSS3DRenderPluginParameterType.html +6 -7
  164. package/docs/types/Color.html +6 -7
  165. package/docs/types/ContentTypeConfigKey.html +6 -7
  166. package/docs/types/ContentTypeConfigKeyArray.html +6 -7
  167. package/docs/types/Create3DDomContainerReturnType.html +6 -7
  168. package/docs/types/Create3DElementReturnType.html +7 -8
  169. package/docs/types/CruisePluginExportType.html +6 -7
  170. package/docs/types/Direction-1.html +6 -7
  171. package/docs/types/Direction4.html +6 -7
  172. package/docs/types/FloorplanRuleLabels.html +6 -7
  173. package/docs/types/FloorplanServerRuleLabels.html +6 -7
  174. package/docs/types/GuideLinePluginExportType.html +6 -7
  175. package/docs/types/HelperEventMap.html +6 -7
  176. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -7
  177. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -7
  178. package/docs/types/MediaData.html +6 -7
  179. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -8
  180. package/docs/types/ModelFloorplanPluginParameterType.html +6 -7
  181. package/docs/types/ModelFloorplanPluginReturnType.html +6 -7
  182. package/docs/types/ModelRoomLabelPluginParameters.html +6 -7
  183. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -7
  184. package/docs/types/MoveArgs.html +6 -7
  185. package/docs/types/MoveOpts.html +6 -7
  186. package/docs/types/Object3DHelperEventMap.html +6 -7
  187. package/docs/types/ObjectFit.html +6 -7
  188. package/docs/types/PaintBrushEventMap.html +6 -7
  189. package/docs/types/PanoCompassPluginData.html +6 -7
  190. package/docs/types/PanoCompassPluginExportType.html +6 -7
  191. package/docs/types/PanoCompassPluginParameterType.html +6 -7
  192. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -7
  193. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -7
  194. package/docs/types/PanoMeasurePluginEvent.html +6 -7
  195. package/docs/types/PanoMeasureReturnType.html +6 -7
  196. package/docs/types/PanoSpatialTagPluginId.html +6 -7
  197. package/docs/types/PanoTagPluginExportInterface.html +6 -7
  198. package/docs/types/PanoTagPluginParamsInterface.html +6 -7
  199. package/docs/types/PlaneTag.html +6 -7
  200. package/docs/types/PointTag.html +6 -7
  201. package/docs/types/Position.html +6 -7
  202. package/docs/types/RotateArgs.html +6 -7
  203. package/docs/types/RotateOpts.html +6 -7
  204. package/docs/types/RuleLabelsKey.html +6 -7
  205. package/docs/types/RuleLabelsValue.html +6 -7
  206. package/docs/types/Tag.html +6 -7
  207. package/docs/types/Tag2D.html +6 -7
  208. package/docs/types/Tag3D.html +6 -7
  209. package/docs/types/TagId.html +6 -7
  210. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -7
  211. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -7
  212. package/docs/variables/FLOOR_TYPE_MAP.html +6 -7
  213. package/docs/variables/PLUGIN.html +6 -7
  214. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -7
  215. package/docs/variables/ROOM_TYPE_MAP.html +6 -7
  216. package/docs/variables/VERSION.html +6 -7
  217. package/docs/variables/itemLabelPluginServerParams.html +6 -7
  218. package/docs/variables/modelItemLabelPluginServerParams.html +6 -7
  219. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -7
  220. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +34 -47
  221. package/libs/CSS3DRenderPlugin/CSS3DRender.js +251 -187
  222. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  223. package/libs/CSS3DRenderPlugin/Controller.js +57 -48
  224. package/libs/CSS3DRenderPlugin/index.d.ts +1 -2
  225. package/libs/CSS3DRenderPlugin/index.js +2 -3
  226. package/libs/CSS3DRenderPlugin/utils/{three/CSS3DObject.d.ts → CSS3DObjectPlus.d.ts} +11 -25
  227. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -0
  228. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
  229. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -0
  230. package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  231. package/libs/CruisePlugin/Controller.js +16 -16
  232. package/libs/ModelChassisCompassPlugin/Plugin.js +1 -1
  233. package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
  234. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +42 -39
  235. package/libs/ModelTVVideoPlugin/index.js +1 -2
  236. package/libs/Object3DHelperPlugin/Controller.d.ts +0 -2
  237. package/libs/Object3DHelperPlugin/Controller.js +74 -89
  238. package/libs/PanoSpatialTagPlugin/index.js +1 -2
  239. package/libs/index.js +98 -107
  240. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  241. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -8
  242. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  243. package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -1
  244. package/libs/shared-utils/three/index.js +1 -2
  245. package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
  246. package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
  247. package/package.json +14 -15
  248. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -4
  249. package/dist/CSS3DRenderPlugin/utils/even.d.ts +0 -9
  250. package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +0 -2
  251. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +0 -3
  252. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -12
  253. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +0 -14
  254. package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +0 -12
  255. package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +0 -6
  256. package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
  257. package/docs/classes/CSS3DRender.html +0 -533
  258. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -4
  259. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -22
  260. package/libs/CSS3DRenderPlugin/utils/even.d.ts +0 -9
  261. package/libs/CSS3DRenderPlugin/utils/even.js +0 -7
  262. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +0 -2
  263. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +0 -29
  264. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +0 -3
  265. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +0 -9
  266. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -12
  267. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +0 -39
  268. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +0 -93
  269. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +0 -14
  270. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +0 -46
  271. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +0 -12
  272. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +0 -39
  273. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +0 -6
  274. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +0 -18
  275. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
  276. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
@@ -1,60 +1,54 @@
1
- var C = Object.defineProperty, E = Object.defineProperties;
2
- var F = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
4
- var R = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
- var l = (r, t, e) => t in r ? C(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, v = (r, t) => {
6
- for (var e in t || (t = {}))
7
- R.call(t, e) && l(r, e, t[e]);
8
- if (b)
9
- for (var e of b(t))
10
- D.call(t, e) && l(r, e, t[e]);
11
- return r;
12
- }, h = (r, t) => E(r, F(t));
13
- var d = (r, t, e) => (l(r, typeof t != "symbol" ? t + "" : t, e), e);
14
- import { CSS3DRender as S } from "./CSS3DRender.js";
15
- import { fiveModelLoaded as $ } from "./utils/waitFiveModelLoaded.js";
16
- import { generateBehindFiveElement as j } from "./utils/generateBehindFiveElement.js";
17
- const x = "v2.0.1", m = `CSS3DRenderPlugin@${x}`;
18
- class N extends S {
1
+ var y = Object.defineProperty, F = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var S = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
+ var h = (s, n, e) => n in s ? y(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e, v = (s, n) => {
6
+ for (var e in n || (n = {}))
7
+ S.call(n, e) && h(s, e, n[e]);
8
+ if (R)
9
+ for (var e of R(n))
10
+ D.call(n, e) && h(s, e, n[e]);
11
+ return s;
12
+ }, m = (s, n) => F(s, P(n));
13
+ var l = (s, n, e) => (h(s, typeof n != "symbol" ? n + "" : n, e), e);
14
+ import { CSS3DRender as w } from "./CSS3DRender.js";
15
+ const x = "v2.0.1", C = `CSS3DRenderPlugin@${x}`;
16
+ class N extends w {
19
17
  constructor(e) {
20
18
  super();
21
- d(this, "five");
22
- d(this, "behindFiveContainer");
23
- d(this, "staticPrefix", "//vrlab-static.ljcdn.com");
24
- d(this, "create3DDomContainer", (e, i) => {
19
+ l(this, "five");
20
+ l(this, "behindFiveContainer");
21
+ l(this, "staticPrefix", "//vrlab-static.ljcdn.com");
22
+ l(this, "create3DDomContainer", (e, t) => {
25
23
  if (this.state.disposed)
26
24
  return;
27
- const s = (() => {
28
- var f;
29
- (i == null ? void 0 : i.dpr) !== void 0 && console.warn(`${m}: please use "config.devicePixelRatio" replace "config.dpr"`);
30
- const o = {
25
+ const i = (() => {
26
+ var E;
27
+ (t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${C}: please use "config.devicePixelRatio" replace "config.dpr"`);
28
+ const a = {
31
29
  ratio: 216e-5,
32
- devicePixelRatio: (f = i == null ? void 0 : i.dpr) != null ? f : 1,
30
+ devicePixelRatio: (E = t == null ? void 0 : t.dpr) != null ? E : 1,
33
31
  mode: "front",
34
32
  autoRender: !0
35
33
  };
36
- return Object.assign(o, i, (i == null ? void 0 : i.mode) === "behind" ? { scene: this.five.scene } : void 0);
37
- })(), a = this.five.getElement();
38
- if (!a) {
39
- console.error(`${m}: five.getElement() is ${a}`);
34
+ return Object.assign(a, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
35
+ })(), o = this.five.getElement();
36
+ if (!o) {
37
+ console.error(`${C}: five.getElement() is ${o}`);
40
38
  return;
41
39
  }
42
- const { autoRender: c } = s;
43
- s.mode === "behind" && s.behindFiveContainer && (this.behindFiveContainer = s.behindFiveContainer);
44
- const n = this.create3DElement(this.five.camera, e, h(v({}, s), { autoRender: !1 }));
45
- if (!n)
40
+ const { autoRender: d, mode: r } = i, p = r === "front" ? o.parentElement : i.behindFiveContainer;
41
+ this.setContainer(p || document.body, "front");
42
+ const f = this.getBehindFiveElement();
43
+ f && this.setContainer(f, "behind"), this.appendToElement(p || document.body, r);
44
+ const c = this.create3DElement(this.five.camera, e, m(v({}, i), { autoRender: !1 }));
45
+ if (!c)
46
46
  return;
47
- const u = () => {
48
- const o = n.css3DObject.mode === "front" ? a.parentElement : this.getBehindFiveElement();
49
- if (!o)
50
- return console.error(`${m}: wrapper is ${o}`);
51
- n.appendToElement(o), n.render();
52
- }, p = () => {
53
- n.css3DObject.mode === "front" && u(), n.css3DObject.mode === "behind" && $(this.five).then(() => {
54
- u();
55
- });
47
+ const u = c.render, b = () => {
48
+ var a;
49
+ r === "front" && u(), r === "behind" && ((a = this.five.model) != null && a.loaded ? u() : this.five.once("modelLoaded", () => u()));
56
50
  };
57
- return c && p(), h(v({}, n), { render: c ? void 0 : p });
51
+ return d && b(), m(v({}, c), { render: d ? void 0 : b });
58
52
  });
59
53
  this.five = e;
60
54
  }
@@ -62,11 +56,26 @@ class N extends S {
62
56
  return this.dispose();
63
57
  }
64
58
  setState(...e) {
65
- const i = super.setState(...e);
66
- return this.five.needsRender = !0, i;
59
+ const t = super.setState(...e);
60
+ return this.five.needsRender = !0, t;
67
61
  }
68
62
  getBehindFiveElement() {
69
- return this.behindFiveContainer ? this.behindFiveContainer : (this.behindFiveContainer = j(this.five), this.behindFiveContainer);
63
+ var r;
64
+ const { behindFiveContainer: e } = this;
65
+ if (e)
66
+ return e;
67
+ const t = document.createElement("div");
68
+ t.style.position = "absolute", t.style.pointerEvents = "none", t.style.top = "0", t.style.left = "0", t.style.width = "100%", t.style.height = "100%", this.behindFiveContainer = t;
69
+ const i = this.five.getElement();
70
+ if (!i)
71
+ return;
72
+ const o = (r = i == null ? void 0 : i.style.position) != null ? r : getComputedStyle(i);
73
+ (!o || o === "static") && console.warn(
74
+ "if you want to use css3DRenderPlugin behind mode, five element position is static, please set position to relative or absolute"
75
+ );
76
+ const d = i == null ? void 0 : i.parentElement;
77
+ if (d)
78
+ return d.insertBefore(t, i), t;
70
79
  }
71
80
  }
72
81
  export {
@@ -1,6 +1,5 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
2
  import Controller from './Controller';
3
- export declare const CSS3DRenderPlugin: FivePlugin<void, InstanceType<typeof Controller>>;
4
- export { CSS3DRender } from './CSS3DRender';
5
3
  export * from './typing';
4
+ export declare const CSS3DRenderPlugin: FivePlugin<void, InstanceType<typeof Controller>>;
6
5
  export default CSS3DRenderPlugin;
@@ -1,6 +1,5 @@
1
1
  import { Controller as r } from "./Controller.js";
2
- import "./CSS3DRender.js";
3
- const t = (o) => new r(o);
2
+ const n = (o) => new r(o);
4
3
  export {
5
- t as CSS3DRenderPlugin
4
+ n as CSS3DRenderPlugin
6
5
  };
@@ -1,7 +1,7 @@
1
1
  import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
2
2
  import { Matrix4, Quaternion, Vector3 } from 'three';
3
- import { Subscribe } from '../../../shared-utils/Subscribe';
4
- import OpacityMesh from './OpacityMesh';
3
+ import { Subscribe } from '../../shared-utils/Subscribe';
4
+ import type * as THREE from 'three';
5
5
  export declare const MinRatio = 0.00216;
6
6
  export declare const DefaultRatio = 0.003;
7
7
  export declare type Mode = 'front' | 'behind';
@@ -10,39 +10,25 @@ export declare type CSS3DRenderEventMap = {
10
10
  applyMatrix4: (matrix: Matrix4) => void;
11
11
  applyQuaternion: (quaternion: Quaternion) => void;
12
12
  applyScaleMatrix4: (matrix: Matrix4) => void;
13
+ changeMode: <T extends Mode = Mode>(mode: T, prevMode: Mode, scene: T extends 'behind' ? THREE.Scene : undefined) => void;
13
14
  };
14
15
  export declare class CSS3DObjectPlus<T extends HTMLElement = HTMLElement> extends CSS3DObject {
15
- version: number;
16
- readonly isCSS3DObjectPlus: true;
17
- container: T;
16
+ version: string;
18
17
  width: number;
19
18
  height: number;
20
19
  domWidthPx: number;
21
20
  domHeightPx: number;
22
21
  cornerPoints: CornerPoints;
23
- centerPosition: Vector3;
24
22
  ratio: number;
23
+ container: T;
24
+ centerPosition: Vector3;
25
25
  mode: 'front' | 'behind';
26
26
  readonly hooks: Subscribe<CSS3DRenderEventMap>;
27
- opacityMesh?: OpacityMesh;
28
- constructor(params: {
29
- container: T;
30
- mode?: 'front' | 'behind';
31
- cornerPoints: CornerPoints;
32
- ratio?: number;
33
- dpr?: number;
34
- pointerEvents?: 'none' | 'auto';
35
- });
36
- setVisible(visible: boolean): void;
37
- removeFromParent(): this;
38
- removeOpacityMesh(): this;
39
- dispose(): void;
40
- getOpacityMesh(): OpacityMesh;
27
+ readonly isCSS3DObjectPlus: true;
28
+ constructor(container: T, cornerPoints: CornerPoints, ratio?: number, dpr?: number, mode?: Mode);
29
+ changeMode(mode: 'front'): void;
30
+ changeMode(mode: 'behind', scene: THREE.Scene): void;
31
+ applyScaleMatrix4(matrix: Matrix4): void;
41
32
  applyMatrix4(matrix: Matrix4): void;
42
33
  applyQuaternion(quaternion: Quaternion): this;
43
- applyScaleMatrix4(matrix: Matrix4): void;
44
- /**
45
- * @description: 生成透明Mesh
46
- */
47
- private createOpacityMesh;
48
34
  }
@@ -0,0 +1,65 @@
1
+ var P = Object.defineProperty;
2
+ var k = (p, h, t) => h in p ? P(p, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[h] = t;
3
+ var s = (p, h, t) => (k(p, typeof h != "symbol" ? h + "" : h, t), t);
4
+ import { CSS3DObject as D } from "three/examples/jsm/renderers/CSS3DRenderer";
5
+ import { Vector3 as n } from "three";
6
+ import { evenNumber as f } from "./evenNumber.js";
7
+ import { centerPoint as W } from "./centerPoint.js";
8
+ import { Subscribe as j } from "../../shared-utils/Subscribe.js";
9
+ const w = "1.0.2", v = `CSS3DObjectPlus@${w}`, C = 216e-5, E = 3e-3;
10
+ class z extends D {
11
+ constructor(t, e, o = E, x = 1, M = "front") {
12
+ const l = Math.max(C, o), d = e[0].distanceTo(e[1]), m = e[1].distanceTo(e[2]), c = f(d / o * x), a = f(m / o * x), r = W(...e);
13
+ let u;
14
+ if (l === o)
15
+ t.style.width = `${c}px`, t.style.height = `${a}px`, u = t;
16
+ else {
17
+ const i = document.createElement("div");
18
+ i.style.width = `${c}px`, i.style.height = `${a}px`, i.style.pointerEvents = "none";
19
+ const b = o / l;
20
+ t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.width = `${b * c}px`, t.style.height = `${b * a}px`, i.appendChild(t), u = i;
21
+ }
22
+ super(u);
23
+ s(this, "version", w);
24
+ s(this, "width");
25
+ s(this, "height");
26
+ s(this, "domWidthPx");
27
+ s(this, "domHeightPx");
28
+ s(this, "cornerPoints");
29
+ s(this, "ratio");
30
+ s(this, "container");
31
+ s(this, "centerPosition");
32
+ s(this, "mode", "front");
33
+ s(this, "hooks", new j());
34
+ s(this, "isCSS3DObjectPlus", !0);
35
+ if (this.scale.set(l, l, l), this.cornerPoints = e, this.ratio = o, this.container = t, this.mode = M, l === o)
36
+ this.width = d, this.height = m, this.domWidthPx = c, this.domHeightPx = a, this.centerPosition = r;
37
+ else {
38
+ const i = o / l;
39
+ this.width = i * d, this.height = i * m, this.domWidthPx = i * c, this.domHeightPx = i * a, this.centerPosition = new n().subVectors(r, e[0]).multiplyScalar(i).add(e[0]);
40
+ }
41
+ t.classList.add(`${v}__container`);
42
+ const V = new n().subVectors(e[1], e[0]), y = new n().subVectors(e[3], e[0]), $ = new n().crossVectors(V, y).normalize();
43
+ this.lookAt($);
44
+ const g = this.up.clone().applyQuaternion(this.quaternion), S = y.clone(), O = new n().crossVectors(g, S).normalize();
45
+ this.rotateOnWorldAxis(O, g.angleTo(S)), this.position.copy(r);
46
+ }
47
+ changeMode(t, e) {
48
+ if (t === this.mode)
49
+ return;
50
+ const o = this.mode;
51
+ this.mode = t, this.hooks.emit("changeMode", t, o, e);
52
+ }
53
+ applyScaleMatrix4(t) {
54
+ this.scale.applyMatrix4(t), this.hooks.emit("applyScaleMatrix4", t);
55
+ }
56
+ applyMatrix4(t) {
57
+ super.applyMatrix4(t), this.hooks.emit("applyMatrix4", t);
58
+ }
59
+ applyQuaternion(t) {
60
+ return super.applyQuaternion(t), this.hooks.emit("applyQuaternion", t), this;
61
+ }
62
+ }
63
+ export {
64
+ z as CSS3DObjectPlus
65
+ };
@@ -0,0 +1,3 @@
1
+ export declare function evenNumber(num: number, config?: {
2
+ smaller?: boolean;
3
+ }): number;
@@ -0,0 +1,7 @@
1
+ function t(u, r) {
2
+ const e = Math.round(u);
3
+ return e % 2 === 0 ? e : e + Number(r != null && r.smaller ? -1 : 1);
4
+ }
5
+ export {
6
+ t as evenNumber
7
+ };
@@ -1,4 +1,4 @@
1
1
  export * from './centerPoint';
2
- export * from './even';
2
+ export * from './evenNumber';
3
3
  export * from './random';
4
4
  export * from './positionToVector3';
@@ -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, P = (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, S = (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 S = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
13
+ var P = (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
- S(this, "state", {
50
+ P(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
- S(this, "data");
66
- S(this, "config");
67
- S(this, "privateState", {
65
+ P(this, "data");
66
+ P(this, "config");
67
+ P(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
- S(this, "GuideLine");
75
+ P(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(P({}, e), { index: 0 }));
118
+ return this.playFrom(L(S({}, 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 = 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 });
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 });
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 P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
164
+ return S({ 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: 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)) };
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)) };
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, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
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);
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
- S(B, "PluginVersion", M);
481
+ P(B, "PluginVersion", M);
482
482
  export {
483
483
  B as CruisePluginController
484
484
  };
@@ -17,7 +17,7 @@ var M = (t, i, s) => new Promise((l, o) => {
17
17
  import * as h from "three";
18
18
  import { FBXLoader as E } from "three/examples/jsm/loaders/FBXLoader";
19
19
  import { bject3d2LocalMatrix as U } from "../shared-utils/object3d2LocalMatrix.js";
20
- import { transfromToMeshBasicMaterial as C } from "../shared-utils/three/transfromToMeshBasicMaterial.js";
20
+ import { transfromToMeshBasicMaterial as C } from "../shared-utils/three/transformToMeshBasicMaterial.js";
21
21
  const X = (t, i) => {
22
22
  var x;
23
23
  const s = i.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", l = (x = i.north_rad) != null ? x : void 0, o = {}, m = (e) => M(void 0, null, function* () {
@@ -7,6 +7,7 @@ export interface ModelEntryDoorGuidePluginData {
7
7
  }
8
8
  export declare type ModelEntryDoorGuidePluginParameterType = {
9
9
  animationEnabled?: boolean;
10
+ name?: string;
10
11
  } & ModelEntryDoorGuidePluginData;
11
12
  export interface ModelEntryDoorGuidePluginExportType {
12
13
  enable: (config?: {
@@ -1,77 +1,80 @@
1
- var R = (t, s, e) => new Promise((x, M) => {
1
+ var C = (t, s, e) => new Promise((x, E) => {
2
2
  var y = (r) => {
3
3
  try {
4
4
  c(e.next(r));
5
5
  } catch (m) {
6
- M(m);
6
+ E(m);
7
7
  }
8
8
  }, P = (r) => {
9
9
  try {
10
10
  c(e.throw(r));
11
11
  } catch (m) {
12
- M(m);
12
+ E(m);
13
13
  }
14
14
  }, c = (r) => r.done ? x(r.value) : Promise.resolve(r.value).then(y, P);
15
15
  c((e = e.apply(t, s)).next());
16
16
  });
17
- import * as C from "three";
18
- import { MeshBasicMaterial as z, AnimationMixer as B } from "three";
19
- import { FBXLoader as S } from "three/examples/jsm/loaders/FBXLoader";
20
- import { createCanvasTextTexture as _ } from "../shared-utils/createCanvasTextTexture.js";
21
- import { transformPositionToVector3 as H } from "../shared-utils/three/transformPositionToVector3.js";
22
- import { transfromToMeshBasicMaterial as L } from "../shared-utils/three/transfromToMeshBasicMaterial.js";
23
- const J = (t, s) => {
24
- var g, w, G;
25
- const e = {}, x = (g = s.animationEnabled) != null ? g : !0, M = (w = s.position) != null ? w : void 0, y = (G = s.rad) != null ? G : void 0, P = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", c = [], r = (o) => R(void 0, null, function* () {
26
- var E, u, b, h, p, f, j;
27
- const l = (E = o == null ? void 0 : o.position) != null ? E : M;
17
+ import * as z from "three";
18
+ import { MeshBasicMaterial as B, AnimationMixer as S } from "three";
19
+ import { FBXLoader as _ } from "three/examples/jsm/loaders/FBXLoader";
20
+ import { createCanvasTextTexture as H } from "../shared-utils/createCanvasTextTexture.js";
21
+ import { transformPositionToVector3 as L } from "../shared-utils/three/transformPositionToVector3.js";
22
+ import { transfromToMeshBasicMaterial as U } from "../shared-utils/three/transformToMeshBasicMaterial.js";
23
+ const K = (t, s) => {
24
+ var g, G, R;
25
+ const e = {}, x = (g = s.animationEnabled) != null ? g : !0, E = (G = s.position) != null ? G : void 0, y = (R = s.rad) != null ? R : void 0, P = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", c = [], r = (n) => C(void 0, null, function* () {
26
+ var u, b, M, f, p, j, h, q;
27
+ const l = (u = n == null ? void 0 : n.position) != null ? u : E;
28
28
  if (!l)
29
- return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
30
- const i = H(l), n = (u = o == null ? void 0 : o.rad) != null ? u : y, D = (b = o == null ? void 0 : o.fbx_url) != null ? b : P;
31
- if (e.rad = n, n === void 0)
32
- return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${n}`);
33
- const a = yield new S().loadAsync(D);
34
- a.position.copy(i), a.rotation.z = n, a.scale.set(0.8, 0.8, 0.8), L(a, { transparent: !0, side: C.DoubleSide });
35
- const d = (j = (f = (p = (h = a.children) == null ? void 0 : h[0]) == null ? void 0 : p.children) == null ? void 0 : f[3]) == null ? void 0 : j.clone();
36
- return d ? (d.material = new z({ transparent: !0, map: _("\u5165\u6237\u95E8") }), d.renderOrder = 3, a.children[0].add(d), e.object = a, !0) : Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${d}`);
29
+ return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
30
+ const i = L(l), o = (b = n == null ? void 0 : n.rad) != null ? b : y, D = (M = n == null ? void 0 : n.fbx_url) != null ? M : P;
31
+ if (e.rad = o, o === void 0)
32
+ return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${o}`));
33
+ const a = yield new _().loadAsync(D);
34
+ a.position.copy(i), a.rotation.z = o, a.scale.set(0.8, 0.8, 0.8), U(a, { transparent: !0, side: z.DoubleSide });
35
+ const d = (h = (j = (p = (f = a.children) == null ? void 0 : f[0]) == null ? void 0 : p.children) == null ? void 0 : j[3]) == null ? void 0 : h.clone();
36
+ if (!d)
37
+ return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${d}`));
38
+ const w = (q = s.name) != null ? q : "\u5165\u6237\u95E8";
39
+ return d.material = new B({ transparent: !0, map: H(w) }), d.renderOrder = 3, a.children[0].add(d), e.object = a, !0;
37
40
  }), m = () => {
38
41
  if (e.animation)
39
42
  return;
40
43
  if (!e.object)
41
44
  return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
42
- const o = 1, l = new B(e.object);
45
+ const n = 1, l = new S(e.object);
43
46
  c.push(l);
44
47
  const i = l.clipAction(e.object.animations[0]);
45
- i.timeScale = o;
46
- let n;
48
+ i.timeScale = n;
49
+ let o;
47
50
  const D = () => {
48
51
  let u = 0, b = 0;
49
- const h = 1e3 / 30, p = (f) => {
50
- u = requestAnimationFrame(p);
51
- const j = f - b;
52
- j < h || (b = f, c.forEach((q) => q.update(j / 1e3)), t.needsRender = !0);
52
+ const M = 1e3 / 30, f = (p) => {
53
+ u = requestAnimationFrame(f);
54
+ const j = p - b;
55
+ j < M || (b = p, c.forEach((h) => h.update(j / 1e3)), t.needsRender = !0);
53
56
  };
54
- return u = requestAnimationFrame(p), () => {
57
+ return u = requestAnimationFrame(f), () => {
55
58
  cancelAnimationFrame(u);
56
59
  };
57
- }, E = { play: () => {
58
- n || (i.play(), n = D(), requestAnimationFrame(() => {
60
+ }, w = { play: () => {
61
+ o || (i.play(), o = D(), requestAnimationFrame(() => {
59
62
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
60
63
  }));
61
64
  }, stop: () => {
62
- i.stop(), n == null || n(), n = void 0;
65
+ i.stop(), o == null || o(), o = void 0;
63
66
  } };
64
- e.animation = E;
65
- }, F = (o) => {
67
+ e.animation = w;
68
+ }, F = (n) => {
66
69
  var i;
67
70
  if (!e.object)
68
71
  return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
69
- ((i = o == null ? void 0 : o.animationEnable) != null ? i : x) && (e.animation || m(), e.animation.play()), t.scene.add(e.object), t.needsRender = !0;
72
+ ((i = n == null ? void 0 : n.animationEnable) != null ? i : x) && (e.animation || m(), e.animation.play()), t.scene.add(e.object), t.needsRender = !0;
70
73
  }, T = () => {
71
74
  !e.object || (e.animation && e.animation.stop(), t.scene.remove(e.object), t.needsRender = !0);
72
- }, A = (o) => o === "Floorplan" ? F() : T();
73
- return { load: r, enable: (o) => (e.enabled || (e.enabled = !0, A(t.currentMode), t.on("modeChange", A), F(o)), !0), disable: () => (e.enabled && (e.enabled = !1, T(), t.off("modeChange", A)), !0) };
75
+ }, A = (n) => n === "Floorplan" ? F() : T();
76
+ return { load: r, enable: (n) => (e.enabled || (e.enabled = !0, A(t.currentMode), t.on("modeChange", A), F(n)), !0), disable: () => (e.enabled && (e.enabled = !1, T(), t.off("modeChange", A)), !0) };
74
77
  };
75
78
  export {
76
- J as ModelEntryDoorGuidePlugin
79
+ K as ModelEntryDoorGuidePlugin
77
80
  };
@@ -1,3 +1,2 @@
1
1
  import "three";
2
- import "../CSS3DRenderPlugin/CSS3DRender.js";
3
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
2
+ import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -11,8 +11,6 @@ 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;
16
14
  constructor(five: Five);
17
15
  /**
18
16
  * @description Show guide line