antvis/G6
The issue has been closed
ANTV G6 5.0.27 TYPE: Polyline does not take effect #6455
shanshana posted onGitHub
Describe the bug / 问题描述
使用5.0.27版本创建一个包含两个节点,一条折线的图形,设置type:polyline,但实际上展示的依然是直线样式
核心代码:
import { Graph } from "@antv/g6";
const data = {
nodes: [
{
id: "node0",
style: {
x: 100,
y: 100,
size: 40,
},
},
{
id: "node1",
style: {
x: 300,
y: 300,
size: 40,
},
},
],
edges: [
{
id: "edge0",
source: "node0",
target: "node1",
type: "polyline",
},
],
};
export const flowInstance = (divObj: HTMLElement) => {
const graph = new Graph({
container: divObj,
data,
edge: {
type: "polyline",
},
});
graph.render();
};
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response