GithubHelp home page GithubHelp logo

sun11l / dagboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from murongqimiao/dag-diagram

0.0 1.0 0.0 207 KB

一步步实现DAG可视化及简单交互, 可用于js模拟流程图等

JavaScript 25.53% HTML 0.18% Vue 74.30%

dagboard's Introduction

dagbymurongqimiao

a profile use to draw DAG

Build Setup

npm i -> npm run dev

基于SVG的DAG(单向无环图)前端实现.分享给有类似需求的前端研发同学.

简书配套教程地址: [ 教程1 ] https://www.jianshu.com/p/b044f94e8211 [ 教程2 ] https://www.jianshu.com/p/e02771a5d72b [ 教程3 ] https://www.jianshu.com/p/5d29b09cb031

线上模拟地址 http://zhanglizhong.cn/#/

本项目为公司内部PAI需求, 参考了国内外其他公司的DAG实现,

较粗糙,愿抛砖引玉. 更多内容欢迎+wechat讨论, murongqimiao

==================================================================

目录结构 (文件内有详细注解)

------------
|
---src
|
------components
|
----------STEP
|
---------------STEP1
|                   绘制节点
---------------STEP2
|                   绘制节点的连线
---------------STEP3
|                   绘制节点拖动的模拟框
---------------STEP4
|                   绘制节点拖动连线的模拟框
---------------STEP5
|                   组件抽离
---------------STEP6
|                   节点、连线的增删
...
---------------STEP8
|                   完整实现

==================================================================

已经实现的内容:

  1. 图. 节点. 连线 的展示
  2. 节点的增删, 位置变动 ( 开放右键功能
  3. 连线的增删 ( 开放右键功能
  4. 整图放缩 拖动 框选节点

dagboard's People

Contributors

murongqimiao avatar

Watchers

James Cloos 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.