@realsee/dnalogel 2.0.0-alpha.18 → 2.0.0-alpha.20
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.
- package/CHANGELOG.md +10 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -2
- package/dist/CameraMovementPlugin/index.js +15 -40
- package/dist/CameraMovementPlugin/typing.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/index.js +3 -28
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/index.js +8 -33
- package/dist/ModelItemLabelPlugin/events.type.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/index.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/index.js +3 -28
- package/dist/PanoCompassPlugin/index.js +53 -86
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.js +2 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/PanoRulerPlugin/index.d.ts +1 -1
- package/dist/PanoRulerPlugin/index.js +3 -28
- package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/dist/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/index.js +1253 -1284
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +61 -183
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +1243 -1235
- package/dist/floorplan/utils/formatPosition.d.ts +1 -1
- package/dist/index.es.js +1431 -1435
- package/dist/index.js +1430 -1434
- package/dist/index.umd.js +1430 -1434
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/dist/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/dist/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +19 -1
- package/docs/modules.html +12 -12
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -2
- package/libs/CameraMovementPlugin/index.js +15 -24
- package/libs/CameraMovementPlugin/typing.d.ts +1 -1
- package/libs/ModelChassisCompassPlugin/index.js +3 -12
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +1 -1
- package/libs/ModelEntryDoorGuidePlugin/index.js +8 -17
- package/libs/ModelItemLabelPlugin/events.type.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/index.js +3 -12
- package/libs/ModelTVVideoPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/index.js +49 -64
- package/libs/PanoCursorRaycasterPlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +8 -8
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Model/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/line.d.ts +5 -5
- package/libs/PanoMeasurePlugin/Model/line.js +1 -1
- package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +2 -0
- package/libs/PanoMeasurePlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +4 -4
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +3 -3
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +2 -2
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +1 -0
- package/libs/PanoRulerPlugin/index.d.ts +1 -1
- package/libs/PanoRulerPlugin/index.js +3 -12
- package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.d.ts +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Assets → Assets}/compass.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Camera.js +2 -2
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Compass.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components/CurrentFloor → Components}/CurrentFloor.js +73 -80
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/Main.js +186 -105
- package/libs/floorplan/Components/RoomHighlight/Room.js +5 -7
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +24 -116
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabel.js +0 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RoomLabels/RoomLabels.js +2 -2
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +26 -22
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +284 -0
- package/libs/floorplan/{ModelFloorplanPlugin/Components → Components}/RuleLabels/RuleLabels.js +82 -32
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +34 -43
- package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +22 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -12
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +28 -15
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +80 -54
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -1
- package/libs/floorplan/utils/formatData.js +28 -43
- package/libs/floorplan/utils/formatPosition.d.ts +1 -1
- package/libs/floorplan/utils/formatPosition.js +2 -2
- package/libs/shared-utils/five/changeMode.js +12 -23
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getTextureLoader.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.d.ts +1 -1
- package/libs/shared-utils/three/loadFbxObj.js +9 -20
- package/libs/shared-utils/three/loadTexture.js +6 -17
- package/libs/shared-utils/to.js +10 -21
- package/libs/shared-utils/vectorTocoordinates.d.ts +1 -1
- package/package.json +2 -2
- 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,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;
|
|
@@ -5071,6 +5071,7 @@ class UIController {
|
|
|
5071
5071
|
this.container.remove();
|
|
5072
5072
|
}
|
|
5073
5073
|
show() {
|
|
5074
|
+
this.container.style.display = 'block';
|
|
5074
5075
|
this.container.style.opacity = '1';
|
|
5075
5076
|
this.container.style.transform = 'translate(0, 0)';
|
|
5076
5077
|
this.revoke = new Revoke(this.measureController, this.container);
|
|
@@ -5080,6 +5081,7 @@ class UIController {
|
|
|
5080
5081
|
}
|
|
5081
5082
|
hide() {
|
|
5082
5083
|
var _a, _b;
|
|
5084
|
+
this.container.style.display = 'none';
|
|
5083
5085
|
this.container.style.opacity = '0';
|
|
5084
5086
|
this.container.style.transform = 'translate(0, 10px)';
|
|
5085
5087
|
(_a = this.revoke) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
@@ -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,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,2 +1,2 @@
|
|
|
1
|
-
import { Vector3 } from 'three';
|
|
1
|
+
import type { Vector3 } from 'three';
|
|
2
2
|
export default function isNDCPointInScreen(ndcPoint: Vector3): boolean;
|
|
@@ -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) =>
|
|
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
|
|
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
|
}
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
5
|
+
import { Five, Subscribe } from '@realsee/five';
|
|
6
6
|
export interface ModelFloorplanParameterType {
|
|
7
7
|
northDesc?: string;
|
|
8
8
|
selector?: string | Element;
|