Initial commit
This commit is contained in:
@@ -52,7 +52,15 @@ export const createGraphConnectingAttributes = (): Partial<Connecting> => {
|
||||
const edge: Edge = this.createEdge({
|
||||
shape: 'edge',
|
||||
...lineOptions, // 应用动画配置
|
||||
attrs: lineOptions.attrs,
|
||||
attrs: {
|
||||
...lineOptions.attrs,
|
||||
// 在创建边时覆盖箭头配置,确保移除箭头
|
||||
line: {
|
||||
...lineOptions.attrs?.line,
|
||||
targetMarker: null,
|
||||
sourceMarker: null,
|
||||
}
|
||||
},
|
||||
animation: lineOptions.animation,
|
||||
markup: lineOptions.markup,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user