hookehuyr

fix

......@@ -137,8 +137,8 @@ export function dragEdge(G6, option: OptionType) {
sourceAnchor: this.origin.sourceAnchor,
targetAnchor: this.origin.targetAnchor,
}
// TAG: 修改连接线颜色 开始出去的线和连接到抄送节点的颜色是灰色
if (this.origin.sourceNode.get('id') === 'start-node' || this.origin.targetNode.get('model').control ==='cc') {
// TAG: 修改连接线颜色 开始/结束 相关的线和连接到抄送节点的颜色是灰色
if (this.origin.sourceNode.get('id') === 'start-node' || this.origin.targetNode.get('model').control ==='cc' || this.origin.targetNode.get('id') === 'end-node') {
addModel.shape = 'flow-polyline-round'
}
if (this.graph.executeCommand) {
......
......@@ -33,8 +33,6 @@ export function registerEdge1(G6) {
const stateStyle = this.getStateStyle(name, value, item);
const styles = deepMix({}, stateStyle, itemStateStyle);
if (value) { // 如果设置状态,在原本状态上叠加绘图属性
console.warn(styles);
shape.attr(styles);
} else { // 取消状态时重置所有状态,依次叠加仍有的状态
const style = item.getCurrentStatesStyle();
......