@realsee/dnalogel 2.0.0-alpha.27 → 2.0.0-alpha.28-beta
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 +3 -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 +19 -19
- package/dist/_index.d.ts +30 -0
- package/dist/index.d.ts +16 -29
- package/dist/index.es.js +34 -20
- package/dist/index.js +58 -41
- package/dist/index.umd.js +58 -41
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +6 -6
- 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 +1 -1
- package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +17 -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 +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/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 +8 -8
- package/docs/modules.html +20 -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 -414
- package/libs/_index.d.ts +30 -0
- package/libs/_index.js +18 -0
- package/libs/index.d.ts +16 -29
- package/libs/index.js +25 -16
- package/package.json +5 -4
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface PanoRulerPluginOptions {
|
|
4
|
-
distanceText?: (distance: number) => string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
interface PanoRulerPluginPluginState {
|
|
8
|
-
enable: boolean;
|
|
9
|
-
loaded: boolean;
|
|
10
|
-
options: PanoRulerPluginOptions;
|
|
11
|
-
}
|
|
12
|
-
export interface PanoRulerPluginParameterType {
|
|
13
|
-
roomInfo?: RoomInfo;
|
|
14
|
-
roomRules?: RoomRules;
|
|
15
|
-
options?: PanoRulerPluginOptions;
|
|
16
|
-
}
|
|
17
|
-
export interface PanoRulerPluginExportType {
|
|
18
|
-
enable: () => void;
|
|
19
|
-
disable: () => void;
|
|
20
|
-
load: (roomInfo?: RoomInfo, roomRules?: RoomRules, options?: PanoRulerPluginOptions) => Promise<boolean>;
|
|
21
|
-
state: PanoRulerPluginPluginState;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* 全景标尺插件
|
|
25
|
-
*/
|
|
26
|
-
export declare const PanoRulerPlugin: FivePlugin<PanoRulerPluginParameterType, PanoRulerPluginExportType>;
|
|
27
|
-
export declare const panoRulerPluginServerParams: {
|
|
28
|
-
name: string;
|
|
29
|
-
version: number;
|
|
30
|
-
};
|
|
1
|
+
import PanoRulerPlugin from './Plugin';
|
|
2
|
+
export { PanoRulerPlugin };
|
|
31
3
|
export default PanoRulerPlugin;
|
|
4
|
+
export type { Room, Rooms, RoomInfo, RoomRules } from './typings';
|
|
5
|
+
export type { PanoRulerPluginOptions, PanoRulerPluginParameterType, PanoRulerPluginExportType } from './Plugin';
|
|
@@ -604,11 +604,6 @@ const PanoRulerPlugin = (five$1, params) => {
|
|
|
604
604
|
state,
|
|
605
605
|
};
|
|
606
606
|
};
|
|
607
|
-
const panoRulerPluginServerParams = {
|
|
608
|
-
name: 'PanoRulerPlugin',
|
|
609
|
-
version: 0,
|
|
610
|
-
};
|
|
611
607
|
|
|
612
608
|
exports.PanoRulerPlugin = PanoRulerPlugin;
|
|
613
609
|
exports["default"] = PanoRulerPlugin;
|
|
614
|
-
exports.panoRulerPluginServerParams = panoRulerPluginServerParams;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import type { PanoSpatialTagPluginId, PanoSpatialTagPluginDataElement, PanoSpatialTagPluginContentReplacement, PanoSpatialTagPluginContentEvent } from './typings';
|
|
3
|
+
export interface PanoSpatialTagPluginData {
|
|
4
|
+
folded?: boolean;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
points: Array<PanoSpatialTagPluginDataElement>;
|
|
7
|
+
template: string;
|
|
8
|
+
events?: PanoSpatialTagPluginContentEvent;
|
|
9
|
+
render?: (template: string, replacement: PanoSpatialTagPluginContentReplacement) => string;
|
|
10
|
+
}
|
|
11
|
+
export interface PanoSpatialTagPluginParameterType {
|
|
12
|
+
container?: Element;
|
|
13
|
+
wait?: number;
|
|
14
|
+
maxNumberOnScreen?: number;
|
|
15
|
+
minRad?: number;
|
|
16
|
+
nearTolerance?: number;
|
|
17
|
+
upsideHeight?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface PanoSpatialTagPluginExportType {
|
|
20
|
+
load: (data: PanoSpatialTagPluginData) => void;
|
|
21
|
+
unfoldAll: () => void;
|
|
22
|
+
foldAll: () => void;
|
|
23
|
+
unfold: (id: PanoSpatialTagPluginId) => void;
|
|
24
|
+
fold: (id: PanoSpatialTagPluginId) => void;
|
|
25
|
+
enable: () => void;
|
|
26
|
+
disable: () => void;
|
|
27
|
+
dispose: () => void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 空间游走标签插件
|
|
31
|
+
*/
|
|
32
|
+
export declare const PanoSpatialTagPlugin: FivePlugin<PanoSpatialTagPluginParameterType, PanoSpatialTagPluginExportType>;
|
|
33
|
+
export default PanoSpatialTagPlugin;
|
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface PanoSpatialTagPluginData {
|
|
4
|
-
folded?: boolean;
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
points: Array<PanoSpatialTagPluginDataElement>;
|
|
7
|
-
template: string;
|
|
8
|
-
events?: PanoSpatialTagPluginContentEvent;
|
|
9
|
-
render?: (template: string, replacement: PanoSpatialTagPluginContentReplacement) => string;
|
|
10
|
-
}
|
|
11
|
-
export interface PanoSpatialTagPluginParameterType {
|
|
12
|
-
container?: Element;
|
|
13
|
-
wait?: number;
|
|
14
|
-
maxNumberOnScreen?: number;
|
|
15
|
-
minRad?: number;
|
|
16
|
-
nearTolerance?: number;
|
|
17
|
-
upsideHeight?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface PanoSpatialTagPluginExportType {
|
|
20
|
-
load: (data: PanoSpatialTagPluginData) => void;
|
|
21
|
-
unfoldAll: () => void;
|
|
22
|
-
foldAll: () => void;
|
|
23
|
-
unfold: (id: PanoSpatialTagPluginId) => void;
|
|
24
|
-
fold: (id: PanoSpatialTagPluginId) => void;
|
|
25
|
-
enable: () => void;
|
|
26
|
-
disable: () => void;
|
|
27
|
-
dispose: () => void;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 空间游走标签插件
|
|
31
|
-
*/
|
|
32
|
-
export declare const PanoSpatialTagPlugin: FivePlugin<PanoSpatialTagPluginParameterType, PanoSpatialTagPluginExportType>;
|
|
1
|
+
import PanoSpatialTagPlugin from './Plugin';
|
|
2
|
+
export { PanoSpatialTagPlugin };
|
|
33
3
|
export default PanoSpatialTagPlugin;
|
|
4
|
+
export * from './typings';
|
|
5
|
+
export type { PanoSpatialTagPluginExportType, PanoSpatialTagPluginParameterType, PanoSpatialTagPluginData } from './Plugin';
|
|
@@ -1154,10 +1154,10 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
1154
1154
|
return newTags;
|
|
1155
1155
|
};
|
|
1156
1156
|
/** 标签数据加载
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1157
|
+
* @param data.points {Array} 标签数据
|
|
1158
|
+
* @param data.enabled {Boolean} 插件是否启用
|
|
1159
|
+
* @param data.folded {Boolean} 标签是否默认展开
|
|
1160
|
+
*/
|
|
1161
1161
|
const load = (data) => {
|
|
1162
1162
|
state.points = data.points.map(point => {
|
|
1163
1163
|
var _a, _b;
|
|
@@ -1181,16 +1181,16 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
1181
1181
|
state.folded = data.folded;
|
|
1182
1182
|
};
|
|
1183
1183
|
/** 标签启用
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
* 启用插件并重新计算展示标签
|
|
1185
|
+
*/
|
|
1186
1186
|
const enable = () => {
|
|
1187
1187
|
state.enabled = true;
|
|
1188
1188
|
updateTags();
|
|
1189
1189
|
};
|
|
1190
1190
|
/** 插件禁用
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1191
|
+
* 1. 禁用同时会清除已展示的标签
|
|
1192
|
+
* 2. 再次启用时会重新计算展示标签
|
|
1193
|
+
*/
|
|
1194
1194
|
const disable = () => {
|
|
1195
1195
|
state.enabled = false;
|
|
1196
1196
|
origins.$set({ origins: [] });
|
|
@@ -1202,9 +1202,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
1202
1202
|
state.tags = [];
|
|
1203
1203
|
};
|
|
1204
1204
|
/** 展开所有标签
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1205
|
+
* 1. 展开所有收起的标签
|
|
1206
|
+
* 2. 新标签会默认展开
|
|
1207
|
+
*/
|
|
1208
1208
|
const unfoldAll = () => {
|
|
1209
1209
|
state.folded = false;
|
|
1210
1210
|
state.tags.forEach(tag => {
|
|
@@ -1212,9 +1212,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
1212
1212
|
});
|
|
1213
1213
|
};
|
|
1214
1214
|
/** 收起所有标签
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1215
|
+
* 1. 收起所有展开的标签
|
|
1216
|
+
* 2. 新标签会默认收起
|
|
1217
|
+
*/
|
|
1218
1218
|
const foldAll = () => {
|
|
1219
1219
|
state.folded = true;
|
|
1220
1220
|
state.tags.forEach(tag => {
|
|
@@ -1222,8 +1222,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
1222
1222
|
});
|
|
1223
1223
|
};
|
|
1224
1224
|
/** 展开单个标签
|
|
1225
|
-
|
|
1226
|
-
|
|
1225
|
+
* @param id {Number | String} 标签ID
|
|
1226
|
+
*/
|
|
1227
1227
|
const unfold = (id) => {
|
|
1228
1228
|
state.tags.forEach(tag => {
|
|
1229
1229
|
if (tag.id === id)
|
|
@@ -1231,8 +1231,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
1231
1231
|
});
|
|
1232
1232
|
};
|
|
1233
1233
|
/** 收起单个标签
|
|
1234
|
-
|
|
1235
|
-
|
|
1234
|
+
* @param id {Number | String} 标签ID
|
|
1235
|
+
*/
|
|
1236
1236
|
const fold = (id) => {
|
|
1237
1237
|
state.tags.forEach(tag => {
|
|
1238
1238
|
if (tag.id === id)
|
package/dist/_index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export { default as ModelViewPlugin } from './ModelViewPlugin';
|
|
2
|
+
export { default as CSS3DRenderPlugin } from './CSS3DRenderPlugin';
|
|
3
|
+
export type { PanoCursorRaycasterPluginExportType } from './PanoCursorRaycasterPlugin';
|
|
4
|
+
export { default as PanoCursorRaycasterPlugin } from './PanoCursorRaycasterPlugin';
|
|
5
|
+
export type { ModelRoomLabelController, ModelRoomLabelPluginData, RoomLabel, ModelRoomLabelPluginReturnType, ModelRoomLabelPluginParameters, } from './ModelRoomLabelPlugin';
|
|
6
|
+
export { default as ModelRoomLabelPlugin } from './ModelRoomLabelPlugin';
|
|
7
|
+
export * from './floorplan/constant';
|
|
8
|
+
export type { TopviewFloorplanPluginReturnType, TopviewFloorplanPluginParameterType, } from './floorplan/TopviewFloorplanPlugin';
|
|
9
|
+
export { default as TopviewFloorplanPlugin } from './floorplan/TopviewFloorplanPlugin';
|
|
10
|
+
export type { PanoFloorplanRadarPluginReturnType, PanoFloorplanRadarPluginParameterType, } from './floorplan/PanoFloorplanRadarPlugin';
|
|
11
|
+
export { default as PanoFloorplanRadarPlugin } from './floorplan/PanoFloorplanRadarPlugin';
|
|
12
|
+
export type { ModelFloorplanParameterType, ModelFloorplanPluginReturnType, ModelFloorplanErrorType, ModelFloorplanPluginsConfigs, ModelFloorplanEventHandlers, ModelFloorplanViewEvent, } from './floorplan/ModelFloorplanPlugin';
|
|
13
|
+
export { default as ModelFloorplanPlugin } from './floorplan/ModelFloorplanPlugin';
|
|
14
|
+
export type { ModelChassisCompassPluginParameterType, ModelChassisCompassPluginData, ModelChassisCompassPluginExportType, } from './ModelChassisCompassPlugin';
|
|
15
|
+
export { default as ModelChassisCompassPlugin } from './ModelChassisCompassPlugin';
|
|
16
|
+
export type { ModelEntryDoorGuidePluginParameterType, ModelEntryDoorGuidePluginData, ModelEntryDoorGuidePluginExportType, } from './ModelEntryDoorGuidePlugin';
|
|
17
|
+
export { default as ModelEntryDoorGuidePlugin } from './ModelEntryDoorGuidePlugin';
|
|
18
|
+
export { default as CameraMovementPlugin } from './CameraMovementPlugin';
|
|
19
|
+
export type { PanoRulerPluginParameterType, PanoRulerPluginExportType, PanoRulerPluginOptions, } from './PanoRulerPlugin';
|
|
20
|
+
export { default as PanoRulerPlugin } from './PanoRulerPlugin';
|
|
21
|
+
export type { PanoCompassPluginParameterType, PanoCompassPluginExportType, PanoCompassPluginData, } from './PanoCompassPlugin';
|
|
22
|
+
export { default as PanoCompassPlugin } from './PanoCompassPlugin';
|
|
23
|
+
export type { PluginReturns, PluginEvent, LineJson, PointJson } from './PanoMeasurePlugin';
|
|
24
|
+
export { default as PanoMeasurePlugin } from './PanoMeasurePlugin';
|
|
25
|
+
export type { PanoSpatialTagPluginParameterType, PanoSpatialTagPluginData, PanoSpatialTagPluginExportType } from './PanoSpatialTagPlugin';
|
|
26
|
+
export { default as PanoSpatialTagPlugin } from './PanoSpatialTagPlugin';
|
|
27
|
+
export type { ModelItemLabelPluginData, ModelItemLabelPluginExportReturnsType, ModelItemLabelPluginParametersType } from './ModelItemLabelPlugin/typings';
|
|
28
|
+
export { default as ModelItemLabelPlugin } from './ModelItemLabelPlugin';
|
|
29
|
+
export type { ModelTVVideoPluginData, ModelTVVideoPluginParameterType, ModelTVVideoPluginExportType } from './ModelTVVideoPlugin/typings';
|
|
30
|
+
export { default as ModelTVVideoPlugin } from './ModelTVVideoPlugin';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,17 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export type { ModelRoomLabelController, ModelRoomLabelPluginData, RoomLabel, ModelRoomLabelPluginReturnType, ModelRoomLabelPluginParameters, } from './ModelRoomLabelPlugin';
|
|
6
|
-
export { default as ModelRoomLabelPlugin } from './ModelRoomLabelPlugin';
|
|
1
|
+
export * from './ModelViewPlugin';
|
|
2
|
+
export * from './CSS3DRenderPlugin';
|
|
3
|
+
export * from './PanoCursorRaycasterPlugin';
|
|
4
|
+
export * from './ModelRoomLabelPlugin';
|
|
7
5
|
export * from './floorplan/constant';
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export { default as PanoRulerPlugin } from './PanoRulerPlugin';
|
|
21
|
-
export type { PanoCompassPluginParameterType, PanoCompassPluginExportType, PanoCompassPluginData, } from './PanoCompassPlugin';
|
|
22
|
-
export { default as PanoCompassPlugin } from './PanoCompassPlugin';
|
|
23
|
-
export type { PluginReturns, PluginEvent, LineJson, PointJson } from './PanoMeasurePlugin';
|
|
24
|
-
export { default as PanoMeasurePlugin } from './PanoMeasurePlugin';
|
|
25
|
-
export type { PanoSpatialTagPluginParameterType, PanoSpatialTagPluginData, PanoSpatialTagPluginExportType } from './PanoSpatialTagPlugin';
|
|
26
|
-
export { default as PanoSpatialTagPlugin } from './PanoSpatialTagPlugin';
|
|
27
|
-
export type { ModelItemLabelPluginData, ModelItemLabelPluginExportReturnsType, ModelItemLabelPluginParametersType } from './ModelItemLabelPlugin/typings';
|
|
28
|
-
export { default as ModelItemLabelPlugin } from './ModelItemLabelPlugin';
|
|
29
|
-
export type { ModelTVVideoPluginData, ModelTVVideoPluginParameterType, ModelTVVideoPluginExportType } from './ModelTVVideoPlugin/typings';
|
|
30
|
-
export { default as ModelTVVideoPlugin } from './ModelTVVideoPlugin';
|
|
6
|
+
export * from './floorplan/TopviewFloorplanPlugin';
|
|
7
|
+
export * from './floorplan/PanoFloorplanRadarPlugin';
|
|
8
|
+
export * from './floorplan/ModelFloorplanPlugin';
|
|
9
|
+
export * from './ModelChassisCompassPlugin';
|
|
10
|
+
export * from './ModelEntryDoorGuidePlugin';
|
|
11
|
+
export * from './CameraMovementPlugin';
|
|
12
|
+
export * from './PanoRulerPlugin';
|
|
13
|
+
export * from './PanoCompassPlugin';
|
|
14
|
+
export * from './PanoMeasurePlugin';
|
|
15
|
+
export * from './PanoSpatialTagPlugin';
|
|
16
|
+
export * from './ModelItemLabelPlugin';
|
|
17
|
+
export * from './ModelTVVideoPlugin';
|
package/dist/index.es.js
CHANGED
|
@@ -983,6 +983,10 @@ class ModelRoomLabelController {
|
|
|
983
983
|
const ModelRoomLabelPlugin = (five) => {
|
|
984
984
|
return new ModelRoomLabelController(five);
|
|
985
985
|
};
|
|
986
|
+
const modelRoomLabelPluginServerParams = {
|
|
987
|
+
name: 'ModelRoomLabelPlugin',
|
|
988
|
+
version: 0,
|
|
989
|
+
};
|
|
986
990
|
|
|
987
991
|
var FLOOR_PLAN_ATTACHED_TO;
|
|
988
992
|
(function (FLOOR_PLAN_ATTACHED_TO) {
|
|
@@ -7805,6 +7809,11 @@ class PanoCompassController {
|
|
|
7805
7809
|
}
|
|
7806
7810
|
}
|
|
7807
7811
|
|
|
7812
|
+
const panoCompassPluginServerParams = {
|
|
7813
|
+
name: 'PanoCompassPlugin',
|
|
7814
|
+
version: 0,
|
|
7815
|
+
};
|
|
7816
|
+
|
|
7808
7817
|
/** 交换数组元素 */
|
|
7809
7818
|
function exchange(array, index1, index2) {
|
|
7810
7819
|
const value = array[index1];
|
|
@@ -14137,10 +14146,10 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14137
14146
|
return newTags;
|
|
14138
14147
|
};
|
|
14139
14148
|
/** 标签数据加载
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14149
|
+
* @param data.points {Array} 标签数据
|
|
14150
|
+
* @param data.enabled {Boolean} 插件是否启用
|
|
14151
|
+
* @param data.folded {Boolean} 标签是否默认展开
|
|
14152
|
+
*/
|
|
14144
14153
|
const load = (data) => {
|
|
14145
14154
|
state.points = data.points.map(point => {
|
|
14146
14155
|
var _a, _b;
|
|
@@ -14164,16 +14173,16 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14164
14173
|
state.folded = data.folded;
|
|
14165
14174
|
};
|
|
14166
14175
|
/** 标签启用
|
|
14167
|
-
|
|
14168
|
-
|
|
14176
|
+
* 启用插件并重新计算展示标签
|
|
14177
|
+
*/
|
|
14169
14178
|
const enable = () => {
|
|
14170
14179
|
state.enabled = true;
|
|
14171
14180
|
updateTags();
|
|
14172
14181
|
};
|
|
14173
14182
|
/** 插件禁用
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
|
|
14183
|
+
* 1. 禁用同时会清除已展示的标签
|
|
14184
|
+
* 2. 再次启用时会重新计算展示标签
|
|
14185
|
+
*/
|
|
14177
14186
|
const disable = () => {
|
|
14178
14187
|
state.enabled = false;
|
|
14179
14188
|
origins.$set({ origins: [] });
|
|
@@ -14185,9 +14194,9 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14185
14194
|
state.tags = [];
|
|
14186
14195
|
};
|
|
14187
14196
|
/** 展开所有标签
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14197
|
+
* 1. 展开所有收起的标签
|
|
14198
|
+
* 2. 新标签会默认展开
|
|
14199
|
+
*/
|
|
14191
14200
|
const unfoldAll = () => {
|
|
14192
14201
|
state.folded = false;
|
|
14193
14202
|
state.tags.forEach(tag => {
|
|
@@ -14195,9 +14204,9 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14195
14204
|
});
|
|
14196
14205
|
};
|
|
14197
14206
|
/** 收起所有标签
|
|
14198
|
-
|
|
14199
|
-
|
|
14200
|
-
|
|
14207
|
+
* 1. 收起所有展开的标签
|
|
14208
|
+
* 2. 新标签会默认收起
|
|
14209
|
+
*/
|
|
14201
14210
|
const foldAll = () => {
|
|
14202
14211
|
state.folded = true;
|
|
14203
14212
|
state.tags.forEach(tag => {
|
|
@@ -14205,8 +14214,8 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14205
14214
|
});
|
|
14206
14215
|
};
|
|
14207
14216
|
/** 展开单个标签
|
|
14208
|
-
|
|
14209
|
-
|
|
14217
|
+
* @param id {Number | String} 标签ID
|
|
14218
|
+
*/
|
|
14210
14219
|
const unfold = (id) => {
|
|
14211
14220
|
state.tags.forEach(tag => {
|
|
14212
14221
|
if (tag.id === id)
|
|
@@ -14214,8 +14223,8 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14214
14223
|
});
|
|
14215
14224
|
};
|
|
14216
14225
|
/** 收起单个标签
|
|
14217
|
-
|
|
14218
|
-
|
|
14226
|
+
* @param id {Number | String} 标签ID
|
|
14227
|
+
*/
|
|
14219
14228
|
const fold = (id) => {
|
|
14220
14229
|
state.tags.forEach(tag => {
|
|
14221
14230
|
if (tag.id === id)
|
|
@@ -14908,6 +14917,11 @@ const ModelItemLabelPlugin = (five, params) => {
|
|
|
14908
14917
|
};
|
|
14909
14918
|
};
|
|
14910
14919
|
|
|
14920
|
+
const modelItemLabelPluginServerParams = {
|
|
14921
|
+
name: 'ModelItemLabelPlugin',
|
|
14922
|
+
version: 0,
|
|
14923
|
+
};
|
|
14924
|
+
|
|
14911
14925
|
var DIRECTION;
|
|
14912
14926
|
(function (DIRECTION) {
|
|
14913
14927
|
DIRECTION["TOP_LEFT"] = "topLeft";
|
|
@@ -15181,4 +15195,4 @@ const ModelTVVideoPlugin = (five, { videoElement }) => {
|
|
|
15181
15195
|
return { enable, disable, load, dispose };
|
|
15182
15196
|
};
|
|
15183
15197
|
|
|
15184
|
-
export { CSS3DRenderPlugin, CameraMovementPlugin, FLOOR_PLAN_ATTACHED_TO, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoSpatialTagPlugin, TopviewFloorplanPlugin };
|
|
15198
|
+
export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, FLOOR_PLAN_ATTACHED_TO, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoSpatialTagPlugin, Rotation, TopviewFloorplanPlugin, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams, panoCompassPluginServerParams };
|
package/dist/index.js
CHANGED
|
@@ -1010,6 +1010,10 @@ class ModelRoomLabelController {
|
|
|
1010
1010
|
const ModelRoomLabelPlugin = (five) => {
|
|
1011
1011
|
return new ModelRoomLabelController(five);
|
|
1012
1012
|
};
|
|
1013
|
+
const modelRoomLabelPluginServerParams = {
|
|
1014
|
+
name: 'ModelRoomLabelPlugin',
|
|
1015
|
+
version: 0,
|
|
1016
|
+
};
|
|
1013
1017
|
|
|
1014
1018
|
exports.FLOOR_PLAN_ATTACHED_TO = void 0;
|
|
1015
1019
|
(function (FLOOR_PLAN_ATTACHED_TO) {
|
|
@@ -6698,20 +6702,20 @@ function tweenProgress$1(duration, easing) {
|
|
|
6698
6702
|
/**
|
|
6699
6703
|
* 运镜效果
|
|
6700
6704
|
*/
|
|
6701
|
-
|
|
6705
|
+
exports.CameraMovementEffect = void 0;
|
|
6702
6706
|
(function (CameraMovementEffect) {
|
|
6703
6707
|
CameraMovementEffect["Move"] = "Move";
|
|
6704
6708
|
CameraMovementEffect["Rotate"] = "Rotate";
|
|
6705
|
-
})(CameraMovementEffect || (CameraMovementEffect = {}));
|
|
6709
|
+
})(exports.CameraMovementEffect || (exports.CameraMovementEffect = {}));
|
|
6706
6710
|
/**
|
|
6707
6711
|
* 旋转类型
|
|
6708
6712
|
*/
|
|
6709
|
-
|
|
6713
|
+
exports.Rotation = void 0;
|
|
6710
6714
|
(function (Rotation) {
|
|
6711
6715
|
Rotation["Clockwise"] = "Clockwise";
|
|
6712
6716
|
Rotation["Anticlockwise"] = "Anticlockwise";
|
|
6713
6717
|
Rotation["Loop"] = "Loop";
|
|
6714
|
-
})(Rotation || (Rotation = {}));
|
|
6718
|
+
})(exports.Rotation || (exports.Rotation = {}));
|
|
6715
6719
|
|
|
6716
6720
|
const PI_2 = Math.PI * 2;
|
|
6717
6721
|
/**
|
|
@@ -6742,18 +6746,18 @@ const getLongitudeParams = (from, to, rotation) => {
|
|
|
6742
6746
|
from = formatLongitude(from);
|
|
6743
6747
|
to = formatLongitude(to);
|
|
6744
6748
|
// 逆时针旋转,初始值必须是较大的值
|
|
6745
|
-
if (rotation === Rotation.Anticlockwise && from < to)
|
|
6749
|
+
if (rotation === exports.Rotation.Anticlockwise && from < to)
|
|
6746
6750
|
from += PI_2;
|
|
6747
6751
|
// 顺时针旋转,结束值必须是较大值
|
|
6748
|
-
if (rotation === Rotation.Clockwise && to < from)
|
|
6752
|
+
if (rotation === exports.Rotation.Clockwise && to < from)
|
|
6749
6753
|
to += PI_2;
|
|
6750
6754
|
// Loop 旋转,找锐角旋转
|
|
6751
6755
|
// 如果 to 比 from 大 180°,逆时针转
|
|
6752
6756
|
// 如果 from 比 to 大 180°,顺时针转
|
|
6753
|
-
if (rotation === Rotation.Loop && to - from > PI)
|
|
6754
|
-
return getLongitudeParams(from, to, Rotation.Anticlockwise);
|
|
6755
|
-
if (rotation === Rotation.Loop && from - to > PI)
|
|
6756
|
-
return getLongitudeParams(from, to, Rotation.Clockwise);
|
|
6757
|
+
if (rotation === exports.Rotation.Loop && to - from > PI)
|
|
6758
|
+
return getLongitudeParams(from, to, exports.Rotation.Anticlockwise);
|
|
6759
|
+
if (rotation === exports.Rotation.Loop && from - to > PI)
|
|
6760
|
+
return getLongitudeParams(from, to, exports.Rotation.Clockwise);
|
|
6757
6761
|
return { from, to };
|
|
6758
6762
|
};
|
|
6759
6763
|
/**
|
|
@@ -6803,7 +6807,7 @@ const CameraMovementPlugin = (five$1) => {
|
|
|
6803
6807
|
const fromLatitude = formatLatitude(currentFiveState.latitude);
|
|
6804
6808
|
const toLatitude = formatLatitude(args.latitude);
|
|
6805
6809
|
// longitude
|
|
6806
|
-
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || Rotation.Loop);
|
|
6810
|
+
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || exports.Rotation.Loop);
|
|
6807
6811
|
// fov
|
|
6808
6812
|
const fromFov = currentFiveState.fov;
|
|
6809
6813
|
const toFov = args.fov;
|
|
@@ -6861,7 +6865,7 @@ const CameraMovementPlugin = (five$1) => {
|
|
|
6861
6865
|
.onUpdate(onUpdate)
|
|
6862
6866
|
.onComplete(onComplete)
|
|
6863
6867
|
.onDestroy(onDestroy);
|
|
6864
|
-
if (args.rotation === Rotation.Loop) {
|
|
6868
|
+
if (args.rotation === exports.Rotation.Loop) {
|
|
6865
6869
|
tween.repeat(Infinity).yoyo(true);
|
|
6866
6870
|
}
|
|
6867
6871
|
/**
|
|
@@ -7832,6 +7836,11 @@ class PanoCompassController {
|
|
|
7832
7836
|
}
|
|
7833
7837
|
}
|
|
7834
7838
|
|
|
7839
|
+
const panoCompassPluginServerParams = {
|
|
7840
|
+
name: 'PanoCompassPlugin',
|
|
7841
|
+
version: 0,
|
|
7842
|
+
};
|
|
7843
|
+
|
|
7835
7844
|
/** 交换数组元素 */
|
|
7836
7845
|
function exchange(array, index1, index2) {
|
|
7837
7846
|
const value = array[index1];
|
|
@@ -14164,10 +14173,10 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14164
14173
|
return newTags;
|
|
14165
14174
|
};
|
|
14166
14175
|
/** 标签数据加载
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14176
|
+
* @param data.points {Array} 标签数据
|
|
14177
|
+
* @param data.enabled {Boolean} 插件是否启用
|
|
14178
|
+
* @param data.folded {Boolean} 标签是否默认展开
|
|
14179
|
+
*/
|
|
14171
14180
|
const load = (data) => {
|
|
14172
14181
|
state.points = data.points.map(point => {
|
|
14173
14182
|
var _a, _b;
|
|
@@ -14191,16 +14200,16 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14191
14200
|
state.folded = data.folded;
|
|
14192
14201
|
};
|
|
14193
14202
|
/** 标签启用
|
|
14194
|
-
|
|
14195
|
-
|
|
14203
|
+
* 启用插件并重新计算展示标签
|
|
14204
|
+
*/
|
|
14196
14205
|
const enable = () => {
|
|
14197
14206
|
state.enabled = true;
|
|
14198
14207
|
updateTags();
|
|
14199
14208
|
};
|
|
14200
14209
|
/** 插件禁用
|
|
14201
|
-
|
|
14202
|
-
|
|
14203
|
-
|
|
14210
|
+
* 1. 禁用同时会清除已展示的标签
|
|
14211
|
+
* 2. 再次启用时会重新计算展示标签
|
|
14212
|
+
*/
|
|
14204
14213
|
const disable = () => {
|
|
14205
14214
|
state.enabled = false;
|
|
14206
14215
|
origins.$set({ origins: [] });
|
|
@@ -14212,9 +14221,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14212
14221
|
state.tags = [];
|
|
14213
14222
|
};
|
|
14214
14223
|
/** 展开所有标签
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14224
|
+
* 1. 展开所有收起的标签
|
|
14225
|
+
* 2. 新标签会默认展开
|
|
14226
|
+
*/
|
|
14218
14227
|
const unfoldAll = () => {
|
|
14219
14228
|
state.folded = false;
|
|
14220
14229
|
state.tags.forEach(tag => {
|
|
@@ -14222,9 +14231,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14222
14231
|
});
|
|
14223
14232
|
};
|
|
14224
14233
|
/** 收起所有标签
|
|
14225
|
-
|
|
14226
|
-
|
|
14227
|
-
|
|
14234
|
+
* 1. 收起所有展开的标签
|
|
14235
|
+
* 2. 新标签会默认收起
|
|
14236
|
+
*/
|
|
14228
14237
|
const foldAll = () => {
|
|
14229
14238
|
state.folded = true;
|
|
14230
14239
|
state.tags.forEach(tag => {
|
|
@@ -14232,8 +14241,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14232
14241
|
});
|
|
14233
14242
|
};
|
|
14234
14243
|
/** 展开单个标签
|
|
14235
|
-
|
|
14236
|
-
|
|
14244
|
+
* @param id {Number | String} 标签ID
|
|
14245
|
+
*/
|
|
14237
14246
|
const unfold = (id) => {
|
|
14238
14247
|
state.tags.forEach(tag => {
|
|
14239
14248
|
if (tag.id === id)
|
|
@@ -14241,8 +14250,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14241
14250
|
});
|
|
14242
14251
|
};
|
|
14243
14252
|
/** 收起单个标签
|
|
14244
|
-
|
|
14245
|
-
|
|
14253
|
+
* @param id {Number | String} 标签ID
|
|
14254
|
+
*/
|
|
14246
14255
|
const fold = (id) => {
|
|
14247
14256
|
state.tags.forEach(tag => {
|
|
14248
14257
|
if (tag.id === id)
|
|
@@ -14302,13 +14311,13 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14302
14311
|
};
|
|
14303
14312
|
};
|
|
14304
14313
|
|
|
14305
|
-
|
|
14314
|
+
exports.DISPLAY_STRATEGY_TYPE = void 0;
|
|
14306
14315
|
(function (DISPLAY_STRATEGY_TYPE) {
|
|
14307
14316
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14308
14317
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14309
14318
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14310
14319
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14311
|
-
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14320
|
+
})(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
|
|
14312
14321
|
|
|
14313
14322
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
14314
14323
|
|
|
@@ -14649,13 +14658,13 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14649
14658
|
|
|
14650
14659
|
function getStrokeLength(itemSpaceHeight, type) {
|
|
14651
14660
|
switch (type) {
|
|
14652
|
-
case DISPLAY_STRATEGY_TYPE.SMALL:
|
|
14661
|
+
case exports.DISPLAY_STRATEGY_TYPE.SMALL:
|
|
14653
14662
|
return Math.ceil(-27.78 * itemSpaceHeight + 85);
|
|
14654
|
-
case DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
14663
|
+
case exports.DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
14655
14664
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14656
|
-
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14665
|
+
case exports.DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14657
14666
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14658
|
-
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14667
|
+
case exports.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14659
14668
|
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14660
14669
|
}
|
|
14661
14670
|
}
|
|
@@ -14831,7 +14840,7 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
14831
14840
|
app: undefined,
|
|
14832
14841
|
hooks: new five.Subscribe(),
|
|
14833
14842
|
modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
|
|
14834
|
-
displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : DISPLAY_STRATEGY_TYPE.SMALL,
|
|
14843
|
+
displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.DISPLAY_STRATEGY_TYPE.SMALL,
|
|
14835
14844
|
};
|
|
14836
14845
|
pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
|
|
14837
14846
|
pluginState.container.style.cssText = `
|
|
@@ -14935,13 +14944,18 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
14935
14944
|
};
|
|
14936
14945
|
};
|
|
14937
14946
|
|
|
14938
|
-
|
|
14947
|
+
const modelItemLabelPluginServerParams = {
|
|
14948
|
+
name: 'ModelItemLabelPlugin',
|
|
14949
|
+
version: 0,
|
|
14950
|
+
};
|
|
14951
|
+
|
|
14952
|
+
exports.DIRECTION = void 0;
|
|
14939
14953
|
(function (DIRECTION) {
|
|
14940
14954
|
DIRECTION["TOP_LEFT"] = "topLeft";
|
|
14941
14955
|
DIRECTION["TOP_RIGHT"] = "topRight";
|
|
14942
14956
|
DIRECTION["BOTTOM_LEFT"] = "bottomLeft";
|
|
14943
14957
|
DIRECTION["BOTTOM_RIGHT"] = "bottomRight";
|
|
14944
|
-
})(DIRECTION || (DIRECTION = {}));
|
|
14958
|
+
})(exports.DIRECTION || (exports.DIRECTION = {}));
|
|
14945
14959
|
|
|
14946
14960
|
function parseModelTVVideoPoints(points) {
|
|
14947
14961
|
if (points.length === 0)
|
|
@@ -14950,7 +14964,7 @@ function parseModelTVVideoPoints(points) {
|
|
|
14950
14964
|
return points;
|
|
14951
14965
|
let newPoints = [];
|
|
14952
14966
|
points.map(point => {
|
|
14953
|
-
const newPoint = [point[DIRECTION.TOP_LEFT], point[DIRECTION.BOTTOM_LEFT], point[DIRECTION.BOTTOM_RIGHT], point[DIRECTION.TOP_RIGHT]];
|
|
14967
|
+
const newPoint = [point[exports.DIRECTION.TOP_LEFT], point[exports.DIRECTION.BOTTOM_LEFT], point[exports.DIRECTION.BOTTOM_RIGHT], point[exports.DIRECTION.TOP_RIGHT]];
|
|
14954
14968
|
newPoints.push(newPoint);
|
|
14955
14969
|
});
|
|
14956
14970
|
return newPoints;
|
|
@@ -15224,3 +15238,6 @@ exports.PanoMeasurePlugin = PanoMeasurePlugin;
|
|
|
15224
15238
|
exports.PanoRulerPlugin = PanoRulerPlugin;
|
|
15225
15239
|
exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
|
|
15226
15240
|
exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
|
|
15241
|
+
exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
|
|
15242
|
+
exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
|
|
15243
|
+
exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
|