SNoneLegendItem.ts 655 B

1234567891011121314151617181920212223242526272829
  1. // @ts-nocheck
  2. import { SGraphItem } from "@saga-web/graph/lib";
  3. import { Legend } from '../types/Legend';
  4. /**
  5. * 图例节点Item(非图例类型)
  6. *
  7. * * @author 张宇(taohuzy@163.com)
  8. */
  9. export class SNoneLegendItem extends SGraphItem {
  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. this.id = data.ID;
  22. }
  23. toData(): Legend {
  24. return this.data;
  25. }
  26. } // Class SNoneLegendItem