@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
|
@@ -0,0 +1,59 @@
|
|
|
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.addMouseWheel = addMouseWheel;
|
|
9
|
+
exports.removeMouseWheel = removeMouseWheel;
|
|
10
|
+
// 兼容 滚轮事件
|
|
11
|
+
var _document = document;
|
|
12
|
+
var _window = window;
|
|
13
|
+
var eventName = _document.mozFullScreen ? 'DOMMouseScroll' : 'mousewheel';
|
|
14
|
+
var isW3cEvent = !!window.addEventListener;
|
|
15
|
+
var isIEEvent = !!_window.attachEvent;
|
|
16
|
+
|
|
17
|
+
function fnWrapper(element, fn) {
|
|
18
|
+
return fn.__mouseWheelWrapper = function (event) {
|
|
19
|
+
event = event || window.event;
|
|
20
|
+
|
|
21
|
+
if (isW3cEvent) {
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (isIEEvent) {
|
|
26
|
+
event.returnValue = false;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (eventName == 'DOMMouseScroll' || eventName == 'mousewheel') {
|
|
30
|
+
event.delta = event.wheelDelta ? event.wheelDelta / 120 : -(event.detail || 0) / 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
fn.call(element, event);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function addMouseWheel(element, fn) {
|
|
38
|
+
var __mouseWheelWrapper = fnWrapper(element, fn);
|
|
39
|
+
|
|
40
|
+
if (isW3cEvent) {
|
|
41
|
+
element.addEventListener(eventName, __mouseWheelWrapper, false);
|
|
42
|
+
} else if (isIEEvent) {
|
|
43
|
+
var _element = element;
|
|
44
|
+
|
|
45
|
+
_element.attachEvent('on' + eventName, __mouseWheelWrapper);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function removeMouseWheel(element, fn) {
|
|
50
|
+
if (isW3cEvent) {
|
|
51
|
+
element.removeEventListener(eventName, fn.__mouseWheelWrapper, false);
|
|
52
|
+
} else if (isIEEvent) {
|
|
53
|
+
var _element = element;
|
|
54
|
+
|
|
55
|
+
_element.detachEvent('on' + eventName, fn.__mouseWheelWrapper);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
delete fn.__mouseWheelWrapper;
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const requestAnimationFrame: ((callback: FrameRequestCallback) => number) & typeof globalThis.requestAnimationFrame;
|
|
@@ -0,0 +1,18 @@
|
|
|
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.requestAnimationFrame = void 0;
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/web.timers.js");
|
|
11
|
+
|
|
12
|
+
var _window = window;
|
|
13
|
+
|
|
14
|
+
var requestAnimationFrame = window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame || _window.msRequestAnimationFrame || function (fn) {
|
|
15
|
+
return setTimeout(fn, 16);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.requestAnimationFrame = requestAnimationFrame;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function requestAnimationFrameInterval(fn: any, context?: any, args?: any[]): () => void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.requestAnimationFrameInterval = requestAnimationFrameInterval;
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.array.concat.js");
|
|
13
|
+
|
|
14
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
|
+
|
|
16
|
+
var _requestAnimationFrame = require("./requestAnimationFrame");
|
|
17
|
+
|
|
18
|
+
function requestAnimationFrameInterval(fn, context) {
|
|
19
|
+
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
20
|
+
var stoped = false;
|
|
21
|
+
|
|
22
|
+
var _loop = function loop(time) {
|
|
23
|
+
if (fn) fn.call.apply(fn, [context, time].concat((0, _toConsumableArray2["default"])(args)));
|
|
24
|
+
if (!stoped && _loop) (0, _requestAnimationFrame.requestAnimationFrame)(_loop);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
(0, _requestAnimationFrame.requestAnimationFrame)(_loop);
|
|
28
|
+
return function () {
|
|
29
|
+
_loop = null, stoped = true;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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"] = uuid;
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/es.date.to-string.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
|
|
14
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
15
|
+
|
|
16
|
+
// uuid
|
|
17
|
+
function S4() {
|
|
18
|
+
return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 随机生成一个uuid值
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
function uuid() {
|
|
26
|
+
// then to call it, plus stitch in '4' in the third group
|
|
27
|
+
return (S4() + S4() + '-' + S4() + '-4' + S4().substr(0, 3) + '-' + S4() + '-' + S4() + S4() + S4()).toLowerCase();
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "如视前端
|
|
3
|
+
"version": "0.1.7-alpha.11",
|
|
4
|
+
"description": "如视前端 Components、Plugins 兼部分 SDKs \"Dnalogel\" 库。",
|
|
5
5
|
"author": "BEIKE REALSEE TECHNOLOGY (HK) LIMITED",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@realsee/five": "^5.0.0-alpha.
|
|
7
|
+
"@realsee/five": "^5.0.0-alpha.84",
|
|
8
8
|
"@tweenjs/tween.js": "^18.6.4",
|
|
9
9
|
"@types/styled-jsx": "^2.2.9",
|
|
10
|
+
"hammerjs": "^2.0.8",
|
|
10
11
|
"react": "^16.14.0",
|
|
11
12
|
"styled-jsx": "^3.4.6",
|
|
12
13
|
"three": "0.117.1",
|
|
@@ -19,4 +20,4 @@
|
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"core-js": "^3.20.0"
|
|
21
22
|
}
|
|
22
|
-
}
|
|
23
|
+
}
|
|
@@ -27,6 +27,8 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
27
27
|
|
|
28
28
|
require("core-js/modules/es.regexp.to-string.js");
|
|
29
29
|
|
|
30
|
+
require("core-js/modules/es.promise.js");
|
|
31
|
+
|
|
30
32
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
31
33
|
|
|
32
34
|
var _react = require("@realsee/five/react");
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.string.iterator.js");
|
|
8
6
|
|
|
9
7
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -27,6 +25,8 @@ require("core-js/modules/es.array.map.js");
|
|
|
27
25
|
|
|
28
26
|
require("core-js/modules/es.array.for-each.js");
|
|
29
27
|
|
|
28
|
+
require("core-js/modules/es.object.to-string.js");
|
|
29
|
+
|
|
30
30
|
require("core-js/modules/es.array.find-index.js");
|
|
31
31
|
|
|
32
32
|
require("core-js/modules/es.array.splice.js");
|
|
@@ -47,6 +47,8 @@ var _centerPoint = _interopRequireDefault(require("../../shared-utils/three/cent
|
|
|
47
47
|
|
|
48
48
|
var _transformPositionToVector = _interopRequireDefault(require("../../shared-utils/three/transformPositionToVector3"));
|
|
49
49
|
|
|
50
|
+
var _createResizeObserver = _interopRequireDefault(require("./utils/createResizeObserver"));
|
|
51
|
+
|
|
50
52
|
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); }
|
|
51
53
|
|
|
52
54
|
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; }
|
|
@@ -125,13 +127,19 @@ var CSS3DRenderPlugin = function CSS3DRenderPlugin(five) {
|
|
|
125
127
|
var render = function () {
|
|
126
128
|
if (!inited) {
|
|
127
129
|
var css3DRendererSetSize = function css3DRendererSetSize() {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
// 这里evenNumber策略是遇到奇数会加1,不知道为啥会触发滚动条显示,导致fiveElement变小,fiveElement变小又触发了这里的resize,宽高变小,滚动条消失,然后又触发resize。。。无限循环
|
|
131
|
+
// 为了规避上面这种情况,evenNumber设置了一个参数,遇到奇数可选择减一
|
|
132
|
+
var rendererWidth = (0, _evenNumber["default"])(fiveElement.clientWidth, {
|
|
133
|
+
smaller: true
|
|
134
|
+
});
|
|
135
|
+
var rendererHeight = (0, _evenNumber["default"])(fiveElement.clientHeight, {
|
|
136
|
+
smaller: true
|
|
137
|
+
});
|
|
130
138
|
css3DRenderer.setSize(rendererWidth, rendererHeight);
|
|
131
139
|
};
|
|
132
140
|
|
|
133
141
|
css3DRendererSetSize();
|
|
134
|
-
resizeObserver =
|
|
142
|
+
resizeObserver = (0, _createResizeObserver["default"])(css3DRendererSetSize, fiveElement);
|
|
135
143
|
css3DRenderer.domElement.style.position = 'absolute';
|
|
136
144
|
css3DRenderer.domElement.style.top = '0';
|
|
137
145
|
css3DRenderer.domElement.style.userSelect = 'none';
|
|
@@ -144,10 +152,10 @@ var CSS3DRenderPlugin = function CSS3DRenderPlugin(five) {
|
|
|
144
152
|
};
|
|
145
153
|
|
|
146
154
|
return function () {
|
|
147
|
-
var _resizeObserver;
|
|
155
|
+
var _resizeObserver, _resizeObserver$obser;
|
|
148
156
|
|
|
149
157
|
scene.add(css3DObject);
|
|
150
|
-
(_resizeObserver = resizeObserver) === null || _resizeObserver === void 0 ? void 0 : _resizeObserver.observe(
|
|
158
|
+
(_resizeObserver = resizeObserver) === null || _resizeObserver === void 0 ? void 0 : (_resizeObserver$obser = _resizeObserver.observe) === null || _resizeObserver$obser === void 0 ? void 0 : _resizeObserver$obser.call(_resizeObserver);
|
|
151
159
|
renderEveryFrame();
|
|
152
160
|
|
|
153
161
|
if (mode === 'behind' && mesh) {
|
|
@@ -190,9 +198,9 @@ var CSS3DRenderPlugin = function CSS3DRenderPlugin(five) {
|
|
|
190
198
|
if (mode === 'behind') state.behindMode = undefined;
|
|
191
199
|
|
|
192
200
|
if (!state.behindMode && !state.frontMode) {
|
|
193
|
-
var _resizeObserver2;
|
|
201
|
+
var _resizeObserver2, _resizeObserver2$unob;
|
|
194
202
|
|
|
195
|
-
(_resizeObserver2 = resizeObserver) === null || _resizeObserver2 === void 0 ? void 0 : _resizeObserver2.unobserve(
|
|
203
|
+
(_resizeObserver2 = resizeObserver) === null || _resizeObserver2 === void 0 ? void 0 : (_resizeObserver2$unob = _resizeObserver2.unobserve) === null || _resizeObserver2$unob === void 0 ? void 0 : _resizeObserver2$unob.call(_resizeObserver2);
|
|
196
204
|
}
|
|
197
205
|
}
|
|
198
206
|
|
|
@@ -209,9 +217,6 @@ var CSS3DRenderPlugin = function CSS3DRenderPlugin(five) {
|
|
|
209
217
|
state.disposeCallbacks.push(dispose);
|
|
210
218
|
}
|
|
211
219
|
|
|
212
|
-
console.log({
|
|
213
|
-
autoRender: autoRender
|
|
214
|
-
});
|
|
215
220
|
if (autoRender) render();
|
|
216
221
|
return {
|
|
217
222
|
container: container,
|
|
@@ -0,0 +1,34 @@
|
|
|
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"] = createResizeObserver;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @description: 究极简陋的 ResizeObserver polyfill
|
|
12
|
+
*/
|
|
13
|
+
function createResizeObserver(func, element) {
|
|
14
|
+
if (!element || typeof ResizeObserver === 'undefined') {
|
|
15
|
+
return {
|
|
16
|
+
observe: function observe() {
|
|
17
|
+
return window.addEventListener('resize', func);
|
|
18
|
+
},
|
|
19
|
+
unobserve: function unobserve() {
|
|
20
|
+
return window.removeEventListener('resize', func);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
} else {
|
|
24
|
+
var observer = new ResizeObserver(func);
|
|
25
|
+
return {
|
|
26
|
+
observe: function observe() {
|
|
27
|
+
return observer.observe(element);
|
|
28
|
+
},
|
|
29
|
+
unobserve: function unobserve() {
|
|
30
|
+
return observer.unobserve(element);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -15,5 +15,5 @@ export interface ModelChassisCompassPluginExportType {
|
|
|
15
15
|
/**
|
|
16
16
|
* 模型底盘指南针插件
|
|
17
17
|
*/
|
|
18
|
-
declare const ModelChassisCompassPlugin: FivePlugin<ModelChassisCompassPluginParameterType, ModelChassisCompassPluginExportType>;
|
|
18
|
+
export declare const ModelChassisCompassPlugin: FivePlugin<ModelChassisCompassPluginParameterType, ModelChassisCompassPluginExportType>;
|
|
19
19
|
export default ModelChassisCompassPlugin;
|
|
@@ -21,7 +21,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", {
|
|
22
22
|
value: true
|
|
23
23
|
});
|
|
24
|
-
exports["default"] = void 0;
|
|
24
|
+
exports["default"] = exports.ModelChassisCompassPlugin = void 0;
|
|
25
25
|
|
|
26
26
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
27
27
|
|
|
@@ -153,5 +153,6 @@ var ModelChassisCompassPlugin = function ModelChassisCompassPlugin(five, params)
|
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
+
exports.ModelChassisCompassPlugin = ModelChassisCompassPlugin;
|
|
156
157
|
var _default = ModelChassisCompassPlugin;
|
|
157
158
|
exports["default"] = _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import { Vector3Position } from '../../typings/math.type';
|
|
3
3
|
export interface ModelEntryDoorGuidePluginData {
|
|
4
|
-
position
|
|
5
|
-
rad
|
|
4
|
+
position?: Vector3Position;
|
|
5
|
+
rad?: number;
|
|
6
6
|
fbx_url?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare type ModelEntryDoorGuidePluginParameterType = {
|
|
@@ -19,4 +19,8 @@ export interface ModelEntryDoorGuidePluginExportType {
|
|
|
19
19
|
* 模型入户门引导插件
|
|
20
20
|
*/
|
|
21
21
|
declare const ModelEntryDoorGuidePlugin: FivePlugin<ModelEntryDoorGuidePluginParameterType, ModelEntryDoorGuidePluginExportType>;
|
|
22
|
+
export declare const modelEntryDoorGuidePluginServerParams: {
|
|
23
|
+
name: string;
|
|
24
|
+
version: number;
|
|
25
|
+
};
|
|
22
26
|
export default ModelEntryDoorGuidePlugin;
|
|
@@ -19,7 +19,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", {
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
|
-
exports["default"] = void 0;
|
|
22
|
+
exports.modelEntryDoorGuidePluginServerParams = exports["default"] = void 0;
|
|
23
23
|
|
|
24
24
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
25
25
|
|
|
@@ -61,38 +61,40 @@ var ModelEntryDoorGuidePlugin = function ModelEntryDoorGuidePlugin(five, params)
|
|
|
61
61
|
|
|
62
62
|
var load = /*#__PURE__*/function () {
|
|
63
63
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
|
|
64
|
-
var _data$position, _data$
|
|
64
|
+
var _data$position, _data$rad, _data$fbx_url, _object$children, _object$children$, _object$children$$chi, _object$children$$chi2;
|
|
65
65
|
|
|
66
|
-
var modelPosition, rad, fbxUrl, object, textMesh;
|
|
66
|
+
var position, modelPosition, rad, fbxUrl, object, textMesh;
|
|
67
67
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
68
68
|
while (1) {
|
|
69
69
|
switch (_context.prev = _context.next) {
|
|
70
70
|
case 0:
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
position = (_data$position = data === null || data === void 0 ? void 0 : data.position) !== null && _data$position !== void 0 ? _data$position : defaultModelPosition;
|
|
72
|
+
|
|
73
|
+
if (position) {
|
|
74
|
+
_context.next = 3;
|
|
73
75
|
break;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
return _context.abrupt("return", Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
77
79
|
|
|
78
|
-
case
|
|
79
|
-
modelPosition = (0, _transformPositionToVector["default"])(
|
|
80
|
+
case 3:
|
|
81
|
+
modelPosition = (0, _transformPositionToVector["default"])(position);
|
|
80
82
|
rad = (_data$rad = data === null || data === void 0 ? void 0 : data.rad) !== null && _data$rad !== void 0 ? _data$rad : defaultRad;
|
|
81
83
|
fbxUrl = (_data$fbx_url = data === null || data === void 0 ? void 0 : data.fbx_url) !== null && _data$fbx_url !== void 0 ? _data$fbx_url : defaultFbxUrl;
|
|
82
84
|
state.rad = rad;
|
|
83
85
|
|
|
84
86
|
if (!(rad === undefined)) {
|
|
85
|
-
_context.next =
|
|
87
|
+
_context.next = 9;
|
|
86
88
|
break;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
return _context.abrupt("return", Promise.reject("ModelEntryDoorGuidePlugin.load(): rad is ".concat(rad)));
|
|
90
92
|
|
|
91
|
-
case
|
|
92
|
-
_context.next =
|
|
93
|
+
case 9:
|
|
94
|
+
_context.next = 11;
|
|
93
95
|
return new _FBXLoader.FBXLoader().loadAsync(fbxUrl);
|
|
94
96
|
|
|
95
|
-
case
|
|
97
|
+
case 11:
|
|
96
98
|
object = _context.sent;
|
|
97
99
|
// 设置位置
|
|
98
100
|
object.position.copy(modelPosition);
|
|
@@ -105,13 +107,13 @@ var ModelEntryDoorGuidePlugin = function ModelEntryDoorGuidePlugin(five, params)
|
|
|
105
107
|
textMesh = (_object$children = object.children) === null || _object$children === void 0 ? void 0 : (_object$children$ = _object$children[0]) === null || _object$children$ === void 0 ? void 0 : (_object$children$$chi = _object$children$.children) === null || _object$children$$chi === void 0 ? void 0 : (_object$children$$chi2 = _object$children$$chi[3]) === null || _object$children$$chi2 === void 0 ? void 0 : _object$children$$chi2.clone();
|
|
106
108
|
|
|
107
109
|
if (textMesh) {
|
|
108
|
-
_context.next =
|
|
110
|
+
_context.next = 19;
|
|
109
111
|
break;
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
return _context.abrupt("return", Promise.reject("ModelEntryDoorGuidePlugin.load(): textMesh is ".concat(textMesh)));
|
|
113
115
|
|
|
114
|
-
case
|
|
116
|
+
case 19:
|
|
115
117
|
textMesh.material = new THREE.MeshBasicMaterial({
|
|
116
118
|
transparent: true,
|
|
117
119
|
map: (0, _createCanvasTextTexture["default"])('入户门')
|
|
@@ -121,7 +123,7 @@ var ModelEntryDoorGuidePlugin = function ModelEntryDoorGuidePlugin(five, params)
|
|
|
121
123
|
state.object = object;
|
|
122
124
|
return _context.abrupt("return", true);
|
|
123
125
|
|
|
124
|
-
case
|
|
126
|
+
case 24:
|
|
125
127
|
case "end":
|
|
126
128
|
return _context.stop();
|
|
127
129
|
}
|
|
@@ -214,22 +216,24 @@ var ModelEntryDoorGuidePlugin = function ModelEntryDoorGuidePlugin(five, params)
|
|
|
214
216
|
five.needsRender = true;
|
|
215
217
|
};
|
|
216
218
|
|
|
217
|
-
var modeChangeHandler = function modeChangeHandler(
|
|
218
|
-
return
|
|
219
|
+
var modeChangeHandler = function modeChangeHandler(config) {
|
|
220
|
+
return function (mode) {
|
|
221
|
+
return mode === 'Floorplan' ? show(config) : hide();
|
|
222
|
+
};
|
|
219
223
|
};
|
|
220
224
|
|
|
221
225
|
var enable = function enable(config) {
|
|
222
226
|
if (state.enabled) return true;
|
|
223
227
|
state.enabled = true;
|
|
224
|
-
five.
|
|
225
|
-
|
|
228
|
+
modeChangeHandler(config)(five.currentMode);
|
|
229
|
+
five.on('modeChange', modeChangeHandler(config));
|
|
226
230
|
return true;
|
|
227
231
|
};
|
|
228
232
|
|
|
229
233
|
var disable = function disable() {
|
|
230
234
|
if (!state.enabled) return true;
|
|
231
235
|
state.enabled = false;
|
|
232
|
-
five.off('modeChange', modeChangeHandler);
|
|
236
|
+
five.off('modeChange', modeChangeHandler());
|
|
233
237
|
return true;
|
|
234
238
|
};
|
|
235
239
|
|
|
@@ -240,5 +244,10 @@ var ModelEntryDoorGuidePlugin = function ModelEntryDoorGuidePlugin(five, params)
|
|
|
240
244
|
};
|
|
241
245
|
};
|
|
242
246
|
|
|
247
|
+
var modelEntryDoorGuidePluginServerParams = {
|
|
248
|
+
name: 'ModelEntryDoorGuidePlugin',
|
|
249
|
+
version: 0
|
|
250
|
+
};
|
|
251
|
+
exports.modelEntryDoorGuidePluginServerParams = modelEntryDoorGuidePluginServerParams;
|
|
243
252
|
var _default = ModelEntryDoorGuidePlugin;
|
|
244
253
|
exports["default"] = _default;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.string.iterator.js");
|
|
8
6
|
|
|
9
7
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -23,6 +21,8 @@ exports.ModelExtrudeWallsPlugin = void 0;
|
|
|
23
21
|
|
|
24
22
|
require("core-js/modules/es.array.for-each.js");
|
|
25
23
|
|
|
24
|
+
require("core-js/modules/es.object.to-string.js");
|
|
25
|
+
|
|
26
26
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
27
27
|
|
|
28
28
|
require("core-js/modules/es.function.name.js");
|
|
@@ -71,6 +71,7 @@ var ModelRoomLabelController = /*#__PURE__*/function () {
|
|
|
71
71
|
this.container.style.width = '100%';
|
|
72
72
|
this.container.style.height = '100%';
|
|
73
73
|
this.container.style.position = 'absolute';
|
|
74
|
+
this.container.style.pointerEvents = 'none';
|
|
74
75
|
this.container.style.left = '0';
|
|
75
76
|
this.container.style.top = '0'; // five lisenter
|
|
76
77
|
|
|
@@ -50,14 +50,14 @@ function RoomLabelItem(props, ref) {
|
|
|
50
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
51
51
|
onClick: handleClick,
|
|
52
52
|
ref: ref,
|
|
53
|
-
className: _style["default"].dynamic([["
|
|
53
|
+
className: _style["default"].dynamic([["312299051", [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]]]) + " " + "room-guid-label-plugin__item"
|
|
54
54
|
}, /*#__PURE__*/React.createElement(_style["default"], {
|
|
55
|
-
id: "
|
|
55
|
+
id: "312299051",
|
|
56
56
|
dynamic: [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]
|
|
57
|
-
}, [".room-guid-label-plugin__item.__jsx-style-dynamic-selector{position:absolute;z-index:0;font-size:".concat((0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), ";-webkit-transform:'';-ms-transform:'';transform:'';cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"), ".room-guid-label-plugin__item-text.__jsx-style-dynamic-selector{position:absolute;left:0;top:".concat((0, _px2rem["default"])(-64), ";-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:").concat((0, _px2rem["default"])(20), ";min-width:").concat((0, _px2rem["default"])(32), ";padding:0 ").concat((0, _px2rem["default"])(6), ";pointer-events:all;background:url('//vrlab-static.ljcdn.com/release/web/room-label-bg.23e9d038.png') no-repeat;background-size:100% 100%;white-space:nowrap;}"), ".room-guid-label-plugin__item-bar.__jsx-style-dynamic-selector{position:absolute;top:".concat((0, _px2rem["default"])(-44), ";height:").concat((0, _px2rem["default"])(48), ";width:").concat((0, _px2rem["default"])(1), ";background-image:linear-gradient(to bottom,rgba(255,255,255,1),rgba(255,255,255,0));}")]), /*#__PURE__*/React.createElement("span", {
|
|
58
|
-
className: _style["default"].dynamic([["
|
|
57
|
+
}, [".room-guid-label-plugin__item.__jsx-style-dynamic-selector{position:absolute;z-index:0;font-size:".concat((0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), ";-webkit-transform:'';-ms-transform:'';transform:'';cursor:pointer;point-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"), ".room-guid-label-plugin__item-text.__jsx-style-dynamic-selector{position:absolute;left:0;top:".concat((0, _px2rem["default"])(-64), ";-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:").concat((0, _px2rem["default"])(20), ";min-width:").concat((0, _px2rem["default"])(32), ";padding:0 ").concat((0, _px2rem["default"])(6), ";pointer-events:all;background:url('//vrlab-static.ljcdn.com/release/web/room-label-bg.23e9d038.png') no-repeat;background-size:100% 100%;white-space:nowrap;}"), ".room-guid-label-plugin__item-bar.__jsx-style-dynamic-selector{position:absolute;top:".concat((0, _px2rem["default"])(-44), ";height:").concat((0, _px2rem["default"])(48), ";width:").concat((0, _px2rem["default"])(1), ";background-image:linear-gradient(to bottom,rgba(255,255,255,1),rgba(255,255,255,0));}")]), /*#__PURE__*/React.createElement("span", {
|
|
58
|
+
className: _style["default"].dynamic([["312299051", [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]]]) + " " + "room-guid-label-plugin__item-text"
|
|
59
59
|
}, roomName), /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: _style["default"].dynamic([["
|
|
60
|
+
className: _style["default"].dynamic([["312299051", [(0, _px2rem["default"])(roomName.length > 3 ? 8 : 10), (0, _px2rem["default"])(-64), (0, _px2rem["default"])(20), (0, _px2rem["default"])(32), (0, _px2rem["default"])(6), (0, _px2rem["default"])(-44), (0, _px2rem["default"])(48), (0, _px2rem["default"])(1)]]]) + " " + "room-guid-label-plugin__item-bar"
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.string.iterator.js");
|
|
8
6
|
|
|
9
7
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -37,6 +35,8 @@ require("core-js/modules/es.array.concat.js");
|
|
|
37
35
|
|
|
38
36
|
require("core-js/modules/es.array.for-each.js");
|
|
39
37
|
|
|
38
|
+
require("core-js/modules/es.object.to-string.js");
|
|
39
|
+
|
|
40
40
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
41
41
|
|
|
42
42
|
require("core-js/modules/es.array.sort.js");
|
|
@@ -2,6 +2,10 @@ import { FivePlugin } from '@realsee/five';
|
|
|
2
2
|
import { ModelRoomLabelController, ModelRoomLabelPluginParameters } from './Controller';
|
|
3
3
|
export declare const ModelRoomLabelPlugin: FivePlugin<ModelRoomLabelPluginParameters, ModelRoomLabelPluginReturnType>;
|
|
4
4
|
export default ModelRoomLabelPlugin;
|
|
5
|
+
export declare const modelRoomLabelPluginServerParams: {
|
|
6
|
+
name: string;
|
|
7
|
+
version: number;
|
|
8
|
+
};
|
|
5
9
|
export type { ModelRoomLabelController } from './Controller';
|
|
6
10
|
export type { ModelRoomLabelPluginData, RoomLabel } from './typings';
|
|
7
11
|
export declare type ModelRoomLabelPluginReturnType = ModelRoomLabelController;
|
|
@@ -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"] = exports.ModelRoomLabelPlugin = void 0;
|
|
8
|
+
exports.modelRoomLabelPluginServerParams = exports["default"] = exports.ModelRoomLabelPlugin = void 0;
|
|
9
9
|
|
|
10
10
|
var _Controller = require("./Controller");
|
|
11
11
|
|
|
@@ -15,4 +15,9 @@ var ModelRoomLabelPlugin = function ModelRoomLabelPlugin(five) {
|
|
|
15
15
|
|
|
16
16
|
exports.ModelRoomLabelPlugin = ModelRoomLabelPlugin;
|
|
17
17
|
var _default = ModelRoomLabelPlugin;
|
|
18
|
-
exports["default"] = _default;
|
|
18
|
+
exports["default"] = _default;
|
|
19
|
+
var modelRoomLabelPluginServerParams = {
|
|
20
|
+
name: 'ModelRoomLabelPlugin',
|
|
21
|
+
version: 0
|
|
22
|
+
};
|
|
23
|
+
exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
|
|
@@ -23,6 +23,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
23
23
|
|
|
24
24
|
require("core-js/modules/es.array.for-each.js");
|
|
25
25
|
|
|
26
|
+
require("core-js/modules/es.object.to-string.js");
|
|
27
|
+
|
|
26
28
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
27
29
|
|
|
28
30
|
require("core-js/modules/es.array.map.js");
|
|
@@ -31,8 +33,6 @@ require("core-js/modules/es.array.iterator.js");
|
|
|
31
33
|
|
|
32
34
|
require("core-js/modules/es.array-buffer.slice.js");
|
|
33
35
|
|
|
34
|
-
require("core-js/modules/es.object.to-string.js");
|
|
35
|
-
|
|
36
36
|
require("core-js/modules/es.typed-array.float32-array.js");
|
|
37
37
|
|
|
38
38
|
require("core-js/modules/es.typed-array.copy-within.js");
|
|
@@ -99,6 +99,8 @@ require("core-js/modules/web.url-search-params.js");
|
|
|
99
99
|
|
|
100
100
|
require("core-js/modules/es.object.assign.js");
|
|
101
101
|
|
|
102
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
103
|
+
|
|
102
104
|
require("core-js/modules/es.array.find.js");
|
|
103
105
|
|
|
104
106
|
require("core-js/modules/es.array.reduce.js");
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.object.to-string.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.string.iterator.js");
|
|
8
6
|
|
|
9
7
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -25,6 +23,8 @@ require("core-js/modules/es.array.concat.js");
|
|
|
25
23
|
|
|
26
24
|
require("core-js/modules/es.array.for-each.js");
|
|
27
25
|
|
|
26
|
+
require("core-js/modules/es.object.to-string.js");
|
|
27
|
+
|
|
28
28
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
29
29
|
|
|
30
30
|
require("core-js/modules/es.array.map.js");
|