@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
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) {
|
|
@@ -6352,6 +6356,108 @@ const ModelFloorplanPlugin = (five, params) => {
|
|
|
6352
6356
|
return new ModelFloorplanPluginController(five, params);
|
|
6353
6357
|
};
|
|
6354
6358
|
|
|
6359
|
+
/** 房屋数据映射表 */
|
|
6360
|
+
const ROOM_FETILE_TYPE_MAP = [
|
|
6361
|
+
{ type: 0, floorType: 1, roomType: '100900000012', name: '其他' },
|
|
6362
|
+
{ type: 1, floorType: 1, roomType: '100900000002', name: '客厅' },
|
|
6363
|
+
{ type: 2, floorType: 1, roomType: '100900000002', name: '餐厅' },
|
|
6364
|
+
{ type: 3, floorType: 0, roomType: '100900000001', name: '卧室' },
|
|
6365
|
+
{ type: 4, floorType: 0, roomType: '100900000001', name: '书房' },
|
|
6366
|
+
{ type: 5, floorType: 3, roomType: '100900000004', name: '卫生间' },
|
|
6367
|
+
{ type: 6, floorType: 3, roomType: '100900000004', name: '淋浴间' },
|
|
6368
|
+
{ type: 7, floorType: 3, roomType: '100900000004', name: '洗手间' },
|
|
6369
|
+
{ type: 8, floorType: 3, roomType: '100900000003', name: '厨房' },
|
|
6370
|
+
{
|
|
6371
|
+
type: 9,
|
|
6372
|
+
floorType: 1,
|
|
6373
|
+
roomType: '100900000003',
|
|
6374
|
+
name: '开放厨房',
|
|
6375
|
+
onlySubArea: true,
|
|
6376
|
+
},
|
|
6377
|
+
{ type: 10, floorType: 0, roomType: '100900000001', name: '多功能间' },
|
|
6378
|
+
{ type: 11, floorType: 0, roomType: '100900000009', name: '保姆间' },
|
|
6379
|
+
{ type: 12, floorType: 4, roomType: '100900000005', name: '阳台' },
|
|
6380
|
+
{ type: 13, floorType: 4, roomType: '100900000006', name: '露台' },
|
|
6381
|
+
{ type: 14, floorType: 0, roomType: '100900000008', name: '储物间' },
|
|
6382
|
+
{ type: 15, floorType: 0, roomType: '100900000013', name: '衣帽间' },
|
|
6383
|
+
{ type: 16, floorType: 0, roomType: '100900000011', name: '阁楼' },
|
|
6384
|
+
{ type: 17, floorType: 2, roomType: '100900000007', name: '花园' },
|
|
6385
|
+
{ type: 18, floorType: 5, roomType: '100900000010', name: '车库' },
|
|
6386
|
+
{ type: 19, floorType: 1, roomType: '100900000012', name: '电梯' },
|
|
6387
|
+
{ type: 20, floorType: 1, roomType: '100900000012', name: '地下室' },
|
|
6388
|
+
{ type: 21, floorType: 1, roomType: '100900000012', name: '天井' },
|
|
6389
|
+
{ type: 22, floorType: 1, roomType: '100900000012', name: '阳光房' },
|
|
6390
|
+
{ type: 23, floorType: 1, roomType: '100900000012', name: '过道' },
|
|
6391
|
+
{ type: 24, floorType: 1, roomType: '100900000012', name: '楼梯间' },
|
|
6392
|
+
{ type: 25, floorType: 1, roomType: '100900000012', name: '门厅' },
|
|
6393
|
+
{ type: 26, floorType: 2, roomType: '100900000012', name: '入户花园' },
|
|
6394
|
+
{ type: 27, floorType: 1, roomType: '100900000012', name: '玄关' },
|
|
6395
|
+
{ type: 28, floorType: 1, roomType: '100900000012', name: '挑空' },
|
|
6396
|
+
{ type: 29, floorType: 4, roomType: '100900000012', name: '晾晒区' },
|
|
6397
|
+
{ type: 30, floorType: 4, roomType: '100900000012', name: '洗衣房' },
|
|
6398
|
+
{ type: 31, floorType: 0, roomType: '100900000012', name: '娱乐区' },
|
|
6399
|
+
{ type: 32, floorType: 0, roomType: '100900000012', name: '健身区' },
|
|
6400
|
+
{ type: 33, floorType: 0, roomType: '100900000012', name: '接待区' },
|
|
6401
|
+
{ type: 34, floorType: 0, roomType: '100900000012', name: '影音区' },
|
|
6402
|
+
{ type: 35, floorType: 1, roomType: '100900000012', name: '餐饮区' },
|
|
6403
|
+
{
|
|
6404
|
+
type: 36,
|
|
6405
|
+
floorType: 1,
|
|
6406
|
+
roomType: '100900000012',
|
|
6407
|
+
name: '其他',
|
|
6408
|
+
onlySubArea: true,
|
|
6409
|
+
},
|
|
6410
|
+
{ type: 37, floorType: 1, roomType: '100900000002', name: '起居室' },
|
|
6411
|
+
{ type: 38, floorType: 0, roomType: '100900000001', name: '主卧' },
|
|
6412
|
+
{ type: 39, floorType: 0, roomType: '100900000001', name: '次卧' },
|
|
6413
|
+
{ type: 40, floorType: 0, roomType: '100900000001', name: '优化间' },
|
|
6414
|
+
{ type: 41, floorType: 0, roomType: '100900000001', name: '办公室' },
|
|
6415
|
+
{ type: 42, floorType: 0, roomType: '100900000001', name: '会议室' },
|
|
6416
|
+
{ type: 43, floorType: 0, roomType: '100900000001', name: '洽谈间' },
|
|
6417
|
+
{ type: 44, floorType: 1, roomType: '100900000002', name: '共享大厅' },
|
|
6418
|
+
{ type: 45, floorType: 1, roomType: '100900000012', name: '水吧' },
|
|
6419
|
+
{ type: 46, floorType: 0, roomType: '100900000015', name: '出入口' },
|
|
6420
|
+
{ type: 47, floorType: 0, roomType: '100900000015', name: '大厅' },
|
|
6421
|
+
{ type: 48, floorType: 0, roomType: '100900000015', name: '包厢' },
|
|
6422
|
+
{ type: 49, floorType: 0, roomType: '100900000015', name: '其他' },
|
|
6423
|
+
{ type: 50, floorType: 0, roomType: '100900000016', name: '出入口' },
|
|
6424
|
+
{ type: 51, floorType: 0, roomType: '100900000016', name: '办公区' },
|
|
6425
|
+
{ type: 52, floorType: 0, roomType: '100900000016', name: '老板间' },
|
|
6426
|
+
{ type: 53, floorType: 0, roomType: '100900000016', name: '会议室' },
|
|
6427
|
+
{ type: 54, floorType: 0, roomType: '100900000016', name: '休息区/水吧' },
|
|
6428
|
+
{ type: 55, floorType: 0, roomType: '100900000016', name: '其他' },
|
|
6429
|
+
{ type: 56, floorType: 2, roomType: '100900000012', name: '空中花园' },
|
|
6430
|
+
{ type: 57, floorType: 0, roomType: '100900000001', name: '洋室' },
|
|
6431
|
+
{ type: 58, floorType: 0, roomType: '100900000001', name: '和室' },
|
|
6432
|
+
];
|
|
6433
|
+
/** 地板信息映射表 */
|
|
6434
|
+
const FLOOR_TYPE_MAP = [
|
|
6435
|
+
{ type: 0, description: '木质地板' },
|
|
6436
|
+
{ type: 1, description: '瓷砖地面' },
|
|
6437
|
+
{ type: 2, description: '户外地面' },
|
|
6438
|
+
{ type: 3, description: '卫生间地面' },
|
|
6439
|
+
{ type: 4, description: '阳台地面' },
|
|
6440
|
+
{ type: 5, description: '车库地面' },
|
|
6441
|
+
];
|
|
6442
|
+
/** 房屋类型映射表 */
|
|
6443
|
+
const ROOM_TYPE_MAP = [
|
|
6444
|
+
{ roomType: '100900000001', description: '室' },
|
|
6445
|
+
{ roomType: '100900000002', description: '厅' },
|
|
6446
|
+
{ roomType: '100900000003', description: '厨' },
|
|
6447
|
+
{ roomType: '100900000004', description: '卫' },
|
|
6448
|
+
{ roomType: '100900000005', description: '阳台' },
|
|
6449
|
+
{ roomType: '100900000006', description: '露台' },
|
|
6450
|
+
{ roomType: '100900000007', description: '花园' },
|
|
6451
|
+
{ roomType: '100900000008', description: '储' },
|
|
6452
|
+
{ roomType: '100900000009', description: '保姆间' },
|
|
6453
|
+
{ roomType: '100900000010', description: '车库' },
|
|
6454
|
+
{ roomType: '100900000011', description: '阁楼' },
|
|
6455
|
+
{ roomType: '100900000012', description: '其他' },
|
|
6456
|
+
{ roomType: '100900000013', description: '衣' },
|
|
6457
|
+
{ roomType: '100900000015', description: '商铺' },
|
|
6458
|
+
{ roomType: '100900000016', description: '写字楼' },
|
|
6459
|
+
];
|
|
6460
|
+
|
|
6355
6461
|
const genRotationMatrix = (x, y, z) => {
|
|
6356
6462
|
const matrix = new THREE__namespace.Matrix4();
|
|
6357
6463
|
const euler = new THREE__namespace.Euler(x, y, z, 'YXZ');
|
|
@@ -6698,20 +6804,20 @@ function tweenProgress$1(duration, easing) {
|
|
|
6698
6804
|
/**
|
|
6699
6805
|
* 运镜效果
|
|
6700
6806
|
*/
|
|
6701
|
-
|
|
6807
|
+
exports.CameraMovementEffect = void 0;
|
|
6702
6808
|
(function (CameraMovementEffect) {
|
|
6703
6809
|
CameraMovementEffect["Move"] = "Move";
|
|
6704
6810
|
CameraMovementEffect["Rotate"] = "Rotate";
|
|
6705
|
-
})(CameraMovementEffect || (CameraMovementEffect = {}));
|
|
6811
|
+
})(exports.CameraMovementEffect || (exports.CameraMovementEffect = {}));
|
|
6706
6812
|
/**
|
|
6707
6813
|
* 旋转类型
|
|
6708
6814
|
*/
|
|
6709
|
-
|
|
6815
|
+
exports.Rotation = void 0;
|
|
6710
6816
|
(function (Rotation) {
|
|
6711
6817
|
Rotation["Clockwise"] = "Clockwise";
|
|
6712
6818
|
Rotation["Anticlockwise"] = "Anticlockwise";
|
|
6713
6819
|
Rotation["Loop"] = "Loop";
|
|
6714
|
-
})(Rotation || (Rotation = {}));
|
|
6820
|
+
})(exports.Rotation || (exports.Rotation = {}));
|
|
6715
6821
|
|
|
6716
6822
|
const PI_2 = Math.PI * 2;
|
|
6717
6823
|
/**
|
|
@@ -6742,18 +6848,18 @@ const getLongitudeParams = (from, to, rotation) => {
|
|
|
6742
6848
|
from = formatLongitude(from);
|
|
6743
6849
|
to = formatLongitude(to);
|
|
6744
6850
|
// 逆时针旋转,初始值必须是较大的值
|
|
6745
|
-
if (rotation === Rotation.Anticlockwise && from < to)
|
|
6851
|
+
if (rotation === exports.Rotation.Anticlockwise && from < to)
|
|
6746
6852
|
from += PI_2;
|
|
6747
6853
|
// 顺时针旋转,结束值必须是较大值
|
|
6748
|
-
if (rotation === Rotation.Clockwise && to < from)
|
|
6854
|
+
if (rotation === exports.Rotation.Clockwise && to < from)
|
|
6749
6855
|
to += PI_2;
|
|
6750
6856
|
// Loop 旋转,找锐角旋转
|
|
6751
6857
|
// 如果 to 比 from 大 180°,逆时针转
|
|
6752
6858
|
// 如果 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);
|
|
6859
|
+
if (rotation === exports.Rotation.Loop && to - from > PI)
|
|
6860
|
+
return getLongitudeParams(from, to, exports.Rotation.Anticlockwise);
|
|
6861
|
+
if (rotation === exports.Rotation.Loop && from - to > PI)
|
|
6862
|
+
return getLongitudeParams(from, to, exports.Rotation.Clockwise);
|
|
6757
6863
|
return { from, to };
|
|
6758
6864
|
};
|
|
6759
6865
|
/**
|
|
@@ -6803,7 +6909,7 @@ const CameraMovementPlugin = (five$1) => {
|
|
|
6803
6909
|
const fromLatitude = formatLatitude(currentFiveState.latitude);
|
|
6804
6910
|
const toLatitude = formatLatitude(args.latitude);
|
|
6805
6911
|
// longitude
|
|
6806
|
-
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || Rotation.Loop);
|
|
6912
|
+
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || exports.Rotation.Loop);
|
|
6807
6913
|
// fov
|
|
6808
6914
|
const fromFov = currentFiveState.fov;
|
|
6809
6915
|
const toFov = args.fov;
|
|
@@ -6861,7 +6967,7 @@ const CameraMovementPlugin = (five$1) => {
|
|
|
6861
6967
|
.onUpdate(onUpdate)
|
|
6862
6968
|
.onComplete(onComplete)
|
|
6863
6969
|
.onDestroy(onDestroy);
|
|
6864
|
-
if (args.rotation === Rotation.Loop) {
|
|
6970
|
+
if (args.rotation === exports.Rotation.Loop) {
|
|
6865
6971
|
tween.repeat(Infinity).yoyo(true);
|
|
6866
6972
|
}
|
|
6867
6973
|
/**
|
|
@@ -7832,6 +7938,11 @@ class PanoCompassController {
|
|
|
7832
7938
|
}
|
|
7833
7939
|
}
|
|
7834
7940
|
|
|
7941
|
+
const panoCompassPluginServerParams = {
|
|
7942
|
+
name: 'PanoCompassPlugin',
|
|
7943
|
+
version: 0,
|
|
7944
|
+
};
|
|
7945
|
+
|
|
7835
7946
|
/** 交换数组元素 */
|
|
7836
7947
|
function exchange(array, index1, index2) {
|
|
7837
7948
|
const value = array[index1];
|
|
@@ -14164,10 +14275,10 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14164
14275
|
return newTags;
|
|
14165
14276
|
};
|
|
14166
14277
|
/** 标签数据加载
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14278
|
+
* @param data.points {Array} 标签数据
|
|
14279
|
+
* @param data.enabled {Boolean} 插件是否启用
|
|
14280
|
+
* @param data.folded {Boolean} 标签是否默认展开
|
|
14281
|
+
*/
|
|
14171
14282
|
const load = (data) => {
|
|
14172
14283
|
state.points = data.points.map(point => {
|
|
14173
14284
|
var _a, _b;
|
|
@@ -14191,16 +14302,16 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14191
14302
|
state.folded = data.folded;
|
|
14192
14303
|
};
|
|
14193
14304
|
/** 标签启用
|
|
14194
|
-
|
|
14195
|
-
|
|
14305
|
+
* 启用插件并重新计算展示标签
|
|
14306
|
+
*/
|
|
14196
14307
|
const enable = () => {
|
|
14197
14308
|
state.enabled = true;
|
|
14198
14309
|
updateTags();
|
|
14199
14310
|
};
|
|
14200
14311
|
/** 插件禁用
|
|
14201
|
-
|
|
14202
|
-
|
|
14203
|
-
|
|
14312
|
+
* 1. 禁用同时会清除已展示的标签
|
|
14313
|
+
* 2. 再次启用时会重新计算展示标签
|
|
14314
|
+
*/
|
|
14204
14315
|
const disable = () => {
|
|
14205
14316
|
state.enabled = false;
|
|
14206
14317
|
origins.$set({ origins: [] });
|
|
@@ -14212,9 +14323,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14212
14323
|
state.tags = [];
|
|
14213
14324
|
};
|
|
14214
14325
|
/** 展开所有标签
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14326
|
+
* 1. 展开所有收起的标签
|
|
14327
|
+
* 2. 新标签会默认展开
|
|
14328
|
+
*/
|
|
14218
14329
|
const unfoldAll = () => {
|
|
14219
14330
|
state.folded = false;
|
|
14220
14331
|
state.tags.forEach(tag => {
|
|
@@ -14222,9 +14333,9 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14222
14333
|
});
|
|
14223
14334
|
};
|
|
14224
14335
|
/** 收起所有标签
|
|
14225
|
-
|
|
14226
|
-
|
|
14227
|
-
|
|
14336
|
+
* 1. 收起所有展开的标签
|
|
14337
|
+
* 2. 新标签会默认收起
|
|
14338
|
+
*/
|
|
14228
14339
|
const foldAll = () => {
|
|
14229
14340
|
state.folded = true;
|
|
14230
14341
|
state.tags.forEach(tag => {
|
|
@@ -14232,8 +14343,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14232
14343
|
});
|
|
14233
14344
|
};
|
|
14234
14345
|
/** 展开单个标签
|
|
14235
|
-
|
|
14236
|
-
|
|
14346
|
+
* @param id {Number | String} 标签ID
|
|
14347
|
+
*/
|
|
14237
14348
|
const unfold = (id) => {
|
|
14238
14349
|
state.tags.forEach(tag => {
|
|
14239
14350
|
if (tag.id === id)
|
|
@@ -14241,8 +14352,8 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14241
14352
|
});
|
|
14242
14353
|
};
|
|
14243
14354
|
/** 收起单个标签
|
|
14244
|
-
|
|
14245
|
-
|
|
14355
|
+
* @param id {Number | String} 标签ID
|
|
14356
|
+
*/
|
|
14246
14357
|
const fold = (id) => {
|
|
14247
14358
|
state.tags.forEach(tag => {
|
|
14248
14359
|
if (tag.id === id)
|
|
@@ -14302,13 +14413,13 @@ const PanoSpatialTagPlugin = (five$1, params) => {
|
|
|
14302
14413
|
};
|
|
14303
14414
|
};
|
|
14304
14415
|
|
|
14305
|
-
|
|
14416
|
+
exports.DISPLAY_STRATEGY_TYPE = void 0;
|
|
14306
14417
|
(function (DISPLAY_STRATEGY_TYPE) {
|
|
14307
14418
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14308
14419
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14309
14420
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14310
14421
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14311
|
-
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14422
|
+
})(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
|
|
14312
14423
|
|
|
14313
14424
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
14314
14425
|
|
|
@@ -14649,13 +14760,13 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14649
14760
|
|
|
14650
14761
|
function getStrokeLength(itemSpaceHeight, type) {
|
|
14651
14762
|
switch (type) {
|
|
14652
|
-
case DISPLAY_STRATEGY_TYPE.SMALL:
|
|
14763
|
+
case exports.DISPLAY_STRATEGY_TYPE.SMALL:
|
|
14653
14764
|
return Math.ceil(-27.78 * itemSpaceHeight + 85);
|
|
14654
|
-
case DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
14765
|
+
case exports.DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
14655
14766
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14656
|
-
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14767
|
+
case exports.DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14657
14768
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14658
|
-
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14769
|
+
case exports.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14659
14770
|
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14660
14771
|
}
|
|
14661
14772
|
}
|
|
@@ -14831,7 +14942,7 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
14831
14942
|
app: undefined,
|
|
14832
14943
|
hooks: new five.Subscribe(),
|
|
14833
14944
|
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,
|
|
14945
|
+
displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.DISPLAY_STRATEGY_TYPE.SMALL,
|
|
14835
14946
|
};
|
|
14836
14947
|
pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
|
|
14837
14948
|
pluginState.container.style.cssText = `
|
|
@@ -14935,13 +15046,18 @@ const ModelItemLabelPlugin = (five$1, params) => {
|
|
|
14935
15046
|
};
|
|
14936
15047
|
};
|
|
14937
15048
|
|
|
14938
|
-
|
|
15049
|
+
const modelItemLabelPluginServerParams = {
|
|
15050
|
+
name: 'ModelItemLabelPlugin',
|
|
15051
|
+
version: 0,
|
|
15052
|
+
};
|
|
15053
|
+
|
|
15054
|
+
exports.DIRECTION = void 0;
|
|
14939
15055
|
(function (DIRECTION) {
|
|
14940
15056
|
DIRECTION["TOP_LEFT"] = "topLeft";
|
|
14941
15057
|
DIRECTION["TOP_RIGHT"] = "topRight";
|
|
14942
15058
|
DIRECTION["BOTTOM_LEFT"] = "bottomLeft";
|
|
14943
15059
|
DIRECTION["BOTTOM_RIGHT"] = "bottomRight";
|
|
14944
|
-
})(DIRECTION || (DIRECTION = {}));
|
|
15060
|
+
})(exports.DIRECTION || (exports.DIRECTION = {}));
|
|
14945
15061
|
|
|
14946
15062
|
function parseModelTVVideoPoints(points) {
|
|
14947
15063
|
if (points.length === 0)
|
|
@@ -14950,7 +15066,7 @@ function parseModelTVVideoPoints(points) {
|
|
|
14950
15066
|
return points;
|
|
14951
15067
|
let newPoints = [];
|
|
14952
15068
|
points.map(point => {
|
|
14953
|
-
const newPoint = [point[DIRECTION.TOP_LEFT], point[DIRECTION.BOTTOM_LEFT], point[DIRECTION.BOTTOM_RIGHT], point[DIRECTION.TOP_RIGHT]];
|
|
15069
|
+
const newPoint = [point[exports.DIRECTION.TOP_LEFT], point[exports.DIRECTION.BOTTOM_LEFT], point[exports.DIRECTION.BOTTOM_RIGHT], point[exports.DIRECTION.TOP_RIGHT]];
|
|
14954
15070
|
newPoints.push(newPoint);
|
|
14955
15071
|
});
|
|
14956
15072
|
return newPoints;
|
|
@@ -15210,6 +15326,7 @@ const ModelTVVideoPlugin = (five, { videoElement }) => {
|
|
|
15210
15326
|
|
|
15211
15327
|
exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
|
|
15212
15328
|
exports.CameraMovementPlugin = CameraMovementPlugin;
|
|
15329
|
+
exports.FLOOR_TYPE_MAP = FLOOR_TYPE_MAP;
|
|
15213
15330
|
exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
|
|
15214
15331
|
exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
|
|
15215
15332
|
exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
|
|
@@ -15223,4 +15340,9 @@ exports.PanoFloorplanRadarPlugin = PanoFloorplanRadarPlugin;
|
|
|
15223
15340
|
exports.PanoMeasurePlugin = PanoMeasurePlugin;
|
|
15224
15341
|
exports.PanoRulerPlugin = PanoRulerPlugin;
|
|
15225
15342
|
exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
|
|
15343
|
+
exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
|
|
15344
|
+
exports.ROOM_TYPE_MAP = ROOM_TYPE_MAP;
|
|
15226
15345
|
exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
|
|
15346
|
+
exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
|
|
15347
|
+
exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
|
|
15348
|
+
exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
|