Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lloydzhou/antv-x6-svelte

antv x6 svelte as web component
https://github.com/lloydzhou/antv-x6-svelte

antv antv-x6 graph svelte webcomponent

Last synced: about 1 month ago
JSON representation

antv x6 svelte as web component

Awesome Lists containing this project

README

        

# 用html标签画x6图形

1. 加载x6的js
```

```

2. 加载x6tag.js(这个是将svelte封装的x6的组件编译成web component之后的代码)
```

使用本地编译的文件,或者使用cdn上面编译好的版本

```

3. 使用html标签画图
```







```
> 其中node1是一个group,包含了node11,拖动node1的时候,node11会一起拖动

## online demo
[codesandbox 使用html标签画x6图形](https://codesandbox.io/s/antv-x6-html-988sgg?file=/index.html)

# TODO

1. 参考[antv-x6-vue](https://github.com/lloydzhou/antv-x6-vue)封装其他组件
2. 支持渲染自定义组件