Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

如何在 g6-editor中使用 svg 渲染模式 #49

Closed
phantomlution opened this issue Sep 30, 2018 · 3 comments
Closed

如何在 g6-editor中使用 svg 渲染模式 #49

phantomlution opened this issue Sep 30, 2018 · 3 comments

Comments

@phantomlution
Copy link

phantomlution commented Sep 30, 2018

项目中要使用自定DOM节点。文档上说要用svg渲染模式。但是并不能成功配置svg渲染模式

const page = new G6Editor.Flow({
      graph: {
        renderer: 'svg',
        container: 'page',
        height
      },
      align: {
        grid: true
      },
      noEndEdge: false,
      edgeResizeable: false
    });
@phantomlution
Copy link
Author

已解决。renderer: 'svg' 改成 render: 'svg'

@TomHuangCN
Copy link
Contributor

线上版的 editor 还没适配 G6 2.1,还不支持 dom

@phantomlution
Copy link
Author

phantomlution commented Oct 1, 2018

@TomHuangCN

我现在能成功创建dom元素。但是点击这个元素之外的地方,这个元素会被自动清空。。这个是bug吗

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants