@realsee/dnalogel 2.2.4 → 2.2.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
  3. package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  5. package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  6. package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  7. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  8. package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  9. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
  10. package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
  11. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  12. package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  13. package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  14. package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  15. package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
  16. package/dist/index.cjs.js +46 -46
  17. package/dist/index.js +5021 -4928
  18. package/dist/index.umd.js +39 -39
  19. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  20. package/docs/assets/highlight.css +7 -0
  21. package/docs/assets/search.js +1 -1
  22. package/docs/classes/CSS3DRender.html +533 -0
  23. package/docs/classes/CruisePluginController.html +24 -24
  24. package/docs/classes/Magnifier.html +16 -16
  25. package/docs/classes/ModelRoomLabelController.html +11 -11
  26. package/docs/classes/Object3DHelperController.html +24 -24
  27. package/docs/classes/PaintBrush.html +15 -15
  28. package/docs/classes/PanoTagPluginController.html +39 -39
  29. package/docs/classes/Util.BetterTween.html +8 -8
  30. package/docs/classes/Util.FivePointSelector.html +12 -12
  31. package/docs/classes/Util.Interval.html +12 -12
  32. package/docs/classes/Util.Magnifier.html +17 -17
  33. package/docs/classes/Util.PointDomHelper.html +11 -11
  34. package/docs/classes/Util.PointHelper.html +11 -11
  35. package/docs/classes/Util.Rectangle.html +13 -13
  36. package/docs/enums/CameraMovementEffect.html +7 -7
  37. package/docs/enums/ContentType.html +12 -12
  38. package/docs/enums/DIRECTION.html +9 -9
  39. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  40. package/docs/enums/DimensionType.html +7 -7
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  43. package/docs/enums/LinkType.html +7 -7
  44. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  45. package/docs/enums/PointType.html +7 -7
  46. package/docs/enums/Rotation.html +8 -8
  47. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  48. package/docs/functions/CameraMovementPlugin.html +6 -5
  49. package/docs/functions/CruisePlugin.html +6 -5
  50. package/docs/functions/GuideLinePlugin.html +7 -6
  51. package/docs/functions/ItemLabelPlugin.html +6 -5
  52. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  53. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  55. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  56. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  57. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  58. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  59. package/docs/functions/ModelViewPlugin.html +6 -5
  60. package/docs/functions/Object3DHelperPlugin.html +6 -5
  61. package/docs/functions/PanoCompassPlugin.html +6 -5
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  63. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  65. package/docs/functions/PanoMeasurePlugin.html +6 -5
  66. package/docs/functions/PanoRulerPlugin.html +6 -5
  67. package/docs/functions/PanoRulerProPlugin.html +6 -5
  68. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  69. package/docs/functions/PanoTagPlugin.html +6 -5
  70. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  71. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  72. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  73. package/docs/functions/Util.getFrameTime.html +5 -5
  74. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  75. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  76. package/docs/functions/Util.isNil.html +5 -5
  77. package/docs/functions/Util.nextFrame.html +5 -5
  78. package/docs/functions/Util.notNil.html +5 -5
  79. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  80. package/docs/functions/Util.tweenProgress.html +5 -5
  81. package/docs/functions/pluginFlag.html +7 -6
  82. package/docs/index.html +6 -5
  83. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  84. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  85. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  86. package/docs/interfaces/ContentTypeMap.html +12 -12
  87. package/docs/interfaces/FloorplanBounding.html +8 -8
  88. package/docs/interfaces/FloorplanData.html +10 -10
  89. package/docs/interfaces/FloorplanEntrance.html +11 -11
  90. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  91. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  92. package/docs/interfaces/FloorplanFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanObserver.html +9 -9
  95. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanPosition.html +7 -7
  97. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  98. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  99. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  100. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  101. package/docs/interfaces/FloorplanServerData.html +7 -7
  102. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  103. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  104. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  105. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  106. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  107. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  108. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  109. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  110. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  111. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  112. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  113. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  114. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  115. package/docs/interfaces/LineJson.html +7 -7
  116. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  117. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  118. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  119. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  120. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  121. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  122. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  123. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  124. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  125. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  126. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  127. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  128. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  129. package/docs/interfaces/Object3DHelperState.html +8 -8
  130. package/docs/interfaces/OpenParameter.html +7 -7
  131. package/docs/interfaces/PaintBrushAction.html +12 -12
  132. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  133. package/docs/interfaces/PaintBrushState.html +10 -10
  134. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  135. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
  136. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  137. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  138. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  139. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  140. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  141. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  142. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  143. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  144. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
  145. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
  146. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  147. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  148. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  149. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  150. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  151. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  152. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  153. package/docs/interfaces/Point.html +8 -8
  154. package/docs/interfaces/PointJson.html +8 -8
  155. package/docs/interfaces/Room.html +9 -9
  156. package/docs/interfaces/RoomInfo.html +7 -7
  157. package/docs/interfaces/RoomLabel.html +14 -14
  158. package/docs/interfaces/RoomRules.html +7 -6
  159. package/docs/interfaces/Rooms.html +7 -6
  160. package/docs/interfaces/Scissor.html +9 -9
  161. package/docs/interfaces/TagConfig.html +10 -10
  162. package/docs/interfaces/Tags.html +9 -9
  163. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  164. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  165. package/docs/modules/Util.html +5 -5
  166. package/docs/modules.html +7 -5
  167. package/docs/types/ArrayPosition.html +7 -6
  168. package/docs/types/CSS3DRenderExportType.html +8 -7
  169. package/docs/types/CSS3DRenderPluginExportType.html +7 -6
  170. package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
  171. package/docs/types/Color.html +7 -6
  172. package/docs/types/ContentTypeConfigKey.html +7 -6
  173. package/docs/types/ContentTypeConfigKeyArray.html +7 -6
  174. package/docs/types/Create3DDomContainerReturnType.html +7 -6
  175. package/docs/types/Create3DElementReturnType.html +8 -7
  176. package/docs/types/CruisePluginExportType.html +7 -6
  177. package/docs/types/Direction-1.html +7 -6
  178. package/docs/types/Direction4.html +7 -6
  179. package/docs/types/FloorplanRuleLabels.html +7 -6
  180. package/docs/types/FloorplanServerRuleLabels.html +7 -6
  181. package/docs/types/GuideLinePluginExportType.html +7 -6
  182. package/docs/types/HelperEventMap.html +7 -6
  183. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
  184. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
  185. package/docs/types/MediaData.html +7 -6
  186. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
  187. package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
  188. package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
  189. package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
  190. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
  191. package/docs/types/MoveArgs.html +7 -6
  192. package/docs/types/MoveOpts.html +7 -6
  193. package/docs/types/Object3DHelperEventMap.html +7 -6
  194. package/docs/types/ObjectFit.html +7 -6
  195. package/docs/types/PaintBrushEventMap.html +7 -6
  196. package/docs/types/PanoCompassPluginData.html +7 -6
  197. package/docs/types/PanoCompassPluginExportType.html +7 -6
  198. package/docs/types/PanoCompassPluginParameterType.html +7 -6
  199. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
  200. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
  201. package/docs/types/PanoMeasurePluginEvent.html +7 -6
  202. package/docs/types/PanoMeasureReturnType.html +7 -6
  203. package/docs/types/PanoSpatialTagPluginId.html +7 -6
  204. package/docs/types/PanoTagPluginExportInterface.html +7 -6
  205. package/docs/types/PanoTagPluginParamsInterface.html +7 -6
  206. package/docs/types/PlaneTag.html +7 -6
  207. package/docs/types/PointTag.html +7 -6
  208. package/docs/types/Position.html +7 -6
  209. package/docs/types/RotateArgs.html +7 -6
  210. package/docs/types/RotateOpts.html +7 -6
  211. package/docs/types/RuleLabelsKey.html +7 -6
  212. package/docs/types/RuleLabelsValue.html +7 -6
  213. package/docs/types/Tag.html +7 -6
  214. package/docs/types/Tag2D.html +7 -6
  215. package/docs/types/Tag3D.html +7 -6
  216. package/docs/types/TagId.html +7 -6
  217. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
  218. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
  219. package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
  220. package/docs/variables/PLUGIN.html +7 -6
  221. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
  222. package/docs/variables/ROOM_TYPE_MAP.html +7 -6
  223. package/docs/variables/VERSION.html +7 -6
  224. package/docs/variables/itemLabelPluginServerParams.html +7 -6
  225. package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
  226. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
  227. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
  228. package/libs/CSS3DRenderPlugin/CSS3DRender.js +187 -251
  229. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  230. package/libs/CSS3DRenderPlugin/Controller.js +48 -57
  231. package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
  232. package/libs/CSS3DRenderPlugin/index.js +3 -2
  233. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  234. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
  235. package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  236. package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
  237. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  238. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
  239. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  240. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
  241. package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  242. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +39 -0
  244. package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
  245. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +93 -0
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  247. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
  248. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  249. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
  250. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  251. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
  252. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  253. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
  254. package/libs/CruisePlugin/Controller.js +16 -16
  255. package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
  256. package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
  257. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
  258. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
  259. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
  260. package/libs/ModelTVVideoPlugin/index.js +2 -1
  261. package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
  262. package/libs/Object3DHelperPlugin/Controller.js +89 -74
  263. package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
  264. package/libs/PanoSpatialTagPlugin/Components/origins.js +39 -39
  265. package/libs/PanoSpatialTagPlugin/index.js +2 -1
  266. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -1
  267. package/libs/PanoTagPlugin/Components/Common/Media.js +53 -53
  268. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +2 -2
  269. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +8 -8
  270. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +13 -13
  271. package/libs/PanoTagPlugin/Components/Common/Shadow.js +5 -5
  272. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +12 -12
  273. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +48 -78
  274. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +25 -25
  275. package/libs/PanoTagPlugin/Components/Tag/index.js +35 -35
  276. package/libs/PanoTagPlugin/Components/TagContainer.js +2 -2
  277. package/libs/PanoTagPlugin/Components/TagWrapper.js +2 -2
  278. package/libs/floorplan/Components/Camera.js +23 -23
  279. package/libs/floorplan/Components/Compass.js +2 -2
  280. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +31 -31
  281. package/libs/floorplan/Components/RuleLabels/RuleItem.js +51 -51
  282. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +2 -2
  283. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +2 -2
  284. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +26 -26
  285. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +16 -16
  286. package/libs/index.js +106 -97
  287. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  288. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
  289. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  290. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  291. package/libs/shared-utils/three/index.js +2 -1
  292. package/libs/vendor/svelte/internal/index.js +151 -152
  293. package/package.json +14 -14
  294. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  295. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
  296. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  297. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
@@ -1,54 +1,60 @@
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 {
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 {
17
19
  constructor(e) {
18
20
  super();
19
- l(this, "five");
20
- l(this, "behindFiveContainer");
21
- l(this, "staticPrefix", "//vrlab-static.ljcdn.com");
22
- l(this, "create3DDomContainer", (e, t) => {
21
+ d(this, "five");
22
+ d(this, "behindFiveContainer");
23
+ d(this, "staticPrefix", "//vrlab-static.ljcdn.com");
24
+ d(this, "create3DDomContainer", (e, i) => {
23
25
  if (this.state.disposed)
24
26
  return;
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 = {
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 = {
29
31
  ratio: 216e-5,
30
- devicePixelRatio: (E = t == null ? void 0 : t.dpr) != null ? E : 1,
32
+ devicePixelRatio: (f = i == null ? void 0 : i.dpr) != null ? f : 1,
31
33
  mode: "front",
32
34
  autoRender: !0
33
35
  };
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}`);
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}`);
38
40
  return;
39
41
  }
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)
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)
46
46
  return;
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()));
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
+ });
50
56
  };
51
- return d && b(), m(v({}, c), { render: d ? void 0 : b });
57
+ return c && p(), h(v({}, n), { render: c ? void 0 : p });
52
58
  });
53
59
  this.five = e;
54
60
  }
@@ -56,26 +62,11 @@ class N extends w {
56
62
  return this.dispose();
57
63
  }
58
64
  setState(...e) {
59
- const t = super.setState(...e);
60
- return this.five.needsRender = !0, t;
65
+ const i = super.setState(...e);
66
+ return this.five.needsRender = !0, i;
61
67
  }
62
68
  getBehindFiveElement() {
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;
69
+ return this.behindFiveContainer ? this.behindFiveContainer : (this.behindFiveContainer = j(this.five), this.behindFiveContainer);
79
70
  }
80
71
  }
81
72
  export {
@@ -1,5 +1,6 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
2
  import Controller from './Controller';
3
- export * from './typing';
4
3
  export declare const CSS3DRenderPlugin: FivePlugin<void, InstanceType<typeof Controller>>;
4
+ export { CSS3DRender } from './CSS3DRender';
5
+ export * from './typing';
5
6
  export default CSS3DRenderPlugin;
@@ -1,5 +1,6 @@
1
1
  import { Controller as r } from "./Controller.js";
2
- const n = (o) => new r(o);
2
+ import "./CSS3DRender.js";
3
+ const t = (o) => new r(o);
3
4
  export {
4
- n as CSS3DRenderPlugin
5
+ t as CSS3DRenderPlugin
5
6
  };
@@ -0,0 +1,4 @@
1
+ export default function createResizeObserver(element: Element, resizeHandler: (width: number, height: number) => any, fireImmediately?: boolean): {
2
+ observe: () => void;
3
+ unobserve: () => void;
4
+ };
@@ -0,0 +1,22 @@
1
+ import { even as o } from "./even.js";
2
+ function u(e, i, n = !0) {
3
+ if (!e)
4
+ return console.error("createResizeObserver: element is undefined"), { observe: () => {
5
+ }, unobserve: () => {
6
+ } };
7
+ const r = () => {
8
+ const t = o(e.clientWidth, { floor: !0 }), v = o(e.clientHeight, { floor: !0 });
9
+ i(t, v);
10
+ };
11
+ if (typeof ResizeObserver == "undefined" || !ResizeObserver)
12
+ return console.warn("createResizeObserver: ResizeObserver is undefined"), { observe: () => r(), unobserve: () => {
13
+ } };
14
+ const s = new ResizeObserver(r);
15
+ return n && r(), {
16
+ observe: () => s.observe(e),
17
+ unobserve: () => s.unobserve(e)
18
+ };
19
+ }
20
+ export {
21
+ u as createResizeObserver
22
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @description: 获取一个数字的最近的偶数
3
+ * @param { number } num
4
+ * @param { boolean } config.floor 是否取较小的偶数,默认为false,即取较大的偶数
5
+ * @return { number } 返回一个偶数
6
+ */
7
+ export declare function even(num: number, config?: {
8
+ floor?: boolean;
9
+ }): number;
@@ -0,0 +1,7 @@
1
+ function t(e, r) {
2
+ const u = Math.round(e);
3
+ return u % 2 === 0 ? u : u + Number(r != null && r.floor ? -1 : 1);
4
+ }
5
+ export {
6
+ t as even
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { Five } from '@realsee/five';
2
+ export default function generateBehindFiveElement(five: Five): HTMLDivElement;
@@ -0,0 +1,29 @@
1
+ const n = document.createElement("div");
2
+ n.style.position = "absolute";
3
+ n.style.top = "0";
4
+ n.style.left = "0";
5
+ n.style.width = "100%";
6
+ n.style.height = "100%";
7
+ function s(t) {
8
+ var o, r;
9
+ const e = (r = l(t.getElement())) != null ? r : l((o = t.getElement()) == null ? void 0 : o.parentElement);
10
+ if (e != null && e.parentElement)
11
+ return e.parentElement.insertBefore(n, e), n;
12
+ console.error(
13
+ "Can not find a valid element to insert behindFiveElement. How to fix it: https://github.com/realsee-developer/dnalogel/blob/main/plugins/src/PanoTagPlugin/README.md"
14
+ );
15
+ }
16
+ function l(t) {
17
+ var i;
18
+ if (!t)
19
+ return;
20
+ const e = (i = t.style.position) != null ? i : getComputedStyle(t).position;
21
+ if (e !== "fixed" && e !== "absolute" && e !== "relative")
22
+ return;
23
+ const o = getComputedStyle(t).backgroundColor;
24
+ if (!(o !== "transparent" && o !== "rgba(0, 0, 0, 0)"))
25
+ return t;
26
+ }
27
+ export {
28
+ s as generateBehindFiveElement
29
+ };
@@ -0,0 +1,3 @@
1
+ import type { Object3D } from 'three';
2
+ import type { CSS3DObjectPlus } from './three/CSS3DObject';
3
+ export default function getAllCSS3DObject(...object: Object3D[]): CSS3DObjectPlus<HTMLElement>[];
@@ -0,0 +1,9 @@
1
+ function l(...c) {
2
+ const s = [];
3
+ return c.forEach((e) => {
4
+ e.isCSS3DObjectPlus ? s.push(e) : s.push(...l(...e.children));
5
+ }), s;
6
+ }
7
+ export {
8
+ l as getAllCSS3DObject
9
+ };
@@ -1,4 +1,4 @@
1
1
  export * from './centerPoint';
2
- export * from './evenNumber';
2
+ export * from './even';
3
3
  export * from './random';
4
4
  export * from './positionToVector3';
@@ -0,0 +1,12 @@
1
+ import * as THREE from 'three';
2
+ import type { Object3D } from 'three';
3
+ export declare class CSS3DFrontGroup extends THREE.Group {
4
+ constructor();
5
+ add(...objects: Object3D[]): this;
6
+ }
7
+ export declare class CSS3DBehindGroup extends THREE.Group {
8
+ private scene;
9
+ constructor(scene: THREE.Scene);
10
+ add(...objects: Object3D[]): this;
11
+ remove(...objects: Object3D[]): this;
12
+ }
@@ -0,0 +1,39 @@
1
+ var a = Object.defineProperty;
2
+ var h = (o, e, r) => e in o ? a(o, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[e] = r;
3
+ var n = (o, e, r) => (h(o, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import * as i from "three";
5
+ import { getAllCSS3DObject as s } from "../getAllCSS3DObject.js";
6
+ class c extends i.Group {
7
+ constructor() {
8
+ super();
9
+ }
10
+ add(...e) {
11
+ return super.add(...e), s(...e).forEach((r) => {
12
+ r.mode = "front";
13
+ }), this;
14
+ }
15
+ }
16
+ class m extends i.Group {
17
+ constructor(r) {
18
+ super();
19
+ n(this, "scene");
20
+ if (!r)
21
+ throw new Error("CSS3DBehindScene: scene is required");
22
+ this.scene = r;
23
+ }
24
+ add(...r) {
25
+ return super.add(...r), s(...r).forEach((t) => {
26
+ t.mode = "behind", this.scene.add(t.getOpacityMesh());
27
+ }), this;
28
+ }
29
+ remove(...r) {
30
+ return s(...r).forEach((t) => {
31
+ var d;
32
+ (d = t.opacityMesh) == null || d.removeFromParent();
33
+ }), super.remove(...r), this;
34
+ }
35
+ }
36
+ export {
37
+ m as CSS3DBehindGroup,
38
+ c as CSS3DFrontGroup
39
+ };
@@ -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 type * as THREE from 'three';
3
+ import { Subscribe } from '../../../shared-utils/Subscribe';
4
+ import OpacityMesh from './OpacityMesh';
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,25 +10,39 @@ 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;
14
13
  };
15
14
  export declare class CSS3DObjectPlus<T extends HTMLElement = HTMLElement> extends CSS3DObject {
16
- version: string;
15
+ version: number;
16
+ readonly isCSS3DObjectPlus: true;
17
+ container: T;
17
18
  width: number;
18
19
  height: number;
19
20
  domWidthPx: number;
20
21
  domHeightPx: number;
21
22
  cornerPoints: CornerPoints;
22
- ratio: number;
23
- container: T;
24
23
  centerPosition: Vector3;
24
+ ratio: number;
25
25
  mode: 'front' | 'behind';
26
26
  readonly hooks: Subscribe<CSS3DRenderEventMap>;
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;
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;
32
41
  applyMatrix4(matrix: Matrix4): void;
33
42
  applyQuaternion(quaternion: Quaternion): this;
43
+ applyScaleMatrix4(matrix: Matrix4): void;
44
+ /**
45
+ * @description: 生成透明Mesh
46
+ */
47
+ private createOpacityMesh;
34
48
  }
@@ -0,0 +1,93 @@
1
+ var H = Object.defineProperty;
2
+ var C = (h, r, t) => r in h ? H(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t;
3
+ var o = (h, r, t) => (C(h, typeof r != "symbol" ? r + "" : r, t), t);
4
+ import { CSS3DObject as F } from "three/examples/jsm/renderers/CSS3DRenderer";
5
+ import { Vector3 as l } from "three";
6
+ import { even as b } from "../even.js";
7
+ import { centerPoint as A } from "../centerPoint.js";
8
+ import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
9
+ import { OpecityMesh as R } from "./OpacityMesh.js";
10
+ const V = 1, D = `CSS3DObjectPlus@${V}`, N = 216e-5, T = 3e-3;
11
+ class q extends F {
12
+ constructor(t) {
13
+ var v, f, w;
14
+ const e = t.container, i = t.cornerPoints, s = (v = t.ratio) != null ? v : T, M = (f = t.dpr) != null ? f : 1, O = (w = t.pointerEvents) != null ? w : "auto", c = Math.max(N, s), y = i[0].distanceTo(i[1]), d = i[1].distanceTo(i[2]), a = b(y / s * M), p = b(d / s * M), m = A(...i);
15
+ let u;
16
+ if (c === s)
17
+ e.style.width = `${a}px`, e.style.height = `${p}px`, u = e;
18
+ else {
19
+ const n = document.createElement("div");
20
+ n.style.width = `${a}px`, n.style.height = `${p}px`, n.style.pointerEvents = "none";
21
+ const S = s / c;
22
+ e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${S * a}px`, e.style.height = `${S * p}px`, n.appendChild(e), u = n;
23
+ }
24
+ super(u);
25
+ o(this, "version", V);
26
+ o(this, "isCSS3DObjectPlus", !0);
27
+ o(this, "container");
28
+ o(this, "width");
29
+ o(this, "height");
30
+ o(this, "domWidthPx");
31
+ o(this, "domHeightPx");
32
+ o(this, "cornerPoints");
33
+ o(this, "centerPosition");
34
+ o(this, "ratio");
35
+ o(this, "mode", "front");
36
+ o(this, "hooks", new Q());
37
+ o(this, "opacityMesh");
38
+ o(this, "createOpacityMesh", (t) => {
39
+ const { domWidthPx: e, domHeightPx: i } = t, s = new R(e, i);
40
+ return s.position.copy(t.position), s.rotation.copy(t.rotation), s.scale.copy(t.scale), s;
41
+ });
42
+ if (e.style.pointerEvents = O, this.scale.set(c, c, c), this.cornerPoints = i, this.ratio = s, this.container = e, t.mode && (this.mode = t.mode), c === s)
43
+ this.width = y, this.height = d, this.domWidthPx = a, this.domHeightPx = p, this.centerPosition = m;
44
+ else {
45
+ const n = s / c;
46
+ this.width = n * y, this.height = n * d, this.domWidthPx = n * a, this.domHeightPx = n * p, this.centerPosition = new l().subVectors(m, i[0]).multiplyScalar(n).add(i[0]);
47
+ }
48
+ e.classList.add(`${D}__container`);
49
+ const E = new l().subVectors(i[1], i[0]), P = new l().subVectors(i[3], i[0]), $ = new l().crossVectors(E, P).normalize();
50
+ this.lookAt($);
51
+ const x = this.up.clone().applyQuaternion(this.quaternion), g = P.clone(), W = new l().crossVectors(x, g).normalize();
52
+ this.rotateOnWorldAxis(W, x.angleTo(g)), this.position.copy(m);
53
+ }
54
+ setVisible(t) {
55
+ this.visible = t, this.opacityMesh && (this.opacityMesh.visible = t);
56
+ }
57
+ removeFromParent() {
58
+ var e;
59
+ const t = this.parent;
60
+ return t !== null && t.remove(this), (e = this.opacityMesh) == null || e.removeFromParent(), this;
61
+ }
62
+ removeOpacityMesh() {
63
+ var t;
64
+ return (t = this.opacityMesh) == null || t.removeFromParent(), this.opacityMesh = void 0, this;
65
+ }
66
+ dispose() {
67
+ var t;
68
+ this.container.remove(), this.removeFromParent(), (t = this.opacityMesh) == null || t.removeFromParent();
69
+ }
70
+ getOpacityMesh() {
71
+ if (this.opacityMesh)
72
+ return this.opacityMesh;
73
+ {
74
+ const t = this.createOpacityMesh(this);
75
+ return this.opacityMesh = t, t;
76
+ }
77
+ }
78
+ applyMatrix4(t) {
79
+ var e;
80
+ super.applyMatrix4(t), (e = this.opacityMesh) == null || e.applyMatrix4(t);
81
+ }
82
+ applyQuaternion(t) {
83
+ var e;
84
+ return super.applyQuaternion(t), (e = this.opacityMesh) == null || e.applyQuaternion(t), this;
85
+ }
86
+ applyScaleMatrix4(t) {
87
+ var e;
88
+ this.scale.applyMatrix4(t), (e = this.opacityMesh) == null || e.scale.applyMatrix4(t);
89
+ }
90
+ }
91
+ export {
92
+ q as CSS3DObjectPlus
93
+ };
@@ -0,0 +1,14 @@
1
+ import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
2
+ import type * as THREE from 'three';
3
+ export default class ICSS3DRenderer extends CSS3DRenderer {
4
+ wrapper?: HTMLElement;
5
+ private requestAnimationFrameId?;
6
+ private resizeDisoper?;
7
+ constructor();
8
+ setWrapper(wrapper: HTMLElement): this;
9
+ appendToElement(wrapper: HTMLElement): void;
10
+ renderEveryFrame(scene: THREE.Scene, camera: THREE.Camera): void;
11
+ stopRender(): void;
12
+ dispose(): void;
13
+ }
14
+ export { ICSS3DRenderer };
@@ -0,0 +1,46 @@
1
+ var d = Object.defineProperty;
2
+ var l = (r, t, e) => t in r ? d(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var s = (r, t, e) => (l(r, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { CSS3DRenderer as p } from "three/examples/jsm/renderers/CSS3DRenderer";
5
+ import { getAllCSS3DObject as h } from "../getAllCSS3DObject.js";
6
+ import { createResizeObserver as u } from "../createResizeObserver.js";
7
+ class v extends p {
8
+ constructor() {
9
+ super();
10
+ s(this, "wrapper");
11
+ s(this, "requestAnimationFrameId");
12
+ s(this, "resizeDisoper");
13
+ this.domElement.style.position = "absolute", this.domElement.style.top = "0", this.domElement.style.left = "0", this.domElement.style.userSelect = "none", this.domElement.style.pointerEvents = "none";
14
+ }
15
+ setWrapper(e) {
16
+ if (!e)
17
+ throw new Error("CSS3DRenderer: wrapper is required");
18
+ if (e.contains(this.domElement))
19
+ return;
20
+ const i = this.wrapper;
21
+ return i && i.contains(this.domElement) && this.domElement.remove(), this.appendToElement(e), this.wrapper = e, this;
22
+ }
23
+ appendToElement(e) {
24
+ e.appendChild(this.domElement);
25
+ const i = (m, a) => this.setSize(m, a), { observe: n, unobserve: o } = u(e, i, !0);
26
+ n(), this.resizeDisoper = o, this.wrapper = e;
27
+ }
28
+ renderEveryFrame(e, i) {
29
+ if (this.wrapper || console.warn("wrapper is not find, creating a html element and call setWrapper(wrapper)", this, e), this.requestAnimationFrameId)
30
+ return console.warn("CSS3DRenderer: render is running");
31
+ const n = () => {
32
+ this.requestAnimationFrameId = requestAnimationFrame(n), !!e.visible && h(e).length !== 0 && this.render(e, i);
33
+ };
34
+ n();
35
+ }
36
+ stopRender() {
37
+ this.requestAnimationFrameId && cancelAnimationFrame(this.requestAnimationFrameId);
38
+ }
39
+ dispose() {
40
+ var e;
41
+ this.stopRender(), (e = this.resizeDisoper) == null || e.call(this), this.domElement.remove();
42
+ }
43
+ }
44
+ export {
45
+ v as ICSS3DRenderer
46
+ };
@@ -0,0 +1,12 @@
1
+ import type { Object3D } from 'three';
2
+ import * as THREE from 'three';
3
+ export declare class CSS3DFrontScene extends THREE.Scene {
4
+ constructor();
5
+ add(...objects: Object3D[]): this;
6
+ }
7
+ export declare class CSS3DBehindScene extends THREE.Scene {
8
+ private scene;
9
+ constructor(scene: THREE.Scene);
10
+ add(...objects: Object3D[]): this;
11
+ remove(...objects: Object3D[]): this;
12
+ }
@@ -0,0 +1,39 @@
1
+ var i = Object.defineProperty;
2
+ var a = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var d = (n, r, e) => (a(n, typeof r != "symbol" ? r + "" : r, e), e);
4
+ import * as c from "three";
5
+ import { getAllCSS3DObject as o } from "../getAllCSS3DObject.js";
6
+ class m extends c.Scene {
7
+ constructor() {
8
+ super();
9
+ }
10
+ add(...r) {
11
+ return super.add(...r), o(...r).forEach((e) => {
12
+ e.mode = "front";
13
+ }), this;
14
+ }
15
+ }
16
+ class p extends c.Scene {
17
+ constructor(e) {
18
+ super();
19
+ d(this, "scene");
20
+ if (!e)
21
+ throw new Error("CSS3DBehindScene: scene is required");
22
+ this.scene = e;
23
+ }
24
+ add(...e) {
25
+ return super.add(...e), o(...e).forEach((t) => {
26
+ t.mode = "behind", this.scene.add(t.getOpacityMesh());
27
+ }), this;
28
+ }
29
+ remove(...e) {
30
+ return o(...e).forEach((t) => {
31
+ var s;
32
+ (s = t.opacityMesh) == null || s.removeFromParent();
33
+ }), super.remove(...e), this;
34
+ }
35
+ }
36
+ export {
37
+ p as CSS3DBehindScene,
38
+ m as CSS3DFrontScene
39
+ };
@@ -0,0 +1,6 @@
1
+ import * as THREE from 'three';
2
+ export default class OpecityMesh extends THREE.Mesh {
3
+ name: string;
4
+ constructor(width: number, height: number);
5
+ removeFromParent(): this;
6
+ }
@@ -0,0 +1,18 @@
1
+ var c = Object.defineProperty;
2
+ var m = (r, t, e) => t in r ? c(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var o = (r, t, e) => (m(r, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import * as s from "three";
5
+ class p extends s.Mesh {
6
+ constructor(e, a) {
7
+ const n = new s.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: s.DoubleSide }), i = new s.PlaneGeometry(e, a);
8
+ super(i, n);
9
+ o(this, "name", "opacity-mesh");
10
+ }
11
+ removeFromParent() {
12
+ const e = this.parent;
13
+ return e !== null && e.remove(this), this;
14
+ }
15
+ }
16
+ export {
17
+ p as OpecityMesh
18
+ };
@@ -0,0 +1,2 @@
1
+ import type { Five } from '@realsee/five';
2
+ export default function fiveModelLoaded(five: Five): Promise<void>;
@@ -0,0 +1,31 @@
1
+ var t = (o, n, e) => new Promise((c, l) => {
2
+ var i = (d) => {
3
+ try {
4
+ r(e.next(d));
5
+ } catch (a) {
6
+ l(a);
7
+ }
8
+ }, m = (d) => {
9
+ try {
10
+ r(e.throw(d));
11
+ } catch (a) {
12
+ l(a);
13
+ }
14
+ }, r = (d) => d.done ? c(d.value) : Promise.resolve(d.value).then(i, m);
15
+ r((e = e.apply(o, n)).next());
16
+ });
17
+ function f(o) {
18
+ return t(this, null, function* () {
19
+ return new Promise((n) => {
20
+ var e;
21
+ if ((e = o.model) != null && e.loaded) {
22
+ n();
23
+ return;
24
+ } else
25
+ o.once("modelLoaded", () => n());
26
+ });
27
+ });
28
+ }
29
+ export {
30
+ f as fiveModelLoaded
31
+ };