@realsee/dnalogel 2.0.0-alpha.18 → 2.0.0-alpha.19

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 (175) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/CSS3DRenderPlugin/index.d.ts +2 -2
  3. package/dist/CameraMovementPlugin/index.js +15 -40
  4. package/dist/CameraMovementPlugin/typing.d.ts +1 -1
  5. package/dist/ModelChassisCompassPlugin/index.js +3 -28
  6. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
  7. package/dist/ModelEntryDoorGuidePlugin/index.js +8 -33
  8. package/dist/ModelItemLabelPlugin/events.type.d.ts +2 -2
  9. package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
  10. package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
  11. package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
  12. package/dist/ModelTVVideoPlugin/index.d.ts +1 -1
  13. package/dist/ModelTVVideoPlugin/index.js +3 -28
  14. package/dist/PanoCompassPlugin/index.js +53 -86
  15. package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
  16. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
  17. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  18. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
  19. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  20. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  21. package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
  22. package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
  23. package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
  24. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
  25. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
  26. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
  27. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  28. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  29. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
  30. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
  31. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
  32. package/dist/PanoMeasurePlugin/index.d.ts +1 -1
  33. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
  34. package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
  35. package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
  36. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
  37. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
  38. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
  39. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
  40. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
  41. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
  42. package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
  43. package/dist/PanoRulerPlugin/index.d.ts +1 -1
  44. package/dist/PanoRulerPlugin/index.js +3 -28
  45. package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
  46. package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
  47. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
  48. package/dist/floorplan/ModelFloorplanPlugin/index.js +1253 -1284
  49. package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +61 -183
  50. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
  51. package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
  52. package/dist/floorplan/TopviewFloorplanPlugin/index.js +1243 -1235
  53. package/dist/floorplan/utils/formatPosition.d.ts +1 -1
  54. package/dist/index.es.js +1429 -1435
  55. package/dist/index.js +1428 -1434
  56. package/dist/index.umd.js +1428 -1434
  57. package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
  58. package/dist/shared-utils/three/getNormal.d.ts +1 -1
  59. package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
  60. package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
  61. package/dist/shared-utils/vectorTocoordinates.d.ts +1 -1
  62. package/docs/assets/search.js +1 -1
  63. package/docs/classes/ModelRoomLabelController.html +6 -6
  64. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  65. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  66. package/docs/interfaces/LineJson.html +1 -1
  67. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  68. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  69. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  70. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  71. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  72. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  73. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  74. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  75. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  76. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  77. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  78. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  79. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  80. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  81. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  82. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  83. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  84. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  85. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  86. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  90. package/docs/interfaces/PointJson.html +1 -1
  91. package/docs/interfaces/RoomLabel.html +7 -7
  92. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +19 -1
  93. package/docs/modules.html +12 -12
  94. package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
  95. package/libs/CameraMovementPlugin/index.js +15 -24
  96. package/libs/CameraMovementPlugin/typing.d.ts +1 -1
  97. package/libs/ModelChassisCompassPlugin/index.js +3 -12
  98. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
  99. package/libs/ModelEntryDoorGuidePlugin/index.js +8 -17
  100. package/libs/ModelItemLabelPlugin/events.type.d.ts +2 -2
  101. package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
  102. package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
  103. package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
  104. package/libs/ModelTVVideoPlugin/index.d.ts +1 -1
  105. package/libs/ModelTVVideoPlugin/index.js +3 -12
  106. package/libs/ModelTVVideoPlugin/typings.js +1 -0
  107. package/libs/PanoCompassPlugin/index.js +49 -64
  108. package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
  109. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
  110. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  111. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
  112. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
  113. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  114. package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
  115. package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
  116. package/libs/PanoMeasurePlugin/Model/line.js +1 -1
  117. package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
  118. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
  119. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
  120. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
  121. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  122. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
  123. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
  124. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
  125. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
  126. package/libs/PanoMeasurePlugin/index.d.ts +1 -1
  127. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
  128. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
  129. package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
  130. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
  131. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
  132. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
  133. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
  134. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
  135. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
  136. package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
  137. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +1 -0
  138. package/libs/PanoRulerPlugin/index.d.ts +1 -1
  139. package/libs/PanoRulerPlugin/index.js +3 -12
  140. package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
  141. package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
  142. package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
  143. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Camera.js +2 -2
  144. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Compass.js +0 -0
  145. package/libs/floorplan/{ModelFloorplanPlugin/Components/CurrentFloor → Components}/CurrentFloor.js +73 -80
  146. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Main.js +186 -105
  147. package/libs/floorplan/Components/RoomHighlight/Room.js +5 -7
  148. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +24 -116
  149. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabel.js +0 -0
  150. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabels.js +2 -2
  151. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +26 -22
  152. package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
  153. package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RuleLabels/RuleLabels.js +82 -32
  154. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
  155. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +34 -43
  156. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +22 -33
  157. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -12
  158. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
  159. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +80 -54
  160. package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
  161. package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
  162. package/libs/floorplan/utils/formatData.js +28 -43
  163. package/libs/floorplan/utils/formatPosition.d.ts +1 -1
  164. package/libs/floorplan/utils/formatPosition.js +2 -2
  165. package/libs/shared-utils/five/changeMode.js +12 -23
  166. package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
  167. package/libs/shared-utils/three/getNormal.d.ts +1 -1
  168. package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
  169. package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
  170. package/libs/shared-utils/three/loadFbxObj.js +9 -20
  171. package/libs/shared-utils/three/loadTexture.js +6 -17
  172. package/libs/shared-utils/to.js +10 -21
  173. package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
  174. package/package.json +1 -1
  175. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +0 -301
@@ -1,9 +1,9 @@
1
+ import type { PluginData } from '../typings/data';
2
+ import type { UserDistanceItem } from '../utils/distanceDom';
1
3
  import Line from './line';
2
4
  import Point from './point';
3
5
  import { Subscribe, SubscribeEventMap } from '@realsee/five';
4
- import { PluginData } from '../typings/data';
5
6
  import { Polyline } from './polyline';
6
- import { UserDistanceItem } from '../utils/distanceDom';
7
7
  interface IModelEvent extends SubscribeEventMap {
8
8
  /** 新增线条
9
9
  * @param line 被创建的线条
@@ -1,9 +1,9 @@
1
- import { Model } from '.';
2
- import Point from './point';
3
- import { LineJson } from '..';
1
+ import type { Model } from '.';
2
+ import type Point from './point';
3
+ import type { LineJson } from '..';
4
+ import type { LineCompletelyJson } from '../typings/data';
5
+ import type { Line as FiveLine } from '@realsee/five/line';
4
6
  import { Polyline } from './polyline';
5
- import { LineCompletelyJson } from '../typings/data';
6
- import { Line as FiveLine } from '@realsee/five/line';
7
7
  import { Subscribe, SubscribeEventMap } from '@realsee/five';
8
8
  import { DistanceItem } from '../utils/distanceDom';
9
9
  export interface ILineHook extends SubscribeEventMap {
@@ -1,6 +1,6 @@
1
- import Line from './line';
1
+ import type Line from './line';
2
+ import type { PluginData } from '../typings/data';
2
3
  import { Vector3 } from 'three';
3
- import { PluginData } from '../typings/data';
4
4
  declare type IPointData = PluginData['points'][0];
5
5
  export default class Point {
6
6
  id: string;
@@ -1,6 +1,6 @@
1
- import Line from './line';
2
- import Point from './point';
3
- import { PolylineJson, PolylineCompletelyJson } from '../typings/data';
1
+ import type Line from './line';
2
+ import type Point from './point';
3
+ import type { PolylineJson, PolylineCompletelyJson } from '../typings/data';
4
4
  export declare class Polyline {
5
5
  readonly id: string;
6
6
  points: Point[];
@@ -1,5 +1,5 @@
1
- import Line from '../../Model/line';
2
- import { Five } from '@realsee/five';
1
+ import type Line from '../../Model/line';
2
+ import type { Five } from '@realsee/five';
3
3
  export default class DeleteDom {
4
4
  visible: boolean;
5
5
  private five;
@@ -1,5 +1,5 @@
1
+ import type { Five, Intersection } from '@realsee/five';
1
2
  import { Line3, Vector3 } from 'three';
2
- import { Five, Intersection } from '@realsee/five';
3
3
  export default class FiveHelper {
4
4
  edges: Line3[];
5
5
  private five;
@@ -1,4 +1,4 @@
1
- import MeasureController from '../Controller';
1
+ import type MeasureController from '../Controller';
2
2
  export interface GuideControllerParams {
3
3
  container: Element;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Five } from '@realsee/five';
1
+ import type { Five } from '@realsee/five';
2
2
  import { Vector3 } from 'three';
3
3
  export interface MagnifierOptions {
4
4
  width: number;
@@ -1,4 +1,4 @@
1
- import MeasureController from '../../Controller';
1
+ import type MeasureController from '../../Controller';
2
2
  export declare class MainBtnController {
3
3
  private container;
4
4
  private measureController;
@@ -1,4 +1,5 @@
1
- import MeasureController, { Mode } from '../../../Controller';
1
+ import type { Mode } from '../../../Controller';
2
+ import type MeasureController from '../../../Controller';
2
3
  export default class Revoke {
3
4
  private container;
4
5
  private revokeIcon;
@@ -1,4 +1,4 @@
1
- import MeasureController from '../../Controller';
1
+ import type MeasureController from '../../Controller';
2
2
  export interface UIControllerParams {
3
3
  container: Element;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { FivePlugin } from '@realsee/five';
1
+ import type { FivePlugin } from '@realsee/five';
2
2
  import MeasureController, { MeasurePluginParameter } from './Controller';
3
3
  declare const PanoMeasurePlugin: FivePlugin<MeasurePluginParameter, PluginReturns>;
4
4
  export default PanoMeasurePlugin;
@@ -1,7 +1,7 @@
1
- import { SubscribeEventMap } from '@realsee/five';
2
- import { Vector3 } from 'three';
3
- import { Mode } from '../Controller';
4
- import { LineCompletelyJson } from './data';
1
+ import type { SubscribeEventMap } from '@realsee/five';
2
+ import type { Vector3 } from 'three';
3
+ import type { Mode } from '../Controller';
4
+ import type { LineCompletelyJson } from './data';
5
5
  interface ControllerEvent extends SubscribeEventMap {
6
6
  /**
7
7
  * Mode 变更
@@ -1,2 +1,2 @@
1
- import { Group } from 'three';
1
+ import type { Group } from 'three';
2
2
  export default function clearGroup(group: Group): void;
@@ -1,4 +1,4 @@
1
- import { ICreatLineOpts } from './line';
1
+ import type { ICreatLineOpts } from './line';
2
2
  export declare const normalLineOpts: ICreatLineOpts;
3
3
  export declare const dashLineOpts: ICreatLineOpts;
4
4
  export declare const lightLineOpts: ICreatLineOpts;
@@ -1,7 +1,7 @@
1
- import Line from '../Model/line';
2
- import { Five } from '@realsee/five';
1
+ import type Line from '../Model/line';
2
+ import type { Five } from '@realsee/five';
3
+ import type { LineCompletelyJson, PolylineCompletelyJson } from '../typings/data';
3
4
  import { Vector3 } from 'three';
4
- import { LineCompletelyJson, PolylineCompletelyJson } from '../typings/data';
5
5
  export declare type DistanceItem = ReturnType<typeof creatDistanceItem>;
6
6
  export interface UserDistanceItem {
7
7
  element: Element;
@@ -1,2 +1,2 @@
1
- import Line from '../Model/line';
1
+ import type Line from '../Model/line';
2
2
  export declare function findAssociatedLines(line: Line): Line[];
@@ -1,6 +1,6 @@
1
- import { Vector2 } from 'three';
2
- import Point from '../Model/point';
3
- import { Five } from '@realsee/five';
1
+ import type { Vector2 } from 'three';
2
+ import type Point from '../Model/point';
3
+ import type { Five } from '@realsee/five';
4
4
  /**
5
5
  * @param tapPoint 注意这里的坐标是相对于 FiveElement 的
6
6
  */
@@ -1,4 +1,4 @@
1
- import Hammer from 'hammerjs';
2
- import { Five, Intersection } from '@realsee/five';
1
+ import type Hammer from 'hammerjs';
2
+ import type { Five, Intersection } from '@realsee/five';
3
3
  /** 通过鼠标事件或者触摸事件,获取当前点击屏幕关联的射线与模型的交点 */
4
4
  export declare function getIntersectionFromEvent(five: Five, event: typeof Hammer['Input']): Intersection[];
@@ -1,4 +1,4 @@
1
- import Hammer from 'hammerjs';
1
+ import type Hammer from 'hammerjs';
2
2
  import { Vector2 } from 'three';
3
3
  /**
4
4
  * 从 Hammer 事件中获取操作的点在交互 DOM 中的位置
@@ -1,2 +1,2 @@
1
- import { Vector3 } from 'three';
1
+ import type { Vector3 } from 'three';
2
2
  export default function isNDCPointInScreen(ndcPoint: Vector3): boolean;
@@ -1,4 +1,4 @@
1
- import Line from '../Model/line';
1
+ import type Line from '../Model/line';
2
2
  import { Line as FiveLine } from '@realsee/five/line';
3
3
  import { Color, Texture, Vector3 } from 'three';
4
4
  declare type ISetMaterialOpts = Parameters<FiveLine['setMaterial']>[0];
@@ -1,5 +1,5 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
- import { RoomInfo, RoomRules } from './typings';
2
+ import type { RoomInfo, RoomRules } from './typings';
3
3
  export interface PanoRulerPluginOptions {
4
4
  distanceText?: (distance: number) => string;
5
5
  className?: string;
@@ -5,31 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var five = require('@realsee/five');
6
6
  var three = require('three');
7
7
 
8
- /*! *****************************************************************************
9
- Copyright (c) Microsoft Corporation.
10
-
11
- Permission to use, copy, modify, and/or distribute this software for any
12
- purpose with or without fee is hereby granted.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
15
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
17
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
18
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
- PERFORMANCE OF THIS SOFTWARE.
21
- ***************************************************************************** */
22
-
23
- function __awaiter(thisArg, _arguments, P, generator) {
24
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
25
- return new (P || (P = Promise))(function (resolve, reject) {
26
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
27
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
28
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
29
- step((generator = generator.apply(thisArg, _arguments || [])).next());
30
- });
31
- }
32
-
33
8
  /**
34
9
  * 平面几何相关数学函数
35
10
  */
@@ -401,7 +376,7 @@ const PanoRulerPlugin = (five$1, params) => {
401
376
  state.loaded = true;
402
377
  return true;
403
378
  };
404
- const load = (_roomInfo, _roomRules, options) => __awaiter(void 0, void 0, void 0, function* () {
379
+ const load = async (_roomInfo, _roomRules, options) => {
405
380
  const roomInfo = _roomInfo || params.roomInfo;
406
381
  const roomRules = _roomRules || params.roomRules;
407
382
  if (!roomInfo || !roomRules) {
@@ -412,9 +387,9 @@ const PanoRulerPlugin = (five$1, params) => {
412
387
  return _load(roomInfo, roomRules);
413
388
  }
414
389
  else {
415
- return yield new Promise((resolve) => five$1.once('modelLoaded', () => resolve(_load(roomInfo, roomRules))));
390
+ return await new Promise((resolve) => five$1.once('modelLoaded', () => resolve(_load(roomInfo, roomRules))));
416
391
  }
417
- });
392
+ };
418
393
  if (params.roomInfo && params.roomRules) {
419
394
  load(params.roomInfo, params.roomRules);
420
395
  }
@@ -1,4 +1,4 @@
1
- import * as THREE from 'three';
1
+ import type * as THREE from 'three';
2
2
  export declare type PanoSpatialTagPluginId = string | number;
3
3
  export interface PanoSpatialTagPluginContentReplacement {
4
4
  [key: string]: string;
@@ -1,8 +1,8 @@
1
- import { Five, Subscribe } from '@realsee/five';
1
+ import type { FLOOR_PLAN_ATTACHED_TO } from '../constant';
2
2
  import type { FloorplanEventHandlers } from './typings/events.type';
3
3
  import type { FloorplanServerData } from '../typings/floorplanServerData';
4
4
  import type { FloorplanRoomItem } from '../typings/floorplanData';
5
- import { FLOOR_PLAN_ATTACHED_TO } from '../constant';
5
+ import { Five, Subscribe } from '@realsee/five';
6
6
  export interface ModelFloorplanParameterType {
7
7
  northDesc?: string;
8
8
  selector?: string | Element;