@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,4 +0,0 @@
1
- export default function createResizeObserver(element: Element, resizeHandler: (width: number, height: number) => any, fireImmediately?: boolean): {
2
- observe: () => void;
3
- unobserve: () => void;
4
- };
@@ -1,22 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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;
@@ -1,7 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- export default function generateBehindFiveElement(five: Five): HTMLDivElement;
@@ -1,29 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import type { Object3D } from 'three';
2
- import type { CSS3DObjectPlus } from './three/CSS3DObject';
3
- export default function getAllCSS3DObject(...object: Object3D[]): CSS3DObjectPlus<HTMLElement>[];
@@ -1,9 +0,0 @@
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,12 +0,0 @@
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
- }
@@ -1,39 +0,0 @@
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,93 +0,0 @@
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
- };
@@ -1,14 +0,0 @@
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 };
@@ -1,46 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
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
- }
@@ -1,39 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- export default function fiveModelLoaded(five: Five): Promise<void>;
@@ -1,31 +0,0 @@
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
- };