Giter VIP home page Giter VIP logo

d3-es6's Introduction

功能列表:

  1. 增加下载SVG转PNG功能,图片尺寸超出可视区域也能够下载全部显示出来
  2. 增加图谱放大缩小平移功能
  3. 增加图谱初始化加载时自动缩放功能
  4. 增加导出excel功能
  5. 增加右键菜单功能
  6. 增加拖拽添加连线功能
  7. 增加鼠标点击画布增加节点功能
  8. 增加右键删除节点和左侧工具栏删除节点功能
  9. 增加环形布局 10.增加矩形布局

功能详情:

  1. 拖拽添加连线功能 两个节点之间只能有一条边,如果节点互相指向,则为一条双向边; 当已经有一条边后再进行同方向拖拽连线时不会添加新边; 当已经有一条边后进行反方向拖拽连线时会合并为一条双向边;

  2. SVG转PNG功能 当前视图超出可视区域,即滚动鼠标中键放大当前图谱,有部分元素被隐藏,截图时也会将可视区域之外的元素保留到截图里;

  3. 鼠标点击画布增加节点功能 画布放大缩小或者平移,点击画布,新增的节点也会在鼠标点击处,不会发生偏移; 实现方法是将图谱数据刷新后,重新设置该节点的translate和scale值(自觉得这种方法也不是太好);

...

启动方式:

进入根目录打开控制台运行以下命令

  1. npm install
  2. npm run build:dll
  3. npm run build
  4. node api
  5. 打开http://localhost:3000即可

在线预览地址:https://zhangzn3.github.io/D3-Es6/

d3-es6's People

Contributors

zhangzn3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.