@realsee/dnalogel 0.1.3 → 0.1.7-alpha.10
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/ARVideoFigureMesh.js +56 -32
- package/components/ARVideoFigure/ARVideoFigureScene.js +30 -19
- package/components/ARVideoFigure/ImgBgTransparent.js +22 -6
- package/components/ARVideoFigure/ImgBgTransparentMesh.js +40 -30
- package/components/ARVideoFigure/fragmentShader.js +2 -0
- package/components/ARVideoFigure/index.js +22 -6
- package/components/ARVideoFigure/vertexShader.js +2 -0
- package/components/GLTFView/index.d.ts +123 -0
- package/components/GLTFView/index.js +204 -0
- package/components/GlassFilters/index.js +25 -1
- package/components/ModelView/ModelViewController.js +39 -29
- package/components/ModelView/index.js +4 -2
- package/components/PaintBrush/index.js +15 -1
- package/components/PanoTag/index.js +2 -0
- package/data/1aGKl9JmrlXMXx8d.js +2 -0
- package/data/54djM0oR6ky3Ey8e.d.ts +55 -0
- package/data/54djM0oR6ky3Ey8e.js +350 -0
- package/data/6gyq3v1verxD7JO1.js +2 -0
- package/data/8054djM0oR6ky3Ey8e.d.ts +55 -0
- package/data/8054djM0oR6ky3Ey8e.js +350 -0
- package/data/81zxMaeVKLQU93OZMG.d.ts +49 -0
- package/data/81zxMaeVKLQU93OZMG.js +633 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +2 -0
- package/data/PrXel3aqGbp34JQn.js +141 -1
- package/data/XJ6NMLWnkAY3Rdx8.js +2 -0
- package/data/YdoNP9K4rwQDwjJr.js +2 -0
- package/data/ZLvK29zj4L29Jowd.d.ts +55 -0
- package/data/ZLvK29zj4L29Jowd.js +372 -0
- package/data/_vLykj3NWrllMrG06.d.ts +95 -0
- package/data/_vLykj3NWrllMrG06.js +1 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +2 -0
- package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +5 -0
- package/data/extrude-walls/ZLvK29zj4L29Jowd.js +14 -0
- package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +5 -0
- package/data/extrude-walls/lo024DEgzanMj5BE.js +14 -0
- package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +2 -0
- package/data/lo024DEgzanMj5BE.d.ts +55 -0
- package/data/lo024DEgzanMj5BE.js +966 -0
- package/data/oPzy3ApbjjpD8YdR.js +2 -0
- package/data/qjAxMG4XbPn96wKG.js +2 -0
- package/data/rXel3aPQRRBD4JQn.js +2 -0
- package/data/vLykj3NWrllMrG06.js +337 -71
- package/data/wz0QV9KA4ugyo9ME.js +2 -0
- package/data/zxMawr9raSg8LYjG.js +2 -0
- package/examples/FiveStateController/index.js +9 -15
- package/examples/VRHouse/Mobile.js +15 -1
- package/examples/VRHouse/PC.js +15 -1
- package/examples/VRHouse/index.js +15 -1
- package/index.js +4 -2
- package/libs/gltf-viewer/Subscribe.d.ts +76 -0
- package/libs/gltf-viewer/Subscribe.js +231 -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} +29 -19
- 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 +8 -4
- package/plugins/AutoPreloadPlugin/index.js +26 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +24 -16
- package/plugins/CSS3DRenderPlugin/index.js +45 -12
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +34 -0
- package/plugins/CameraMovementPlugin/index.js +33 -9
- package/plugins/CameraMovementPlugin/typing.js +2 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +1 -1
- package/plugins/ModelChassisCompassPlugin/index.js +25 -10
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
- package/plugins/ModelEntryDoorGuidePlugin/index.js +55 -28
- package/plugins/ModelExtrudeWallsPlugin/index.d.ts +16 -0
- package/plugins/ModelExtrudeWallsPlugin/index.js +252 -0
- package/plugins/ModelRoomLabelPlugin/Controller.js +30 -23
- package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +26 -8
- package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +35 -25
- package/plugins/ModelRoomLabelPlugin/index.d.ts +4 -0
- package/plugins/ModelRoomLabelPlugin/index.js +9 -2
- package/plugins/ModelRoomLabelPlugin/typings.js +2 -0
- package/plugins/ModelRoomLabelPlugin/utils/parseData.js +6 -0
- package/plugins/ModelTVVideoPlugin/index.js +100 -16
- package/plugins/ModelViewPlugin/index.js +25 -1
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +29 -25
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +15 -1
- package/plugins/PanoCursorRaycasterPlugin/index.js +13 -6
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +4 -2
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +15 -1
- package/plugins/PanoDoorLabelPlugin/index.js +2 -0
- package/plugins/PanoIRobotPlugin/index.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/compare.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/createBox.js +22 -1
- package/plugins/PanoMaskSelectorPlugin/createTextures.js +17 -1
- package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +2 -0
- package/plugins/PanoMaskSelectorPlugin/index.js +106 -18
- package/plugins/PanoMaskSelectorPlugin/vertexShader.js +2 -0
- package/plugins/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/plugins/PanoMeasurePlugin/Controller/BaseController.js +103 -0
- package/plugins/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/plugins/PanoMeasurePlugin/Controller/EditController.js +341 -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 +371 -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 +235 -0
- package/plugins/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/plugins/PanoMeasurePlugin/Model/line.js +121 -0
- package/plugins/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Model/point.js +68 -0
- package/plugins/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/plugins/PanoMeasurePlugin/Model/polyline.js +109 -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 +182 -0
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/plugins/PanoMeasurePlugin/Modules/FiveHelper.js +66 -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 +123 -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 +37 -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/data/roomInfo.js +2 -0
- package/plugins/PanoRulerPlugin/data/roomRules.js +2 -0
- package/plugins/PanoRulerPlugin/index.d.ts +4 -0
- package/plugins/PanoRulerPlugin/index.js +74 -21
- package/plugins/PanoRulerPlugin/typings.js +2 -0
- package/plugins/PanoTVVideoPlugin/index.d.ts +2 -0
- package/plugins/PanoTVVideoPlugin/index.js +108 -26
- package/plugins/TreasurePlugin/Controller.js +58 -52
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +36 -21
- package/plugins/TreasurePlugin/TreasureObject.js +60 -56
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +38 -19
- package/plugins/TreasurePlugin/constants.js +2 -0
- package/plugins/TreasurePlugin/index.js +2 -0
- package/plugins/TreasurePlugin/typings.js +2 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -1
- package/plugins/floorplan/Assets/floorplanExtraObject.js +5 -3
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +5 -2
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +93 -99
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +25 -7
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +22 -8
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +28 -4
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +25 -5
- 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 +178 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +32 -6
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +3 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +30 -8
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +2 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.js +4 -2
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +2 -0
- 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 +3 -1
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +14 -22
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +26 -3
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +10 -6
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +21 -5
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +28 -4
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +22 -6
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +29 -19
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +2 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +1 -1
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +47 -50
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +4 -2
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +3 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +66 -61
- package/plugins/floorplan/TopviewFloorplanPlugin/index.js +2 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.js +2 -0
- package/plugins/floorplan/components/FloorplanImage.js +15 -1
- 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/floorplanData.js +2 -0
- package/plugins/floorplan/typings/floorplanServerData.d.ts +3 -1
- package/plugins/floorplan/typings/floorplanServerData.js +5 -3
- package/plugins/floorplan/utils/formatData.js +31 -12
- package/plugins/floorplan/utils/formatPosition.js +10 -8
- package/shared-utils/Preloader.js +6 -0
- package/shared-utils/Subscribe.js +36 -16
- package/shared-utils/animationFrame/BetterTween.js +28 -27
- package/shared-utils/animationFrame/calculateProgress.js +2 -0
- package/shared-utils/animationFrame/formatRad.js +2 -0
- package/shared-utils/animationFrame/index.js +12 -0
- package/shared-utils/animationFrame/tween.js +17 -1
- package/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/shared-utils/{changeModelCanvansOpacity.js → changeModelCanvasOpacity.js} +16 -2
- package/shared-utils/createCanvasTextTexture.js +2 -0
- package/shared-utils/createFiveContainer.js +23 -17
- package/shared-utils/createLine/index.js +15 -1
- package/shared-utils/debounce.js +4 -0
- package/shared-utils/equal.js +15 -4
- package/shared-utils/filter.js +36 -2
- package/shared-utils/five/changeMode.js +13 -17
- package/shared-utils/five/useFivePlugin.js +2 -0
- package/shared-utils/formatRad.js +2 -0
- package/shared-utils/getPxmm.js +15 -1
- package/shared-utils/getRandomColor.js +10 -0
- package/shared-utils/isNil.js +2 -0
- package/shared-utils/isTruelyObject.js +4 -0
- package/shared-utils/math/evenNumber.d.ts +3 -1
- package/shared-utils/math/evenNumber.js +6 -2
- package/shared-utils/math/planimetry.js +10 -0
- package/shared-utils/math/rad2Deg.js +2 -0
- package/shared-utils/nearlyEqual.js +2 -0
- package/shared-utils/nextFrame.js +2 -0
- package/shared-utils/noop.js +2 -0
- package/shared-utils/object3d2LocalMatrix.js +20 -14
- package/shared-utils/px2rem.js +10 -0
- package/shared-utils/removeArrayItem.d.ts +7 -0
- package/shared-utils/removeArrayItem.js +22 -0
- package/shared-utils/tap.js +2 -0
- package/shared-utils/three/centerPoint.js +2 -0
- package/shared-utils/three/getExtraModelLoader.js +14 -0
- package/shared-utils/three/getNormal.js +4 -0
- package/shared-utils/three/getTextureLoader.js +16 -0
- package/shared-utils/three/loadFbxObj.js +13 -5
- package/shared-utils/three/loadTexture.d.ts +2 -2
- package/shared-utils/three/loadTexture.js +33 -6
- package/shared-utils/three/transformPositionToVector3.js +2 -0
- package/shared-utils/three/transfromToMeshBasicMaterial.js +6 -0
- package/shared-utils/throttle.js +4 -0
- package/shared-utils/to.js +8 -4
- package/shared-utils/useDebounce.js +6 -0
- package/shared-utils/useThrottle.js +6 -0
- package/shared-utils/uuid.js +8 -0
- package/shared-utils/vectorTocoordinates.js +2 -0
- package/typedoc/components.js +2 -0
- package/typedoc/libs.d.ts +1 -0
- package/typedoc/libs.js +7 -0
- package/typedoc/plugins.js +2 -0
- package/typedoc/shared-utils.js +2 -0
- package/typedoc/typings.js +2 -0
- package/typings/math.type.js +2 -0
- package/typings/utils.type.js +2 -0
- package/components/PBRView/index.d.ts +0 -14
- package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
|
@@ -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
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
|
-
exports.ROOM_TYPE_MAP = exports.
|
|
8
|
+
exports.ROOM_TYPE_MAP = exports.ROOM_FETILE_TYPE_MAP = exports.FLOOR_TYPE_MAP = void 0;
|
|
7
9
|
|
|
8
10
|
/** 房屋数据映射表 */
|
|
9
|
-
var
|
|
11
|
+
var ROOM_FETILE_TYPE_MAP = [{
|
|
10
12
|
type: 0,
|
|
11
13
|
floorType: 1,
|
|
12
14
|
roomType: '100900000012',
|
|
@@ -306,7 +308,7 @@ var ROOM_DETILE_TYPE_MAP = [{
|
|
|
306
308
|
}];
|
|
307
309
|
/** 地板信息映射表 */
|
|
308
310
|
|
|
309
|
-
exports.
|
|
311
|
+
exports.ROOM_FETILE_TYPE_MAP = ROOM_FETILE_TYPE_MAP;
|
|
310
312
|
var FLOOR_TYPE_MAP = [{
|
|
311
313
|
type: 0,
|
|
312
314
|
description: '木质地板'
|
|
@@ -1,27 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
3
7
|
Object.defineProperty(exports, "__esModule", {
|
|
4
8
|
value: true
|
|
5
9
|
});
|
|
6
10
|
exports["default"] = formatData;
|
|
7
11
|
exports.formatExtraObjects = formatExtraObjects;
|
|
8
12
|
|
|
9
|
-
var
|
|
13
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
require("core-js/modules/es.function.name.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.array.map.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.object.to-string.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.promise.js");
|
|
12
22
|
|
|
13
|
-
|
|
23
|
+
require("core-js/modules/es.array.iterator.js");
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
require("core-js/modules/es.string.iterator.js");
|
|
26
|
+
|
|
27
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
28
|
+
|
|
29
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
30
|
+
|
|
31
|
+
var _floorplanExtraObject = require("../Assets/floorplanExtraObject");
|
|
32
|
+
|
|
33
|
+
var _formatPosition = require("./formatPosition");
|
|
16
34
|
|
|
17
35
|
function formatOutlines(_x) {
|
|
18
36
|
return _formatOutlines.apply(this, arguments);
|
|
19
37
|
}
|
|
20
38
|
|
|
21
39
|
function _formatOutlines() {
|
|
22
|
-
_formatOutlines =
|
|
40
|
+
_formatOutlines = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(outlines) {
|
|
23
41
|
var headers, getOutlineItem, svgOutlineItems;
|
|
24
|
-
return
|
|
42
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
25
43
|
while (1) {
|
|
26
44
|
switch (_context2.prev = _context2.next) {
|
|
27
45
|
case 0:
|
|
@@ -30,9 +48,9 @@ function _formatOutlines() {
|
|
|
30
48
|
});
|
|
31
49
|
|
|
32
50
|
getOutlineItem = /*#__PURE__*/function () {
|
|
33
|
-
var _ref =
|
|
51
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(item) {
|
|
34
52
|
var outlineItem, svgContent;
|
|
35
|
-
return
|
|
53
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
36
54
|
while (1) {
|
|
37
55
|
switch (_context.prev = _context.next) {
|
|
38
56
|
case 0:
|
|
@@ -112,7 +130,8 @@ function formatFloorData(_data) {
|
|
|
112
130
|
return {
|
|
113
131
|
floorName: _data.floor_name,
|
|
114
132
|
floorIndex: _data.floor_index,
|
|
115
|
-
rooms: _data.rooms.map(formatRoom)
|
|
133
|
+
rooms: _data.rooms.map(formatRoom),
|
|
134
|
+
rules: _data.rules
|
|
116
135
|
};
|
|
117
136
|
}
|
|
118
137
|
|
|
@@ -143,9 +162,9 @@ function formatData(_x2) {
|
|
|
143
162
|
}
|
|
144
163
|
|
|
145
164
|
function _formatData() {
|
|
146
|
-
_formatData =
|
|
165
|
+
_formatData = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(data) {
|
|
147
166
|
var outlines, bounding, floorDatas, entrance, floorplanData;
|
|
148
|
-
return
|
|
167
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
149
168
|
while (1) {
|
|
150
169
|
switch (_context3.prev = _context3.next) {
|
|
151
170
|
case 0:
|
|
@@ -180,7 +199,7 @@ function formatExtraObjects(data, five, floorplanData) {
|
|
|
180
199
|
var extraObjects = data.map(function (object) {
|
|
181
200
|
var position = object.position;
|
|
182
201
|
var icon = object.icon ? object.icon : {
|
|
183
|
-
url: _floorplanExtraObject.
|
|
202
|
+
url: _floorplanExtraObject.FLOORPLAN_EXTRA_OBJECT_IMAGE,
|
|
184
203
|
width: 45,
|
|
185
204
|
height: 48
|
|
186
205
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
3
7
|
Object.defineProperty(exports, "__esModule", {
|
|
4
8
|
value: true
|
|
5
9
|
});
|
|
@@ -9,17 +13,15 @@ exports.getFloorIndexFromModelPosition = getFloorIndexFromModelPosition;
|
|
|
9
13
|
exports.modelPosition2FloorplanPosition = modelPosition2FloorplanPosition;
|
|
10
14
|
exports.pathD = pathD;
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
require("core-js/modules/es.array.concat.js");
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
require("core-js/modules/es.array.for-each.js");
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
require("core-js/modules/es.array.map.js");
|
|
23
25
|
|
|
24
26
|
function pathD(points) {
|
|
25
27
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -79,7 +81,7 @@ function floorplanPosition2ImagePosition(position, floorplanData) {
|
|
|
79
81
|
|
|
80
82
|
|
|
81
83
|
function getFloorIndexFromModelPosition(position, five) {
|
|
82
|
-
var floorIndex = Math.max.apply(Math,
|
|
84
|
+
var floorIndex = Math.max.apply(Math, (0, _toConsumableArray2["default"])(five.work.observers.map(function (observer) {
|
|
83
85
|
if (position.z >= observer.standingPosition.z) return observer.floorIndex;
|
|
84
86
|
return 0;
|
|
85
87
|
})));
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.Preloader = void 0;
|
|
7
9
|
|
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.promise.js");
|
|
13
|
+
|
|
8
14
|
/**
|
|
9
15
|
* 预载器
|
|
10
16
|
*/
|
|
@@ -1,30 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.array.slice.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.function.name.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.array.from.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.string.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.symbol.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.symbol.description.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.array.iterator.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/es.array.is-array.js");
|
|
24
|
+
|
|
25
|
+
require("core-js/modules/es.object.define-property.js");
|
|
26
|
+
|
|
27
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
28
|
+
|
|
3
29
|
Object.defineProperty(exports, "__esModule", {
|
|
4
30
|
value: true
|
|
5
31
|
});
|
|
6
32
|
exports["default"] = void 0;
|
|
7
33
|
|
|
8
|
-
|
|
34
|
+
require("core-js/modules/es.array.concat.js");
|
|
9
35
|
|
|
10
|
-
|
|
36
|
+
require("core-js/modules/es.array.filter.js");
|
|
11
37
|
|
|
12
|
-
|
|
38
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
39
|
|
|
14
|
-
|
|
40
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
41
|
|
|
16
|
-
|
|
42
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
43
|
+
|
|
44
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
17
45
|
|
|
18
46
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
47
|
|
|
20
48
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
21
49
|
|
|
22
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
27
|
-
|
|
28
50
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
29
51
|
var __EVENT__ = '__events__';
|
|
30
52
|
/**
|
|
@@ -34,8 +56,7 @@ var __EVENT__ = '__events__';
|
|
|
34
56
|
|
|
35
57
|
var Subscribe = /*#__PURE__*/function () {
|
|
36
58
|
function Subscribe() {
|
|
37
|
-
|
|
38
|
-
|
|
59
|
+
(0, _classCallCheck2["default"])(this, Subscribe);
|
|
39
60
|
this[__EVENT__] = {};
|
|
40
61
|
}
|
|
41
62
|
/**
|
|
@@ -44,7 +65,7 @@ var Subscribe = /*#__PURE__*/function () {
|
|
|
44
65
|
*/
|
|
45
66
|
|
|
46
67
|
|
|
47
|
-
|
|
68
|
+
(0, _createClass2["default"])(Subscribe, [{
|
|
48
69
|
key: "hasListener",
|
|
49
70
|
value: function hasListener(name) {
|
|
50
71
|
var events = this[__EVENT__];
|
|
@@ -175,7 +196,7 @@ var Subscribe = /*#__PURE__*/function () {
|
|
|
175
196
|
var one = _step3.value;
|
|
176
197
|
|
|
177
198
|
try {
|
|
178
|
-
var _one =
|
|
199
|
+
var _one = (0, _slicedToArray2["default"])(one, 3),
|
|
179
200
|
callback = _one[0],
|
|
180
201
|
_one$ = _one[1],
|
|
181
202
|
context = _one$ === void 0 ? this : _one$,
|
|
@@ -203,7 +224,6 @@ var Subscribe = /*#__PURE__*/function () {
|
|
|
203
224
|
return canceled;
|
|
204
225
|
}
|
|
205
226
|
}]);
|
|
206
|
-
|
|
207
227
|
return Subscribe;
|
|
208
228
|
}();
|
|
209
229
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.define-property.js");
|
|
6
|
+
|
|
7
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
8
|
|
|
5
9
|
Object.defineProperty(exports, "__esModule", {
|
|
6
10
|
value: true
|
|
@@ -8,64 +12,62 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
12
|
exports.BetterTween = void 0;
|
|
9
13
|
exports.tweenProgress = tweenProgress;
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
require("core-js/modules/es.array.concat.js");
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
require("core-js/modules/es.array.for-each.js");
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
var _tween = _interopRequireDefault(require("@tweenjs/tween.js"));
|
|
34
|
+
|
|
35
|
+
var _ = require(".");
|
|
30
36
|
|
|
31
|
-
function
|
|
37
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
32
38
|
|
|
33
|
-
function
|
|
39
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
34
40
|
|
|
35
41
|
var BetterTween = /*#__PURE__*/function (_TWEEN$Tween) {
|
|
36
|
-
|
|
42
|
+
(0, _inherits2["default"])(BetterTween, _TWEEN$Tween);
|
|
37
43
|
|
|
38
44
|
var _super = _createSuper(BetterTween);
|
|
39
45
|
|
|
40
46
|
function BetterTween() {
|
|
41
47
|
var _this;
|
|
42
48
|
|
|
43
|
-
|
|
49
|
+
(0, _classCallCheck2["default"])(this, BetterTween);
|
|
44
50
|
|
|
45
51
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46
52
|
args[_key] = arguments[_key];
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
_defineProperty(_assertThisInitialized(_this), "onDispose", function (callback) {
|
|
56
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "disposeMethods", []);
|
|
57
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onDispose", function (callback) {
|
|
54
58
|
_this.disposeMethods.push(callback);
|
|
55
59
|
|
|
56
|
-
return
|
|
60
|
+
return (0, _assertThisInitialized2["default"])(_this);
|
|
57
61
|
});
|
|
58
|
-
|
|
59
|
-
_defineProperty(_assertThisInitialized(_this), "play", function () {
|
|
62
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "play", function () {
|
|
60
63
|
_this.start(0);
|
|
61
64
|
|
|
62
65
|
_this.animationFrameDisposer = (0, _.requestAnimationFrameInterval)(function (time) {
|
|
63
66
|
return _this.update(time);
|
|
64
67
|
});
|
|
65
|
-
return
|
|
68
|
+
return (0, _assertThisInitialized2["default"])(_this);
|
|
66
69
|
});
|
|
67
|
-
|
|
68
|
-
_defineProperty(_assertThisInitialized(_this), "dispose", function () {
|
|
70
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "dispose", function () {
|
|
69
71
|
var _this$animationFrameD, _this2;
|
|
70
72
|
|
|
71
73
|
_this.stop();
|
|
@@ -78,9 +80,8 @@ var BetterTween = /*#__PURE__*/function (_TWEEN$Tween) {
|
|
|
78
80
|
|
|
79
81
|
_this.disposeMethods = [];
|
|
80
82
|
|
|
81
|
-
_tween["default"].remove(
|
|
83
|
+
_tween["default"].remove((0, _assertThisInitialized2["default"])(_this));
|
|
82
84
|
});
|
|
83
|
-
|
|
84
85
|
return _this;
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -8,6 +10,16 @@ exports.getFrameTime = getFrameTime;
|
|
|
8
10
|
exports.nextFrame = nextFrame;
|
|
9
11
|
exports.requestAnimationFrameInterval = requestAnimationFrameInterval;
|
|
10
12
|
|
|
13
|
+
require("core-js/modules/web.timers.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.date.now.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.date.to-string.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.object.to-string.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.promise.js");
|
|
22
|
+
|
|
11
23
|
var _requestAnimationFrame = window.requestAnimationFrame || function (fn) {
|
|
12
24
|
return setTimeout(fn, 16);
|
|
13
25
|
};
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
18
|
|
|
5
19
|
Object.defineProperty(exports, "__esModule", {
|
|
6
20
|
value: true
|
|
@@ -9,6 +23,8 @@ exports.Easing = void 0;
|
|
|
9
23
|
exports["default"] = tween;
|
|
10
24
|
exports.tweenProgress = tweenProgress;
|
|
11
25
|
|
|
26
|
+
require("core-js/modules/es.object.assign.js");
|
|
27
|
+
|
|
12
28
|
var TWEEN = _interopRequireWildcard(require("@tweenjs/tween.js"));
|
|
13
29
|
|
|
14
30
|
var _index = require("./index");
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = changeModelCanvasOpacity;
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/es.array.iterator.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
|
|
14
|
+
require("core-js/modules/es.promise.js");
|
|
15
|
+
|
|
16
|
+
require("core-js/modules/es.string.iterator.js");
|
|
17
|
+
|
|
18
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
19
|
+
|
|
20
|
+
require("core-js/modules/web.timers.js");
|
|
7
21
|
|
|
8
|
-
function
|
|
22
|
+
function changeModelCanvasOpacity(five, opacity) {
|
|
9
23
|
var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;
|
|
10
24
|
var fiveEle = five.getElement();
|
|
11
25
|
if (!fiveEle) return;
|
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
20
|
|
|
5
21
|
Object.defineProperty(exports, "__esModule", {
|
|
6
22
|
value: true
|
|
7
23
|
});
|
|
8
24
|
exports["default"] = createFiveContainer;
|
|
9
25
|
|
|
26
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.object.assign.js");
|
|
29
|
+
|
|
10
30
|
var React = _interopRequireWildcard(require("react"));
|
|
11
31
|
|
|
12
32
|
var _five = require("@realsee/five");
|
|
@@ -17,24 +37,10 @@ var THREE = _interopRequireWildcard(require("three"));
|
|
|
17
37
|
|
|
18
38
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
39
|
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
40
|
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); }
|
|
23
41
|
|
|
24
42
|
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; }
|
|
25
43
|
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
-
|
|
30
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
-
|
|
32
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
33
|
-
|
|
34
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
44
|
/**
|
|
39
45
|
* 创建一个Five App 容器:附带 Five 相关的 React Context & Hooks。
|
|
40
46
|
*
|
|
@@ -62,7 +68,7 @@ function createFiveContainer(workJson) {
|
|
|
62
68
|
width: 200,
|
|
63
69
|
height: 540
|
|
64
70
|
}),
|
|
65
|
-
_React$useState2 =
|
|
71
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
66
72
|
wh = _React$useState2[0],
|
|
67
73
|
setWH = _React$useState2[1];
|
|
68
74
|
|
|
@@ -128,7 +134,7 @@ function createFiveContainer(workJson) {
|
|
|
128
134
|
|
|
129
135
|
function FiveOpt() {
|
|
130
136
|
var _useFiveState = (0, _react2.useFiveState)(),
|
|
131
|
-
_useFiveState2 =
|
|
137
|
+
_useFiveState2 = (0, _slicedToArray2["default"])(_useFiveState, 2),
|
|
132
138
|
fiveState = _useFiveState2[0],
|
|
133
139
|
setFiveState = _useFiveState2[1];
|
|
134
140
|
|