SImageLegendItem.ts 631 B

12345678910111213141516171819202122232425
  1. import { SGraphItem } from "@saga-web/graph/lib";
  2. import { SIconTextItem } from '@saga-web/big/lib/items/SIconTextItem';
  3. import { Legend } from '../types/Legend';
  4. /**
  5. * 图例节点Item(图标类型)
  6. *
  7. * * @author 张宇(taohuzy@163.com)
  8. */
  9. export class SImageLegendItem extends SIconTextItem {
  10. /** 图例节点对象数据 */
  11. data: Legend;
  12. /**
  13. * 构造函数
  14. *
  15. * @param parent 指向父对象
  16. * @param data 图例节点对象数据
  17. */
  18. constructor(parent: SGraphItem | null, data: Legend) {
  19. super(parent);
  20. this.data = data;
  21. }
  22. } // Class SImageLegendItem