-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: 边自定义动画希望保留原有边,动画覆盖在边上展示。 #1420
Comments
我理解你在自定义节点里自行通过字段控制边的样式就能实现你的需求了 |
/**
* 自定义直角折线边
*/
class SpPolylineEdgeModel extends PolylineEdgeModel {
createId(): string {
return nanoid();
}
setAttributes() {
this.isAnimation = true;
}
getEdgeStyle() {
const style = super.getEdgeStyle();
const { properties } = this;
if (properties.isActived) {
style.strokeDasharray = '4 4';
}
style.stroke = 'orange';
return style;
}
} |
动画的样式也可以自定义 |
https://developer.mozilla.org/zh-CN/docs/Web/SVG/SVG_animation_with_SMIL SMIL动画应该也可以实现 |
上面提供了解决方案,目前不会就这个功能开发 feature,故先将此 issue 关闭 |
背景&目的
现在的东湖是覆盖了原有边的样式,无法实现更加自由的动画效果,如果保留原有边效果,动画属于覆盖层,那么可以实现以下效果
The text was updated successfully, but these errors were encountered: