Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

flowviz Design Concept #1

Open
himself65 opened this issue Mar 2, 2020 · 1 comment
Open

flowviz Design Concept #1

himself65 opened this issue Mar 2, 2020 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@himself65
Copy link
Contributor

we use modern package svg.js to implement our project to convenient users to easy, elegant and strong expandability diagramming library.

// this is just a idea, not the really code example
import { Container, Node, Edge } from '@flowviz/core'
const container = new Container(document.getElementById('root'))
  .addItem(new Node({ width: 10, height: 100 }).text('Hell, world').background('#green').position(10, 40))

container.addEventListener('onSelectItem', items => { /* do something */ })
const item1 = new Node(...)
const item2 = new Node(...)
const edge = new Edge(item1, item2)
container.addItems([items1, item2, edge])
@himself65
Copy link
Contributor Author

and it will support for react and vue using functional-component and reactive(on vue-3.0)

we basically split to the three parts of packages:

  • @flowviz/core: pure javascript library

  • @flowviz/react: react part

  • @flwoviz/vue: vue part

@himself65 himself65 added the good first issue Good for newcomers label Mar 2, 2020
@himself65 himself65 pinned this issue Mar 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants