import { SGraphItem } from "@saga-web/graph/lib"; import { SIconTextItem } from '@saga-web/big/lib/items/SIconTextItem'; import { Legend } from '../types/Legend'; /** * 图例节点Item(图标类型) * * * @author 张宇(taohuzy@163.com) */ export class SImageLegendItem extends SIconTextItem { /** 图例节点对象数据 */ data: Legend; /** * 构造函数 * * @param parent 指向父对象 * @param data 图例节点对象数据 */ constructor(parent: SGraphItem | null, data: Legend) { super(parent); this.data = data; } } // Class SImageLegendItem