Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add event.md& demo #18

Merged
merged 2 commits into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ npm run start
+ [Basic Demo](https://vesoft-inc.github.io/nebulagraph-veditor/public/basic.html)
+ [FlowChart Demo](https://vesoft-inc.github.io/nebulagraph-veditor/public/flowChart.html)
+ [React Demo](https://vesoft-inc.github.io/nebulagraph-veditor/public/demo.html)
+ [Force-directed Graph](https://vesoft-inc.github.io/nebulagraph-veditor/public/graph.html)

# Build
```bash
Expand Down Expand Up @@ -70,6 +71,7 @@ console.log(editor.schema.getData())
# Documents
- [Get Started](./start.md)
- [Custom Shape](./custom.md)
- [Event](./event.md)
- [API](./docs)

# License
Expand Down
3 changes: 3 additions & 0 deletions custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const Path: DefaultLine.LineRender = {
return line.label.labelGroup;
},

//if you need custom line path,override this method
// render(line:InstanceLine){}

checkNewLine(data: VisualQueryLine) {
const { from, to } = data;
if (from === to) {
Expand Down
Loading