@realsee/dnalogel 2.0.0-alpha.26 → 2.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.d.ts +3 -48
- package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +4 -6
- package/dist/CameraMovementPlugin/index.js +12 -12
- package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/dist/ModelEntryDoorGuidePlugin/index.js +0 -5
- package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +8 -3
- package/dist/ModelItemLabelPlugin/index.js +13 -7
- package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/dist/ModelTVVideoPlugin/index.d.ts +4 -3
- package/dist/ModelTVVideoPlugin/index.js +3 -3
- package/dist/ModelViewPlugin/Plugin.d.ts +17 -0
- package/dist/ModelViewPlugin/index.d.ts +3 -16
- package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/dist/PanoCompassPlugin/index.d.ts +4 -47
- package/dist/PanoCompassPlugin/index.js +5 -4
- package/dist/PanoMeasurePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.js +4 -1
- package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.d.ts +4 -30
- package/dist/PanoRulerPlugin/index.js +0 -5
- package/dist/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
- package/dist/PanoSpatialTagPlugin/index.d.ts +4 -32
- package/dist/PanoSpatialTagPlugin/index.js +23 -21
- package/dist/_index.d.ts +30 -0
- package/dist/floorplan/index.d.ts +6 -0
- package/dist/index.d.ts +15 -30
- package/dist/index.es.js +149 -22
- package/dist/index.js +177 -43
- package/dist/index.umd.js +180 -47
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +5 -8
- package/docs/classes/PanoFloorplanRadarPluginController.html +3 -0
- package/docs/enums/CameraMovementEffect.html +3 -0
- package/docs/enums/DIRECTION.html +1 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/enums/Rotation.html +3 -0
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
- package/docs/interfaces/FloorplanBounding.html +10 -0
- package/docs/interfaces/FloorplanData.html +3 -0
- package/docs/interfaces/FloorplanEntrance.html +15 -0
- package/docs/interfaces/FloorplanExtraObject.html +7 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -0
- package/docs/interfaces/FloorplanFloorData.html +3 -0
- package/docs/interfaces/FloorplanImagePosition.html +3 -0
- package/docs/interfaces/FloorplanObserver.html +5 -0
- package/docs/interfaces/FloorplanOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanPosition.html +3 -0
- package/docs/interfaces/FloorplanRoomItem.html +17 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -0
- package/docs/interfaces/FloorplanServerBounding.html +10 -0
- package/docs/interfaces/FloorplanServerComputedData.html +1 -0
- package/docs/interfaces/FloorplanServerData.html +3 -0
- package/docs/interfaces/FloorplanServerEntrance.html +15 -0
- package/docs/interfaces/FloorplanServerFloorData.html +3 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -0
- package/docs/interfaces/FloorplanServerObserver.html +5 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -0
- package/docs/interfaces/FloorplanServerPosition.html +3 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +20 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -0
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -0
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
- package/docs/interfaces/Point.html +1 -0
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -0
- package/docs/interfaces/RoomInfo.html +1 -0
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +10 -10
- package/docs/modules.html +28 -12
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
- package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
- package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
- package/libs/CSS3DRenderPlugin/index.js +2 -181
- package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
- package/libs/CameraMovementPlugin/index.d.ts +4 -6
- package/libs/CameraMovementPlugin/index.js +3 -158
- package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/libs/ModelChassisCompassPlugin/Plugin.js +75 -0
- package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
- package/libs/ModelChassisCompassPlugin/index.js +2 -74
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
- package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -139
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +8 -3
- package/libs/ModelItemLabelPlugin/index.js +7 -119
- package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
- package/libs/ModelTVVideoPlugin/index.d.ts +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -253
- package/libs/ModelViewPlugin/Plugin.d.ts +17 -0
- package/libs/ModelViewPlugin/Plugin.js +160 -0
- package/libs/ModelViewPlugin/index.d.ts +3 -16
- package/libs/ModelViewPlugin/index.js +2 -159
- package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
- package/libs/PanoCompassPlugin/Plugin.js +249 -0
- package/libs/PanoCompassPlugin/index.d.ts +4 -47
- package/libs/PanoCompassPlugin/index.js +3 -249
- package/libs/PanoMeasurePlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
- package/libs/PanoRulerPlugin/Plugin.js +402 -0
- package/libs/PanoRulerPlugin/index.d.ts +4 -30
- package/libs/PanoRulerPlugin/index.js +2 -401
- package/libs/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +415 -0
- package/libs/PanoSpatialTagPlugin/index.d.ts +4 -32
- package/libs/PanoSpatialTagPlugin/index.js +4 -412
- package/libs/_index.d.ts +30 -0
- package/libs/_index.js +18 -0
- package/libs/floorplan/index.d.ts +6 -0
- package/libs/floorplan/index.js +7 -0
- package/libs/index.d.ts +15 -30
- package/libs/index.js +25 -17
- package/package.json +5 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@realsee/five/line'), require('svelte/internal'), require('svelte'), require('svelte/easing'), require('svelte/transition'), require('@realsee/five'), require('three/examples/jsm/loaders/FBXLoader'), require('@tweenjs/tween.js'), require('svelte/store'), require('classnames')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@realsee/five/line', 'svelte/internal', 'svelte', 'svelte/easing', 'svelte/transition', '@realsee/five', 'three/examples/jsm/loaders/FBXLoader', '@tweenjs/tween.js', 'svelte/store', 'classnames'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.dnalogel = {}, global.THREE, global.CSS3DRenderer, global.FiveSDK_Line, global.internal, global.svelte, global.easing, global.transition, global.five, global.FBXLoader, global.TWEEN, global.store, global.classNames));
|
|
5
|
-
})(this, (function (exports, THREE, CSS3DRenderer, line, internal, svelte, easing, transition, five, FBXLoader, TWEEN, store, classNames) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@realsee/five/react'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@realsee/five/line'), require('svelte/internal'), require('svelte'), require('svelte/easing'), require('svelte/transition'), require('@realsee/five'), require('three/examples/jsm/loaders/FBXLoader'), require('@tweenjs/tween.js'), require('svelte/store'), require('classnames')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@realsee/five/react', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@realsee/five/line', 'svelte/internal', 'svelte', 'svelte/easing', 'svelte/transition', '@realsee/five', 'three/examples/jsm/loaders/FBXLoader', '@tweenjs/tween.js', 'svelte/store', 'classnames'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.dnalogel = {}, global.react, global.THREE, global.CSS3DRenderer, global.FiveSDK_Line, global.internal, global.svelte, global.easing, global.transition, global.five, global.FBXLoader, global.TWEEN, global.store, global.classNames));
|
|
5
|
+
})(this, (function (exports, react, THREE, CSS3DRenderer, line, internal, svelte, easing, transition, five, FBXLoader, TWEEN, store, classNames) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
|
|
30
30
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
31
31
|
|
|
32
|
+
function useFivePlugin(name) {
|
|
33
|
+
const five = react.unsafe__useFiveInstance();
|
|
34
|
+
const plugin = five.plugins[name];
|
|
35
|
+
if (!plugin)
|
|
36
|
+
throw new Error(`can not find plugin "${name}"`);
|
|
37
|
+
return plugin;
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
/**
|
|
33
41
|
* Five 模型插件
|
|
34
42
|
* @template ExportType 导出方法
|
|
@@ -999,6 +1007,10 @@
|
|
|
999
1007
|
const ModelRoomLabelPlugin = (five) => {
|
|
1000
1008
|
return new ModelRoomLabelController(five);
|
|
1001
1009
|
};
|
|
1010
|
+
const modelRoomLabelPluginServerParams = {
|
|
1011
|
+
name: 'ModelRoomLabelPlugin',
|
|
1012
|
+
version: 0,
|
|
1013
|
+
};
|
|
1002
1014
|
|
|
1003
1015
|
exports.FLOOR_PLAN_ATTACHED_TO = void 0;
|
|
1004
1016
|
(function (FLOOR_PLAN_ATTACHED_TO) {
|
|
@@ -6341,6 +6353,108 @@
|
|
|
6341
6353
|
return new ModelFloorplanPluginController(five, params);
|
|
6342
6354
|
};
|
|
6343
6355
|
|
|
6356
|
+
/** 房屋数据映射表 */
|
|
6357
|
+
const ROOM_FETILE_TYPE_MAP = [
|
|
6358
|
+
{ type: 0, floorType: 1, roomType: '100900000012', name: '其他' },
|
|
6359
|
+
{ type: 1, floorType: 1, roomType: '100900000002', name: '客厅' },
|
|
6360
|
+
{ type: 2, floorType: 1, roomType: '100900000002', name: '餐厅' },
|
|
6361
|
+
{ type: 3, floorType: 0, roomType: '100900000001', name: '卧室' },
|
|
6362
|
+
{ type: 4, floorType: 0, roomType: '100900000001', name: '书房' },
|
|
6363
|
+
{ type: 5, floorType: 3, roomType: '100900000004', name: '卫生间' },
|
|
6364
|
+
{ type: 6, floorType: 3, roomType: '100900000004', name: '淋浴间' },
|
|
6365
|
+
{ type: 7, floorType: 3, roomType: '100900000004', name: '洗手间' },
|
|
6366
|
+
{ type: 8, floorType: 3, roomType: '100900000003', name: '厨房' },
|
|
6367
|
+
{
|
|
6368
|
+
type: 9,
|
|
6369
|
+
floorType: 1,
|
|
6370
|
+
roomType: '100900000003',
|
|
6371
|
+
name: '开放厨房',
|
|
6372
|
+
onlySubArea: true,
|
|
6373
|
+
},
|
|
6374
|
+
{ type: 10, floorType: 0, roomType: '100900000001', name: '多功能间' },
|
|
6375
|
+
{ type: 11, floorType: 0, roomType: '100900000009', name: '保姆间' },
|
|
6376
|
+
{ type: 12, floorType: 4, roomType: '100900000005', name: '阳台' },
|
|
6377
|
+
{ type: 13, floorType: 4, roomType: '100900000006', name: '露台' },
|
|
6378
|
+
{ type: 14, floorType: 0, roomType: '100900000008', name: '储物间' },
|
|
6379
|
+
{ type: 15, floorType: 0, roomType: '100900000013', name: '衣帽间' },
|
|
6380
|
+
{ type: 16, floorType: 0, roomType: '100900000011', name: '阁楼' },
|
|
6381
|
+
{ type: 17, floorType: 2, roomType: '100900000007', name: '花园' },
|
|
6382
|
+
{ type: 18, floorType: 5, roomType: '100900000010', name: '车库' },
|
|
6383
|
+
{ type: 19, floorType: 1, roomType: '100900000012', name: '电梯' },
|
|
6384
|
+
{ type: 20, floorType: 1, roomType: '100900000012', name: '地下室' },
|
|
6385
|
+
{ type: 21, floorType: 1, roomType: '100900000012', name: '天井' },
|
|
6386
|
+
{ type: 22, floorType: 1, roomType: '100900000012', name: '阳光房' },
|
|
6387
|
+
{ type: 23, floorType: 1, roomType: '100900000012', name: '过道' },
|
|
6388
|
+
{ type: 24, floorType: 1, roomType: '100900000012', name: '楼梯间' },
|
|
6389
|
+
{ type: 25, floorType: 1, roomType: '100900000012', name: '门厅' },
|
|
6390
|
+
{ type: 26, floorType: 2, roomType: '100900000012', name: '入户花园' },
|
|
6391
|
+
{ type: 27, floorType: 1, roomType: '100900000012', name: '玄关' },
|
|
6392
|
+
{ type: 28, floorType: 1, roomType: '100900000012', name: '挑空' },
|
|
6393
|
+
{ type: 29, floorType: 4, roomType: '100900000012', name: '晾晒区' },
|
|
6394
|
+
{ type: 30, floorType: 4, roomType: '100900000012', name: '洗衣房' },
|
|
6395
|
+
{ type: 31, floorType: 0, roomType: '100900000012', name: '娱乐区' },
|
|
6396
|
+
{ type: 32, floorType: 0, roomType: '100900000012', name: '健身区' },
|
|
6397
|
+
{ type: 33, floorType: 0, roomType: '100900000012', name: '接待区' },
|
|
6398
|
+
{ type: 34, floorType: 0, roomType: '100900000012', name: '影音区' },
|
|
6399
|
+
{ type: 35, floorType: 1, roomType: '100900000012', name: '餐饮区' },
|
|
6400
|
+
{
|
|
6401
|
+
type: 36,
|
|
6402
|
+
floorType: 1,
|
|
6403
|
+
roomType: '100900000012',
|
|
6404
|
+
name: '其他',
|
|
6405
|
+
onlySubArea: true,
|
|
6406
|
+
},
|
|
6407
|
+
{ type: 37, floorType: 1, roomType: '100900000002', name: '起居室' },
|
|
6408
|
+
{ type: 38, floorType: 0, roomType: '100900000001', name: '主卧' },
|
|
6409
|
+
{ type: 39, floorType: 0, roomType: '100900000001', name: '次卧' },
|
|
6410
|
+
{ type: 40, floorType: 0, roomType: '100900000001', name: '优化间' },
|
|
6411
|
+
{ type: 41, floorType: 0, roomType: '100900000001', name: '办公室' },
|
|
6412
|
+
{ type: 42, floorType: 0, roomType: '100900000001', name: '会议室' },
|
|
6413
|
+
{ type: 43, floorType: 0, roomType: '100900000001', name: '洽谈间' },
|
|
6414
|
+
{ type: 44, floorType: 1, roomType: '100900000002', name: '共享大厅' },
|
|
6415
|
+
{ type: 45, floorType: 1, roomType: '100900000012', name: '水吧' },
|
|
6416
|
+
{ type: 46, floorType: 0, roomType: '100900000015', name: '出入口' },
|
|
6417
|
+
{ type: 47, floorType: 0, roomType: '100900000015', name: '大厅' },
|
|
6418
|
+
{ type: 48, floorType: 0, roomType: '100900000015', name: '包厢' },
|
|
6419
|
+
{ type: 49, floorType: 0, roomType: '100900000015', name: '其他' },
|
|
6420
|
+
{ type: 50, floorType: 0, roomType: '100900000016', name: '出入口' },
|
|
6421
|
+
{ type: 51, floorType: 0, roomType: '100900000016', name: '办公区' },
|
|
6422
|
+
{ type: 52, floorType: 0, roomType: '100900000016', name: '老板间' },
|
|
6423
|
+
{ type: 53, floorType: 0, roomType: '100900000016', name: '会议室' },
|
|
6424
|
+
{ type: 54, floorType: 0, roomType: '100900000016', name: '休息区/水吧' },
|
|
6425
|
+
{ type: 55, floorType: 0, roomType: '100900000016', name: '其他' },
|
|
6426
|
+
{ type: 56, floorType: 2, roomType: '100900000012', name: '空中花园' },
|
|
6427
|
+
{ type: 57, floorType: 0, roomType: '100900000001', name: '洋室' },
|
|
6428
|
+
{ type: 58, floorType: 0, roomType: '100900000001', name: '和室' },
|
|
6429
|
+
];
|
|
6430
|
+
/** 地板信息映射表 */
|
|
6431
|
+
const FLOOR_TYPE_MAP = [
|
|
6432
|
+
{ type: 0, description: '木质地板' },
|
|
6433
|
+
{ type: 1, description: '瓷砖地面' },
|
|
6434
|
+
{ type: 2, description: '户外地面' },
|
|
6435
|
+
{ type: 3, description: '卫生间地面' },
|
|
6436
|
+
{ type: 4, description: '阳台地面' },
|
|
6437
|
+
{ type: 5, description: '车库地面' },
|
|
6438
|
+
];
|
|
6439
|
+
/** 房屋类型映射表 */
|
|
6440
|
+
const ROOM_TYPE_MAP = [
|
|
6441
|
+
{ roomType: '100900000001', description: '室' },
|
|
6442
|
+
{ roomType: '100900000002', description: '厅' },
|
|
6443
|
+
{ roomType: '100900000003', description: '厨' },
|
|
6444
|
+
{ roomType: '100900000004', description: '卫' },
|
|
6445
|
+
{ roomType: '100900000005', description: '阳台' },
|
|
6446
|
+
{ roomType: '100900000006', description: '露台' },
|
|
6447
|
+
{ roomType: '100900000007', description: '花园' },
|
|
6448
|
+
{ roomType: '100900000008', description: '储' },
|
|
6449
|
+
{ roomType: '100900000009', description: '保姆间' },
|
|
6450
|
+
{ roomType: '100900000010', description: '车库' },
|
|
6451
|
+
{ roomType: '100900000011', description: '阁楼' },
|
|
6452
|
+
{ roomType: '100900000012', description: '其他' },
|
|
6453
|
+
{ roomType: '100900000013', description: '衣' },
|
|
6454
|
+
{ roomType: '100900000015', description: '商铺' },
|
|
6455
|
+
{ roomType: '100900000016', description: '写字楼' },
|
|
6456
|
+
];
|
|
6457
|
+
|
|
6344
6458
|
const genRotationMatrix = (x, y, z) => {
|
|
6345
6459
|
const matrix = new THREE__namespace.Matrix4();
|
|
6346
6460
|
const euler = new THREE__namespace.Euler(x, y, z, 'YXZ');
|
|
@@ -6687,20 +6801,20 @@
|
|
|
6687
6801
|
/**
|
|
6688
6802
|
* 运镜效果
|
|
6689
6803
|
*/
|
|
6690
|
-
|
|
6804
|
+
exports.CameraMovementEffect = void 0;
|
|
6691
6805
|
(function (CameraMovementEffect) {
|
|
6692
6806
|
CameraMovementEffect["Move"] = "Move";
|
|
6693
6807
|
CameraMovementEffect["Rotate"] = "Rotate";
|
|
6694
|
-
})(CameraMovementEffect || (CameraMovementEffect = {}));
|
|
6808
|
+
})(exports.CameraMovementEffect || (exports.CameraMovementEffect = {}));
|
|
6695
6809
|
/**
|
|
6696
6810
|
* 旋转类型
|
|
6697
6811
|
*/
|
|
6698
|
-
|
|
6812
|
+
exports.Rotation = void 0;
|
|
6699
6813
|
(function (Rotation) {
|
|
6700
6814
|
Rotation["Clockwise"] = "Clockwise";
|
|
6701
6815
|
Rotation["Anticlockwise"] = "Anticlockwise";
|
|
6702
6816
|
Rotation["Loop"] = "Loop";
|
|
6703
|
-
})(Rotation || (Rotation = {}));
|
|
6817
|
+
})(exports.Rotation || (exports.Rotation = {}));
|
|
6704
6818
|
|
|
6705
6819
|
const PI_2 = Math.PI * 2;
|
|
6706
6820
|
/**
|
|
@@ -6731,18 +6845,18 @@
|
|
|
6731
6845
|
from = formatLongitude(from);
|
|
6732
6846
|
to = formatLongitude(to);
|
|
6733
6847
|
// 逆时针旋转,初始值必须是较大的值
|
|
6734
|
-
if (rotation === Rotation.Anticlockwise && from < to)
|
|
6848
|
+
if (rotation === exports.Rotation.Anticlockwise && from < to)
|
|
6735
6849
|
from += PI_2;
|
|
6736
6850
|
// 顺时针旋转,结束值必须是较大值
|
|
6737
|
-
if (rotation === Rotation.Clockwise && to < from)
|
|
6851
|
+
if (rotation === exports.Rotation.Clockwise && to < from)
|
|
6738
6852
|
to += PI_2;
|
|
6739
6853
|
// Loop 旋转,找锐角旋转
|
|
6740
6854
|
// 如果 to 比 from 大 180°,逆时针转
|
|
6741
6855
|
// 如果 from 比 to 大 180°,顺时针转
|
|
6742
|
-
if (rotation === Rotation.Loop && to - from > PI)
|
|
6743
|
-
return getLongitudeParams(from, to, Rotation.Anticlockwise);
|
|
6744
|
-
if (rotation === Rotation.Loop && from - to > PI)
|
|
6745
|
-
return getLongitudeParams(from, to, Rotation.Clockwise);
|
|
6856
|
+
if (rotation === exports.Rotation.Loop && to - from > PI)
|
|
6857
|
+
return getLongitudeParams(from, to, exports.Rotation.Anticlockwise);
|
|
6858
|
+
if (rotation === exports.Rotation.Loop && from - to > PI)
|
|
6859
|
+
return getLongitudeParams(from, to, exports.Rotation.Clockwise);
|
|
6746
6860
|
return { from, to };
|
|
6747
6861
|
};
|
|
6748
6862
|
/**
|
|
@@ -6792,7 +6906,7 @@
|
|
|
6792
6906
|
const fromLatitude = formatLatitude(currentFiveState.latitude);
|
|
6793
6907
|
const toLatitude = formatLatitude(args.latitude);
|
|
6794
6908
|
// longitude
|
|
6795
|
-
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || Rotation.Loop);
|
|
6909
|
+
const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || exports.Rotation.Loop);
|
|
6796
6910
|
// fov
|
|
6797
6911
|
const fromFov = currentFiveState.fov;
|
|
6798
6912
|
const toFov = args.fov;
|
|
@@ -6850,7 +6964,7 @@
|
|
|
6850
6964
|
.onUpdate(onUpdate)
|
|
6851
6965
|
.onComplete(onComplete)
|
|
6852
6966
|
.onDestroy(onDestroy);
|
|
6853
|
-
if (args.rotation === Rotation.Loop) {
|
|
6967
|
+
if (args.rotation === exports.Rotation.Loop) {
|
|
6854
6968
|
tween.repeat(Infinity).yoyo(true);
|
|
6855
6969
|
}
|
|
6856
6970
|
/**
|
|
@@ -7821,6 +7935,11 @@
|
|
|
7821
7935
|
}
|
|
7822
7936
|
}
|
|
7823
7937
|
|
|
7938
|
+
const panoCompassPluginServerParams = {
|
|
7939
|
+
name: 'PanoCompassPlugin',
|
|
7940
|
+
version: 0,
|
|
7941
|
+
};
|
|
7942
|
+
|
|
7824
7943
|
/** 交换数组元素 */
|
|
7825
7944
|
function exchange(array, index1, index2) {
|
|
7826
7945
|
const value = array[index1];
|
|
@@ -14110,7 +14229,9 @@
|
|
|
14110
14229
|
}))
|
|
14111
14230
|
continue;
|
|
14112
14231
|
const raycaster = new THREE__namespace.Raycaster(camera.position.clone().setY(RAY_ORIGIN_Y), point.position.clone().sub(camera.position.clone().setY(RAY_ORIGIN_Y)).normalize(), 0, point.distance + RAY_TOLERANT_DISTANCE);
|
|
14113
|
-
const [intersect] = five$1.model.
|
|
14232
|
+
const [intersect] = five$1.model.bvhs.loaded ?
|
|
14233
|
+
five$1.model.intersectRaycaster(raycaster) :
|
|
14234
|
+
raycaster.intersectObjects(five$1.model.children, true);
|
|
14114
14235
|
if (!intersect)
|
|
14115
14236
|
continue;
|
|
14116
14237
|
if (point.distance - intersect.distance < RAY_TOLERANT_DISTANCE) {
|
|
@@ -14151,10 +14272,10 @@
|
|
|
14151
14272
|
return newTags;
|
|
14152
14273
|
};
|
|
14153
14274
|
/** 标签数据加载
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14275
|
+
* @param data.points {Array} 标签数据
|
|
14276
|
+
* @param data.enabled {Boolean} 插件是否启用
|
|
14277
|
+
* @param data.folded {Boolean} 标签是否默认展开
|
|
14278
|
+
*/
|
|
14158
14279
|
const load = (data) => {
|
|
14159
14280
|
state.points = data.points.map(point => {
|
|
14160
14281
|
var _a, _b;
|
|
@@ -14178,16 +14299,16 @@
|
|
|
14178
14299
|
state.folded = data.folded;
|
|
14179
14300
|
};
|
|
14180
14301
|
/** 标签启用
|
|
14181
|
-
|
|
14182
|
-
|
|
14302
|
+
* 启用插件并重新计算展示标签
|
|
14303
|
+
*/
|
|
14183
14304
|
const enable = () => {
|
|
14184
14305
|
state.enabled = true;
|
|
14185
14306
|
updateTags();
|
|
14186
14307
|
};
|
|
14187
14308
|
/** 插件禁用
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14309
|
+
* 1. 禁用同时会清除已展示的标签
|
|
14310
|
+
* 2. 再次启用时会重新计算展示标签
|
|
14311
|
+
*/
|
|
14191
14312
|
const disable = () => {
|
|
14192
14313
|
state.enabled = false;
|
|
14193
14314
|
origins.$set({ origins: [] });
|
|
@@ -14199,9 +14320,9 @@
|
|
|
14199
14320
|
state.tags = [];
|
|
14200
14321
|
};
|
|
14201
14322
|
/** 展开所有标签
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14323
|
+
* 1. 展开所有收起的标签
|
|
14324
|
+
* 2. 新标签会默认展开
|
|
14325
|
+
*/
|
|
14205
14326
|
const unfoldAll = () => {
|
|
14206
14327
|
state.folded = false;
|
|
14207
14328
|
state.tags.forEach(tag => {
|
|
@@ -14209,9 +14330,9 @@
|
|
|
14209
14330
|
});
|
|
14210
14331
|
};
|
|
14211
14332
|
/** 收起所有标签
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14333
|
+
* 1. 收起所有展开的标签
|
|
14334
|
+
* 2. 新标签会默认收起
|
|
14335
|
+
*/
|
|
14215
14336
|
const foldAll = () => {
|
|
14216
14337
|
state.folded = true;
|
|
14217
14338
|
state.tags.forEach(tag => {
|
|
@@ -14219,8 +14340,8 @@
|
|
|
14219
14340
|
});
|
|
14220
14341
|
};
|
|
14221
14342
|
/** 展开单个标签
|
|
14222
|
-
|
|
14223
|
-
|
|
14343
|
+
* @param id {Number | String} 标签ID
|
|
14344
|
+
*/
|
|
14224
14345
|
const unfold = (id) => {
|
|
14225
14346
|
state.tags.forEach(tag => {
|
|
14226
14347
|
if (tag.id === id)
|
|
@@ -14228,8 +14349,8 @@
|
|
|
14228
14349
|
});
|
|
14229
14350
|
};
|
|
14230
14351
|
/** 收起单个标签
|
|
14231
|
-
|
|
14232
|
-
|
|
14352
|
+
* @param id {Number | String} 标签ID
|
|
14353
|
+
*/
|
|
14233
14354
|
const fold = (id) => {
|
|
14234
14355
|
state.tags.forEach(tag => {
|
|
14235
14356
|
if (tag.id === id)
|
|
@@ -14263,7 +14384,7 @@
|
|
|
14263
14384
|
five$1.on('cameraUpdate', onCameraUpdate);
|
|
14264
14385
|
}
|
|
14265
14386
|
else {
|
|
14266
|
-
five$1.once('
|
|
14387
|
+
five$1.once('modelLoaded', () => {
|
|
14267
14388
|
if (!wrapper)
|
|
14268
14389
|
wrapper = five$1.getElement().parentElement;
|
|
14269
14390
|
wrapper.appendChild(container);
|
|
@@ -14289,13 +14410,13 @@
|
|
|
14289
14410
|
};
|
|
14290
14411
|
};
|
|
14291
14412
|
|
|
14292
|
-
|
|
14413
|
+
exports.DISPLAY_STRATEGY_TYPE = void 0;
|
|
14293
14414
|
(function (DISPLAY_STRATEGY_TYPE) {
|
|
14294
14415
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14295
14416
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14296
14417
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14297
14418
|
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14298
|
-
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14419
|
+
})(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
|
|
14299
14420
|
|
|
14300
14421
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
14301
14422
|
|
|
@@ -14636,13 +14757,13 @@
|
|
|
14636
14757
|
|
|
14637
14758
|
function getStrokeLength(itemSpaceHeight, type) {
|
|
14638
14759
|
switch (type) {
|
|
14639
|
-
case DISPLAY_STRATEGY_TYPE.SMALL:
|
|
14760
|
+
case exports.DISPLAY_STRATEGY_TYPE.SMALL:
|
|
14640
14761
|
return Math.ceil(-27.78 * itemSpaceHeight + 85);
|
|
14641
|
-
case DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
14762
|
+
case exports.DISPLAY_STRATEGY_TYPE.MIDLLE:
|
|
14642
14763
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14643
|
-
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14764
|
+
case exports.DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14644
14765
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14645
|
-
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14766
|
+
case exports.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14646
14767
|
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14647
14768
|
}
|
|
14648
14769
|
}
|
|
@@ -14818,7 +14939,7 @@
|
|
|
14818
14939
|
app: undefined,
|
|
14819
14940
|
hooks: new five.Subscribe(),
|
|
14820
14941
|
modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
|
|
14821
|
-
displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : DISPLAY_STRATEGY_TYPE.SMALL,
|
|
14942
|
+
displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.DISPLAY_STRATEGY_TYPE.SMALL,
|
|
14822
14943
|
};
|
|
14823
14944
|
pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
|
|
14824
14945
|
pluginState.container.style.cssText = `
|
|
@@ -14922,13 +15043,18 @@
|
|
|
14922
15043
|
};
|
|
14923
15044
|
};
|
|
14924
15045
|
|
|
14925
|
-
|
|
15046
|
+
const modelItemLabelPluginServerParams = {
|
|
15047
|
+
name: 'ModelItemLabelPlugin',
|
|
15048
|
+
version: 0,
|
|
15049
|
+
};
|
|
15050
|
+
|
|
15051
|
+
exports.DIRECTION = void 0;
|
|
14926
15052
|
(function (DIRECTION) {
|
|
14927
15053
|
DIRECTION["TOP_LEFT"] = "topLeft";
|
|
14928
15054
|
DIRECTION["TOP_RIGHT"] = "topRight";
|
|
14929
15055
|
DIRECTION["BOTTOM_LEFT"] = "bottomLeft";
|
|
14930
15056
|
DIRECTION["BOTTOM_RIGHT"] = "bottomRight";
|
|
14931
|
-
})(DIRECTION || (DIRECTION = {}));
|
|
15057
|
+
})(exports.DIRECTION || (exports.DIRECTION = {}));
|
|
14932
15058
|
|
|
14933
15059
|
function parseModelTVVideoPoints(points) {
|
|
14934
15060
|
if (points.length === 0)
|
|
@@ -14937,7 +15063,7 @@
|
|
|
14937
15063
|
return points;
|
|
14938
15064
|
let newPoints = [];
|
|
14939
15065
|
points.map(point => {
|
|
14940
|
-
const newPoint = [point[DIRECTION.TOP_LEFT], point[DIRECTION.BOTTOM_LEFT], point[DIRECTION.BOTTOM_RIGHT], point[DIRECTION.TOP_RIGHT]];
|
|
15066
|
+
const newPoint = [point[exports.DIRECTION.TOP_LEFT], point[exports.DIRECTION.BOTTOM_LEFT], point[exports.DIRECTION.BOTTOM_RIGHT], point[exports.DIRECTION.TOP_RIGHT]];
|
|
14941
15067
|
newPoints.push(newPoint);
|
|
14942
15068
|
});
|
|
14943
15069
|
return newPoints;
|
|
@@ -15197,6 +15323,7 @@
|
|
|
15197
15323
|
|
|
15198
15324
|
exports.CSS3DRenderPlugin = CSS3DRenderPlugin;
|
|
15199
15325
|
exports.CameraMovementPlugin = CameraMovementPlugin;
|
|
15326
|
+
exports.FLOOR_TYPE_MAP = FLOOR_TYPE_MAP;
|
|
15200
15327
|
exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
|
|
15201
15328
|
exports.ModelEntryDoorGuidePlugin = ModelEntryDoorGuidePlugin;
|
|
15202
15329
|
exports.ModelFloorplanPlugin = ModelFloorplanPlugin;
|
|
@@ -15210,7 +15337,13 @@
|
|
|
15210
15337
|
exports.PanoMeasurePlugin = PanoMeasurePlugin;
|
|
15211
15338
|
exports.PanoRulerPlugin = PanoRulerPlugin;
|
|
15212
15339
|
exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
|
|
15340
|
+
exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
|
|
15341
|
+
exports.ROOM_TYPE_MAP = ROOM_TYPE_MAP;
|
|
15213
15342
|
exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
|
|
15343
|
+
exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
|
|
15344
|
+
exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
|
|
15345
|
+
exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
|
|
15346
|
+
exports.useFivePlugin = useFivePlugin;
|
|
15214
15347
|
|
|
15215
15348
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
15216
15349
|
|