|
@@ -15,16 +15,6 @@ import { Zone } from "../types/floor/Zone";
|
|
|
import { Legend } from "../types/topology/Legend";
|
|
|
import { Marker } from "../types/topology/Marker";
|
|
|
import { Relation } from "../types/topology/Relation";
|
|
|
-import {
|
|
|
- SVerticalRelation,
|
|
|
- SNoneLegendItem,
|
|
|
- SLineLegendItem,
|
|
|
- SZoneLegendItem,
|
|
|
- SImageLegendItem,
|
|
|
- SImageMarkerItem,
|
|
|
- SLineMarkerItem,
|
|
|
- STextMarkerItem
|
|
|
-} from "..";
|
|
|
|
|
|
/**
|
|
|
* 拓扑图信息解析器
|
|
@@ -107,76 +97,4 @@ export class SItemFactory {
|
|
|
createZone(data: Zone): SZoneItem {
|
|
|
return new SZoneItem(null, data);
|
|
|
} // Function createZone()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建图例节点item(非图例类型)
|
|
|
- *
|
|
|
- * @param data 图例节点数据
|
|
|
- * */
|
|
|
- createNoneLegend(data: Legend): SNoneLegendItem {
|
|
|
- return new SNoneLegendItem(null, data);
|
|
|
- } // Function createNoneLegend()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建图例节点item(线类型)
|
|
|
- *
|
|
|
- * @param data 图例节点数据
|
|
|
- * */
|
|
|
- createLineLegend(data: Legend): SLineLegendItem {
|
|
|
- return new SLineLegendItem(null, data);
|
|
|
- } // Function createLineLegend()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建图例节点item(区域类型)
|
|
|
- *
|
|
|
- * @param data 图例节点数据
|
|
|
- * */
|
|
|
- createZoneLegend(data: Legend): SZoneLegendItem {
|
|
|
- return new SZoneLegendItem(null, data);
|
|
|
- } // Function createZoneLegend()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建图例节点item(图标类型)
|
|
|
- *
|
|
|
- * @param data 图例节点数据
|
|
|
- * */
|
|
|
- createImageLegend(data: Legend): SImageLegendItem {
|
|
|
- return new SImageLegendItem(null, data);
|
|
|
- } // Function createImageLegend()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建标识item(图类型)
|
|
|
- *
|
|
|
- * @param data 标识对象数据
|
|
|
- * */
|
|
|
- createImageMarker(data: Marker): SImageMarkerItem {
|
|
|
- return new SImageMarkerItem(null, data);
|
|
|
- } // Function createImageMarker()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建标识item(线类型)
|
|
|
- *
|
|
|
- * @param data 标识对象数据
|
|
|
- * */
|
|
|
- createLineMarker(data: Marker): SLineMarkerItem {
|
|
|
- return new SLineMarkerItem(null, data);
|
|
|
- } // Function createLineMarker()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建标识item(文本类型)
|
|
|
- *
|
|
|
- * @param data 标识对象数据
|
|
|
- * */
|
|
|
- createTextMarker(data: Marker): STextMarkerItem {
|
|
|
- return new STextMarkerItem(null, data);
|
|
|
- } // Function createTextMarker()
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建管线关系item
|
|
|
- *
|
|
|
- * @param data 管线关系对象数据
|
|
|
- * */
|
|
|
- createRelation(data: Relation): SVerticalRelation {
|
|
|
- return new SVerticalRelation(null, data);
|
|
|
- } // Function createRelation()
|
|
|
} // class SItemFactory
|