g6-editor icon indicating copy to clipboard operation
g6-editor copied to clipboard

文档能否完善一下,比如锚点cfg具体配置

Open Lost-Kun opened this issue 6 years ago • 5 comments

Lost-Kun avatar Jan 02 '19 08:01 Lost-Kun

请问一下你能配置锚点了吗? 他现在默认是四个 我想一个节点只有左右两个锚点 能配置吗?

powerProgrammerMa avatar Jan 09 '19 08:01 powerProgrammerMa

请问一下你能配置锚点了吗? 他现在默认是四个 我想一个节点只有左右两个锚点 能配置吗?

G6Editor.Flow.registerNode('flow-xxx', { anchor: [], })

DirtyHao avatar Feb 19 '19 06:02 DirtyHao

嗯嗯,可以配置的,如下便是左右两个锚点 anchor: [ [0, 0.5, { type: 'input', }], [1, 0.5, { type: 'output', }], ]

Lost-Kun avatar Feb 19 '19 07:02 Lost-Kun

嗯嗯,可以配置的,如下便是左右两个锚点 anchor: [ [0, 0.5, { type: 'input', }], [1, 0.5, { type: 'output', }], ]

可以配置大于4个的吗,比如 8 个,我发现锚点有点不够用。。或者可以给边加锚点吗,可以拖拽调整边的位置

papibabi avatar May 13 '19 08:05 papibabi

G6Editor.Flow.registerNode('flow-xxx', { anchor: [], }) 这个配置是写在那个文件里面的?我写在Page.jsx文件里面出不来,它里面已经new G6Editor.Flow

PXX-96 avatar Jun 09 '20 09:06 PXX-96