hookehuyr

fix

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