@realsee/dnalogel 2.0.0-alpha.27 → 2.0.0-alpha.29-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/floorplan/index.d.ts +6 -0
- package/dist/index.d.ts +14 -30
- package/dist/index.es.js +136 -20
- package/dist/index.js +163 -41
- package/dist/index.umd.js +163 -41
- 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 -414
- package/libs/floorplan/index.d.ts +6 -0
- package/libs/floorplan/index.js +7 -0
- package/libs/index.d.ts +14 -30
- package/libs/index.js +24 -17
- package/package.json +5 -5
- package/dist/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/dist/shared-utils/useDebounce.d.ts +0 -8
- package/dist/shared-utils/useThrottle.d.ts +0 -8
- package/libs/shared-utils/five/useFivePlugin.d.ts +0 -1
- package/libs/shared-utils/five/useFivePlugin.js +0 -8
- package/libs/shared-utils/useDebounce.d.ts +0 -8
- package/libs/shared-utils/useDebounce.js +0 -22
- package/libs/shared-utils/useThrottle.d.ts +0 -8
- package/libs/shared-utils/useThrottle.js +0 -26
|
@@ -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
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export * from './
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
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';
|
|
1
|
+
export * from './ModelViewPlugin';
|
|
2
|
+
export * from './CSS3DRenderPlugin';
|
|
3
|
+
export * from './PanoCursorRaycasterPlugin';
|
|
4
|
+
export * from './ModelRoomLabelPlugin';
|
|
5
|
+
export * from './floorplan';
|
|
6
|
+
export * from './ModelChassisCompassPlugin';
|
|
7
|
+
export * from './ModelEntryDoorGuidePlugin';
|
|
8
|
+
export * from './CameraMovementPlugin';
|
|
9
|
+
export * from './PanoRulerPlugin';
|
|
10
|
+
export * from './PanoCompassPlugin';
|
|
11
|
+
export * from './PanoMeasurePlugin';
|
|
12
|
+
export * from './PanoSpatialTagPlugin';
|
|
13
|
+
export * from './ModelItemLabelPlugin';
|
|
14
|
+
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) {
|
|
@@ -6325,6 +6329,108 @@ const ModelFloorplanPlugin = (five, params) => {
|
|
|
6325
6329
|
return new ModelFloorplanPluginController(five, params);
|
|
6326
6330
|
};
|
|
6327
6331
|
|
|
6332
|
+
/** 房屋数据映射表 */
|
|
6333
|
+
const ROOM_FETILE_TYPE_MAP = [
|
|
6334
|
+
{ type: 0, floorType: 1, roomType: '100900000012', name: '其他' },
|
|
6335
|
+
{ type: 1, floorType: 1, roomType: '100900000002', name: '客厅' },
|
|
6336
|
+
{ type: 2, floorType: 1, roomType: '100900000002', name: '餐厅' },
|
|
6337
|
+
{ type: 3, floorType: 0, roomType: '100900000001', name: '卧室' },
|
|
6338
|
+
{ type: 4, floorType: 0, roomType: '100900000001', name: '书房' },
|
|
6339
|
+
{ type: 5, floorType: 3, roomType: '100900000004', name: '卫生间' },
|
|
6340
|
+
{ type: 6, floorType: 3, roomType: '100900000004', name: '淋浴间' },
|
|
6341
|
+
{ type: 7, floorType: 3, roomType: '100900000004', name: '洗手间' },
|
|
6342
|
+
{ type: 8, floorType: 3, roomType: '100900000003', name: '厨房' },
|
|
6343
|
+
{
|
|
6344
|
+
type: 9,
|
|
6345
|
+
floorType: 1,
|
|
6346
|
+
roomType: '100900000003',
|
|
6347
|
+
name: '开放厨房',
|
|
6348
|
+
onlySubArea: true,
|
|
6349
|
+
},
|
|
6350
|
+
{ type: 10, floorType: 0, roomType: '100900000001', name: '多功能间' },
|
|
6351
|
+
{ type: 11, floorType: 0, roomType: '100900000009', name: '保姆间' },
|
|
6352
|
+
{ type: 12, floorType: 4, roomType: '100900000005', name: '阳台' },
|
|
6353
|
+
{ type: 13, floorType: 4, roomType: '100900000006', name: '露台' },
|
|
6354
|
+
{ type: 14, floorType: 0, roomType: '100900000008', name: '储物间' },
|
|
6355
|
+
{ type: 15, floorType: 0, roomType: '100900000013', name: '衣帽间' },
|
|
6356
|
+
{ type: 16, floorType: 0, roomType: '100900000011', name: '阁楼' },
|
|
6357
|
+
{ type: 17, floorType: 2, roomType: '100900000007', name: '花园' },
|
|
6358
|
+
{ type: 18, floorType: 5, roomType: '100900000010', name: '车库' },
|
|
6359
|
+
{ type: 19, floorType: 1, roomType: '100900000012', name: '电梯' },
|
|
6360
|
+
{ type: 20, floorType: 1, roomType: '100900000012', name: '地下室' },
|
|
6361
|
+
{ type: 21, floorType: 1, roomType: '100900000012', name: '天井' },
|
|
6362
|
+
{ type: 22, floorType: 1, roomType: '100900000012', name: '阳光房' },
|
|
6363
|
+
{ type: 23, floorType: 1, roomType: '100900000012', name: '过道' },
|
|
6364
|
+
{ type: 24, floorType: 1, roomType: '100900000012', name: '楼梯间' },
|
|
6365
|
+
{ type: 25, floorType: 1, roomType: '100900000012', name: '门厅' },
|
|
6366
|
+
{ type: 26, floorType: 2, roomType: '100900000012', name: '入户花园' },
|
|
6367
|
+
{ type: 27, floorType: 1, roomType: '100900000012', name: '玄关' },
|
|
6368
|
+
{ type: 28, floorType: 1, roomType: '100900000012', name: '挑空' },
|
|
6369
|
+
{ type: 29, floorType: 4, roomType: '100900000012', name: '晾晒区' },
|
|
6370
|
+
{ type: 30, floorType: 4, roomType: '100900000012', name: '洗衣房' },
|
|
6371
|
+
{ type: 31, floorType: 0, roomType: '100900000012', name: '娱乐区' },
|
|
6372
|
+
{ type: 32, floorType: 0, roomType: '100900000012', name: '健身区' },
|
|
6373
|
+
{ type: 33, floorType: 0, roomType: '100900000012', name: '接待区' },
|
|
6374
|
+
{ type: 34, floorType: 0, roomType: '100900000012', name: '影音区' },
|
|
6375
|
+
{ type: 35, floorType: 1, roomType: '100900000012', name: '餐饮区' },
|
|
6376
|
+
{
|
|
6377
|
+
type: 36,
|
|
6378
|
+
floorType: 1,
|
|
6379
|
+
roomType: '100900000012',
|
|
6380
|
+
name: '其他',
|
|
6381
|
+
onlySubArea: true,
|
|
6382
|
+
},
|
|
6383
|
+
{ type: 37, floorType: 1, roomType: '100900000002', name: '起居室' },
|
|
6384
|
+
{ type: 38, floorType: 0, roomType: '100900000001', name: '主卧' },
|
|
6385
|
+
{ type: 39, floorType: 0, roomType: '100900000001', name: '次卧' },
|
|
6386
|
+
{ type: 40, floorType: 0, roomType: '100900000001', name: '优化间' },
|
|
6387
|
+
{ type: 41, floorType: 0, roomType: '100900000001', name: '办公室' },
|
|
6388
|
+
{ type: 42, floorType: 0, roomType: '100900000001', name: '会议室' },
|
|
6389
|
+
{ type: 43, floorType: 0, roomType: '100900000001', name: '洽谈间' },
|
|
6390
|
+
{ type: 44, floorType: 1, roomType: '100900000002', name: '共享大厅' },
|
|
6391
|
+
{ type: 45, floorType: 1, roomType: '100900000012', name: '水吧' },
|
|
6392
|
+
{ type: 46, floorType: 0, roomType: '100900000015', name: '出入口' },
|
|
6393
|
+
{ type: 47, floorType: 0, roomType: '100900000015', name: '大厅' },
|
|
6394
|
+
{ type: 48, floorType: 0, roomType: '100900000015', name: '包厢' },
|
|
6395
|
+
{ type: 49, floorType: 0, roomType: '100900000015', name: '其他' },
|
|
6396
|
+
{ type: 50, floorType: 0, roomType: '100900000016', name: '出入口' },
|
|
6397
|
+
{ type: 51, floorType: 0, roomType: '100900000016', name: '办公区' },
|
|
6398
|
+
{ type: 52, floorType: 0, roomType: '100900000016', name: '老板间' },
|
|
6399
|
+
{ type: 53, floorType: 0, roomType: '100900000016', name: '会议室' },
|
|
6400
|
+
{ type: 54, floorType: 0, roomType: '100900000016', name: '休息区/水吧' },
|
|
6401
|
+
{ type: 55, floorType: 0, roomType: '100900000016', name: '其他' },
|
|
6402
|
+
{ type: 56, floorType: 2, roomType: '100900000012', name: '空中花园' },
|
|
6403
|
+
{ type: 57, floorType: 0, roomType: '100900000001', name: '洋室' },
|
|
6404
|
+
{ type: 58, floorType: 0, roomType: '100900000001', name: '和室' },
|
|
6405
|
+
];
|
|
6406
|
+
/** 地板信息映射表 */
|
|
6407
|
+
const FLOOR_TYPE_MAP = [
|
|
6408
|
+
{ type: 0, description: '木质地板' },
|
|
6409
|
+
{ type: 1, description: '瓷砖地面' },
|
|
6410
|
+
{ type: 2, description: '户外地面' },
|
|
6411
|
+
{ type: 3, description: '卫生间地面' },
|
|
6412
|
+
{ type: 4, description: '阳台地面' },
|
|
6413
|
+
{ type: 5, description: '车库地面' },
|
|
6414
|
+
];
|
|
6415
|
+
/** 房屋类型映射表 */
|
|
6416
|
+
const ROOM_TYPE_MAP = [
|
|
6417
|
+
{ roomType: '100900000001', description: '室' },
|
|
6418
|
+
{ roomType: '100900000002', description: '厅' },
|
|
6419
|
+
{ roomType: '100900000003', description: '厨' },
|
|
6420
|
+
{ roomType: '100900000004', description: '卫' },
|
|
6421
|
+
{ roomType: '100900000005', description: '阳台' },
|
|
6422
|
+
{ roomType: '100900000006', description: '露台' },
|
|
6423
|
+
{ roomType: '100900000007', description: '花园' },
|
|
6424
|
+
{ roomType: '100900000008', description: '储' },
|
|
6425
|
+
{ roomType: '100900000009', description: '保姆间' },
|
|
6426
|
+
{ roomType: '100900000010', description: '车库' },
|
|
6427
|
+
{ roomType: '100900000011', description: '阁楼' },
|
|
6428
|
+
{ roomType: '100900000012', description: '其他' },
|
|
6429
|
+
{ roomType: '100900000013', description: '衣' },
|
|
6430
|
+
{ roomType: '100900000015', description: '商铺' },
|
|
6431
|
+
{ roomType: '100900000016', description: '写字楼' },
|
|
6432
|
+
];
|
|
6433
|
+
|
|
6328
6434
|
const genRotationMatrix = (x, y, z) => {
|
|
6329
6435
|
const matrix = new THREE.Matrix4();
|
|
6330
6436
|
const euler = new THREE.Euler(x, y, z, 'YXZ');
|
|
@@ -7805,6 +7911,11 @@ class PanoCompassController {
|
|
|
7805
7911
|
}
|
|
7806
7912
|
}
|
|
7807
7913
|
|
|
7914
|
+
const panoCompassPluginServerParams = {
|
|
7915
|
+
name: 'PanoCompassPlugin',
|
|
7916
|
+
version: 0,
|
|
7917
|
+
};
|
|
7918
|
+
|
|
7808
7919
|
/** 交换数组元素 */
|
|
7809
7920
|
function exchange(array, index1, index2) {
|
|
7810
7921
|
const value = array[index1];
|
|
@@ -14137,10 +14248,10 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14137
14248
|
return newTags;
|
|
14138
14249
|
};
|
|
14139
14250
|
/** 标签数据加载
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14251
|
+
* @param data.points {Array} 标签数据
|
|
14252
|
+
* @param data.enabled {Boolean} 插件是否启用
|
|
14253
|
+
* @param data.folded {Boolean} 标签是否默认展开
|
|
14254
|
+
*/
|
|
14144
14255
|
const load = (data) => {
|
|
14145
14256
|
state.points = data.points.map(point => {
|
|
14146
14257
|
var _a, _b;
|
|
@@ -14164,16 +14275,16 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14164
14275
|
state.folded = data.folded;
|
|
14165
14276
|
};
|
|
14166
14277
|
/** 标签启用
|
|
14167
|
-
|
|
14168
|
-
|
|
14278
|
+
* 启用插件并重新计算展示标签
|
|
14279
|
+
*/
|
|
14169
14280
|
const enable = () => {
|
|
14170
14281
|
state.enabled = true;
|
|
14171
14282
|
updateTags();
|
|
14172
14283
|
};
|
|
14173
14284
|
/** 插件禁用
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
|
|
14285
|
+
* 1. 禁用同时会清除已展示的标签
|
|
14286
|
+
* 2. 再次启用时会重新计算展示标签
|
|
14287
|
+
*/
|
|
14177
14288
|
const disable = () => {
|
|
14178
14289
|
state.enabled = false;
|
|
14179
14290
|
origins.$set({ origins: [] });
|
|
@@ -14185,9 +14296,9 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14185
14296
|
state.tags = [];
|
|
14186
14297
|
};
|
|
14187
14298
|
/** 展开所有标签
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14299
|
+
* 1. 展开所有收起的标签
|
|
14300
|
+
* 2. 新标签会默认展开
|
|
14301
|
+
*/
|
|
14191
14302
|
const unfoldAll = () => {
|
|
14192
14303
|
state.folded = false;
|
|
14193
14304
|
state.tags.forEach(tag => {
|
|
@@ -14195,9 +14306,9 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14195
14306
|
});
|
|
14196
14307
|
};
|
|
14197
14308
|
/** 收起所有标签
|
|
14198
|
-
|
|
14199
|
-
|
|
14200
|
-
|
|
14309
|
+
* 1. 收起所有展开的标签
|
|
14310
|
+
* 2. 新标签会默认收起
|
|
14311
|
+
*/
|
|
14201
14312
|
const foldAll = () => {
|
|
14202
14313
|
state.folded = true;
|
|
14203
14314
|
state.tags.forEach(tag => {
|
|
@@ -14205,8 +14316,8 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14205
14316
|
});
|
|
14206
14317
|
};
|
|
14207
14318
|
/** 展开单个标签
|
|
14208
|
-
|
|
14209
|
-
|
|
14319
|
+
* @param id {Number | String} 标签ID
|
|
14320
|
+
*/
|
|
14210
14321
|
const unfold = (id) => {
|
|
14211
14322
|
state.tags.forEach(tag => {
|
|
14212
14323
|
if (tag.id === id)
|
|
@@ -14214,8 +14325,8 @@ const PanoSpatialTagPlugin = (five, params) => {
|
|
|
14214
14325
|
});
|
|
14215
14326
|
};
|
|
14216
14327
|
/** 收起单个标签
|
|
14217
|
-
|
|
14218
|
-
|
|
14328
|
+
* @param id {Number | String} 标签ID
|
|
14329
|
+
*/
|
|
14219
14330
|
const fold = (id) => {
|
|
14220
14331
|
state.tags.forEach(tag => {
|
|
14221
14332
|
if (tag.id === id)
|
|
@@ -14908,6 +15019,11 @@ const ModelItemLabelPlugin = (five, params) => {
|
|
|
14908
15019
|
};
|
|
14909
15020
|
};
|
|
14910
15021
|
|
|
15022
|
+
const modelItemLabelPluginServerParams = {
|
|
15023
|
+
name: 'ModelItemLabelPlugin',
|
|
15024
|
+
version: 0,
|
|
15025
|
+
};
|
|
15026
|
+
|
|
14911
15027
|
var DIRECTION;
|
|
14912
15028
|
(function (DIRECTION) {
|
|
14913
15029
|
DIRECTION["TOP_LEFT"] = "topLeft";
|
|
@@ -15181,4 +15297,4 @@ const ModelTVVideoPlugin = (five, { videoElement }) => {
|
|
|
15181
15297
|
return { enable, disable, load, dispose };
|
|
15182
15298
|
};
|
|
15183
15299
|
|
|
15184
|
-
export { CSS3DRenderPlugin, CameraMovementPlugin, FLOOR_PLAN_ATTACHED_TO, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoSpatialTagPlugin, TopviewFloorplanPlugin };
|
|
15300
|
+
export { CSS3DRenderPlugin, CameraMovementEffect, CameraMovementPlugin, DIRECTION, DISPLAY_STRATEGY_TYPE, FLOOR_PLAN_ATTACHED_TO, FLOOR_TYPE_MAP, ModelChassisCompassPlugin, ModelEntryDoorGuidePlugin, ModelFloorplanPlugin, ModelItemLabelPlugin, ModelRoomLabelPlugin, ModelTVVideoPlugin, ModelViewPlugin, PanoCompassPlugin, PanoCursorRaycasterPlugin, PanoFloorplanRadarPlugin, PanoMeasurePlugin, PanoRulerPlugin, PanoSpatialTagPlugin, ROOM_FETILE_TYPE_MAP, ROOM_TYPE_MAP, Rotation, TopviewFloorplanPlugin, modelItemLabelPluginServerParams, modelRoomLabelPluginServerParams, panoCompassPluginServerParams };
|