@realsee/dnalogel 0.1.5 → 0.1.7-alpha.11
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/components/ARVideoFigure/ImgBgTransparentMesh.js +2 -2
- package/components/GLTFView/index.d.ts +123 -0
- package/components/GLTFView/index.js +204 -0
- package/components/GlassFilters/index.js +2 -2
- package/components/ModelView/ModelViewController.js +6 -5
- package/data/81zxMaeVKLQU93OZMG.d.ts +49 -0
- package/data/81zxMaeVKLQU93OZMG.js +633 -0
- package/data/PrXel3aqGbp34JQn.js +139 -1
- package/data/_vLykj3NWrllMrG06.d.ts +95 -0
- package/data/_vLykj3NWrllMrG06.js +1 -0
- package/data/vLykj3NWrllMrG06.js +335 -71
- package/libs/gltf-viewer/Subscribe.d.ts +76 -0
- package/libs/gltf-viewer/Subscribe.js +233 -0
- package/libs/gltf-viewer/coordsMoveByOffset.d.ts +13 -0
- package/libs/gltf-viewer/coordsMoveByOffset.js +22 -0
- package/libs/gltf-viewer/coordsToDirection.d.ts +5 -0
- package/{components/PBRView/index.js → libs/gltf-viewer/coordsToDirection.js} +14 -18
- package/libs/gltf-viewer/formatRad.d.ts +1 -0
- package/libs/gltf-viewer/formatRad.js +13 -0
- package/libs/gltf-viewer/getFrameTime.d.ts +1 -0
- package/libs/gltf-viewer/getFrameTime.js +28 -0
- package/libs/gltf-viewer/index.d.ts +79 -0
- package/libs/gltf-viewer/index.js +765 -0
- package/libs/gltf-viewer/mouseWheel.d.ts +2 -0
- package/libs/gltf-viewer/mouseWheel.js +59 -0
- package/libs/gltf-viewer/requestAnimationFrame.d.ts +1 -0
- package/libs/gltf-viewer/requestAnimationFrame.js +18 -0
- package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +1 -0
- package/libs/gltf-viewer/requestAnimationFrameInterval.js +31 -0
- package/libs/gltf-viewer/uuid.d.ts +4 -0
- package/libs/gltf-viewer/uuid.js +28 -0
- package/package.json +5 -4
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +2 -0
- package/plugins/CSS3DRenderPlugin/index.js +17 -12
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +34 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +1 -1
- package/plugins/ModelChassisCompassPlugin/index.js +2 -1
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
- package/plugins/ModelEntryDoorGuidePlugin/index.js +28 -19
- package/plugins/ModelExtrudeWallsPlugin/index.js +2 -2
- package/plugins/ModelRoomLabelPlugin/Controller.js +1 -0
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +5 -5
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +2 -2
- package/plugins/ModelRoomLabelPlugin/index.d.ts +4 -0
- package/plugins/ModelRoomLabelPlugin/index.js +7 -2
- package/plugins/ModelTVVideoPlugin/index.js +4 -2
- package/plugins/ModelViewPlugin/index.js +2 -2
- package/plugins/PanoCursorRaycasterPlugin/index.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/createBox.js +3 -0
- package/plugins/PanoMaskSelectorPlugin/index.js +3 -1
- package/plugins/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/plugins/PanoMeasurePlugin/Controller/BaseController.js +105 -0
- package/plugins/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/plugins/PanoMeasurePlugin/Controller/EditController.js +343 -0
- package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.js +69 -0
- package/plugins/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/plugins/PanoMeasurePlugin/Controller/WatchController.js +373 -0
- package/plugins/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/plugins/PanoMeasurePlugin/Controller/index.js +230 -0
- package/plugins/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/plugins/PanoMeasurePlugin/Model/index.js +237 -0
- package/plugins/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/plugins/PanoMeasurePlugin/Model/line.js +123 -0
- package/plugins/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Model/point.js +72 -0
- package/plugins/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Model/polyline.js +111 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +11 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +11 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +11 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.js +184 -0
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.js +68 -0
- package/plugins/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/plugins/PanoMeasurePlugin/Modules/GuideController.js +107 -0
- package/plugins/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/plugins/PanoMeasurePlugin/Modules/Magnifier.js +139 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.js +26 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +169 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +59 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/index.js +125 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/plugins/PanoMeasurePlugin/Modules/UIController/style.js +103 -0
- package/plugins/PanoMeasurePlugin/index.d.ts +7 -0
- package/plugins/PanoMeasurePlugin/index.js +20 -0
- package/plugins/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/plugins/PanoMeasurePlugin/typings/data.js +7 -0
- package/plugins/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/plugins/PanoMeasurePlugin/typings/event.type.js +7 -0
- package/plugins/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/plugins/PanoMeasurePlugin/typings/utils.type.js +7 -0
- package/plugins/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/clearGroup.js +16 -0
- package/plugins/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/plugins/PanoMeasurePlugin/utils/constants.js +47 -0
- package/plugins/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/plugins/PanoMeasurePlugin/utils/distanceDom.js +147 -0
- package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.js +39 -0
- package/plugins/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/plugins/PanoMeasurePlugin/utils/findClosestPoint.js +49 -0
- package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +20 -0
- package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +33 -0
- package/plugins/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/plugins/PanoMeasurePlugin/utils/ironbox.js +14 -0
- package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.js +16 -0
- package/plugins/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/plugins/PanoMeasurePlugin/utils/line.js +61 -0
- package/plugins/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/plugins/PanoMeasurePlugin/utils/math.js +57 -0
- package/plugins/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/plugins/PanoMeasurePlugin/utils/mouseGroup.js +42 -0
- package/plugins/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/plugins/PanoMeasurePlugin/utils/ndc2Screen.js +16 -0
- package/plugins/PanoRulerPlugin/index.d.ts +4 -0
- package/plugins/PanoRulerPlugin/index.js +8 -3
- package/plugins/PanoTVVideoPlugin/index.d.ts +2 -0
- package/plugins/PanoTVVideoPlugin/index.js +20 -14
- package/plugins/TreasurePlugin/Controller.js +2 -2
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +2 -2
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -1
- package/plugins/floorplan/Assets/floorplanExtraObject.js +3 -3
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +5 -2
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +22 -11
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +4 -4
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +5 -5
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +2 -2
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +2 -2
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.d.ts +11 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.js +174 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.d.ts +8 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.js +182 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +14 -2
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +3 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +1 -1
- package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.d.ts +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.js +7 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +1 -1
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +1 -1
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +3 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +4 -4
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +2 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +2 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +2 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +2 -2
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +1 -1
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -3
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +3 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +16 -6
- package/plugins/floorplan/index.d.ts +4 -0
- package/plugins/floorplan/index.js +13 -0
- package/plugins/floorplan/typings/floorplanData.d.ts +2 -0
- package/plugins/floorplan/typings/floorplanServerData.d.ts +3 -1
- package/plugins/floorplan/typings/floorplanServerData.js +3 -3
- package/plugins/floorplan/utils/formatData.js +3 -2
- package/plugins/floorplan/utils/formatPosition.js +2 -0
- package/shared-utils/Subscribe.js +4 -2
- package/shared-utils/animationFrame/BetterTween.js +5 -1
- package/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/shared-utils/{changeModelCanvansOpacity.js → changeModelCanvasOpacity.js} +2 -2
- package/shared-utils/filter.js +4 -2
- package/shared-utils/math/evenNumber.d.ts +3 -1
- package/shared-utils/math/evenNumber.js +4 -2
- package/shared-utils/math/planimetry.js +2 -0
- package/shared-utils/removeArrayItem.d.ts +7 -0
- package/shared-utils/removeArrayItem.js +22 -0
- package/shared-utils/three/loadTexture.d.ts +2 -2
- package/shared-utils/three/loadTexture.js +21 -2
- package/typedoc/libs.d.ts +1 -0
- package/typedoc/libs.js +7 -0
- package/components/PBRView/index.d.ts +0 -14
- package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
|
@@ -43,7 +43,7 @@ var _getPxmm = _interopRequireDefault(require("../../../shared-utils/getPxmm"));
|
|
|
43
43
|
|
|
44
44
|
var _components = _interopRequireDefault(require("../ModelFloorplanPlugin/components"));
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _changeModelCanvasOpacity = _interopRequireDefault(require("../../../shared-utils/changeModelCanvasOpacity"));
|
|
47
47
|
|
|
48
48
|
var _style = require("./style");
|
|
49
49
|
|
|
@@ -218,7 +218,7 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
218
218
|
this.visible = true;
|
|
219
219
|
this.updateSize();
|
|
220
220
|
this.render(renderDuration);
|
|
221
|
-
(0,
|
|
221
|
+
(0, _changeModelCanvasOpacity["default"])(this.five, modelOpacity, renderDuration);
|
|
222
222
|
this.five.on('wantsGesture', this.handleWantsGesture);
|
|
223
223
|
}
|
|
224
224
|
}, {
|
|
@@ -227,7 +227,7 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
227
227
|
var modelOpacity = 1;
|
|
228
228
|
var renderDuration = 0;
|
|
229
229
|
this.visible = false;
|
|
230
|
-
(0,
|
|
230
|
+
(0, _changeModelCanvasOpacity["default"])(this.five, modelOpacity, renderDuration);
|
|
231
231
|
this.render();
|
|
232
232
|
this.five.off('wantsGesture', this.handleWantsGesture);
|
|
233
233
|
}
|
|
@@ -238,6 +238,13 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
238
238
|
value: function render(duration) {
|
|
239
239
|
if (!this.container) return;
|
|
240
240
|
if (this.size.width === 0) return;
|
|
241
|
+
var _this$configs = this.configs,
|
|
242
|
+
cameraImage = _this$configs.cameraImage,
|
|
243
|
+
hoverEnable = _this$configs.hoverEnable,
|
|
244
|
+
getLabelElement = _this$configs.getLabelElement,
|
|
245
|
+
roomLabelsEnable = _this$configs.roomLabelsEnable,
|
|
246
|
+
compassEnable = _this$configs.compassEnable,
|
|
247
|
+
ruleLabelsEnable = _this$configs.ruleLabelsEnable;
|
|
241
248
|
var props = {
|
|
242
249
|
five: this.five,
|
|
243
250
|
pxmm: this.pxmm,
|
|
@@ -247,9 +254,12 @@ var TopviewFloorplanPluginController = /*#__PURE__*/function () {
|
|
|
247
254
|
floorIndex: this.floorIndex,
|
|
248
255
|
floorplanData: this.floorplanData,
|
|
249
256
|
onRoomHeightClick: this.handleClick,
|
|
250
|
-
cameraImage:
|
|
251
|
-
hoverEnable:
|
|
252
|
-
|
|
257
|
+
cameraImage: cameraImage,
|
|
258
|
+
hoverEnable: hoverEnable !== null && hoverEnable !== void 0 ? hoverEnable : false,
|
|
259
|
+
roomLabelsEnable: roomLabelsEnable !== null && roomLabelsEnable !== void 0 ? roomLabelsEnable : true,
|
|
260
|
+
compassEnable: compassEnable !== null && compassEnable !== void 0 ? compassEnable : true,
|
|
261
|
+
ruleLabelsEnable: ruleLabelsEnable !== null && ruleLabelsEnable !== void 0 ? ruleLabelsEnable : true,
|
|
262
|
+
getLabelElement: getLabelElement,
|
|
253
263
|
lastPanoramaLongitude: this.lastPanoramaLongitude
|
|
254
264
|
};
|
|
255
265
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.FloorplanPluginServerParams = void 0;
|
|
9
|
+
var FloorplanPluginServerParams = {
|
|
10
|
+
name: 'FloorplanPlugin',
|
|
11
|
+
version: 0
|
|
12
|
+
};
|
|
13
|
+
exports.FloorplanPluginServerParams = FloorplanPluginServerParams;
|
|
@@ -77,11 +77,13 @@ export interface FloorplanRoomItem {
|
|
|
77
77
|
/** 当前房间里的 observer 索引 */
|
|
78
78
|
observerIndexs: number[];
|
|
79
79
|
}
|
|
80
|
+
export declare type FloorplanServerRuleLabels = Record<'top' | 'right' | 'bottom' | 'left', FloorplanPosition[][]>;
|
|
80
81
|
/** 当前楼层的数据 */
|
|
81
82
|
export interface FloorplanFloorData {
|
|
82
83
|
floorName: string;
|
|
83
84
|
floorIndex: number;
|
|
84
85
|
rooms: FloorplanRoomItem[];
|
|
86
|
+
rules: FloorplanServerRuleLabels;
|
|
85
87
|
}
|
|
86
88
|
/** 对 observer 做一些样式上的计算
|
|
87
89
|
* @description 每一个 floorplanObserver 对应一个 observer
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** 房屋数据映射表 */
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ROOM_FETILE_TYPE_MAP: ({
|
|
3
3
|
type: number;
|
|
4
4
|
floorType: number;
|
|
5
5
|
roomType: string;
|
|
@@ -96,11 +96,13 @@ export interface FloorplanServerRoomItem {
|
|
|
96
96
|
/** 当前房间里的 observer 索引 */
|
|
97
97
|
observer_indexs: number[];
|
|
98
98
|
}
|
|
99
|
+
export declare type FloorplanServerRuleLabels = Record<'top' | 'right' | 'bottom' | 'left', FloorplanServerPosition[][]>;
|
|
99
100
|
/** 当前楼层的数据 */
|
|
100
101
|
export interface FloorplanServerFloorData {
|
|
101
102
|
floor_name: string;
|
|
102
103
|
floor_index: number;
|
|
103
104
|
rooms: FloorplanServerRoomItem[];
|
|
105
|
+
rules: FloorplanServerRuleLabels;
|
|
104
106
|
}
|
|
105
107
|
/** 对 observer 做一些样式上的计算
|
|
106
108
|
* @description 每一个 FloorplanServer_observer 对应一个 observer
|
|
@@ -5,10 +5,10 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.ROOM_TYPE_MAP = exports.
|
|
8
|
+
exports.ROOM_TYPE_MAP = exports.ROOM_FETILE_TYPE_MAP = exports.FLOOR_TYPE_MAP = void 0;
|
|
9
9
|
|
|
10
10
|
/** 房屋数据映射表 */
|
|
11
|
-
var
|
|
11
|
+
var ROOM_FETILE_TYPE_MAP = [{
|
|
12
12
|
type: 0,
|
|
13
13
|
floorType: 1,
|
|
14
14
|
roomType: '100900000012',
|
|
@@ -308,7 +308,7 @@ var ROOM_DETILE_TYPE_MAP = [{
|
|
|
308
308
|
}];
|
|
309
309
|
/** 地板信息映射表 */
|
|
310
310
|
|
|
311
|
-
exports.
|
|
311
|
+
exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
|
|
312
312
|
var FLOOR_TYPE_MAP = [{
|
|
313
313
|
type: 0,
|
|
314
314
|
description: '木质地板'
|
|
@@ -130,7 +130,8 @@ function formatFloorData(_data) {
|
|
|
130
130
|
return {
|
|
131
131
|
floorName: _data.floor_name,
|
|
132
132
|
floorIndex: _data.floor_index,
|
|
133
|
-
rooms: _data.rooms.map(formatRoom)
|
|
133
|
+
rooms: _data.rooms.map(formatRoom),
|
|
134
|
+
rules: _data.rules
|
|
134
135
|
};
|
|
135
136
|
}
|
|
136
137
|
|
|
@@ -198,7 +199,7 @@ function formatExtraObjects(data, five, floorplanData) {
|
|
|
198
199
|
var extraObjects = data.map(function (object) {
|
|
199
200
|
var position = object.position;
|
|
200
201
|
var icon = object.icon ? object.icon : {
|
|
201
|
-
url: _floorplanExtraObject.
|
|
202
|
+
url: _floorplanExtraObject.FLOORPLAN_EXTRA_OBJECT_IMAGE,
|
|
202
203
|
width: 45,
|
|
203
204
|
height: 48
|
|
204
205
|
};
|
|
@@ -19,6 +19,8 @@ require("core-js/modules/es.array.concat.js");
|
|
|
19
19
|
|
|
20
20
|
require("core-js/modules/es.array.for-each.js");
|
|
21
21
|
|
|
22
|
+
require("core-js/modules/es.object.to-string.js");
|
|
23
|
+
|
|
22
24
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
23
25
|
|
|
24
26
|
require("core-js/modules/es.array.map.js");
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.slice.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.function.name.js");
|
|
8
6
|
|
|
9
7
|
require("core-js/modules/es.array.from.js");
|
|
10
8
|
|
|
11
9
|
require("core-js/modules/es.string.iterator.js");
|
|
12
10
|
|
|
11
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
12
|
+
|
|
13
13
|
require("core-js/modules/es.symbol.js");
|
|
14
14
|
|
|
15
15
|
require("core-js/modules/es.symbol.description.js");
|
|
@@ -35,6 +35,8 @@ require("core-js/modules/es.array.concat.js");
|
|
|
35
35
|
|
|
36
36
|
require("core-js/modules/es.array.filter.js");
|
|
37
37
|
|
|
38
|
+
require("core-js/modules/es.object.to-string.js");
|
|
39
|
+
|
|
38
40
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
39
41
|
|
|
40
42
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -16,8 +16,12 @@ require("core-js/modules/es.array.concat.js");
|
|
|
16
16
|
|
|
17
17
|
require("core-js/modules/es.array.for-each.js");
|
|
18
18
|
|
|
19
|
+
require("core-js/modules/es.object.to-string.js");
|
|
20
|
+
|
|
19
21
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
20
22
|
|
|
23
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
24
|
+
|
|
21
25
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
22
26
|
|
|
23
27
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
@@ -85,7 +89,7 @@ var BetterTween = /*#__PURE__*/function (_TWEEN$Tween) {
|
|
|
85
89
|
return _this;
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
return BetterTween;
|
|
92
|
+
return (0, _createClass2["default"])(BetterTween);
|
|
89
93
|
}(_tween["default"].Tween);
|
|
90
94
|
|
|
91
95
|
exports.BetterTween = BetterTween;
|
|
@@ -5,7 +5,7 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = changeModelCanvasOpacity;
|
|
9
9
|
|
|
10
10
|
require("core-js/modules/es.array.iterator.js");
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ require("core-js/modules/web.dom-collections.iterator.js");
|
|
|
19
19
|
|
|
20
20
|
require("core-js/modules/web.timers.js");
|
|
21
21
|
|
|
22
|
-
function
|
|
22
|
+
function changeModelCanvasOpacity(five, opacity) {
|
|
23
23
|
var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;
|
|
24
24
|
var fiveEle = five.getElement();
|
|
25
25
|
if (!fiveEle) return;
|
package/shared-utils/filter.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.slice.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.function.name.js");
|
|
8
6
|
|
|
9
7
|
require("core-js/modules/es.array.from.js");
|
|
10
8
|
|
|
11
9
|
require("core-js/modules/es.string.iterator.js");
|
|
12
10
|
|
|
11
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
12
|
+
|
|
13
13
|
require("core-js/modules/es.symbol.js");
|
|
14
14
|
|
|
15
15
|
require("core-js/modules/es.symbol.description.js");
|
|
@@ -38,6 +38,8 @@ exports.pick = pick;
|
|
|
38
38
|
|
|
39
39
|
require("core-js/modules/es.array.for-each.js");
|
|
40
40
|
|
|
41
|
+
require("core-js/modules/es.object.to-string.js");
|
|
42
|
+
|
|
41
43
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
42
44
|
|
|
43
45
|
require("core-js/modules/es.object.keys.js");
|
|
@@ -7,7 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = evenNumber;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
require("core-js/modules/es.number.constructor.js");
|
|
11
|
+
|
|
12
|
+
function evenNumber(num, config) {
|
|
11
13
|
var roundNum = Math.round(num);
|
|
12
|
-
return roundNum % 2 === 0 ? roundNum : roundNum + 1;
|
|
14
|
+
return roundNum % 2 === 0 ? roundNum : roundNum + Number(config !== null && config !== void 0 && config.smaller ? -1 : 1);
|
|
13
15
|
}
|
|
@@ -25,6 +25,8 @@ require("core-js/modules/es.array.reverse.js");
|
|
|
25
25
|
|
|
26
26
|
require("core-js/modules/es.array.for-each.js");
|
|
27
27
|
|
|
28
|
+
require("core-js/modules/es.object.to-string.js");
|
|
29
|
+
|
|
28
30
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
29
31
|
|
|
30
32
|
require("core-js/modules/es.array.reduce.js");
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = removeArrayItem;
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/es.array.splice.js");
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 从数组中删除
|
|
14
|
+
* @param item
|
|
15
|
+
* @param array
|
|
16
|
+
* @return 如果删除返回 item
|
|
17
|
+
*/
|
|
18
|
+
function removeArrayItem(item, array) {
|
|
19
|
+
for (var index = 0, len = array.length; index < len; index++) {
|
|
20
|
+
if (item === array[index]) return array.splice(index, 1)[0];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare function loadTexture(url: string): Promise<Texture>;
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export declare function loadTexture(url: string): Promise<THREE.Texture>;
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.string.iterator.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.weak-map.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
10
|
+
|
|
3
11
|
require("core-js/modules/es.object.define-property.js");
|
|
4
12
|
|
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
|
+
|
|
5
15
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
16
|
|
|
17
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
+
|
|
7
19
|
Object.defineProperty(exports, "__esModule", {
|
|
8
20
|
value: true
|
|
9
21
|
});
|
|
@@ -17,9 +29,13 @@ require("core-js/modules/es.promise.js");
|
|
|
17
29
|
|
|
18
30
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
19
31
|
|
|
20
|
-
var
|
|
32
|
+
var THREE = _interopRequireWildcard(require("three"));
|
|
33
|
+
|
|
34
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
+
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
37
|
|
|
22
|
-
var textureLoader = new
|
|
38
|
+
var textureLoader = new THREE.TextureLoader();
|
|
23
39
|
|
|
24
40
|
function loadTexture(_x) {
|
|
25
41
|
return _loadTexture.apply(this, arguments);
|
|
@@ -33,6 +49,9 @@ function _loadTexture() {
|
|
|
33
49
|
case 0:
|
|
34
50
|
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
35
51
|
textureLoader.load(url, resolve, undefined, reject);
|
|
52
|
+
}).then(function (texture) {
|
|
53
|
+
texture.encoding = THREE.sRGBEncoding;
|
|
54
|
+
return texture;
|
|
36
55
|
}));
|
|
37
56
|
|
|
38
57
|
case 1:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GLTFViewerSize, GLTFViewerConfig, GLTFViewerState, GLTFViewerEventMap, GLTFViewer, } from '../libs/gltf-viewer';
|
package/typedoc/libs.js
ADDED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface PBRViewPropTypes {
|
|
3
|
-
hidden?: boolean;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* 查看 **PBR**模型
|
|
8
|
-
*
|
|
9
|
-
* @TODO 待排期
|
|
10
|
-
*
|
|
11
|
-
* > RD 小哥哥 正在 加班研发中 ...
|
|
12
|
-
*/
|
|
13
|
-
declare const PBRView: React.FC<PBRViewPropTypes>;
|
|
14
|
-
export default PBRView;
|