@realsee/dnalogel 0.1.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 (271) hide show
  1. package/README.md +94 -0
  2. package/TERMS.txt +56 -0
  3. package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +44 -0
  4. package/components/ARVideoFigure/ARVideoFigureMesh.js +347 -0
  5. package/components/ARVideoFigure/ARVideoFigureScene.d.ts +11 -0
  6. package/components/ARVideoFigure/ARVideoFigureScene.js +74 -0
  7. package/components/ARVideoFigure/ImgBgTransparent.d.ts +16 -0
  8. package/components/ARVideoFigure/ImgBgTransparent.js +49 -0
  9. package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +30 -0
  10. package/components/ARVideoFigure/ImgBgTransparentMesh.js +173 -0
  11. package/components/ARVideoFigure/fragmentShader.d.ts +5 -0
  12. package/components/ARVideoFigure/fragmentShader.js +16 -0
  13. package/components/ARVideoFigure/index.d.ts +15 -0
  14. package/components/ARVideoFigure/index.js +64 -0
  15. package/components/ARVideoFigure/vertexShader.d.ts +1 -0
  16. package/components/ARVideoFigure/vertexShader.js +8 -0
  17. package/components/GlassFilters/index.d.ts +32 -0
  18. package/components/GlassFilters/index.js +54 -0
  19. package/components/ModelView/ModelViewController.d.ts +18 -0
  20. package/components/ModelView/ModelViewController.js +147 -0
  21. package/components/ModelView/index.d.ts +10 -0
  22. package/components/ModelView/index.js +22 -0
  23. package/components/PBRView/index.d.ts +14 -0
  24. package/components/PBRView/index.js +31 -0
  25. package/components/PaintBrush/index.d.ts +16 -0
  26. package/components/PaintBrush/index.js +33 -0
  27. package/components/PanoTag/index.d.ts +4 -0
  28. package/components/PanoTag/index.js +11 -0
  29. package/custom.d.js +3 -0
  30. package/data/1aGKl9JmrlXMXx8d.d.ts +104 -0
  31. package/data/1aGKl9JmrlXMXx8d.js +535 -0
  32. package/data/6gyq3v1verxD7JO1.d.ts +104 -0
  33. package/data/6gyq3v1verxD7JO1.js +460 -0
  34. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +84 -0
  35. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +598 -0
  36. package/data/PrXel3aqGbp34JQn.d.ts +389 -0
  37. package/data/PrXel3aqGbp34JQn.js +4639 -0
  38. package/data/YdoNP9K4rwQDwjJr.d.ts +83 -0
  39. package/data/YdoNP9K4rwQDwjJr.js +1451 -0
  40. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +86 -0
  41. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +709 -0
  42. package/data/oPzy3ApbjjpD8YdR.d.ts +83 -0
  43. package/data/oPzy3ApbjjpD8YdR.js +281 -0
  44. package/data/qjAxMG4XbPn96wKG.d.ts +104 -0
  45. package/data/qjAxMG4XbPn96wKG.js +635 -0
  46. package/data/rXel3aPQRRBD4JQn.d.ts +86 -0
  47. package/data/rXel3aPQRRBD4JQn.js +620 -0
  48. package/data/vLykj3NWrllMrG06.d.ts +89 -0
  49. package/data/vLykj3NWrllMrG06.js +2532 -0
  50. package/data/wYnRjQ4KZoV1yPoG.d.ts +114 -0
  51. package/data/wYnRjQ4KZoV1yPoG.js +512 -0
  52. package/data/wz0QV9KA4ugyo9ME.d.ts +39 -0
  53. package/data/wz0QV9KA4ugyo9ME.js +134 -0
  54. package/examples/FiveStateController/index.js +140 -0
  55. package/examples/VRHouse/Mobile.js +22 -0
  56. package/examples/VRHouse/PC.js +22 -0
  57. package/examples/VRHouse/index.js +22 -0
  58. package/index.d.ts +15 -0
  59. package/index.js +43 -0
  60. package/package.json +19 -0
  61. package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +12 -0
  62. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +113 -0
  63. package/plugins/CSS3DRenderPlugin/index.d.ts +49 -0
  64. package/plugins/CSS3DRenderPlugin/index.js +220 -0
  65. package/plugins/CameraMovementPlugin/index.d.ts +7 -0
  66. package/plugins/CameraMovementPlugin/index.js +338 -0
  67. package/plugins/CameraMovementPlugin/typing.d.ts +68 -0
  68. package/plugins/CameraMovementPlugin/typing.js +35 -0
  69. package/plugins/ModelChassisCompassPlugin/index.d.ts +15 -0
  70. package/plugins/ModelChassisCompassPlugin/index.js +156 -0
  71. package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +10 -0
  72. package/plugins/ModelEntryDoorGuidePlugin/index.js +16 -0
  73. package/plugins/ModelTVVideoPlugin/index.d.ts +21 -0
  74. package/plugins/ModelTVVideoPlugin/index.js +313 -0
  75. package/plugins/ModelViewPlugin/index.d.ts +17 -0
  76. package/plugins/ModelViewPlugin/index.js +199 -0
  77. package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +48 -0
  78. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +9 -0
  79. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +113 -0
  80. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +11 -0
  81. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +25 -0
  82. package/plugins/PanoCursorRaycasterPlugin/index.d.ts +49 -0
  83. package/plugins/PanoCursorRaycasterPlugin/index.js +119 -0
  84. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +5 -0
  85. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +25 -0
  86. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +3 -0
  87. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +34 -0
  88. package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.d.ts +7 -0
  89. package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.js +18 -0
  90. package/plugins/PanoDoorLabelPlugin/index.d.ts +4 -0
  91. package/plugins/PanoDoorLabelPlugin/index.js +12 -0
  92. package/plugins/PanoIRobotPlugin/index.d.ts +10 -0
  93. package/plugins/PanoIRobotPlugin/index.js +16 -0
  94. package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +3 -0
  95. package/plugins/PanoRulerPlugin/data/roomInfo.js +49 -0
  96. package/plugins/PanoRulerPlugin/data/roomRules.d.ts +3 -0
  97. package/plugins/PanoRulerPlugin/data/roomRules.js +233 -0
  98. package/plugins/PanoRulerPlugin/index.d.ts +27 -0
  99. package/plugins/PanoRulerPlugin/index.js +589 -0
  100. package/plugins/PanoRulerPlugin/typings.d.ts +21 -0
  101. package/plugins/PanoRulerPlugin/typings.js +5 -0
  102. package/plugins/PanoTVVideoPlugin/index.d.ts +24 -0
  103. package/plugins/PanoTVVideoPlugin/index.js +351 -0
  104. package/plugins/TreasurePlugin/Controller.d.ts +32 -0
  105. package/plugins/TreasurePlugin/Controller.js +175 -0
  106. package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +23 -0
  107. package/plugins/TreasurePlugin/TreasureFaceAnime.js +128 -0
  108. package/plugins/TreasurePlugin/TreasureObject.d.ts +35 -0
  109. package/plugins/TreasurePlugin/TreasureObject.js +186 -0
  110. package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +23 -0
  111. package/plugins/TreasurePlugin/TreasureOpenAnime.js +103 -0
  112. package/plugins/TreasurePlugin/constants.d.ts +12 -0
  113. package/plugins/TreasurePlugin/constants.js +30 -0
  114. package/plugins/TreasurePlugin/index.d.ts +11 -0
  115. package/plugins/TreasurePlugin/index.js +16 -0
  116. package/plugins/TreasurePlugin/treasureDataMap.d.ts +7 -0
  117. package/plugins/TreasurePlugin/treasureDataMap.js +20 -0
  118. package/plugins/TreasurePlugin/typings.d.ts +2 -0
  119. package/plugins/TreasurePlugin/typings.js +5 -0
  120. package/plugins/TreasurePlugin/utils/loadTreasureTextures.d.ts +7 -0
  121. package/plugins/TreasurePlugin/utils/loadTreasureTextures.js +115 -0
  122. package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  123. package/plugins/floorplan/Assets/floorplanExtraObject.js +8 -0
  124. package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +100 -0
  125. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +643 -0
  126. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +13 -0
  127. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +58 -0
  128. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +5 -0
  129. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +69 -0
  130. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +10 -0
  131. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +105 -0
  132. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +13 -0
  133. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +95 -0
  134. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +13 -0
  135. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +48 -0
  136. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +20 -0
  137. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +66 -0
  138. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +1 -0
  139. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +14 -0
  140. package/plugins/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
  141. package/plugins/floorplan/ModelFloorplanPlugin/index.js +18 -0
  142. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
  143. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +5 -0
  144. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
  145. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +31 -0
  146. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
  147. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +162 -0
  148. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +13 -0
  149. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +91 -0
  150. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +3 -0
  151. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +35 -0
  152. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +5 -0
  153. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +50 -0
  154. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +9 -0
  155. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +102 -0
  156. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +11 -0
  157. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +42 -0
  158. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +17 -0
  159. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +75 -0
  160. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +2 -0
  161. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +13 -0
  162. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +33 -0
  163. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +214 -0
  164. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
  165. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +18 -0
  166. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +55 -0
  167. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +267 -0
  168. package/plugins/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
  169. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +16 -0
  170. package/plugins/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  171. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +14 -0
  172. package/plugins/floorplan/components/FloorplanImage.d.ts +7 -0
  173. package/plugins/floorplan/components/FloorplanImage.js +76 -0
  174. package/plugins/floorplan/typings/floorplanData.d.ts +127 -0
  175. package/plugins/floorplan/typings/floorplanData.js +5 -0
  176. package/plugins/floorplan/typings/floorplanServerData.d.ts +125 -0
  177. package/plugins/floorplan/typings/floorplanServerData.js +380 -0
  178. package/plugins/floorplan/utils/formatData.d.ts +5 -0
  179. package/plugins/floorplan/utils/formatData.js +220 -0
  180. package/plugins/floorplan/utils/formatPosition.d.ts +37 -0
  181. package/plugins/floorplan/utils/formatPosition.js +87 -0
  182. package/shared-utils/Preloader.d.ts +6 -0
  183. package/shared-utils/Preloader.js +51 -0
  184. package/shared-utils/Subscribe.d.ts +45 -0
  185. package/shared-utils/Subscribe.js +210 -0
  186. package/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  187. package/shared-utils/animationFrame/BetterTween.js +102 -0
  188. package/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  189. package/shared-utils/animationFrame/calculateProgress.js +38 -0
  190. package/shared-utils/animationFrame/formatRad.d.ts +15 -0
  191. package/shared-utils/animationFrame/formatRad.js +34 -0
  192. package/shared-utils/animationFrame/index.d.ts +15 -0
  193. package/shared-utils/animationFrame/index.js +69 -0
  194. package/shared-utils/animationFrame/tween.d.ts +75 -0
  195. package/shared-utils/animationFrame/tween.js +76 -0
  196. package/shared-utils/changeModelCanvansOpacity.d.ts +2 -0
  197. package/shared-utils/changeModelCanvansOpacity.js +24 -0
  198. package/shared-utils/createFiveContainer.d.ts +10 -0
  199. package/shared-utils/createFiveContainer.js +165 -0
  200. package/shared-utils/createLine/index.d.ts +3 -0
  201. package/shared-utils/createLine/index.js +29 -0
  202. package/shared-utils/debounce.d.ts +6 -0
  203. package/shared-utils/debounce.js +26 -0
  204. package/shared-utils/equal.d.ts +11 -0
  205. package/shared-utils/equal.js +96 -0
  206. package/shared-utils/filter.d.ts +27 -0
  207. package/shared-utils/filter.js +93 -0
  208. package/shared-utils/five/changeMode.d.ts +2 -0
  209. package/shared-utils/five/changeMode.js +86 -0
  210. package/shared-utils/five/useFivePlugin.d.ts +1 -0
  211. package/shared-utils/five/useFivePlugin.js +15 -0
  212. package/shared-utils/formatRad.d.ts +7 -0
  213. package/shared-utils/formatRad.js +16 -0
  214. package/shared-utils/getPxmm.d.ts +6 -0
  215. package/shared-utils/getPxmm.js +37 -0
  216. package/shared-utils/getRandomColor.d.ts +1 -0
  217. package/shared-utils/getRandomColor.js +13 -0
  218. package/shared-utils/isTruelyObject.d.ts +18 -0
  219. package/shared-utils/isTruelyObject.js +27 -0
  220. package/shared-utils/math/evenNumber.d.ts +1 -0
  221. package/shared-utils/math/evenNumber.js +11 -0
  222. package/shared-utils/math/planimetry.d.ts +116 -0
  223. package/shared-utils/math/planimetry.js +342 -0
  224. package/shared-utils/math/rad2Deg.d.ts +1 -0
  225. package/shared-utils/math/rad2Deg.js +10 -0
  226. package/shared-utils/nearlyEqual.d.ts +7 -0
  227. package/shared-utils/nearlyEqual.js +17 -0
  228. package/shared-utils/nextFrame.d.ts +1 -0
  229. package/shared-utils/nextFrame.js +13 -0
  230. package/shared-utils/noop.d.ts +5 -0
  231. package/shared-utils/noop.js +17 -0
  232. package/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  233. package/shared-utils/object3d2LocalMatrix.js +73 -0
  234. package/shared-utils/px2rem.d.ts +1 -0
  235. package/shared-utils/px2rem.js +12 -0
  236. package/shared-utils/tap.d.ts +8 -0
  237. package/shared-utils/tap.js +19 -0
  238. package/shared-utils/three/centerPoint.d.ts +2 -0
  239. package/shared-utils/three/centerPoint.js +12 -0
  240. package/shared-utils/three/getNormal.d.ts +2 -0
  241. package/shared-utils/three/getNormal.js +13 -0
  242. package/shared-utils/three/loadFbxObj.d.ts +3 -0
  243. package/shared-utils/three/loadFbxObj.js +42 -0
  244. package/shared-utils/three/loadTexture.d.ts +2 -0
  245. package/shared-utils/three/loadTexture.js +38 -0
  246. package/shared-utils/three/vecror3.d.ts +7 -0
  247. package/shared-utils/three/vecror3.js +18 -0
  248. package/shared-utils/throttle.d.ts +7 -0
  249. package/shared-utils/throttle.js +25 -0
  250. package/shared-utils/to.d.ts +9 -0
  251. package/shared-utils/to.js +25 -0
  252. package/shared-utils/useDebounce.d.ts +8 -0
  253. package/shared-utils/useDebounce.js +43 -0
  254. package/shared-utils/useThrottle.d.ts +8 -0
  255. package/shared-utils/useThrottle.js +41 -0
  256. package/shared-utils/uuid.d.ts +4 -0
  257. package/shared-utils/uuid.js +20 -0
  258. package/shared-utils/vectorTocoordinates.d.ts +7 -0
  259. package/shared-utils/vectorTocoordinates.js +16 -0
  260. package/typedoc/components.d.ts +6 -0
  261. package/typedoc/components.js +5 -0
  262. package/typedoc/plugins.d.ts +17 -0
  263. package/typedoc/plugins.js +113 -0
  264. package/typedoc/shared-utils.d.ts +3 -0
  265. package/typedoc/shared-utils.js +5 -0
  266. package/typedoc/typings.d.ts +3 -0
  267. package/typedoc/typings.js +5 -0
  268. package/typings/math.type.d.ts +44 -0
  269. package/typings/math.type.js +5 -0
  270. package/typings/utils.type.d.ts +2 -0
  271. package/typings/utils.type.js +5 -0
@@ -0,0 +1,2 @@
1
+ import { Vector3 } from 'three';
2
+ export default function getNormal(a: Vector3, b: Vector3, c: Vector3): Vector3;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = getNormal;
7
+
8
+ function getNormal(a, b, c) {
9
+ var ab = b.clone().sub(a);
10
+ var ac = c.clone().sub(a);
11
+ var normal = ab.clone().cross(ac);
12
+ return normal;
13
+ }
@@ -0,0 +1,3 @@
1
+ import { Group } from 'three';
2
+ import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
3
+ export declare function loadFbxObj(loader: FBXLoader, url: string): Promise<Group>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.loadFbxObj = loadFbxObj;
7
+
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+
10
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
11
+
12
+ function loadFbxObj(_x, _x2) {
13
+ return _loadFbxObj.apply(this, arguments);
14
+ }
15
+
16
+ function _loadFbxObj() {
17
+ _loadFbxObj = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(loader, url) {
18
+ return regeneratorRuntime.wrap(function _callee$(_context) {
19
+ while (1) {
20
+ switch (_context.prev = _context.next) {
21
+ case 0:
22
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
23
+ function onLoad(object) {
24
+ resolve(object);
25
+ }
26
+
27
+ function onError(error) {
28
+ reject(error);
29
+ }
30
+
31
+ loader.load(url, onLoad, undefined, onError);
32
+ }));
33
+
34
+ case 1:
35
+ case "end":
36
+ return _context.stop();
37
+ }
38
+ }
39
+ }, _callee);
40
+ }));
41
+ return _loadFbxObj.apply(this, arguments);
42
+ }
@@ -0,0 +1,2 @@
1
+ import { Texture } from 'three';
2
+ export declare function loadTexture(url: string): Promise<Texture>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.loadTexture = loadTexture;
7
+
8
+ var _three = require("three");
9
+
10
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
11
+
12
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
+
14
+ var textureLoader = new _three.TextureLoader();
15
+
16
+ function loadTexture(_x) {
17
+ return _loadTexture.apply(this, arguments);
18
+ }
19
+
20
+ function _loadTexture() {
21
+ _loadTexture = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url) {
22
+ return regeneratorRuntime.wrap(function _callee$(_context) {
23
+ while (1) {
24
+ switch (_context.prev = _context.next) {
25
+ case 0:
26
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
27
+ textureLoader.load(url, resolve, undefined, reject);
28
+ }));
29
+
30
+ case 1:
31
+ case "end":
32
+ return _context.stop();
33
+ }
34
+ }
35
+ }, _callee);
36
+ }));
37
+ return _loadTexture.apply(this, arguments);
38
+ }
@@ -0,0 +1,7 @@
1
+ import { Vector3 } from 'three';
2
+ declare const vector3: ({ x, y, z }: {
3
+ x: number;
4
+ y: number;
5
+ z: number;
6
+ }) => Vector3;
7
+ export default vector3;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _three = require("three");
9
+
10
+ var vector3 = function vector3(_ref) {
11
+ var x = _ref.x,
12
+ y = _ref.y,
13
+ z = _ref.z;
14
+ return new _three.Vector3(x, y, z);
15
+ };
16
+
17
+ var _default = vector3;
18
+ exports["default"] = _default;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 创建一个防抖动函数,该函数在高频调用时会每隔 wait 毫秒后调用 func 方法
3
+ * `throttle` 会在第一次调用时立刻调用一次
4
+ * @param func - 要防抖动的函数
5
+ * @param wait - 需要延迟的毫秒数
6
+ */
7
+ export default function throttle<T extends (...args: any) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = throttle;
7
+
8
+ /**
9
+ * 创建一个防抖动函数,该函数在高频调用时会每隔 wait 毫秒后调用 func 方法
10
+ * `throttle` 会在第一次调用时立刻调用一次
11
+ * @param func - 要防抖动的函数
12
+ * @param wait - 需要延迟的毫秒数
13
+ */
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
+ function throttle(func) {
16
+ var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
17
+ var last;
18
+ return function () {
19
+ if (last) return;
20
+ func.apply(void 0, arguments);
21
+ last = setTimeout(function () {
22
+ last = null;
23
+ }, wait);
24
+ };
25
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 传入一个 Promise
3
+ * 无异常,返回 [null, data]
4
+ * 有异常,则返回 [Error, undefined]
5
+ * 用于替代 try&catch 处理 await 异常的方案
6
+ * @param {Promise} promise 传入一个 Promise
7
+ */
8
+ export declare function to<T>(promise: Promise<T>): Promise<[null, T] | [Error, null]>;
9
+ export default to;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ exports.to = to;
8
+
9
+ /**
10
+ * 传入一个 Promise
11
+ * 无异常,返回 [null, data]
12
+ * 有异常,则返回 [Error, undefined]
13
+ * 用于替代 try&catch 处理 await 异常的方案
14
+ * @param {Promise} promise 传入一个 Promise
15
+ */
16
+ function to(promise) {
17
+ return promise.then(function (data) {
18
+ return [null, data];
19
+ })["catch"](function (err) {
20
+ return [err, null];
21
+ });
22
+ }
23
+
24
+ var _default = to;
25
+ exports["default"] = _default;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 函数防抖:指触发事件后,在 `n` 秒内函数只能执行一次,如果触发事件后在 `n` 秒内又触发了事件,则会重新计算函数延执行时间。
3
+ * @param callback 回调函数
4
+ * @param waitFor 等待时间
5
+ * @returns
6
+ */
7
+ export declare const useDebounce: <F extends (...args: any) => any>(callback: F, waitFor?: number) => (...args: Parameters<F>) => ReturnType<F>;
8
+ export default useDebounce;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useDebounce = exports["default"] = void 0;
7
+
8
+ var _react = require("react");
9
+
10
+ /**
11
+ * 函数防抖:指触发事件后,在 `n` 秒内函数只能执行一次,如果触发事件后在 `n` 秒内又触发了事件,则会重新计算函数延执行时间。
12
+ * @param callback 回调函数
13
+ * @param waitFor 等待时间
14
+ * @returns
15
+ */
16
+ var useDebounce = function useDebounce(callback) {
17
+ var waitFor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
18
+ var timer = (0, _react.useRef)();
19
+ var savedFunc = (0, _react.useRef)(callback);
20
+ (0, _react.useEffect)(function () {
21
+ savedFunc.current = callback;
22
+ }, [waitFor]);
23
+ return (0, _react.useCallback)(function () {
24
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
25
+ args[_key] = arguments[_key];
26
+ }
27
+
28
+ if (timer.current) {
29
+ clearTimeout(timer.current);
30
+ timer.current = null;
31
+ }
32
+
33
+ timer.current = setTimeout(function () {
34
+ var _savedFunc$current;
35
+
36
+ return (_savedFunc$current = savedFunc.current) === null || _savedFunc$current === void 0 ? void 0 : _savedFunc$current.call.apply(_savedFunc$current, [savedFunc].concat(args));
37
+ }, waitFor);
38
+ }, []);
39
+ };
40
+
41
+ exports.useDebounce = useDebounce;
42
+ var _default = useDebounce;
43
+ exports["default"] = _default;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 函数节流:控制频率,限制在 `n` 秒时间。
3
+ * @param callback 回调函数
4
+ * @param waitFor 等待时间
5
+ * @returns
6
+ */
7
+ export declare const useThrottle: <F extends (...args: any) => any>(callback: F, waitFor: number) => (...args: Parameters<F>) => ReturnType<F>;
8
+ export default useThrottle;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useThrottle = exports["default"] = void 0;
7
+
8
+ var _react = require("react");
9
+
10
+ /**
11
+ * 函数节流:控制频率,限制在 `n` 秒时间。
12
+ * @param callback 回调函数
13
+ * @param waitFor 等待时间
14
+ * @returns
15
+ */
16
+ var useThrottle = function useThrottle(callback, waitFor) {
17
+ var timer = (0, _react.useRef)();
18
+ var savedFunc = (0, _react.useRef)(callback);
19
+ (0, _react.useEffect)(function () {
20
+ savedFunc.current = callback;
21
+ }, [waitFor]);
22
+ return (0, _react.useCallback)(function () {
23
+ var _savedFunc$current;
24
+
25
+ if (timer.current) return;
26
+
27
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28
+ args[_key] = arguments[_key];
29
+ }
30
+
31
+ (_savedFunc$current = savedFunc.current) === null || _savedFunc$current === void 0 ? void 0 : _savedFunc$current.call.apply(_savedFunc$current, [savedFunc].concat(args));
32
+ timer.current = setTimeout(function () {
33
+ if (timer.current) clearTimeout(timer.current);
34
+ timer.current = null;
35
+ }, waitFor);
36
+ }, []);
37
+ };
38
+
39
+ exports.useThrottle = useThrottle;
40
+ var _default = useThrottle;
41
+ exports["default"] = _default;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 随机生成一个uuid值
3
+ */
4
+ export default function uuid(): string;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = uuid;
7
+
8
+ // uuid
9
+ function S4() {
10
+ return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
11
+ }
12
+ /**
13
+ * 随机生成一个uuid值
14
+ */
15
+
16
+
17
+ function uuid() {
18
+ // then to call it, plus stitch in '4' in the third group
19
+ return (S4() + S4() + '-' + S4() + '-4' + S4().substr(0, 3) + '-' + S4() + '-' + S4() + S4() + S4()).toLowerCase();
20
+ }
@@ -0,0 +1,7 @@
1
+ import * as THREE from 'three';
2
+ /** 单位向量转换成坐标 */
3
+ declare function vectorTocoordinates(vector: THREE.Vector3): {
4
+ longitude: number;
5
+ latitude: number;
6
+ };
7
+ export { vectorTocoordinates };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.vectorTocoordinates = vectorTocoordinates;
7
+
8
+ var _formatRad = require("./formatRad");
9
+
10
+ /** 单位向量转换成坐标 */
11
+ function vectorTocoordinates(vector) {
12
+ return {
13
+ longitude: (0, _formatRad.formatRad)(-Math.atan2(vector.x, -vector.z)),
14
+ latitude: -Math.asin(vector.y / 1)
15
+ };
16
+ }
@@ -0,0 +1,6 @@
1
+ export type { ARVideoFigureMeshOptions, ARVideoFigureMesh } from '../components/ARVideoFigure/ARVideoFigureMesh';
2
+ export type { ARVideoFigureScene } from '../components/ARVideoFigure/ARVideoFigureScene';
3
+ export type { ARVideoFigurePropTypes, ARVideoFigure } from '../components/ARVideoFigure';
4
+ export type { ImgBgTransparentMesh, ImgBgTransparentScene } from '../components/ARVideoFigure/ImgBgTransparentMesh';
5
+ export type { ImgBgTransparentProps, ImgBgTransparent } from '../components/ARVideoFigure/ImgBgTransparent';
6
+ export type { GlassFiltersPropTypes, GlassFilters } from '../components/GlassFilters';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,17 @@
1
+ export type { CameraMovementPlugin } from '../plugins/CameraMovementPlugin';
2
+ export type { CameraMovementPluginExportType, CameraMovementPluginParameterType, MoveArgs, MoveOpts, RotateArgs, RotateOpts, Rotation, CameraMovementEffect, CameraMovementOptsCallback, } from '../plugins/CameraMovementPlugin/typing';
3
+ export type { CSS3DRenderPlugin, CSS3DRenderPluginParameterType, CSS3DRenderPluginExportType, } from '../plugins/CSS3DRenderPlugin';
4
+ export type { ModelChassisCompassPluginParameterType, ModelChassisCompassPluginExportType, } from '../plugins/ModelChassisCompassPlugin';
5
+ export type { ModelFloorplanPlugin, ModelFloorplanErrorType, ModelFloorplanViewEvent, ModelFloorplanParameterType, ModelFloorplanEventHandlers, ModelFloorplanPluginsConfigs, ModelFloorplanPluginReturnType, } from '../plugins/floorplan/ModelFloorplanPlugin';
6
+ export type { ModelFloorplanPluginsShowOpts, default as ModelFloorplanPluginController, } from '../plugins/floorplan/ModelFloorplanPlugin/Controller';
7
+ export type { ModelTVVideoPlugin, ModelTVVideoPluginData, ModelTVVideoPluginExportType, ModelTVVideoPluginParameterType, } from '../plugins/ModelTVVideoPlugin';
8
+ export type { ModelViewPlugin, ModelViewPluginExportType } from '../plugins/ModelViewPlugin';
9
+ export type { PanoCursorRaycasterPluginParameterType, PanoCursorRaycasterPluginExportType, PanoCursorRaycasterPlugin, } from '../plugins/PanoCursorRaycasterPlugin';
10
+ export type { PanoFloorplanRadarPlugin, PanoFloorplanRadarPluginReturnType, PanoFloorplanRadarPluginController, PanoFloorplanRadarPluginParameterType, PanoFloorplanRadarPluginControllerParameter, } from '../plugins/floorplan/PanoFloorplanRadarPlugin';
11
+ export type { PanoRulerPlugin, PanoRulerPluginOptions, PanoRulerPluginParameterType, PanoRulerPluginExportType, } from '../plugins/PanoRulerPlugin';
12
+ export type { PanoTVVideoPluginPoints, PanoTVVideoPluginData, PanoTVVideoPluginParameterType, PanoTVVideoPluginExportType, PanoTVVideoPlugin, } from '../plugins/PanoTVVideoPlugin';
13
+ export type { FloorplanServerPosition, FloorplanServerImagePosition, FloorplanServerOutlineItem, FloorplanServerEntrance, FloorplanServerBounding, FloorplanServerRoomLabelItem, FloorplanServerRoomItem, FloorplanServerObserver, FloorplanServerData, FloorplanServerComputedData, FloorplanServerFloorData, } from '../plugins/floorplan/typings/floorplanServerData';
14
+ export type { FloorplanData, FloorplanEntrance, FloorplanBounding, FloorplanPosition, FloorplanRoomItem, FloorplanObserver, FloorplanFloorData, FloorplanOutlineItem, FloorplanImagePosition, FloorplanRoomLabelItem, FloorplanExtraObject, FloorplanExtraObject3D, } from '../plugins/floorplan/typings/floorplanData';
15
+ export { TopviewFloorplanPlugin, TopviewFloorplanPluginParameterType, } from '../plugins/floorplan/TopviewFloorplanPlugin';
16
+ export { TopviewFloorplanPluginController } from '../plugins/floorplan/TopviewFloorplanPlugin/Controller';
17
+ export { TreasureType, TreasurePlugin, TreasurePluginData, TreasurePluginItemData, TreasurePluginEvents, TreasurePluginController, TreasurePluginReturnType, TreasurePluginParameterType, TreasureObject, TreasureObjectParam, TreasureFaceAnime, TreasureFaceAnimeParam, TreasureOpenAnimeParam, TreasurePluginOpenAnime, } from '../plugins/TreasurePlugin';
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "TopviewFloorplanPlugin", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _TopviewFloorplanPlugin.TopviewFloorplanPlugin;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "TopviewFloorplanPluginController", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _Controller.TopviewFloorplanPluginController;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "TopviewFloorplanPluginParameterType", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _TopviewFloorplanPlugin.TopviewFloorplanPluginParameterType;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "TreasureFaceAnime", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _TreasurePlugin.TreasureFaceAnime;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "TreasureFaceAnimeParam", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _TreasurePlugin.TreasureFaceAnimeParam;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "TreasureObject", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _TreasurePlugin.TreasureObject;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "TreasureObjectParam", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _TreasurePlugin.TreasureObjectParam;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "TreasureOpenAnimeParam", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _TreasurePlugin.TreasureOpenAnimeParam;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "TreasurePlugin", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _TreasurePlugin.TreasurePlugin;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "TreasurePluginController", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _TreasurePlugin.TreasurePluginController;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "TreasurePluginData", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _TreasurePlugin.TreasurePluginData;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "TreasurePluginEvents", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _TreasurePlugin.TreasurePluginEvents;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "TreasurePluginItemData", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _TreasurePlugin.TreasurePluginItemData;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "TreasurePluginOpenAnime", {
85
+ enumerable: true,
86
+ get: function get() {
87
+ return _TreasurePlugin.TreasurePluginOpenAnime;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "TreasurePluginParameterType", {
91
+ enumerable: true,
92
+ get: function get() {
93
+ return _TreasurePlugin.TreasurePluginParameterType;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "TreasurePluginReturnType", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _TreasurePlugin.TreasurePluginReturnType;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "TreasureType", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _TreasurePlugin.TreasureType;
106
+ }
107
+ });
108
+
109
+ var _TopviewFloorplanPlugin = require("../plugins/floorplan/TopviewFloorplanPlugin");
110
+
111
+ var _Controller = require("../plugins/floorplan/TopviewFloorplanPlugin/Controller");
112
+
113
+ var _TreasurePlugin = require("../plugins/TreasurePlugin");
@@ -0,0 +1,3 @@
1
+ export type { to } from '../shared-utils/to';
2
+ export type { useThrottle } from '../shared-utils/useThrottle';
3
+ export type { useDebounce } from '../shared-utils/useDebounce';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,3 @@
1
+ export type { FloorplanData, FloorplanOutlineItem, FloorplanEntrance, FloorplanBounding, FloorplanObserver, FloorplanRoomItem, FloorplanRoomLabelItem, FloorplanPosition, FloorplanImagePosition, } from '../plugins/floorplan/typings/floorplanData';
2
+ export type { Vector3, Vector3WithArray, Vector2, Vector2WithArray, Matrix4_4 } from '../typings/math.type';
3
+ export type { Omit, Overwrite } from '../typings/utils.type';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,44 @@
1
+ /**
2
+ * 三维向量
3
+ */
4
+ export interface Vector3 {
5
+ x: number;
6
+ y: number;
7
+ z: number;
8
+ }
9
+ /**
10
+ * 三维向量数组表示
11
+ */
12
+ export declare type Vector3WithArray = [number, number, number];
13
+ /**
14
+ * 二维向量
15
+ */
16
+ export interface Vector2 {
17
+ x: number;
18
+ y: number;
19
+ }
20
+ /**
21
+ * 二维向量数组展示
22
+ */
23
+ export declare type Vector2WithArray = [number, number];
24
+ /**
25
+ * 4 * 4 矩阵数组表示
26
+ */
27
+ export declare type Matrix4_4 = [
28
+ number,
29
+ number,
30
+ number,
31
+ number,
32
+ number,
33
+ number,
34
+ number,
35
+ number,
36
+ number,
37
+ number,
38
+ number,
39
+ number,
40
+ number,
41
+ number,
42
+ number,
43
+ number
44
+ ];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,2 @@
1
+ export declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
2
+ export declare type Overwrite<T, K> = Omit<T, keyof K> & K;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });