@realsee/dnalogel 2.0.0-alpha.26 → 2.0.0-alpha.28
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 +6 -0
- package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +3 -48
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +4 -6
- package/dist/CameraMovementPlugin/index.js +12 -12
- package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/dist/ModelEntryDoorGuidePlugin/index.js +0 -5
- package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +8 -3
- package/dist/ModelItemLabelPlugin/index.js +13 -7
- package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +4 -3
- package/dist/ModelTVVideoPlugin/index.js +3 -3
- package/dist/ModelViewPlugin/Plugin.d.ts +17 -0
- package/dist/ModelViewPlugin/index.d.ts +3 -16
- package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/dist/PanoCompassPlugin/index.d.ts +4 -47
- package/dist/PanoCompassPlugin/index.js +5 -4
- package/dist/PanoMeasurePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.js +4 -1
- package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.d.ts +4 -30
- package/dist/PanoRulerPlugin/index.js +0 -5
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +4 -32
- package/dist/PanoSpatialTagPlugin/index.js +23 -21
- package/dist/_index.d.ts +30 -0
- package/dist/floorplan/index.d.ts +6 -0
- package/dist/index.d.ts +15 -30
- package/dist/index.es.js +149 -22
- package/dist/index.js +177 -43
- package/dist/index.umd.js +180 -47
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +5 -8
- package/docs/classes/PanoFloorplanRadarPluginController.html +3 -0
- package/docs/enums/CameraMovementEffect.html +3 -0
- package/docs/enums/DIRECTION.html +1 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/enums/Rotation.html +3 -0
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
- package/docs/interfaces/FloorplanBounding.html +10 -0
- package/docs/interfaces/FloorplanData.html +3 -0
- package/docs/interfaces/FloorplanEntrance.html +15 -0
- package/docs/interfaces/FloorplanExtraObject.html +7 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -0
- package/docs/interfaces/FloorplanFloorData.html +3 -0
- package/docs/interfaces/FloorplanImagePosition.html +3 -0
- package/docs/interfaces/FloorplanObserver.html +5 -0
- package/docs/interfaces/FloorplanOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanPosition.html +3 -0
- package/docs/interfaces/FloorplanRoomItem.html +17 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -0
- package/docs/interfaces/FloorplanServerBounding.html +10 -0
- package/docs/interfaces/FloorplanServerComputedData.html +1 -0
- package/docs/interfaces/FloorplanServerData.html +3 -0
- package/docs/interfaces/FloorplanServerEntrance.html +15 -0
- package/docs/interfaces/FloorplanServerFloorData.html +3 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -0
- package/docs/interfaces/FloorplanServerObserver.html +5 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanServerPosition.html +3 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +20 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -0
- 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 +3 -3
- 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/ModelViewPluginExportType.html +1 -0
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
- package/docs/interfaces/Point.html +1 -0
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -0
- package/docs/interfaces/RoomInfo.html +1 -0
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +10 -10
- package/docs/modules.html +28 -12
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
- package/libs/CSS3DRenderPlugin/index.js +2 -181
- package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
- package/libs/CameraMovementPlugin/index.d.ts +4 -6
- package/libs/CameraMovementPlugin/index.js +3 -158
- package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/libs/ModelChassisCompassPlugin/Plugin.js +75 -0
- package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/libs/ModelChassisCompassPlugin/index.js +2 -74
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -139
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +8 -3
- package/libs/ModelItemLabelPlugin/index.js +7 -119
- package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
- package/libs/ModelTVVideoPlugin/index.d.ts +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -253
- package/libs/ModelViewPlugin/Plugin.d.ts +17 -0
- package/libs/ModelViewPlugin/Plugin.js +160 -0
- package/libs/ModelViewPlugin/index.d.ts +3 -16
- package/libs/ModelViewPlugin/index.js +2 -159
- package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/libs/PanoCompassPlugin/Plugin.js +249 -0
- package/libs/PanoCompassPlugin/index.d.ts +4 -47
- package/libs/PanoCompassPlugin/index.js +3 -249
- package/libs/PanoMeasurePlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/libs/PanoRulerPlugin/Plugin.js +402 -0
- package/libs/PanoRulerPlugin/index.d.ts +4 -30
- package/libs/PanoRulerPlugin/index.js +2 -401
- package/libs/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +415 -0
- package/libs/PanoSpatialTagPlugin/index.d.ts +4 -32
- package/libs/PanoSpatialTagPlugin/index.js +4 -412
- package/libs/_index.d.ts +30 -0
- package/libs/_index.js +18 -0
- package/libs/floorplan/index.d.ts +6 -0
- package/libs/floorplan/index.js +7 -0
- package/libs/index.d.ts +15 -30
- package/libs/index.js +25 -17
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import type { Vector3Position } from '../typings/math.type';
|
|
3
|
+
import { Vector3 } from 'three';
|
|
4
|
+
import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
5
|
+
export declare type CSS3DRenderPluginParameterType = undefined;
|
|
6
|
+
export interface CSS3DRenderPluginExportType {
|
|
7
|
+
/**
|
|
8
|
+
* @description: 根据传入的四个点位创建一个3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
9
|
+
* @param {Five} five
|
|
10
|
+
* @param {Vector3[] | Vector3Position[]} points: 矩形四个点坐标
|
|
11
|
+
* @param {number} config.ratio: 1px对应多少米,默认为 0.002,即1px对应2mm
|
|
12
|
+
* @param {number} config.dpr: dpr, 默认为1
|
|
13
|
+
* @param {HTMLElement} config.container: HTMLElement
|
|
14
|
+
* @param {number} config.autoRender: 默认为true,如果需要手动render则传false
|
|
15
|
+
* @param {'front' | 'behind'} config.mode: 两种模式
|
|
16
|
+
* @param {HTMLElement} config.behindFiveContainer: 如果config.mode为'behind',需要传入容器,并确保此容器位five下方,且中间没有其他dom元素遮挡
|
|
17
|
+
* @return {{ container: HTMLElement; dispose: () => void }}: container: dom容器, dispose: 清理函数
|
|
18
|
+
*/
|
|
19
|
+
create3DDomContainer: (points: Vector3[] | Vector3Position[], config?: {
|
|
20
|
+
ratio?: number;
|
|
21
|
+
dpr?: number;
|
|
22
|
+
autoRender?: boolean;
|
|
23
|
+
container?: HTMLElement;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
} & ({
|
|
26
|
+
mode?: 'front';
|
|
27
|
+
} | {
|
|
28
|
+
mode: 'behind';
|
|
29
|
+
behindFiveContainer: HTMLElement;
|
|
30
|
+
})) => {
|
|
31
|
+
container: HTMLElement;
|
|
32
|
+
dispose: () => void;
|
|
33
|
+
css3DObject: CSS3DObject;
|
|
34
|
+
render?: () => void;
|
|
35
|
+
} | void;
|
|
36
|
+
/**
|
|
37
|
+
* @description: 销毁所有的渲染内容
|
|
38
|
+
* @return {void}
|
|
39
|
+
*/
|
|
40
|
+
disposeAll: () => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* **CSS3DRenderPlugin** 提供矩形区域(三维空间四个坐标点),你可以在此矩形区域中渲染 DOM 内容。
|
|
44
|
+
* 实现原理参考[CSS3DRenderer](https://threejs.org/docs/index.html?q=CSS3D#examples/en/renderers/CSS3DRenderer)。
|
|
45
|
+
*
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
export declare const CSS3DRenderPlugin: FivePlugin<CSS3DRenderPluginParameterType, CSS3DRenderPluginExportType>;
|
|
49
|
+
export default CSS3DRenderPlugin;
|
|
@@ -1,49 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { Vector3 } from 'three';
|
|
4
|
-
import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
5
|
-
export declare type CSS3DRenderPluginParameterType = undefined;
|
|
6
|
-
export interface CSS3DRenderPluginExportType {
|
|
7
|
-
/**
|
|
8
|
-
* @description: 根据传入的四个点位创建一个3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
9
|
-
* @param {Five} five
|
|
10
|
-
* @param {Vector3[] | Vector3Position[]} points: 矩形四个点坐标
|
|
11
|
-
* @param {number} config.ratio: 1px对应多少米,默认为 0.002,即1px对应2mm
|
|
12
|
-
* @param {number} config.dpr: dpr, 默认为1
|
|
13
|
-
* @param {HTMLElement} config.container: HTMLElement
|
|
14
|
-
* @param {number} config.autoRender: 默认为true,如果需要手动render则传false
|
|
15
|
-
* @param {'front' | 'behind'} config.mode: 两种模式
|
|
16
|
-
* @param {HTMLElement} config.behindFiveContainer: 如果config.mode为'behind',需要传入容器,并确保此容器位five下方,且中间没有其他dom元素遮挡
|
|
17
|
-
* @return {{ container: HTMLElement; dispose: () => void }}: container: dom容器, dispose: 清理函数
|
|
18
|
-
*/
|
|
19
|
-
create3DDomContainer: (points: Vector3[] | Vector3Position[], config?: {
|
|
20
|
-
ratio?: number;
|
|
21
|
-
dpr?: number;
|
|
22
|
-
autoRender?: boolean;
|
|
23
|
-
container?: HTMLElement;
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
} & ({
|
|
26
|
-
mode?: 'front';
|
|
27
|
-
} | {
|
|
28
|
-
mode: 'behind';
|
|
29
|
-
behindFiveContainer: HTMLElement;
|
|
30
|
-
})) => {
|
|
31
|
-
container: HTMLElement;
|
|
32
|
-
dispose: () => void;
|
|
33
|
-
css3DObject: CSS3DObject;
|
|
34
|
-
render?: () => void;
|
|
35
|
-
} | void;
|
|
36
|
-
/**
|
|
37
|
-
* @description: 销毁所有的渲染内容
|
|
38
|
-
* @return {void}
|
|
39
|
-
*/
|
|
40
|
-
disposeAll: () => void;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* **CSS3DRenderPlugin** 提供矩形区域(三维空间四个坐标点),你可以在此矩形区域中渲染 DOM 内容。
|
|
44
|
-
* 实现原理参考[CSS3DRenderer](https://threejs.org/docs/index.html?q=CSS3D#examples/en/renderers/CSS3DRenderer)。
|
|
45
|
-
*
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
export declare const CSS3DRenderPlugin: FivePlugin<CSS3DRenderPluginParameterType, CSS3DRenderPluginExportType>;
|
|
1
|
+
import CSS3DRenderPlugin from './Plugin';
|
|
2
|
+
export { CSS3DRenderPlugin };
|
|
49
3
|
export default CSS3DRenderPlugin;
|
|
4
|
+
export type { CSS3DRenderPluginExportType } from './Plugin';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import { CameraMovementPluginExportType, CameraMovementPluginParameterType } from './typing';
|
|
3
|
+
/**
|
|
4
|
+
* **运镜插件** 模拟类似于电影运镜效果。
|
|
5
|
+
*/
|
|
6
|
+
export declare const CameraMovementPlugin: FivePlugin<CameraMovementPluginParameterType, CameraMovementPluginExportType>;
|
|
7
|
+
export default CameraMovementPlugin;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* **运镜插件** 模拟类似于电影运镜效果。
|
|
5
|
-
*/
|
|
6
|
-
export declare const CameraMovementPlugin: FivePlugin<CameraMovementPluginParameterType, CameraMovementPluginExportType>;
|
|
1
|
+
import CameraMovementPlugin from "./CameraMovementPlugin";
|
|
2
|
+
export { CameraMovementPlugin };
|
|
7
3
|
export default CameraMovementPlugin;
|
|
4
|
+
export type { MoveArgs, MoveOpts, RotateArgs, RotateOpts, CameraMovementPluginExportType } from './typing';
|
|
5
|
+
export { CameraMovementEffect, Rotation } from './typing';
|
|
@@ -107,20 +107,20 @@ function tweenProgress(duration, easing) {
|
|
|
107
107
|
/**
|
|
108
108
|
* 运镜效果
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
exports.CameraMovementEffect = void 0;
|
|
111
111
|
(function (CameraMovementEffect) {
|
|
112
112
|
CameraMovementEffect["Move"] = "Move";
|
|
113
113
|
CameraMovementEffect["Rotate"] = "Rotate";
|
|
114
|
-
})(CameraMovementEffect || (CameraMovementEffect = {}));
|
|
114
|
+
})(exports.CameraMovementEffect || (exports.CameraMovementEffect = {}));
|
|
115
115
|
/**
|
|
116
116
|
* 旋转类型
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
exports.Rotation = void 0;
|
|
119
119
|
(function (Rotation) {
|
|
120
120
|
Rotation["Clockwise"] = "Clockwise";
|
|
121
121
|
Rotation["Anticlockwise"] = "Anticlockwise";
|
|
122
122
|
Rotation["Loop"] = "Loop";
|
|
123
|
-
})(Rotation || (Rotation = {}));
|
|
123
|
+
})(exports.Rotation || (exports.Rotation = {}));
|
|
124
124
|
|
|
125
125
|
const PI_2 = Math.PI * 2;
|
|
126
126
|
/**
|
|
@@ -151,18 +151,18 @@ const getLongitudeParams = (from, to, rotation) => {
|
|
|
151
151
|
from = formatLongitude(from);
|
|
152
152
|
to = formatLongitude(to);
|
|
153
153
|
// 逆时针旋转,初始值必须是较大的值
|
|
154
|
-
if (rotation === Rotation.Anticlockwise && from < to)
|
|
154
|
+
if (rotation === exports.Rotation.Anticlockwise && from < to)
|
|
155
155
|
from += PI_2;
|
|
156
156
|
// 顺时针旋转,结束值必须是较大值
|
|
157
|
-
if (rotation === Rotation.Clockwise && to < from)
|
|
157
|
+
if (rotation === exports.Rotation.Clockwise && to < from)
|
|
158
158
|
to += PI_2;
|
|
159
159
|
// Loop 旋转,找锐角旋转
|
|
160
160
|
// 如果 to 比 from 大 180°,逆时针转
|
|
161
161
|
// 如果 from 比 to 大 180°,顺时针转
|
|
162
|
-
if (rotation === Rotation.Loop && to - from > PI)
|
|
163
|
-
return getLongitudeParams(from, to, Rotation.Anticlockwise);
|
|
164
|
-
if (rotation === Rotation.Loop && from - to > PI)
|
|
165
|
-
return getLongitudeParams(from, to, Rotation.Clockwise);
|
|
162
|
+
if (rotation === exports.Rotation.Loop && to - from > PI)
|
|
163
|
+
return getLongitudeParams(from, to, exports.Rotation.Anticlockwise);
|
|
164
|
+
if (rotation === exports.Rotation.Loop && from - to > PI)
|
|
165
|
+
return getLongitudeParams(from, to, exports.Rotation.Clockwise);
|
|
166
166
|
return { from, to };
|
|
167
167
|
};
|
|
168
168
|
/**
|
|
@@ -212,7 +212,7 @@ const CameraMovementPlugin = (five$1) => {
|
|
|
212
212
|
const fromLatitude = formatLatitude(currentFiveState.latitude);
|
|
213
213
|
const toLatitude = formatLatitude(args.latitude);
|
|
214
214
|
// longitude
|
|
215
|
-
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || Rotation.Loop);
|
|
215
|
+
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || exports.Rotation.Loop);
|
|
216
216
|
// fov
|
|
217
217
|
const fromFov = currentFiveState.fov;
|
|
218
218
|
const toFov = args.fov;
|
|
@@ -270,7 +270,7 @@ const CameraMovementPlugin = (five$1) => {
|
|
|
270
270
|
.onUpdate(onUpdate)
|
|
271
271
|
.onComplete(onComplete)
|
|
272
272
|
.onDestroy(onDestroy);
|
|
273
|
-
if (args.rotation === Rotation.Loop) {
|
|
273
|
+
if (args.rotation === exports.Rotation.Loop) {
|
|
274
274
|
tween.repeat(Infinity).yoyo(true);
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
export interface ModelChassisCompassPluginParameterType {
|
|
3
|
+
north_rad?: number;
|
|
4
|
+
fbx_url?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ModelChassisCompassPluginData {
|
|
7
|
+
north_rad?: number;
|
|
8
|
+
fbx_url?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ModelChassisCompassPluginExportType {
|
|
11
|
+
enable: () => void;
|
|
12
|
+
disable: () => void;
|
|
13
|
+
load: (data?: ModelChassisCompassPluginData) => Promise<boolean>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 模型底盘指南针插件
|
|
17
|
+
*/
|
|
18
|
+
export declare const ModelChassisCompassPlugin: FivePlugin<ModelChassisCompassPluginParameterType, ModelChassisCompassPluginExportType>;
|
|
19
|
+
export default ModelChassisCompassPlugin;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
north_rad?: number;
|
|
4
|
-
fbx_url?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ModelChassisCompassPluginData {
|
|
7
|
-
north_rad?: number;
|
|
8
|
-
fbx_url?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ModelChassisCompassPluginExportType {
|
|
11
|
-
enable: () => void;
|
|
12
|
-
disable: () => void;
|
|
13
|
-
load: (data?: ModelChassisCompassPluginData) => Promise<boolean>;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 模型底盘指南针插件
|
|
17
|
-
*/
|
|
18
|
-
export declare const ModelChassisCompassPlugin: FivePlugin<ModelChassisCompassPluginParameterType, ModelChassisCompassPluginExportType>;
|
|
1
|
+
import ModelChassisCompassPlugin from './Plugin';
|
|
2
|
+
export { ModelChassisCompassPlugin };
|
|
19
3
|
export default ModelChassisCompassPlugin;
|
|
4
|
+
export type { ModelChassisCompassPluginParameterType, ModelChassisCompassPluginData, ModelChassisCompassPluginExportType } from './Plugin';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import type { Vector3Position } from '../typings/math.type';
|
|
3
|
+
export interface ModelEntryDoorGuidePluginData {
|
|
4
|
+
position?: Vector3Position;
|
|
5
|
+
rad?: number;
|
|
6
|
+
fbx_url?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type ModelEntryDoorGuidePluginParameterType = {
|
|
9
|
+
animationEnabled?: boolean;
|
|
10
|
+
} & ModelEntryDoorGuidePluginData;
|
|
11
|
+
export interface ModelEntryDoorGuidePluginExportType {
|
|
12
|
+
enable: (config?: {
|
|
13
|
+
animationEnable?: boolean;
|
|
14
|
+
}) => boolean;
|
|
15
|
+
disable: () => boolean;
|
|
16
|
+
load: (data?: Partial<ModelEntryDoorGuidePluginData>) => Promise<boolean>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 模型入户门引导插件
|
|
20
|
+
*/
|
|
21
|
+
export declare const ModelEntryDoorGuidePlugin: FivePlugin<ModelEntryDoorGuidePluginParameterType, ModelEntryDoorGuidePluginExportType>;
|
|
22
|
+
export declare const modelEntryDoorGuidePluginServerParams: {
|
|
23
|
+
name: string;
|
|
24
|
+
version: number;
|
|
25
|
+
};
|
|
26
|
+
export default ModelEntryDoorGuidePlugin;
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface ModelEntryDoorGuidePluginData {
|
|
4
|
-
position?: Vector3Position;
|
|
5
|
-
rad?: number;
|
|
6
|
-
fbx_url?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare type ModelEntryDoorGuidePluginParameterType = {
|
|
9
|
-
animationEnabled?: boolean;
|
|
10
|
-
} & ModelEntryDoorGuidePluginData;
|
|
11
|
-
export interface ModelEntryDoorGuidePluginExportType {
|
|
12
|
-
enable: (config?: {
|
|
13
|
-
animationEnable?: boolean;
|
|
14
|
-
}) => boolean;
|
|
15
|
-
disable: () => boolean;
|
|
16
|
-
load: (data?: Partial<ModelEntryDoorGuidePluginData>) => Promise<boolean>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 模型入户门引导插件
|
|
20
|
-
*/
|
|
21
|
-
export declare const ModelEntryDoorGuidePlugin: FivePlugin<ModelEntryDoorGuidePluginParameterType, ModelEntryDoorGuidePluginExportType>;
|
|
22
|
-
export declare const modelEntryDoorGuidePluginServerParams: {
|
|
23
|
-
name: string;
|
|
24
|
-
version: number;
|
|
25
|
-
};
|
|
1
|
+
import ModelEntryDoorGuidePlugin from './Plugin';
|
|
2
|
+
export { ModelEntryDoorGuidePlugin };
|
|
26
3
|
export default ModelEntryDoorGuidePlugin;
|
|
4
|
+
export type { ModelEntryDoorGuidePluginData, ModelEntryDoorGuidePluginParameterType, ModelEntryDoorGuidePluginExportType } from './Plugin';
|
|
@@ -191,11 +191,6 @@ const ModelEntryDoorGuidePlugin = (five, params) => {
|
|
|
191
191
|
};
|
|
192
192
|
return { load, enable, disable };
|
|
193
193
|
};
|
|
194
|
-
const modelEntryDoorGuidePluginServerParams = {
|
|
195
|
-
name: 'ModelEntryDoorGuidePlugin',
|
|
196
|
-
version: 0,
|
|
197
|
-
};
|
|
198
194
|
|
|
199
195
|
exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
|
|
200
196
|
exports["default"] = ModelEntryDoorGuidePlugin;
|
|
201
|
-
exports.modelEntryDoorGuidePluginServerParams = modelEntryDoorGuidePluginServerParams;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FivePlugin } from "@realsee/five";
|
|
2
|
+
import { ModelItemLabelPluginExportReturnsType, ModelItemLabelPluginParametersType } from "./typings";
|
|
3
|
+
export declare const ModelItemLabelPlugin: FivePlugin<ModelItemLabelPluginParametersType, ModelItemLabelPluginExportReturnsType>;
|
|
4
|
+
export default ModelItemLabelPlugin;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare const ModelItemLabelPlugin: FivePlugin<ModelItemLabelPluginParametersType, ModelItemLabelPluginExportReturnsType>;
|
|
1
|
+
import ModelItemLabelPlugin from './ModelItemLabelPlugin';
|
|
2
|
+
export { ModelItemLabelPlugin };
|
|
4
3
|
export default ModelItemLabelPlugin;
|
|
4
|
+
export declare const modelItemLabelPluginServerParams: {
|
|
5
|
+
name: string;
|
|
6
|
+
version: number;
|
|
7
|
+
};
|
|
8
|
+
export type { ModelItemLabelPluginParametersType, ModelItemLabelPluginData, ModelItemLabelPluginExportReturnsType } from './typings';
|
|
9
|
+
export { DISPLAY_STRATEGY_TYPE } from './typings';
|
|
@@ -31,13 +31,13 @@ function _interopNamespace(e) {
|
|
|
31
31
|
var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
|
|
32
32
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
exports.DISPLAY_STRATEGY_TYPE = void 0;
|
|
35
35
|
(function (DISPLAY_STRATEGY_TYPE) {
|
|
36
36
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
37
37
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
38
38
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
39
39
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
40
|
-
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
40
|
+
})(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
|
|
41
41
|
|
|
42
42
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
43
43
|
|
|
@@ -378,13 +378,13 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
378
378
|
|
|
379
379
|
function getStrokeLength(itemSpaceHeight, type) {
|
|
380
380
|
switch (type) {
|
|
381
|
-
case DISPLAY_STRATEGY_TYPE.SMALL:
|
|
381
|
+
case exports.DISPLAY_STRATEGY_TYPE.SMALL:
|
|
382
382
|
return Math.ceil(-27.78 * itemSpaceHeight + 85);
|
|
383
|
-
case DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
383
|
+
case exports.DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
384
384
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
385
|
-
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
385
|
+
case exports.DISPLAY_STRATEGY_TYPE.LARGE:
|
|
386
386
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
387
|
-
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
387
|
+
case exports.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
388
388
|
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
389
389
|
}
|
|
390
390
|
}
|
|
@@ -560,7 +560,7 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
560
560
|
app: undefined,
|
|
561
561
|
hooks: new five.Subscribe(),
|
|
562
562
|
modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
|
|
563
|
-
displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : DISPLAY_STRATEGY_TYPE.SMALL,
|
|
563
|
+
displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.DISPLAY_STRATEGY_TYPE.SMALL,
|
|
564
564
|
};
|
|
565
565
|
pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
|
|
566
566
|
pluginState.container.style.cssText = `
|
|
@@ -664,5 +664,11 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
+
const modelItemLabelPluginServerParams = {
|
|
668
|
+
name: 'ModelItemLabelPlugin',
|
|
669
|
+
version: 0,
|
|
670
|
+
};
|
|
671
|
+
|
|
667
672
|
exports.ModelItemLabelPlugin = ModelItemLabelPlugin;
|
|
668
673
|
exports["default"] = ModelItemLabelPlugin;
|
|
674
|
+
exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import type { ModelTVVideoPluginExportType, ModelTVVideoPluginParameterType } from "./typings";
|
|
3
|
+
export declare const ModelTVVideoPlugin: FivePlugin<ModelTVVideoPluginParameterType, ModelTVVideoPluginExportType>;
|
|
4
|
+
export default ModelTVVideoPlugin;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare const ModelTVVideoPlugin: FivePlugin<ModelTVVideoPluginParameterType, ModelTVVideoPluginExportType>;
|
|
1
|
+
import ModelTVVideoPlugin from './Plugin';
|
|
2
|
+
export { ModelTVVideoPlugin };
|
|
4
3
|
export default ModelTVVideoPlugin;
|
|
4
|
+
export type { ModelTVVideoPluginParameterType, ModelTVVideoPluginData, Point, ModelTVVideoPluginExportType } from './typings';
|
|
5
|
+
export { DIRECTION } from './typings';
|
|
@@ -24,13 +24,13 @@ function _interopNamespace(e) {
|
|
|
24
24
|
|
|
25
25
|
var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
exports.DIRECTION = void 0;
|
|
28
28
|
(function (DIRECTION) {
|
|
29
29
|
DIRECTION["TOP_LEFT"] = "topLeft";
|
|
30
30
|
DIRECTION["TOP_RIGHT"] = "topRight";
|
|
31
31
|
DIRECTION["BOTTOM_LEFT"] = "bottomLeft";
|
|
32
32
|
DIRECTION["BOTTOM_RIGHT"] = "bottomRight";
|
|
33
|
-
})(DIRECTION || (DIRECTION = {}));
|
|
33
|
+
})(exports.DIRECTION || (exports.DIRECTION = {}));
|
|
34
34
|
|
|
35
35
|
function parseModelTVVideoPoints(points) {
|
|
36
36
|
if (points.length === 0)
|
|
@@ -39,7 +39,7 @@ function parseModelTVVideoPoints(points) {
|
|
|
39
39
|
return points;
|
|
40
40
|
let newPoints = [];
|
|
41
41
|
points.map(point => {
|
|
42
|
-
const newPoint = [point[DIRECTION.TOP_LEFT], point[DIRECTION.BOTTOM_LEFT], point[DIRECTION.BOTTOM_RIGHT], point[DIRECTION.TOP_RIGHT]];
|
|
42
|
+
const newPoint = [point[exports.DIRECTION.TOP_LEFT], point[exports.DIRECTION.BOTTOM_LEFT], point[exports.DIRECTION.BOTTOM_RIGHT], point[exports.DIRECTION.TOP_RIGHT]];
|
|
43
43
|
newPoints.push(newPoint);
|
|
44
44
|
});
|
|
45
45
|
return newPoints;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
export interface ModelViewPluginExportType {
|
|
3
|
+
appendTo(element: HTMLElement, size?: {
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
}): void;
|
|
7
|
+
refresh(size?: {
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
}): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Five 模型插件
|
|
14
|
+
* @template ExportType 导出方法
|
|
15
|
+
*/
|
|
16
|
+
export declare const ModelViewPlugin: FivePlugin<void, ModelViewPluginExportType>;
|
|
17
|
+
export default ModelViewPlugin;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
appendTo(element: HTMLElement, size?: {
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
}): void;
|
|
7
|
-
refresh(size?: {
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
}): void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Five 模型插件
|
|
14
|
-
* @template ExportType 导出方法
|
|
15
|
-
*/
|
|
16
|
-
export declare const ModelViewPlugin: FivePlugin<void, ModelViewPluginExportType>;
|
|
1
|
+
import ModelViewPlugin from './Plugin';
|
|
2
|
+
export { ModelViewPlugin };
|
|
17
3
|
export default ModelViewPlugin;
|
|
4
|
+
export type { ModelViewPluginExportType } from './Plugin';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Five, FivePlugin } from '@realsee/five';
|
|
2
|
+
import type { FloorplanServerRoomItem } from '../floorplan/typings/floorplanServerData';
|
|
3
|
+
export interface PanoCompassPluginParameterType {
|
|
4
|
+
compassImageUrl?: string;
|
|
5
|
+
entryDoorImageUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PanoCompassPluginData {
|
|
8
|
+
north_rad: null | number;
|
|
9
|
+
entrance: null | undefined | {
|
|
10
|
+
position: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
z: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
room_observers: undefined | {
|
|
17
|
+
index: number;
|
|
18
|
+
floor_index: number;
|
|
19
|
+
room: FloorplanServerRoomItem;
|
|
20
|
+
}[];
|
|
21
|
+
}
|
|
22
|
+
export declare type PanoCompassPluginExportType = PanoCompassController;
|
|
23
|
+
export declare const PanoCompassPlugin: FivePlugin<PanoCompassPluginParameterType | undefined, PanoCompassController>;
|
|
24
|
+
export default PanoCompassPlugin;
|
|
25
|
+
declare class PanoCompassController {
|
|
26
|
+
five: Five;
|
|
27
|
+
data?: PanoCompassPluginData;
|
|
28
|
+
config?: PanoCompassPluginParameterType;
|
|
29
|
+
private group;
|
|
30
|
+
private modelLoaded;
|
|
31
|
+
private roomInfoInstance?;
|
|
32
|
+
private roomInfoWrapperInstance?;
|
|
33
|
+
private compassMeshTween?;
|
|
34
|
+
private compassMesh?;
|
|
35
|
+
private entryDoorMesh?;
|
|
36
|
+
constructor(five: Five, config?: PanoCompassPluginParameterType);
|
|
37
|
+
load(data: PanoCompassPluginData): void;
|
|
38
|
+
dispose: () => void;
|
|
39
|
+
private onFiveFistPanoLoaded;
|
|
40
|
+
private init;
|
|
41
|
+
private loadCompassMesh;
|
|
42
|
+
private loadEntryDoorMesh;
|
|
43
|
+
private loadRoomInfo;
|
|
44
|
+
private onFivePanoWillArrive;
|
|
45
|
+
private onFivePanoArrived;
|
|
46
|
+
private onFiveCameraDirectionUpdate;
|
|
47
|
+
}
|
|
@@ -1,51 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
entryDoorImageUrl?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface PanoCompassPluginData {
|
|
8
|
-
north_rad: null | number;
|
|
9
|
-
entrance: null | undefined | {
|
|
10
|
-
position: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
z: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
room_observers: undefined | {
|
|
17
|
-
index: number;
|
|
18
|
-
floor_index: number;
|
|
19
|
-
room: FloorplanServerRoomItem;
|
|
20
|
-
}[];
|
|
21
|
-
}
|
|
22
|
-
export declare type PanoCompassPluginExportType = PanoCompassController;
|
|
1
|
+
import PanoCompassPlugin from './Plugin';
|
|
2
|
+
export { PanoCompassPlugin };
|
|
3
|
+
export default PanoCompassPlugin;
|
|
4
|
+
export type { PanoCompassPluginParameterType, PanoCompassPluginData, PanoCompassPluginExportType } from './Plugin';
|
|
23
5
|
export declare const panoCompassPluginServerParams: {
|
|
24
6
|
name: string;
|
|
25
7
|
version: number;
|
|
26
8
|
};
|
|
27
|
-
export declare const PanoCompassPlugin: FivePlugin<PanoCompassPluginParameterType | undefined, PanoCompassController>;
|
|
28
|
-
export default PanoCompassPlugin;
|
|
29
|
-
declare class PanoCompassController {
|
|
30
|
-
five: Five;
|
|
31
|
-
data?: PanoCompassPluginData;
|
|
32
|
-
config?: PanoCompassPluginParameterType;
|
|
33
|
-
private group;
|
|
34
|
-
private modelLoaded;
|
|
35
|
-
private roomInfoInstance?;
|
|
36
|
-
private roomInfoWrapperInstance?;
|
|
37
|
-
private compassMeshTween?;
|
|
38
|
-
private compassMesh?;
|
|
39
|
-
private entryDoorMesh?;
|
|
40
|
-
constructor(five: Five, config?: PanoCompassPluginParameterType);
|
|
41
|
-
load(data: PanoCompassPluginData): void;
|
|
42
|
-
dispose: () => void;
|
|
43
|
-
private onFiveFistPanoLoaded;
|
|
44
|
-
private init;
|
|
45
|
-
private loadCompassMesh;
|
|
46
|
-
private loadEntryDoorMesh;
|
|
47
|
-
private loadRoomInfo;
|
|
48
|
-
private onFivePanoWillArrive;
|
|
49
|
-
private onFivePanoArrived;
|
|
50
|
-
private onFiveCameraDirectionUpdate;
|
|
51
|
-
}
|
|
@@ -382,10 +382,6 @@ function tweenProgress(duration, easing = TWEEN__default["default"].Easing.Linea
|
|
|
382
382
|
return tween;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
const panoCompassPluginServerParams = {
|
|
386
|
-
name: 'PanoCompassPlugin',
|
|
387
|
-
version: 0,
|
|
388
|
-
};
|
|
389
385
|
const PanoCompassPlugin = function (five, config) {
|
|
390
386
|
return new PanoCompassController(five, config);
|
|
391
387
|
};
|
|
@@ -630,6 +626,11 @@ class PanoCompassController {
|
|
|
630
626
|
}
|
|
631
627
|
}
|
|
632
628
|
|
|
629
|
+
const panoCompassPluginServerParams = {
|
|
630
|
+
name: 'PanoCompassPlugin',
|
|
631
|
+
version: 0,
|
|
632
|
+
};
|
|
633
|
+
|
|
633
634
|
exports.PanoCompassPlugin = PanoCompassPlugin;
|
|
634
635
|
exports["default"] = PanoCompassPlugin;
|
|
635
636
|
exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import MeasureController, { MeasurePluginParameter } from './Controller';
|
|
3
|
-
declare const PanoMeasurePlugin: FivePlugin<MeasurePluginParameter, PluginReturns>;
|
|
3
|
+
export declare const PanoMeasurePlugin: FivePlugin<MeasurePluginParameter, PluginReturns>;
|
|
4
4
|
export default PanoMeasurePlugin;
|
|
5
5
|
export declare type PluginReturns = MeasureController;
|
|
6
6
|
export type { PluginEvent } from './typings/event.type';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var three = require('three');
|
|
4
6
|
var line = require('@realsee/five/line');
|
|
5
7
|
var five = require('@realsee/five');
|
|
@@ -5528,4 +5530,5 @@ const PanoMeasurePlugin = function PanoMeasurePlugin(five, params) {
|
|
|
5528
5530
|
return new MeasureController(five, params);
|
|
5529
5531
|
};
|
|
5530
5532
|
|
|
5531
|
-
|
|
5533
|
+
exports.PanoMeasurePlugin = PanoMeasurePlugin;
|
|
5534
|
+
exports["default"] = PanoMeasurePlugin;
|