1 删除连线问题

funcion clearDrawGraph { 
  if (this.graphInstance !== null) {
    const connections = this.graphInstance.getConnections(); // 不能用getAllConnections 否则删除的时候会少
      for (let i = 0; i < connections.length; i++) {
        this.graphInstance.deleteConnection(connections[i]);
      }
    this.graphInstance = null;
  }
}

2  图表repaint 
  使用方法repaintEverything
  

document.getElementById("angentContainer").onscroll = () => {
  this.graphInstance.repaintEverything();
};
window.onscroll = () => {
  if (this.graphInstance !== null) {
    this.graphInstance.repaintEverything();
  }
};
window.onresize = () => {
  if (this.graphInstance !== null) {
    this.graphInstance.repaintEverything();
  }
};

最新文章

  1. Git小技巧 - 指令别名及使用Beyond Compare作为差异比较工具
  2. a byte of python(摘03)
  3. .NET微信自定义分享标题、缩略图、超链接及描述的设置方法
  4. Hadoop入门进阶课程4--HDFS原理及操作
  5. Anroid 异常:is not valid; is your activity running?
  6. UltraEdit中使用正则表达式
  7. Oracle 经典语法(五)
  8. centos6下安装部署hadoop2.2
  9. poj 3264 Balanced Lineup(线段树、RMQ)
  10. java_tomcat_Server at localhost was unable to start within 45 seconds 小喵咪死活启动报错-二
  11. Linux显示系统的诊断信息
  12. 优雅地 `async/await`
  13. 数组属性的习题、Arrays工具、二维数组
  14. vue中$refs、$slot、$nextTick相关的语法
  15. ECMAScript 原始类型
  16. 【模拟与阅读理解】Gym - 101954C Rullete
  17. windows server2008服务器下XAMPP集成环境配置apache的SSL证书:
  18. HTML5: input:file上传类型控制
  19. 使用TortoiseSVN客户端管理IntelliJ IDEA项目的方法
  20. C经典实例

热门文章

  1. 410 for 循环 运算 改变循环的控制流 死循环 遍历数组 定义方法 有名函数匿名函数 定义函数的方法取值 date math 局部变量 函数 局部与全局变量 次幂/随机数/取绝对值/向上取整/平方根
  2. 【转载】使用sklearn优雅地进行数据挖掘
  3. 题解 P4692 【[Ynoi2016]谁的梦】
  4. 【easy】225. Implement Stack using Queues
  5. MS SQL Server NULL处理
  6. php 两变量值互换 方法
  7. docker简单介绍---网络端口管理
  8. Flutter终将逆袭!1.2版本发布,或将统一江湖
  9. mybatis 查询单个对象,结果集类型一定要明确
  10. Bootstrap-datepicker3官方文档中文翻译---概述(原文链接 http://bootstrap-datepicker.readthedocs.io/en/latest/index.html)