update 优化图标渲染样式

This commit is contained in:
LiuHao 2024-02-02 11:10:38 +08:00
parent f1639a3db1
commit 5a678b16fd

View File

@ -37,7 +37,15 @@ export default class CustomRenderer extends BaseRenderer {
const { type, width, height } = element;
// 开始 填充绿色
if (type === 'bpmn:StartEvent') {
svgAttr(shape, { fill: 'green' });
svgAttr(shape, { fill: '#77DF6D' });
return shape;
}
if (type === 'bpmn:EndEvent') {
svgAttr(shape, { fill: '#EE7B77' });
return shape;
}
if (type === 'bpmn:UserTask') {
svgAttr(shape, { fill: '#A9C4F8' });
return shape;
}
return shape;