@realsee/dnalogel 2.0.2-alpha → 2.0.2
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/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CSS3DRenderPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/CSS3DRenderPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CSS3DRenderPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CameraMovementPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CameraMovementPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/CameraMovementPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CameraMovementPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CameraMovementPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/CruisePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CruisePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/CruisePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/CruisePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/CruisePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/CruisePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/GuideLinePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/GuideLinePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/GuideLinePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/GuideLinePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/GuideLinePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/GuideLinePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ItemLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ItemLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ItemLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelChassisCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelChassisCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelChassisCompassPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelChassisCompassPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelChassisCompassPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelEntryDoorGuidePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelEntryDoorGuidePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelEntryDoorGuidePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelEntryDoorGuidePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelItemLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelItemLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelItemLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelItemLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelItemLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelRoomLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelRoomLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelRoomLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelRoomLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelRoomLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelTVVideoPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelTVVideoPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelTVVideoPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelTVVideoPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelTVVideoPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelViewPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/ModelViewPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/ModelViewPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/ModelViewPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/ModelViewPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCompassPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCompassPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoCompassPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCompassPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoCompassPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoCursorRaycasterPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoCursorRaycasterPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoCursorRaycasterPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoCursorRaycasterPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoDoorLabelPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoDoorLabelPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoDoorLabelPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoDoorLabelPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoDoorLabelPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoMeasurePlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoMeasurePlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoMeasurePlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoMeasurePlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoMeasurePlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoRulerPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoRulerPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerProPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoRulerProPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoRulerProPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoRulerProPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoRulerProPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoSpatialTagPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/PanoSpatialTagPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/PanoSpatialTagPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/PanoSpatialTagPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/PanoSpatialTagPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/MapviewFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.js +8 -1
- package/dist/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/ModelFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/PanoFloorplanRadarPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/TopviewFloorplanPlugin/floorplan/typings/index.d.ts +117 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +11 -4
- package/dist/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/dist/floorplan/typings/index.d.ts +117 -0
- package/dist/index.es.js +19 -5
- package/dist/index.js +19 -5
- package/dist/index.umd.js +19 -5
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/modules.html +18 -18
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +8 -1
- package/libs/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -107
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -115
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +11 -4
- package/libs/floorplan/TopviewFloorplanPlugin/typing.d.ts +5 -80
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -1
- package/libs/floorplan/typings/index.d.ts +117 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,86 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { FloorplanData, FloorplanRoomItem } from '../typings/floorplanData';
|
|
5
|
-
export interface Config {
|
|
6
|
-
/** 指北针的显示文案,默认为 '北' */
|
|
7
|
-
northDesc: string;
|
|
8
|
-
/** 户型图展示时,模型的透明度,默认为 1 */
|
|
9
|
-
modelOpacity: number;
|
|
10
|
-
/** 鼠标放置在分间上时,是否要自动高亮分间,默认为 true */
|
|
11
|
-
hoverEnable: boolean;
|
|
1
|
+
import type * as FloorplanPlugin from '../typings';
|
|
2
|
+
export * from '../typings';
|
|
3
|
+
export interface Config extends FloorplanPlugin.Config {
|
|
12
4
|
/** 是否开启放大缩小和拖动功能,默认为 false */
|
|
13
5
|
gestureEnable: boolean;
|
|
14
|
-
/**
|
|
15
|
-
compassEnable: boolean;
|
|
16
|
-
/** Five 切换到 Topview Mode 时,是否自动展示户型图,默认为 true */
|
|
17
|
-
autoShowEnable: boolean;
|
|
18
|
-
/** 是否要启用户型图分间标尺功能,默认为 true */
|
|
19
|
-
ruleLabelsEnable: boolean;
|
|
20
|
-
/** 是否要启用户型图分间标签功能,默认为 true */
|
|
21
|
-
roomLabelsEnable: boolean;
|
|
22
|
-
/** 自定义「雷达」图标 */
|
|
23
|
-
cameraImageUrl: string;
|
|
24
|
-
/** 点击房间时,是否需要跳转到被点房间的全景态点位上,默认为 true */
|
|
6
|
+
/** 点击房间时,是否阻止跳转到被点房间的全景态点位上,默认为 false */
|
|
25
7
|
preventRoomClick?: boolean;
|
|
26
|
-
/** 计算户型图大小时,以模型的哪个高度为依据,默认为 BOUNDING_CENTER
|
|
27
|
-
* - FLOOR_PLAN_ATTACHED_TO.FLOOR: 户型图大小与模型的地板进行贴合
|
|
28
|
-
* - FLOOR_PLAN_ATTACHED_TO.CEILING: 户型图大小与模型的天花板进行贴合
|
|
29
|
-
* - FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER: 户型图大小与模型的中心进行贴合
|
|
30
|
-
*/
|
|
31
|
-
attachedTo: FLOOR_PLAN_ATTACHED_TO;
|
|
32
|
-
/** 分间标签的自定义函数,通过返回自定义 DOM 替换对应分间的标签 */
|
|
33
|
-
getLabelElement: undefined | ((room: FloorplanRoomItem) => Element | null);
|
|
34
|
-
/** 是否支持房屋标签自适应展示,默认为 true
|
|
35
|
-
* @description
|
|
36
|
-
* * 标签边框超过房间边框时,自动隐藏;不超过时自动展示。
|
|
37
|
-
* * 鼠标 hover 时,自动展示。
|
|
38
|
-
* */
|
|
39
|
-
adaptiveRoomLabelVisibleEnable: boolean;
|
|
40
8
|
}
|
|
41
|
-
export interface State extends
|
|
42
|
-
visible: boolean;
|
|
9
|
+
export interface State extends FloorplanPlugin.State {
|
|
43
10
|
config: Config;
|
|
44
11
|
}
|
|
45
|
-
export interface EventMap extends BasePlugin.EventMap<State, FloorplanData> {
|
|
46
|
-
/** 展示结束的回调
|
|
47
|
-
* @param event.userAction 是否是用户操作
|
|
48
|
-
*/
|
|
49
|
-
showAnimationEnded: (event: {
|
|
50
|
-
userAction: boolean;
|
|
51
|
-
}) => void;
|
|
52
|
-
/** visible 从 false 到 true 的回调
|
|
53
|
-
* @param event.userAction 是否是用户操作
|
|
54
|
-
*/
|
|
55
|
-
show: (event: {
|
|
56
|
-
userAction: boolean;
|
|
57
|
-
}) => void;
|
|
58
|
-
/** visible 从 true 到 false 的回调
|
|
59
|
-
* @param event.userAction 是否是用户操作
|
|
60
|
-
*/
|
|
61
|
-
hide: (event: {
|
|
62
|
-
userAction: boolean;
|
|
63
|
-
}) => void;
|
|
64
|
-
/** enabled 从 false 到 true 的回调
|
|
65
|
-
* @param event.userAction 是否是用户操作
|
|
66
|
-
*/
|
|
67
|
-
enable: (event: {
|
|
68
|
-
userAction: boolean;
|
|
69
|
-
}) => void;
|
|
70
|
-
/** enabled 从 true 到 false 的回调
|
|
71
|
-
* @param event.userAction 是否是用户操作
|
|
72
|
-
*/
|
|
73
|
-
disable: (event: {
|
|
74
|
-
userAction: boolean;
|
|
75
|
-
}) => void;
|
|
76
|
-
}
|
|
77
|
-
/** 插件初始化参数 */
|
|
78
|
-
export interface Parameters extends Partial<Config> {
|
|
79
|
-
selector?: string | Element;
|
|
80
|
-
scale?: number;
|
|
81
|
-
}
|
|
82
|
-
export interface PluginServerData extends BasePlugin.ServerData {
|
|
83
|
-
version: number;
|
|
84
|
-
data: FloorplanServerData;
|
|
85
|
-
}
|
|
86
|
-
export { FloorplanData as PluginData };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { FloorplanRoomItem } from './floorplanData';
|
|
2
|
+
import type { FLOOR_PLAN_ATTACHED_TO } from '../constant';
|
|
3
|
+
import type { FloorplanData } from '../typings/floorplanData';
|
|
4
|
+
import type * as BasePlugin from '../../base/BasePluginWithData';
|
|
5
|
+
import type { FloorplanServerData } from '../typings/floorplanServerData';
|
|
6
|
+
export interface State extends BasePlugin.State {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
config: Config;
|
|
9
|
+
}
|
|
10
|
+
export interface Config {
|
|
11
|
+
/** 指北针的显示文案,默认为 '北' */
|
|
12
|
+
northDesc: string;
|
|
13
|
+
/** 户型图展示时,模型的透明度,默认为 1 */
|
|
14
|
+
modelOpacity: number;
|
|
15
|
+
/** 鼠标放置在分间上时,是否要自动高亮分间,默认为 true */
|
|
16
|
+
hoverEnable: boolean;
|
|
17
|
+
/** 是否要启用指北针功能,默认为 true */
|
|
18
|
+
compassEnable: boolean;
|
|
19
|
+
/** Five 切换到 Topview Mode 时,是否自动展示户型图,默认为 true */
|
|
20
|
+
autoShowEnable: boolean;
|
|
21
|
+
/** 是否要启用户型图分间标尺功能,默认为 true */
|
|
22
|
+
ruleLabelsEnable: boolean;
|
|
23
|
+
/** 是否要启用户型图分间标签功能,默认为 true */
|
|
24
|
+
roomLabelsEnable: boolean;
|
|
25
|
+
/** 是否支持房屋标签自适应展示,默认为 true
|
|
26
|
+
* @description
|
|
27
|
+
* * 标签边框超过房间边框时,自动隐藏;不超过时自动展示。
|
|
28
|
+
* * 鼠标 hover 时,自动展示。
|
|
29
|
+
* */
|
|
30
|
+
adaptiveRoomLabelVisibleEnable: boolean;
|
|
31
|
+
/** 自定义「雷达」图标 */
|
|
32
|
+
cameraImageUrl: string;
|
|
33
|
+
/** 计算户型图大小时,以模型的哪个高度为依据,默认为 BOUNDING_CENTER
|
|
34
|
+
* - FLOOR_PLAN_ATTACHED_TO.FLOOR: 户型图大小与模型的地板进行贴合
|
|
35
|
+
* - FLOOR_PLAN_ATTACHED_TO.CEILING: 户型图大小与模型的天花板进行贴合
|
|
36
|
+
* - FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER: 户型图大小与模型的中心进行贴合
|
|
37
|
+
*/
|
|
38
|
+
attachedTo: FLOOR_PLAN_ATTACHED_TO;
|
|
39
|
+
/** 分间标签的自定义函数,通过返回自定义 DOM 替换对应分间的标签 */
|
|
40
|
+
getLabelElement: undefined | ((room: FloorplanRoomItem) => Element | null);
|
|
41
|
+
/** 自定义分间面积文本
|
|
42
|
+
* @param area 分间原始面积,单位是 mm²
|
|
43
|
+
*/
|
|
44
|
+
getRoomAreaText: (areaSize: number) => string;
|
|
45
|
+
/** 自定义标尺距离文本
|
|
46
|
+
* @param distance 原始标尺距离,单位是 mm
|
|
47
|
+
*/
|
|
48
|
+
getRuleDistanceText: (distance: number) => string;
|
|
49
|
+
}
|
|
50
|
+
/** 插件初始化参数 */
|
|
51
|
+
export interface Parameters extends Partial<Config> {
|
|
52
|
+
selector?: string | Element;
|
|
53
|
+
scale?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface PluginServerData extends BasePlugin.ServerData {
|
|
56
|
+
version: number;
|
|
57
|
+
data: FloorplanServerData;
|
|
58
|
+
}
|
|
59
|
+
export interface ViewEvent {
|
|
60
|
+
/** 是否是用户滑动模型导致的户型图自动展示/消失 */
|
|
61
|
+
auto: boolean;
|
|
62
|
+
/** 是否是用户操作 */
|
|
63
|
+
userAction: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface EventMap extends BasePlugin.EventMap<State, FloorplanData> {
|
|
66
|
+
/**
|
|
67
|
+
* 展示结束的回调
|
|
68
|
+
* @param event.auto 是否是自动操作
|
|
69
|
+
* @param event.userAction 是否是用户操作
|
|
70
|
+
*/
|
|
71
|
+
showAnimationEnded: (event: ViewEvent) => void;
|
|
72
|
+
/** visible 从 false 到 true 的回调
|
|
73
|
+
* @param event.userAction 是否是用户操作
|
|
74
|
+
*/
|
|
75
|
+
show: (event: ViewEvent) => void;
|
|
76
|
+
/** visible 从 true 到 false 的回调
|
|
77
|
+
* @param event.auto 是否是自动操作
|
|
78
|
+
* @param event.userAction 是否是用户操作
|
|
79
|
+
*/
|
|
80
|
+
hide: (event: ViewEvent) => void;
|
|
81
|
+
/** enabled 从 false 到 true 的回调
|
|
82
|
+
* @param event.userAction 是否是用户操作
|
|
83
|
+
*/
|
|
84
|
+
enable: (event: {
|
|
85
|
+
userAction: boolean;
|
|
86
|
+
}) => void;
|
|
87
|
+
/** enabled 从 true 到 false 的回调
|
|
88
|
+
* @param event.userAction 是否是用户操作
|
|
89
|
+
*/
|
|
90
|
+
disable: (event: {
|
|
91
|
+
userAction: boolean;
|
|
92
|
+
}) => void;
|
|
93
|
+
/**
|
|
94
|
+
* 点击户型图的回调
|
|
95
|
+
* @return 当返回 false 时,会阻止默认行为
|
|
96
|
+
*/
|
|
97
|
+
click: () => boolean | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface ShowOptions {
|
|
100
|
+
/** 展示户型图时,希望到达的楼层数 */
|
|
101
|
+
floorIndex: number;
|
|
102
|
+
/** 是否自动展示 */
|
|
103
|
+
isAutoShow: boolean;
|
|
104
|
+
/** 展示户型图时,模型透明度 */
|
|
105
|
+
modelOpacity: number;
|
|
106
|
+
/** 是否需要 opacity 动画 */
|
|
107
|
+
immediately: boolean;
|
|
108
|
+
/** 是否是用户操作 */
|
|
109
|
+
userAction: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface HideOptions {
|
|
112
|
+
/** 是否自动隐藏 */
|
|
113
|
+
isAutoHide: boolean;
|
|
114
|
+
/** 是否是用户操作 */
|
|
115
|
+
userAction: boolean;
|
|
116
|
+
}
|
|
117
|
+
export { FloorplanData as PluginData };
|
package/dist/index.es.js
CHANGED
|
@@ -6125,6 +6125,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6125
6125
|
attachedTo: FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6126
6126
|
getLabelElement: undefined,
|
|
6127
6127
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6128
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6129
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6128
6130
|
};
|
|
6129
6131
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6130
6132
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6198,6 +6200,10 @@ class Controller$4 extends Controller$6 {
|
|
|
6198
6200
|
state.visible ? this._show(options) : this._hide(options);
|
|
6199
6201
|
}
|
|
6200
6202
|
}
|
|
6203
|
+
changeConfigs(config, userAction = true) {
|
|
6204
|
+
this.updateState({ config }, userAction);
|
|
6205
|
+
this.render();
|
|
6206
|
+
}
|
|
6201
6207
|
/** 更新户型图位置 */
|
|
6202
6208
|
updatePosition() {
|
|
6203
6209
|
var _a;
|
|
@@ -6216,7 +6222,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6216
6222
|
}
|
|
6217
6223
|
updateState(state, userAction) {
|
|
6218
6224
|
const prevState = this.state;
|
|
6219
|
-
|
|
6225
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6226
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6220
6227
|
if (equal(this.state, prevState, { deep: true }))
|
|
6221
6228
|
return;
|
|
6222
6229
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6553,6 +6560,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6553
6560
|
attachedTo: FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6554
6561
|
getLabelElement: undefined,
|
|
6555
6562
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6563
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6564
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6556
6565
|
};
|
|
6557
6566
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6558
6567
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6654,6 +6663,10 @@ class Controller$3 extends Controller$6 {
|
|
|
6654
6663
|
state.visible ? this._show(options) : this._hide(options);
|
|
6655
6664
|
}
|
|
6656
6665
|
}
|
|
6666
|
+
changeConfigs(config, userAction = true) {
|
|
6667
|
+
this.updateState({ config }, userAction);
|
|
6668
|
+
this.render();
|
|
6669
|
+
}
|
|
6657
6670
|
async formatData(serverData) {
|
|
6658
6671
|
return await formatData(serverData.data);
|
|
6659
6672
|
}
|
|
@@ -6662,7 +6675,7 @@ class Controller$3 extends Controller$6 {
|
|
|
6662
6675
|
return;
|
|
6663
6676
|
this.isHiddenByHideFunc = false;
|
|
6664
6677
|
const { userAction } = options;
|
|
6665
|
-
this.hooks.emit('show', { userAction });
|
|
6678
|
+
this.hooks.emit('show', { userAction, auto: false });
|
|
6666
6679
|
if (this.five.getCurrentState().mode !== 'Topview') {
|
|
6667
6680
|
await changeMode(this.five, ['Topview', undefined, undefined, userAction]);
|
|
6668
6681
|
}
|
|
@@ -6672,14 +6685,14 @@ class Controller$3 extends Controller$6 {
|
|
|
6672
6685
|
const renderDuration = 500;
|
|
6673
6686
|
const modelOpacity = this.state.config.modelOpacity;
|
|
6674
6687
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
6675
|
-
this.hooks.emit('showAnimationEnded', { userAction });
|
|
6688
|
+
this.hooks.emit('showAnimationEnded', { userAction, auto: false });
|
|
6676
6689
|
this.render();
|
|
6677
6690
|
}
|
|
6678
6691
|
async _hide(options) {
|
|
6679
6692
|
if (!this.state.enabled)
|
|
6680
6693
|
return;
|
|
6681
6694
|
const { userAction } = options;
|
|
6682
|
-
this.hooks.emit('hide', { userAction });
|
|
6695
|
+
this.hooks.emit('hide', { userAction, auto: false });
|
|
6683
6696
|
const modelOpacity = 1;
|
|
6684
6697
|
const renderDuration = 0;
|
|
6685
6698
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
@@ -6696,7 +6709,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6696
6709
|
}
|
|
6697
6710
|
updateState(state, userAction) {
|
|
6698
6711
|
const prevState = this.state;
|
|
6699
|
-
|
|
6712
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6713
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6700
6714
|
if (equal(this.state, prevState, { deep: true }))
|
|
6701
6715
|
return;
|
|
6702
6716
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
package/dist/index.js
CHANGED
|
@@ -6153,6 +6153,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6153
6153
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6154
6154
|
getLabelElement: undefined,
|
|
6155
6155
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6156
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6157
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6156
6158
|
};
|
|
6157
6159
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6158
6160
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6226,6 +6228,10 @@ class Controller$4 extends Controller$6 {
|
|
|
6226
6228
|
state.visible ? this._show(options) : this._hide(options);
|
|
6227
6229
|
}
|
|
6228
6230
|
}
|
|
6231
|
+
changeConfigs(config, userAction = true) {
|
|
6232
|
+
this.updateState({ config }, userAction);
|
|
6233
|
+
this.render();
|
|
6234
|
+
}
|
|
6229
6235
|
/** 更新户型图位置 */
|
|
6230
6236
|
updatePosition() {
|
|
6231
6237
|
var _a;
|
|
@@ -6244,7 +6250,8 @@ class Controller$4 extends Controller$6 {
|
|
|
6244
6250
|
}
|
|
6245
6251
|
updateState(state, userAction) {
|
|
6246
6252
|
const prevState = this.state;
|
|
6247
|
-
|
|
6253
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6254
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6248
6255
|
if (equal(this.state, prevState, { deep: true }))
|
|
6249
6256
|
return;
|
|
6250
6257
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6581,6 +6588,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6581
6588
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6582
6589
|
getLabelElement: undefined,
|
|
6583
6590
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6591
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6592
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6584
6593
|
};
|
|
6585
6594
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6586
6595
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6682,6 +6691,10 @@ class Controller$3 extends Controller$6 {
|
|
|
6682
6691
|
state.visible ? this._show(options) : this._hide(options);
|
|
6683
6692
|
}
|
|
6684
6693
|
}
|
|
6694
|
+
changeConfigs(config, userAction = true) {
|
|
6695
|
+
this.updateState({ config }, userAction);
|
|
6696
|
+
this.render();
|
|
6697
|
+
}
|
|
6685
6698
|
async formatData(serverData) {
|
|
6686
6699
|
return await formatData(serverData.data);
|
|
6687
6700
|
}
|
|
@@ -6690,7 +6703,7 @@ class Controller$3 extends Controller$6 {
|
|
|
6690
6703
|
return;
|
|
6691
6704
|
this.isHiddenByHideFunc = false;
|
|
6692
6705
|
const { userAction } = options;
|
|
6693
|
-
this.hooks.emit('show', { userAction });
|
|
6706
|
+
this.hooks.emit('show', { userAction, auto: false });
|
|
6694
6707
|
if (this.five.getCurrentState().mode !== 'Topview') {
|
|
6695
6708
|
await changeMode(this.five, ['Topview', undefined, undefined, userAction]);
|
|
6696
6709
|
}
|
|
@@ -6700,14 +6713,14 @@ class Controller$3 extends Controller$6 {
|
|
|
6700
6713
|
const renderDuration = 500;
|
|
6701
6714
|
const modelOpacity = this.state.config.modelOpacity;
|
|
6702
6715
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
6703
|
-
this.hooks.emit('showAnimationEnded', { userAction });
|
|
6716
|
+
this.hooks.emit('showAnimationEnded', { userAction, auto: false });
|
|
6704
6717
|
this.render();
|
|
6705
6718
|
}
|
|
6706
6719
|
async _hide(options) {
|
|
6707
6720
|
if (!this.state.enabled)
|
|
6708
6721
|
return;
|
|
6709
6722
|
const { userAction } = options;
|
|
6710
|
-
this.hooks.emit('hide', { userAction });
|
|
6723
|
+
this.hooks.emit('hide', { userAction, auto: false });
|
|
6711
6724
|
const modelOpacity = 1;
|
|
6712
6725
|
const renderDuration = 0;
|
|
6713
6726
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
@@ -6724,7 +6737,8 @@ class Controller$3 extends Controller$6 {
|
|
|
6724
6737
|
}
|
|
6725
6738
|
updateState(state, userAction) {
|
|
6726
6739
|
const prevState = this.state;
|
|
6727
|
-
|
|
6740
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6741
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6728
6742
|
if (equal(this.state, prevState, { deep: true }))
|
|
6729
6743
|
return;
|
|
6730
6744
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
package/dist/index.umd.js
CHANGED
|
@@ -6141,6 +6141,8 @@
|
|
|
6141
6141
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6142
6142
|
getLabelElement: undefined,
|
|
6143
6143
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6144
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6145
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6144
6146
|
};
|
|
6145
6147
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6146
6148
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6214,6 +6216,10 @@
|
|
|
6214
6216
|
state.visible ? this._show(options) : this._hide(options);
|
|
6215
6217
|
}
|
|
6216
6218
|
}
|
|
6219
|
+
changeConfigs(config, userAction = true) {
|
|
6220
|
+
this.updateState({ config }, userAction);
|
|
6221
|
+
this.render();
|
|
6222
|
+
}
|
|
6217
6223
|
/** 更新户型图位置 */
|
|
6218
6224
|
updatePosition() {
|
|
6219
6225
|
var _a;
|
|
@@ -6232,7 +6238,8 @@
|
|
|
6232
6238
|
}
|
|
6233
6239
|
updateState(state, userAction) {
|
|
6234
6240
|
const prevState = this.state;
|
|
6235
|
-
|
|
6241
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6242
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6236
6243
|
if (equal(this.state, prevState, { deep: true }))
|
|
6237
6244
|
return;
|
|
6238
6245
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|
|
@@ -6569,6 +6576,8 @@
|
|
|
6569
6576
|
attachedTo: exports.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER,
|
|
6570
6577
|
getLabelElement: undefined,
|
|
6571
6578
|
adaptiveRoomLabelVisibleEnable: true,
|
|
6579
|
+
getRoomAreaText: (size) => (size / 1000000).toFixed(1) + '㎡',
|
|
6580
|
+
getRuleDistanceText: (distance) => distance.toString()
|
|
6572
6581
|
};
|
|
6573
6582
|
const paramsConfig = params ? omit(params, ['selector', 'scale']) : {};
|
|
6574
6583
|
const config = Object.assign(Object.assign({}, baseConfig), paramsConfig);
|
|
@@ -6670,6 +6679,10 @@
|
|
|
6670
6679
|
state.visible ? this._show(options) : this._hide(options);
|
|
6671
6680
|
}
|
|
6672
6681
|
}
|
|
6682
|
+
changeConfigs(config, userAction = true) {
|
|
6683
|
+
this.updateState({ config }, userAction);
|
|
6684
|
+
this.render();
|
|
6685
|
+
}
|
|
6673
6686
|
async formatData(serverData) {
|
|
6674
6687
|
return await formatData(serverData.data);
|
|
6675
6688
|
}
|
|
@@ -6678,7 +6691,7 @@
|
|
|
6678
6691
|
return;
|
|
6679
6692
|
this.isHiddenByHideFunc = false;
|
|
6680
6693
|
const { userAction } = options;
|
|
6681
|
-
this.hooks.emit('show', { userAction });
|
|
6694
|
+
this.hooks.emit('show', { userAction, auto: false });
|
|
6682
6695
|
if (this.five.getCurrentState().mode !== 'Topview') {
|
|
6683
6696
|
await changeMode(this.five, ['Topview', undefined, undefined, userAction]);
|
|
6684
6697
|
}
|
|
@@ -6688,14 +6701,14 @@
|
|
|
6688
6701
|
const renderDuration = 500;
|
|
6689
6702
|
const modelOpacity = this.state.config.modelOpacity;
|
|
6690
6703
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
6691
|
-
this.hooks.emit('showAnimationEnded', { userAction });
|
|
6704
|
+
this.hooks.emit('showAnimationEnded', { userAction, auto: false });
|
|
6692
6705
|
this.render();
|
|
6693
6706
|
}
|
|
6694
6707
|
async _hide(options) {
|
|
6695
6708
|
if (!this.state.enabled)
|
|
6696
6709
|
return;
|
|
6697
6710
|
const { userAction } = options;
|
|
6698
|
-
this.hooks.emit('hide', { userAction });
|
|
6711
|
+
this.hooks.emit('hide', { userAction, auto: false });
|
|
6699
6712
|
const modelOpacity = 1;
|
|
6700
6713
|
const renderDuration = 0;
|
|
6701
6714
|
changeModelCanvasOpacity(this.five, modelOpacity, renderDuration);
|
|
@@ -6712,7 +6725,8 @@
|
|
|
6712
6725
|
}
|
|
6713
6726
|
updateState(state, userAction) {
|
|
6714
6727
|
const prevState = this.state;
|
|
6715
|
-
|
|
6728
|
+
const config = state.config ? Object.assign(Object.assign({}, prevState.config), state.config) : prevState.config;
|
|
6729
|
+
this.state = Object.assign(Object.assign(Object.assign({}, this.state), state), { config });
|
|
6716
6730
|
if (equal(this.state, prevState, { deep: true }))
|
|
6717
6731
|
return;
|
|
6718
6732
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction });
|