SNoneLegendItem.js 506 B

12345678910111213141516171819202122
  1. import { SGraphItem } from "@saga-web/graph/lib";
  2. /**
  3. * 图例节点Item(非图例类型)
  4. *
  5. * * @author 张宇(taohuzy@163.com)
  6. */
  7. export class SNoneLegendItem extends SGraphItem {
  8. /**
  9. * 构造函数
  10. *
  11. * @param parent 指向父对象
  12. * @param data 图例节点对象数据
  13. */
  14. constructor(parent, data) {
  15. super(parent);
  16. this.data = data;
  17. this.id = data.ID;
  18. }
  19. toData() {
  20. return this.data;
  21. }
  22. } // Class SNoneLegendItem