@realsee/dnalogel 0.1.0
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/README.md +94 -0
- package/TERMS.txt +56 -0
- package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +44 -0
- package/components/ARVideoFigure/ARVideoFigureMesh.js +347 -0
- package/components/ARVideoFigure/ARVideoFigureScene.d.ts +11 -0
- package/components/ARVideoFigure/ARVideoFigureScene.js +74 -0
- package/components/ARVideoFigure/ImgBgTransparent.d.ts +16 -0
- package/components/ARVideoFigure/ImgBgTransparent.js +49 -0
- package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +30 -0
- package/components/ARVideoFigure/ImgBgTransparentMesh.js +173 -0
- package/components/ARVideoFigure/fragmentShader.d.ts +5 -0
- package/components/ARVideoFigure/fragmentShader.js +16 -0
- package/components/ARVideoFigure/index.d.ts +15 -0
- package/components/ARVideoFigure/index.js +64 -0
- package/components/ARVideoFigure/vertexShader.d.ts +1 -0
- package/components/ARVideoFigure/vertexShader.js +8 -0
- package/components/GlassFilters/index.d.ts +32 -0
- package/components/GlassFilters/index.js +54 -0
- package/components/ModelView/ModelViewController.d.ts +18 -0
- package/components/ModelView/ModelViewController.js +147 -0
- package/components/ModelView/index.d.ts +10 -0
- package/components/ModelView/index.js +22 -0
- package/components/PBRView/index.d.ts +14 -0
- package/components/PBRView/index.js +31 -0
- package/components/PaintBrush/index.d.ts +16 -0
- package/components/PaintBrush/index.js +33 -0
- package/components/PanoTag/index.d.ts +4 -0
- package/components/PanoTag/index.js +11 -0
- package/custom.d.js +3 -0
- package/data/1aGKl9JmrlXMXx8d.d.ts +104 -0
- package/data/1aGKl9JmrlXMXx8d.js +535 -0
- package/data/6gyq3v1verxD7JO1.d.ts +104 -0
- package/data/6gyq3v1verxD7JO1.js +460 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +84 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +598 -0
- package/data/PrXel3aqGbp34JQn.d.ts +389 -0
- package/data/PrXel3aqGbp34JQn.js +4639 -0
- package/data/YdoNP9K4rwQDwjJr.d.ts +83 -0
- package/data/YdoNP9K4rwQDwjJr.js +1451 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +86 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +709 -0
- package/data/oPzy3ApbjjpD8YdR.d.ts +83 -0
- package/data/oPzy3ApbjjpD8YdR.js +281 -0
- package/data/qjAxMG4XbPn96wKG.d.ts +104 -0
- package/data/qjAxMG4XbPn96wKG.js +635 -0
- package/data/rXel3aPQRRBD4JQn.d.ts +86 -0
- package/data/rXel3aPQRRBD4JQn.js +620 -0
- package/data/vLykj3NWrllMrG06.d.ts +89 -0
- package/data/vLykj3NWrllMrG06.js +2532 -0
- package/data/wYnRjQ4KZoV1yPoG.d.ts +114 -0
- package/data/wYnRjQ4KZoV1yPoG.js +512 -0
- package/data/wz0QV9KA4ugyo9ME.d.ts +39 -0
- package/data/wz0QV9KA4ugyo9ME.js +134 -0
- package/examples/FiveStateController/index.js +140 -0
- package/examples/VRHouse/Mobile.js +22 -0
- package/examples/VRHouse/PC.js +22 -0
- package/examples/VRHouse/index.js +22 -0
- package/index.d.ts +15 -0
- package/index.js +43 -0
- package/package.json +19 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +12 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +113 -0
- package/plugins/CSS3DRenderPlugin/index.d.ts +49 -0
- package/plugins/CSS3DRenderPlugin/index.js +220 -0
- package/plugins/CameraMovementPlugin/index.d.ts +7 -0
- package/plugins/CameraMovementPlugin/index.js +338 -0
- package/plugins/CameraMovementPlugin/typing.d.ts +68 -0
- package/plugins/CameraMovementPlugin/typing.js +35 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +15 -0
- package/plugins/ModelChassisCompassPlugin/index.js +156 -0
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +10 -0
- package/plugins/ModelEntryDoorGuidePlugin/index.js +16 -0
- package/plugins/ModelTVVideoPlugin/index.d.ts +21 -0
- package/plugins/ModelTVVideoPlugin/index.js +313 -0
- package/plugins/ModelViewPlugin/index.d.ts +17 -0
- package/plugins/ModelViewPlugin/index.js +199 -0
- package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +48 -0
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +9 -0
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +113 -0
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +11 -0
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +25 -0
- package/plugins/PanoCursorRaycasterPlugin/index.d.ts +49 -0
- package/plugins/PanoCursorRaycasterPlugin/index.js +119 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +5 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +25 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +3 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +34 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.d.ts +7 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.js +18 -0
- package/plugins/PanoDoorLabelPlugin/index.d.ts +4 -0
- package/plugins/PanoDoorLabelPlugin/index.js +12 -0
- package/plugins/PanoIRobotPlugin/index.d.ts +10 -0
- package/plugins/PanoIRobotPlugin/index.js +16 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +3 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.js +49 -0
- package/plugins/PanoRulerPlugin/data/roomRules.d.ts +3 -0
- package/plugins/PanoRulerPlugin/data/roomRules.js +233 -0
- package/plugins/PanoRulerPlugin/index.d.ts +27 -0
- package/plugins/PanoRulerPlugin/index.js +589 -0
- package/plugins/PanoRulerPlugin/typings.d.ts +21 -0
- package/plugins/PanoRulerPlugin/typings.js +5 -0
- package/plugins/PanoTVVideoPlugin/index.d.ts +24 -0
- package/plugins/PanoTVVideoPlugin/index.js +351 -0
- package/plugins/TreasurePlugin/Controller.d.ts +32 -0
- package/plugins/TreasurePlugin/Controller.js +175 -0
- package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +23 -0
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +128 -0
- package/plugins/TreasurePlugin/TreasureObject.d.ts +35 -0
- package/plugins/TreasurePlugin/TreasureObject.js +186 -0
- package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +23 -0
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +103 -0
- package/plugins/TreasurePlugin/constants.d.ts +12 -0
- package/plugins/TreasurePlugin/constants.js +30 -0
- package/plugins/TreasurePlugin/index.d.ts +11 -0
- package/plugins/TreasurePlugin/index.js +16 -0
- package/plugins/TreasurePlugin/treasureDataMap.d.ts +7 -0
- package/plugins/TreasurePlugin/treasureDataMap.js +20 -0
- package/plugins/TreasurePlugin/typings.d.ts +2 -0
- package/plugins/TreasurePlugin/typings.js +5 -0
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.d.ts +7 -0
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.js +115 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.js +8 -0
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +100 -0
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +643 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +58 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +5 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +69 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +10 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +105 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +95 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +48 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +20 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +66 -0
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +1 -0
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +14 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.js +18 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +5 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +31 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +162 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +13 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +91 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +3 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +35 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +5 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +50 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +9 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +102 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +11 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +42 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +17 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +75 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +2 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +13 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +33 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +214 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +18 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +55 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +267 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/index.js +16 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.js +14 -0
- package/plugins/floorplan/components/FloorplanImage.d.ts +7 -0
- package/plugins/floorplan/components/FloorplanImage.js +76 -0
- package/plugins/floorplan/typings/floorplanData.d.ts +127 -0
- package/plugins/floorplan/typings/floorplanData.js +5 -0
- package/plugins/floorplan/typings/floorplanServerData.d.ts +125 -0
- package/plugins/floorplan/typings/floorplanServerData.js +380 -0
- package/plugins/floorplan/utils/formatData.d.ts +5 -0
- package/plugins/floorplan/utils/formatData.js +220 -0
- package/plugins/floorplan/utils/formatPosition.d.ts +37 -0
- package/plugins/floorplan/utils/formatPosition.js +87 -0
- package/shared-utils/Preloader.d.ts +6 -0
- package/shared-utils/Preloader.js +51 -0
- package/shared-utils/Subscribe.d.ts +45 -0
- package/shared-utils/Subscribe.js +210 -0
- package/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/shared-utils/animationFrame/BetterTween.js +102 -0
- package/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/shared-utils/animationFrame/calculateProgress.js +38 -0
- package/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/shared-utils/animationFrame/formatRad.js +34 -0
- package/shared-utils/animationFrame/index.d.ts +15 -0
- package/shared-utils/animationFrame/index.js +69 -0
- package/shared-utils/animationFrame/tween.d.ts +75 -0
- package/shared-utils/animationFrame/tween.js +76 -0
- package/shared-utils/changeModelCanvansOpacity.d.ts +2 -0
- package/shared-utils/changeModelCanvansOpacity.js +24 -0
- package/shared-utils/createFiveContainer.d.ts +10 -0
- package/shared-utils/createFiveContainer.js +165 -0
- package/shared-utils/createLine/index.d.ts +3 -0
- package/shared-utils/createLine/index.js +29 -0
- package/shared-utils/debounce.d.ts +6 -0
- package/shared-utils/debounce.js +26 -0
- package/shared-utils/equal.d.ts +11 -0
- package/shared-utils/equal.js +96 -0
- package/shared-utils/filter.d.ts +27 -0
- package/shared-utils/filter.js +93 -0
- package/shared-utils/five/changeMode.d.ts +2 -0
- package/shared-utils/five/changeMode.js +86 -0
- package/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/shared-utils/five/useFivePlugin.js +15 -0
- package/shared-utils/formatRad.d.ts +7 -0
- package/shared-utils/formatRad.js +16 -0
- package/shared-utils/getPxmm.d.ts +6 -0
- package/shared-utils/getPxmm.js +37 -0
- package/shared-utils/getRandomColor.d.ts +1 -0
- package/shared-utils/getRandomColor.js +13 -0
- package/shared-utils/isTruelyObject.d.ts +18 -0
- package/shared-utils/isTruelyObject.js +27 -0
- package/shared-utils/math/evenNumber.d.ts +1 -0
- package/shared-utils/math/evenNumber.js +11 -0
- package/shared-utils/math/planimetry.d.ts +116 -0
- package/shared-utils/math/planimetry.js +342 -0
- package/shared-utils/math/rad2Deg.d.ts +1 -0
- package/shared-utils/math/rad2Deg.js +10 -0
- package/shared-utils/nearlyEqual.d.ts +7 -0
- package/shared-utils/nearlyEqual.js +17 -0
- package/shared-utils/nextFrame.d.ts +1 -0
- package/shared-utils/nextFrame.js +13 -0
- package/shared-utils/noop.d.ts +5 -0
- package/shared-utils/noop.js +17 -0
- package/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/shared-utils/object3d2LocalMatrix.js +73 -0
- package/shared-utils/px2rem.d.ts +1 -0
- package/shared-utils/px2rem.js +12 -0
- package/shared-utils/tap.d.ts +8 -0
- package/shared-utils/tap.js +19 -0
- package/shared-utils/three/centerPoint.d.ts +2 -0
- package/shared-utils/three/centerPoint.js +12 -0
- package/shared-utils/three/getNormal.d.ts +2 -0
- package/shared-utils/three/getNormal.js +13 -0
- package/shared-utils/three/loadFbxObj.d.ts +3 -0
- package/shared-utils/three/loadFbxObj.js +42 -0
- package/shared-utils/three/loadTexture.d.ts +2 -0
- package/shared-utils/three/loadTexture.js +38 -0
- package/shared-utils/three/vecror3.d.ts +7 -0
- package/shared-utils/three/vecror3.js +18 -0
- package/shared-utils/throttle.d.ts +7 -0
- package/shared-utils/throttle.js +25 -0
- package/shared-utils/to.d.ts +9 -0
- package/shared-utils/to.js +25 -0
- package/shared-utils/useDebounce.d.ts +8 -0
- package/shared-utils/useDebounce.js +43 -0
- package/shared-utils/useThrottle.d.ts +8 -0
- package/shared-utils/useThrottle.js +41 -0
- package/shared-utils/uuid.d.ts +4 -0
- package/shared-utils/uuid.js +20 -0
- package/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/shared-utils/vectorTocoordinates.js +16 -0
- package/typedoc/components.d.ts +6 -0
- package/typedoc/components.js +5 -0
- package/typedoc/plugins.d.ts +17 -0
- package/typedoc/plugins.js +113 -0
- package/typedoc/shared-utils.d.ts +3 -0
- package/typedoc/shared-utils.js +5 -0
- package/typedoc/typings.d.ts +3 -0
- package/typedoc/typings.js +5 -0
- package/typings/math.type.d.ts +44 -0
- package/typings/math.type.js +5 -0
- package/typings/utils.type.d.ts +2 -0
- package/typings/utils.type.js +5 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = FloorplanBaseImage;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
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); }
|
|
13
|
+
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
function BaseNormalImage(props) {
|
|
17
|
+
var _floorplanData$outlin;
|
|
18
|
+
|
|
19
|
+
var floorplanData = props.floorplanData,
|
|
20
|
+
floorIndex = props.floorIndex;
|
|
21
|
+
var style = {
|
|
22
|
+
width: '100%',
|
|
23
|
+
height: '100%'
|
|
24
|
+
};
|
|
25
|
+
var originUrl = (_floorplanData$outlin = floorplanData.outlines[floorIndex]) === null || _floorplanData$outlin === void 0 ? void 0 : _floorplanData$outlin.url;
|
|
26
|
+
if (!originUrl) return null;
|
|
27
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
28
|
+
src: originUrl,
|
|
29
|
+
style: style
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function SvgImage(props) {
|
|
34
|
+
var _floorplanData$outlin2;
|
|
35
|
+
|
|
36
|
+
var floorplanData = props.floorplanData,
|
|
37
|
+
floorIndex = props.floorIndex;
|
|
38
|
+
var svgContent = (_floorplanData$outlin2 = floorplanData.outlines) === null || _floorplanData$outlin2 === void 0 ? void 0 : _floorplanData$outlin2[floorIndex].svgContent;
|
|
39
|
+
if (!svgContent) return null;
|
|
40
|
+
var style = {
|
|
41
|
+
width: '100%',
|
|
42
|
+
height: '100%'
|
|
43
|
+
};
|
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "floorplan-plugin__base-image",
|
|
46
|
+
style: style
|
|
47
|
+
}, /*#__PURE__*/React.createElement("style", null, "\n .floorplan-plugin__base-image svg [type='lineGroup'] path {\n fill: #ffffff;\n stroke: #ffffff;\n }\n .floorplan-plugin__base-image svg [type='lineItemGroup'] g g g g {\n stroke: #ffffff;\n }\n "), /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: "floorplan-plugin__base-svg-image",
|
|
49
|
+
dangerouslySetInnerHTML: {
|
|
50
|
+
__html: svgContent
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
/** 展示当前楼层的户型图图片 */
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
function FloorplanBaseImage(props) {
|
|
58
|
+
var _floorplanData$outlin3, _floorplanData$outlin4;
|
|
59
|
+
|
|
60
|
+
var floorplanData = props.floorplanData,
|
|
61
|
+
floorIndex = props.floorIndex;
|
|
62
|
+
var imageData = floorplanData.outlines[floorIndex];
|
|
63
|
+
var svgContent = (_floorplanData$outlin3 = floorplanData.outlines) === null || _floorplanData$outlin3 === void 0 ? void 0 : (_floorplanData$outlin4 = _floorplanData$outlin3[floorIndex]) === null || _floorplanData$outlin4 === void 0 ? void 0 : _floorplanData$outlin4.svgContent;
|
|
64
|
+
if (!imageData && !svgContent) return null;
|
|
65
|
+
var style = {
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
zIndex: 10,
|
|
68
|
+
width: "100%",
|
|
69
|
+
height: "100%",
|
|
70
|
+
pointerEvents: 'none'
|
|
71
|
+
};
|
|
72
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: "floorplan-plugin__base-image",
|
|
74
|
+
style: style
|
|
75
|
+
}, !!svgContent ? /*#__PURE__*/React.createElement(SvgImage, props) : /*#__PURE__*/React.createElement(BaseNormalImage, props));
|
|
76
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 对输入到户型图相关插件内的数据做 format 之后的数据
|
|
3
|
+
* 1. 数据的下划线到驼峰的转换
|
|
4
|
+
* 2. svg url 到 svg content 的处理
|
|
5
|
+
*/
|
|
6
|
+
/** 户型图坐标,坐标原点时户型图中心点,单位是户型图单位 */
|
|
7
|
+
export interface FloorplanPosition {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
/** 户型图图片坐标,坐标原点是图片左上角,取值范围是 [0, 1],表示距离左上角的相对距离 */
|
|
12
|
+
export interface FloorplanImagePosition {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
}
|
|
16
|
+
/** 户型图线框图 */
|
|
17
|
+
export interface FloorplanOutlineItem {
|
|
18
|
+
url: string;
|
|
19
|
+
index: number;
|
|
20
|
+
svgUrl?: string;
|
|
21
|
+
svgContent?: string;
|
|
22
|
+
}
|
|
23
|
+
/** 户型图入户门 */
|
|
24
|
+
export interface FloorplanEntrance {
|
|
25
|
+
/** 入户门角度 */
|
|
26
|
+
rad: number;
|
|
27
|
+
/** 入户门所在的位置「户型图坐标系」 */
|
|
28
|
+
position: FloorplanPosition;
|
|
29
|
+
/** 入户门在户型图上相对坐标 */
|
|
30
|
+
positionInImage: FloorplanImagePosition;
|
|
31
|
+
/** 入户门与北的朝向 */
|
|
32
|
+
northRad: number;
|
|
33
|
+
/** 入户门所在房间 ID */
|
|
34
|
+
roomId: string;
|
|
35
|
+
/** 入户门所楼层 */
|
|
36
|
+
floorIndex: number;
|
|
37
|
+
}
|
|
38
|
+
/** 户型图 FloorplanBounding
|
|
39
|
+
* @description 坐标都是户型图坐标
|
|
40
|
+
*/
|
|
41
|
+
export interface FloorplanBounding {
|
|
42
|
+
/** 户型图在 X 和 Y 轴上的最大值 */
|
|
43
|
+
max: FloorplanPosition;
|
|
44
|
+
/** 户型图在 X 和 Y 轴上的最小值 */
|
|
45
|
+
min: FloorplanPosition;
|
|
46
|
+
/** 户型图的中心位置 */
|
|
47
|
+
origin: FloorplanPosition;
|
|
48
|
+
}
|
|
49
|
+
/** 户型图房屋标签 */
|
|
50
|
+
export interface FloorplanRoomLabelItem {
|
|
51
|
+
/** 房间的中心点坐标 */
|
|
52
|
+
position: FloorplanPosition;
|
|
53
|
+
/** 房间的中心在户型图上的相对位置 */
|
|
54
|
+
positionInImage: FloorplanImagePosition;
|
|
55
|
+
}
|
|
56
|
+
/** 户型图房间数据 */
|
|
57
|
+
export interface FloorplanRoomItem {
|
|
58
|
+
id: string;
|
|
59
|
+
/** 房间面积
|
|
60
|
+
* @description 单位是平方毫米
|
|
61
|
+
*/
|
|
62
|
+
size: number;
|
|
63
|
+
name: string;
|
|
64
|
+
/** 围成房间区域的坐标路径
|
|
65
|
+
* @description 坐标类型是户型图坐标
|
|
66
|
+
*/
|
|
67
|
+
path: FloorplanPosition[];
|
|
68
|
+
/** 房屋类型
|
|
69
|
+
* @description 对应关系参考上方 ROOM_TYPE_MAP
|
|
70
|
+
*/
|
|
71
|
+
roomType: string;
|
|
72
|
+
/** 地板类型
|
|
73
|
+
* @description 对应关系参考上方 FLOOR_TYPE_MAP
|
|
74
|
+
*/
|
|
75
|
+
floorType: number;
|
|
76
|
+
roomLabel: FloorplanRoomLabelItem;
|
|
77
|
+
/** 当前房间里的 observer 索引 */
|
|
78
|
+
observerIndexs: number[];
|
|
79
|
+
}
|
|
80
|
+
/** 当前楼层的数据 */
|
|
81
|
+
export interface FloorplanFloorData {
|
|
82
|
+
floorName: string;
|
|
83
|
+
floorIndex: number;
|
|
84
|
+
rooms: FloorplanRoomItem[];
|
|
85
|
+
}
|
|
86
|
+
/** 对 observer 做一些样式上的计算
|
|
87
|
+
* @description 每一个 floorplanObserver 对应一个 observer
|
|
88
|
+
* @description floorplanObserver 和 observer 在自身数组中的索引坐标应该是相同的
|
|
89
|
+
*/
|
|
90
|
+
export interface FloorplanObserver {
|
|
91
|
+
index: number;
|
|
92
|
+
floorIndex: number;
|
|
93
|
+
position: FloorplanPosition;
|
|
94
|
+
positionInImage: FloorplanImagePosition;
|
|
95
|
+
}
|
|
96
|
+
/** 户型图内部使用的数据 */
|
|
97
|
+
export interface FloorplanData {
|
|
98
|
+
outlines: FloorplanOutlineItem[];
|
|
99
|
+
floorDatas: FloorplanFloorData[];
|
|
100
|
+
entrance: FloorplanEntrance | null;
|
|
101
|
+
bounding: FloorplanBounding;
|
|
102
|
+
observers: FloorplanObserver[];
|
|
103
|
+
}
|
|
104
|
+
/** 能够映射到雷达图上的三维物体 */
|
|
105
|
+
export interface FloorplanExtraObject3D {
|
|
106
|
+
id: string;
|
|
107
|
+
position: number[];
|
|
108
|
+
icon?: {
|
|
109
|
+
url: string;
|
|
110
|
+
width: number;
|
|
111
|
+
height: number;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/** 添加到户型图上的额外物体 */
|
|
115
|
+
export interface FloorplanExtraObject {
|
|
116
|
+
id: string;
|
|
117
|
+
icon: {
|
|
118
|
+
url: string;
|
|
119
|
+
width: number;
|
|
120
|
+
height: number;
|
|
121
|
+
};
|
|
122
|
+
floorIndex: number;
|
|
123
|
+
/** 入户门所在的位置「户型图坐标系」 */
|
|
124
|
+
position: FloorplanPosition;
|
|
125
|
+
/** 入户门在户型图上相对坐标 */
|
|
126
|
+
positionInImage: FloorplanImagePosition;
|
|
127
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/** 房屋数据映射表 */
|
|
2
|
+
export declare const ROOM_DETILE_TYPE_MAP: ({
|
|
3
|
+
type: number;
|
|
4
|
+
floorType: number;
|
|
5
|
+
roomType: string;
|
|
6
|
+
name: string;
|
|
7
|
+
onlySubArea?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
type: number;
|
|
10
|
+
floorType: number;
|
|
11
|
+
roomType: string;
|
|
12
|
+
name: string;
|
|
13
|
+
onlySubArea: boolean;
|
|
14
|
+
})[];
|
|
15
|
+
/** 地板信息映射表 */
|
|
16
|
+
export declare const FLOOR_TYPE_MAP: {
|
|
17
|
+
type: number;
|
|
18
|
+
description: string;
|
|
19
|
+
}[];
|
|
20
|
+
/** 房屋类型映射表 */
|
|
21
|
+
export declare const ROOM_TYPE_MAP: {
|
|
22
|
+
roomType: string;
|
|
23
|
+
description: string;
|
|
24
|
+
}[];
|
|
25
|
+
/** 户型图坐标,坐标原点时户型图中心点,单位是户型图单位 */
|
|
26
|
+
export interface FloorplanServerPosition {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
}
|
|
30
|
+
/** 户型图图片坐标,坐标原点是图片左上角,取值范围是 [0, 1],表示距离左上角的相对距离 */
|
|
31
|
+
export interface FloorplanServerImagePosition {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
}
|
|
35
|
+
/** 户型图线框图 */
|
|
36
|
+
export interface FloorplanServerOutlineItem {
|
|
37
|
+
url: string;
|
|
38
|
+
index: number;
|
|
39
|
+
checksum: string;
|
|
40
|
+
svg_url?: string;
|
|
41
|
+
}
|
|
42
|
+
/** 户型图入户门 */
|
|
43
|
+
export interface FloorplanServerEntrance {
|
|
44
|
+
/** 入户门角度 */
|
|
45
|
+
rad: number;
|
|
46
|
+
/** 入户门所在的位置「户型图坐标系」 */
|
|
47
|
+
position: FloorplanServerPosition;
|
|
48
|
+
/** 入户门在户型图上相对坐标 */
|
|
49
|
+
position_in_image: FloorplanServerImagePosition;
|
|
50
|
+
/** 入户门与北的朝向 */
|
|
51
|
+
north_rad: number;
|
|
52
|
+
/** 入户门所在房间 ID */
|
|
53
|
+
room_id: string;
|
|
54
|
+
/** 入户门所楼层 */
|
|
55
|
+
floor_index: number;
|
|
56
|
+
}
|
|
57
|
+
/** 户型图 FloorplanServerBounding
|
|
58
|
+
* @description 坐标都是户型图坐标
|
|
59
|
+
*/
|
|
60
|
+
export interface FloorplanServerBounding {
|
|
61
|
+
/** 户型图在 X 和 Y 轴上的最大值 */
|
|
62
|
+
max: FloorplanServerPosition;
|
|
63
|
+
/** 户型图在 X 和 Y 轴上的最小值 */
|
|
64
|
+
min: FloorplanServerPosition;
|
|
65
|
+
/** 户型图的中心位置 */
|
|
66
|
+
origin: FloorplanServerPosition;
|
|
67
|
+
}
|
|
68
|
+
/** 户型图房屋标签 */
|
|
69
|
+
export interface FloorplanServerRoomLabelItem {
|
|
70
|
+
/** 房间的中心点坐标 */
|
|
71
|
+
position: FloorplanServerPosition;
|
|
72
|
+
/** 房间的中心在户型图上的相对位置 */
|
|
73
|
+
position_in_image: FloorplanServerImagePosition;
|
|
74
|
+
}
|
|
75
|
+
/** 户型图房间数据 */
|
|
76
|
+
export interface FloorplanServerRoomItem {
|
|
77
|
+
id: string;
|
|
78
|
+
/** 房间面积
|
|
79
|
+
* @description 单位是平方毫米
|
|
80
|
+
*/
|
|
81
|
+
size: number;
|
|
82
|
+
name: string;
|
|
83
|
+
/** 围成房间区域的坐标路径
|
|
84
|
+
* @description 坐标类型是户型图坐标
|
|
85
|
+
*/
|
|
86
|
+
path: FloorplanServerPosition[];
|
|
87
|
+
/** 房屋类型
|
|
88
|
+
* @description 对应关系参考上方 ROOM_TYPE_MAP
|
|
89
|
+
*/
|
|
90
|
+
room_type: string;
|
|
91
|
+
/** 地板类型
|
|
92
|
+
* @description 对应关系参考上方 FLOOR_TYPE_MAP
|
|
93
|
+
*/
|
|
94
|
+
floor_type: number;
|
|
95
|
+
room_label: FloorplanServerRoomLabelItem;
|
|
96
|
+
/** 当前房间里的 observer 索引 */
|
|
97
|
+
observer_indexs: number[];
|
|
98
|
+
}
|
|
99
|
+
/** 当前楼层的数据 */
|
|
100
|
+
export interface FloorplanServerFloorData {
|
|
101
|
+
floor_name: string;
|
|
102
|
+
floor_index: number;
|
|
103
|
+
rooms: FloorplanServerRoomItem[];
|
|
104
|
+
}
|
|
105
|
+
/** 对 observer 做一些样式上的计算
|
|
106
|
+
* @description 每一个 FloorplanServer_observer 对应一个 observer
|
|
107
|
+
* @description FloorplanServer_observer 和 observer 在自身数组中的索引坐标应该是相同的
|
|
108
|
+
*/
|
|
109
|
+
export interface FloorplanServerObserver {
|
|
110
|
+
index: number;
|
|
111
|
+
floor_index: number;
|
|
112
|
+
position: FloorplanServerPosition;
|
|
113
|
+
position_in_image: FloorplanServerImagePosition;
|
|
114
|
+
}
|
|
115
|
+
export interface FloorplanServerComputedData {
|
|
116
|
+
floor_datas: FloorplanServerFloorData[];
|
|
117
|
+
entrance: FloorplanServerEntrance | null;
|
|
118
|
+
bounding: FloorplanServerBounding;
|
|
119
|
+
observers: FloorplanServerObserver[];
|
|
120
|
+
}
|
|
121
|
+
/** 原始输入的户型图数据 */
|
|
122
|
+
export interface FloorplanServerData {
|
|
123
|
+
outlines: FloorplanServerOutlineItem[];
|
|
124
|
+
computed_data: FloorplanServerComputedData;
|
|
125
|
+
}
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ROOM_TYPE_MAP = exports.ROOM_DETILE_TYPE_MAP = exports.FLOOR_TYPE_MAP = void 0;
|
|
7
|
+
|
|
8
|
+
/** 房屋数据映射表 */
|
|
9
|
+
var ROOM_DETILE_TYPE_MAP = [{
|
|
10
|
+
type: 0,
|
|
11
|
+
floorType: 1,
|
|
12
|
+
roomType: '100900000012',
|
|
13
|
+
name: '其他'
|
|
14
|
+
}, {
|
|
15
|
+
type: 1,
|
|
16
|
+
floorType: 1,
|
|
17
|
+
roomType: '100900000002',
|
|
18
|
+
name: '客厅'
|
|
19
|
+
}, {
|
|
20
|
+
type: 2,
|
|
21
|
+
floorType: 1,
|
|
22
|
+
roomType: '100900000002',
|
|
23
|
+
name: '餐厅'
|
|
24
|
+
}, {
|
|
25
|
+
type: 3,
|
|
26
|
+
floorType: 0,
|
|
27
|
+
roomType: '100900000001',
|
|
28
|
+
name: '卧室'
|
|
29
|
+
}, {
|
|
30
|
+
type: 4,
|
|
31
|
+
floorType: 0,
|
|
32
|
+
roomType: '100900000001',
|
|
33
|
+
name: '书房'
|
|
34
|
+
}, {
|
|
35
|
+
type: 5,
|
|
36
|
+
floorType: 3,
|
|
37
|
+
roomType: '100900000004',
|
|
38
|
+
name: '卫生间'
|
|
39
|
+
}, {
|
|
40
|
+
type: 6,
|
|
41
|
+
floorType: 3,
|
|
42
|
+
roomType: '100900000004',
|
|
43
|
+
name: '淋浴间'
|
|
44
|
+
}, {
|
|
45
|
+
type: 7,
|
|
46
|
+
floorType: 3,
|
|
47
|
+
roomType: '100900000004',
|
|
48
|
+
name: '洗手间'
|
|
49
|
+
}, {
|
|
50
|
+
type: 8,
|
|
51
|
+
floorType: 3,
|
|
52
|
+
roomType: '100900000003',
|
|
53
|
+
name: '厨房'
|
|
54
|
+
}, {
|
|
55
|
+
type: 9,
|
|
56
|
+
floorType: 1,
|
|
57
|
+
roomType: '100900000003',
|
|
58
|
+
name: '开放厨房',
|
|
59
|
+
onlySubArea: true
|
|
60
|
+
}, {
|
|
61
|
+
type: 10,
|
|
62
|
+
floorType: 0,
|
|
63
|
+
roomType: '100900000001',
|
|
64
|
+
name: '多功能间'
|
|
65
|
+
}, {
|
|
66
|
+
type: 11,
|
|
67
|
+
floorType: 0,
|
|
68
|
+
roomType: '100900000009',
|
|
69
|
+
name: '保姆间'
|
|
70
|
+
}, {
|
|
71
|
+
type: 12,
|
|
72
|
+
floorType: 4,
|
|
73
|
+
roomType: '100900000005',
|
|
74
|
+
name: '阳台'
|
|
75
|
+
}, {
|
|
76
|
+
type: 13,
|
|
77
|
+
floorType: 4,
|
|
78
|
+
roomType: '100900000006',
|
|
79
|
+
name: '露台'
|
|
80
|
+
}, {
|
|
81
|
+
type: 14,
|
|
82
|
+
floorType: 0,
|
|
83
|
+
roomType: '100900000008',
|
|
84
|
+
name: '储物间'
|
|
85
|
+
}, {
|
|
86
|
+
type: 15,
|
|
87
|
+
floorType: 0,
|
|
88
|
+
roomType: '100900000013',
|
|
89
|
+
name: '衣帽间'
|
|
90
|
+
}, {
|
|
91
|
+
type: 16,
|
|
92
|
+
floorType: 0,
|
|
93
|
+
roomType: '100900000011',
|
|
94
|
+
name: '阁楼'
|
|
95
|
+
}, {
|
|
96
|
+
type: 17,
|
|
97
|
+
floorType: 2,
|
|
98
|
+
roomType: '100900000007',
|
|
99
|
+
name: '花园'
|
|
100
|
+
}, {
|
|
101
|
+
type: 18,
|
|
102
|
+
floorType: 5,
|
|
103
|
+
roomType: '100900000010',
|
|
104
|
+
name: '车库'
|
|
105
|
+
}, {
|
|
106
|
+
type: 19,
|
|
107
|
+
floorType: 1,
|
|
108
|
+
roomType: '100900000012',
|
|
109
|
+
name: '电梯'
|
|
110
|
+
}, {
|
|
111
|
+
type: 20,
|
|
112
|
+
floorType: 1,
|
|
113
|
+
roomType: '100900000012',
|
|
114
|
+
name: '地下室'
|
|
115
|
+
}, {
|
|
116
|
+
type: 21,
|
|
117
|
+
floorType: 1,
|
|
118
|
+
roomType: '100900000012',
|
|
119
|
+
name: '天井'
|
|
120
|
+
}, {
|
|
121
|
+
type: 22,
|
|
122
|
+
floorType: 1,
|
|
123
|
+
roomType: '100900000012',
|
|
124
|
+
name: '阳光房'
|
|
125
|
+
}, {
|
|
126
|
+
type: 23,
|
|
127
|
+
floorType: 1,
|
|
128
|
+
roomType: '100900000012',
|
|
129
|
+
name: '过道'
|
|
130
|
+
}, {
|
|
131
|
+
type: 24,
|
|
132
|
+
floorType: 1,
|
|
133
|
+
roomType: '100900000012',
|
|
134
|
+
name: '楼梯间'
|
|
135
|
+
}, {
|
|
136
|
+
type: 25,
|
|
137
|
+
floorType: 1,
|
|
138
|
+
roomType: '100900000012',
|
|
139
|
+
name: '门厅'
|
|
140
|
+
}, {
|
|
141
|
+
type: 26,
|
|
142
|
+
floorType: 2,
|
|
143
|
+
roomType: '100900000012',
|
|
144
|
+
name: '入户花园'
|
|
145
|
+
}, {
|
|
146
|
+
type: 27,
|
|
147
|
+
floorType: 1,
|
|
148
|
+
roomType: '100900000012',
|
|
149
|
+
name: '玄关'
|
|
150
|
+
}, {
|
|
151
|
+
type: 28,
|
|
152
|
+
floorType: 1,
|
|
153
|
+
roomType: '100900000012',
|
|
154
|
+
name: '挑空'
|
|
155
|
+
}, {
|
|
156
|
+
type: 29,
|
|
157
|
+
floorType: 4,
|
|
158
|
+
roomType: '100900000012',
|
|
159
|
+
name: '晾晒区'
|
|
160
|
+
}, {
|
|
161
|
+
type: 30,
|
|
162
|
+
floorType: 4,
|
|
163
|
+
roomType: '100900000012',
|
|
164
|
+
name: '洗衣房'
|
|
165
|
+
}, {
|
|
166
|
+
type: 31,
|
|
167
|
+
floorType: 0,
|
|
168
|
+
roomType: '100900000012',
|
|
169
|
+
name: '娱乐区'
|
|
170
|
+
}, {
|
|
171
|
+
type: 32,
|
|
172
|
+
floorType: 0,
|
|
173
|
+
roomType: '100900000012',
|
|
174
|
+
name: '健身区'
|
|
175
|
+
}, {
|
|
176
|
+
type: 33,
|
|
177
|
+
floorType: 0,
|
|
178
|
+
roomType: '100900000012',
|
|
179
|
+
name: '接待区'
|
|
180
|
+
}, {
|
|
181
|
+
type: 34,
|
|
182
|
+
floorType: 0,
|
|
183
|
+
roomType: '100900000012',
|
|
184
|
+
name: '影音区'
|
|
185
|
+
}, {
|
|
186
|
+
type: 35,
|
|
187
|
+
floorType: 1,
|
|
188
|
+
roomType: '100900000012',
|
|
189
|
+
name: '餐饮区'
|
|
190
|
+
}, {
|
|
191
|
+
type: 36,
|
|
192
|
+
floorType: 1,
|
|
193
|
+
roomType: '100900000012',
|
|
194
|
+
name: '其他',
|
|
195
|
+
onlySubArea: true
|
|
196
|
+
}, {
|
|
197
|
+
type: 37,
|
|
198
|
+
floorType: 1,
|
|
199
|
+
roomType: '100900000002',
|
|
200
|
+
name: '起居室'
|
|
201
|
+
}, {
|
|
202
|
+
type: 38,
|
|
203
|
+
floorType: 0,
|
|
204
|
+
roomType: '100900000001',
|
|
205
|
+
name: '主卧'
|
|
206
|
+
}, {
|
|
207
|
+
type: 39,
|
|
208
|
+
floorType: 0,
|
|
209
|
+
roomType: '100900000001',
|
|
210
|
+
name: '次卧'
|
|
211
|
+
}, {
|
|
212
|
+
type: 40,
|
|
213
|
+
floorType: 0,
|
|
214
|
+
roomType: '100900000001',
|
|
215
|
+
name: '优化间'
|
|
216
|
+
}, {
|
|
217
|
+
type: 41,
|
|
218
|
+
floorType: 0,
|
|
219
|
+
roomType: '100900000001',
|
|
220
|
+
name: '办公室'
|
|
221
|
+
}, {
|
|
222
|
+
type: 42,
|
|
223
|
+
floorType: 0,
|
|
224
|
+
roomType: '100900000001',
|
|
225
|
+
name: '会议室'
|
|
226
|
+
}, {
|
|
227
|
+
type: 43,
|
|
228
|
+
floorType: 0,
|
|
229
|
+
roomType: '100900000001',
|
|
230
|
+
name: '洽谈间'
|
|
231
|
+
}, {
|
|
232
|
+
type: 44,
|
|
233
|
+
floorType: 1,
|
|
234
|
+
roomType: '100900000002',
|
|
235
|
+
name: '共享大厅'
|
|
236
|
+
}, {
|
|
237
|
+
type: 45,
|
|
238
|
+
floorType: 1,
|
|
239
|
+
roomType: '100900000012',
|
|
240
|
+
name: '水吧'
|
|
241
|
+
}, {
|
|
242
|
+
type: 46,
|
|
243
|
+
floorType: 0,
|
|
244
|
+
roomType: '100900000015',
|
|
245
|
+
name: '出入口'
|
|
246
|
+
}, {
|
|
247
|
+
type: 47,
|
|
248
|
+
floorType: 0,
|
|
249
|
+
roomType: '100900000015',
|
|
250
|
+
name: '大厅'
|
|
251
|
+
}, {
|
|
252
|
+
type: 48,
|
|
253
|
+
floorType: 0,
|
|
254
|
+
roomType: '100900000015',
|
|
255
|
+
name: '包厢'
|
|
256
|
+
}, {
|
|
257
|
+
type: 49,
|
|
258
|
+
floorType: 0,
|
|
259
|
+
roomType: '100900000015',
|
|
260
|
+
name: '其他'
|
|
261
|
+
}, {
|
|
262
|
+
type: 50,
|
|
263
|
+
floorType: 0,
|
|
264
|
+
roomType: '100900000016',
|
|
265
|
+
name: '出入口'
|
|
266
|
+
}, {
|
|
267
|
+
type: 51,
|
|
268
|
+
floorType: 0,
|
|
269
|
+
roomType: '100900000016',
|
|
270
|
+
name: '办公区'
|
|
271
|
+
}, {
|
|
272
|
+
type: 52,
|
|
273
|
+
floorType: 0,
|
|
274
|
+
roomType: '100900000016',
|
|
275
|
+
name: '老板间'
|
|
276
|
+
}, {
|
|
277
|
+
type: 53,
|
|
278
|
+
floorType: 0,
|
|
279
|
+
roomType: '100900000016',
|
|
280
|
+
name: '会议室'
|
|
281
|
+
}, {
|
|
282
|
+
type: 54,
|
|
283
|
+
floorType: 0,
|
|
284
|
+
roomType: '100900000016',
|
|
285
|
+
name: '休息区/水吧'
|
|
286
|
+
}, {
|
|
287
|
+
type: 55,
|
|
288
|
+
floorType: 0,
|
|
289
|
+
roomType: '100900000016',
|
|
290
|
+
name: '其他'
|
|
291
|
+
}, {
|
|
292
|
+
type: 56,
|
|
293
|
+
floorType: 2,
|
|
294
|
+
roomType: '100900000012',
|
|
295
|
+
name: '空中花园'
|
|
296
|
+
}, {
|
|
297
|
+
type: 57,
|
|
298
|
+
floorType: 0,
|
|
299
|
+
roomType: '100900000001',
|
|
300
|
+
name: '洋室'
|
|
301
|
+
}, {
|
|
302
|
+
type: 58,
|
|
303
|
+
floorType: 0,
|
|
304
|
+
roomType: '100900000001',
|
|
305
|
+
name: '和室'
|
|
306
|
+
}];
|
|
307
|
+
/** 地板信息映射表 */
|
|
308
|
+
|
|
309
|
+
exports.ROOM_DETILE_TYPE_MAP = ROOM_DETILE_TYPE_MAP;
|
|
310
|
+
var FLOOR_TYPE_MAP = [{
|
|
311
|
+
type: 0,
|
|
312
|
+
description: '木质地板'
|
|
313
|
+
}, {
|
|
314
|
+
type: 1,
|
|
315
|
+
description: '瓷砖地面'
|
|
316
|
+
}, {
|
|
317
|
+
type: 2,
|
|
318
|
+
description: '户外地面'
|
|
319
|
+
}, {
|
|
320
|
+
type: 3,
|
|
321
|
+
description: '卫生间地面'
|
|
322
|
+
}, {
|
|
323
|
+
type: 4,
|
|
324
|
+
description: '阳台地面'
|
|
325
|
+
}, {
|
|
326
|
+
type: 5,
|
|
327
|
+
description: '车库地面'
|
|
328
|
+
}];
|
|
329
|
+
/** 房屋类型映射表 */
|
|
330
|
+
|
|
331
|
+
exports.FLOOR_TYPE_MAP = FLOOR_TYPE_MAP;
|
|
332
|
+
var ROOM_TYPE_MAP = [{
|
|
333
|
+
roomType: '100900000001',
|
|
334
|
+
description: '室'
|
|
335
|
+
}, {
|
|
336
|
+
roomType: '100900000002',
|
|
337
|
+
description: '厅'
|
|
338
|
+
}, {
|
|
339
|
+
roomType: '100900000003',
|
|
340
|
+
description: '厨'
|
|
341
|
+
}, {
|
|
342
|
+
roomType: '100900000004',
|
|
343
|
+
description: '卫'
|
|
344
|
+
}, {
|
|
345
|
+
roomType: '100900000005',
|
|
346
|
+
description: '阳台'
|
|
347
|
+
}, {
|
|
348
|
+
roomType: '100900000006',
|
|
349
|
+
description: '露台'
|
|
350
|
+
}, {
|
|
351
|
+
roomType: '100900000007',
|
|
352
|
+
description: '花园'
|
|
353
|
+
}, {
|
|
354
|
+
roomType: '100900000008',
|
|
355
|
+
description: '储'
|
|
356
|
+
}, {
|
|
357
|
+
roomType: '100900000009',
|
|
358
|
+
description: '保姆间'
|
|
359
|
+
}, {
|
|
360
|
+
roomType: '100900000010',
|
|
361
|
+
description: '车库'
|
|
362
|
+
}, {
|
|
363
|
+
roomType: '100900000011',
|
|
364
|
+
description: '阁楼'
|
|
365
|
+
}, {
|
|
366
|
+
roomType: '100900000012',
|
|
367
|
+
description: '其他'
|
|
368
|
+
}, {
|
|
369
|
+
roomType: '100900000013',
|
|
370
|
+
description: '衣'
|
|
371
|
+
}, {
|
|
372
|
+
roomType: '100900000015',
|
|
373
|
+
description: '商铺'
|
|
374
|
+
}, {
|
|
375
|
+
roomType: '100900000016',
|
|
376
|
+
description: '写字楼'
|
|
377
|
+
}];
|
|
378
|
+
/** 户型图坐标,坐标原点时户型图中心点,单位是户型图单位 */
|
|
379
|
+
|
|
380
|
+
exports.ROOM_TYPE_MAP = ROOM_TYPE_MAP;
|