diff --git a/hchyun-ui/src/views/tool/top/packages/topology/src/behavior/index.js b/hchyun-ui/src/views/tool/top/packages/topology/src/behavior/index.js index c508e1e..34f323b 100644 --- a/hchyun-ui/src/views/tool/top/packages/topology/src/behavior/index.js +++ b/hchyun-ui/src/views/tool/top/packages/topology/src/behavior/index.js @@ -14,7 +14,7 @@ import diceErEdge from './dice-er-edge' const obj = { // dragAddEdge, - // hoverEventEdit, + hoverEventEdit, // clickEventEdit, dragEventEdit, keyupEventEdit, diff --git a/hchyun-ui/src/views/tool/top/packages/topology/src/edge/dice-er-edge.js b/hchyun-ui/src/views/tool/top/packages/topology/src/edge/dice-er-edge.js index 835d3d4..2605a65 100644 --- a/hchyun-ui/src/views/tool/top/packages/topology/src/edge/dice-er-edge.js +++ b/hchyun-ui/src/views/tool/top/packages/topology/src/edge/dice-er-edge.js @@ -60,6 +60,7 @@ export default { shape = group.addShape("path", { attrs: { stroke: "#5B8FF9", + lineAppendWidth:15, path: [ ["M", startPoint.x, startPoint.y], [ @@ -84,6 +85,7 @@ export default { shape = group.addShape("path", { attrs: { stroke: "#5B8FF9", + lineAppendWidth:15, path: [ ["M", startPoint.x, startPoint.y], [ diff --git a/hchyun-ui/src/views/tool/top/packages/topology/src/node/dice-er-box.js b/hchyun-ui/src/views/tool/top/packages/topology/src/node/dice-er-box.js index 95cf178..e57149d 100644 --- a/hchyun-ui/src/views/tool/top/packages/topology/src/node/dice-er-box.js +++ b/hchyun-ui/src/views/tool/top/packages/topology/src/node/dice-er-box.js @@ -203,34 +203,37 @@ export default { }); if (!cfg.hideDot) { - // utils.anchor.erDrawLeft(group,label,0,i * itemHeight + offsetY) - // utils.anchor.erDrawLeft(group,label,width,i * itemHeight + offsetY) - listContainer.addShape("marker", { - attrs: { - x: 0, - y: i * itemHeight + offsetY, - r: 3, - stroke: boxStyle.stroke, - fill: "white", - radius: 2, - lineWidth: 1, - cursor: "pointer", - }, - name: 'marker-shape' - }); - listContainer.addShape("marker", { - attrs: { - x: width, - y: i * itemHeight + offsetY, - r: 3, - stroke: boxStyle.stroke, - fill: "white", - radius: 2, - lineWidth: 1, - cursor: "pointer", - }, - name: 'markerBg-shape' - }); + utils.anchor.erDrawLeft(group, label, 0, i * itemHeight + offsetY) + utils.anchor.erDrawLeft(group,label,width,i * itemHeight + offsetY) + // listContainer.addShape("marker", { + // attrs: { + // x: 0, + // y: i * itemHeight + offsetY, + // r: 3, + // stroke: boxStyle.stroke, + // fill: "white", + // radius: 2, + // lineWidth: 1, + // cursor: "crosshair", + // }, + // + // name: 'marker-shape' + // }); + // listContainer.addShape("marker", { + // attrs: { + // x: width, + // y: i * itemHeight + offsetY, + // r: 3, + // stroke: boxStyle.stroke, + // fill: "white", + // radius: 2, + // lineWidth: 1, + // cursor: "crosshair", + // + // + // }, + // name: 'marker-shape' + // }); } @@ -267,7 +270,7 @@ export default { // utils.node.setState(name, value, item) // 设置锚点状态 // if (vm.graphMode === 'edit') { - utils.anchor.setState(name, value, item) + utils.anchor.setState(name, value, item) // } }, } diff --git a/hchyun-ui/src/views/tool/top/packages/topology/src/theme/default-style.js b/hchyun-ui/src/views/tool/top/packages/topology/src/theme/default-style.js index e2d9c92..3cb5cd0 100644 --- a/hchyun-ui/src/views/tool/top/packages/topology/src/theme/default-style.js +++ b/hchyun-ui/src/views/tool/top/packages/topology/src/theme/default-style.js @@ -73,10 +73,11 @@ export default { default: { r: 3, symbol: 'circle', - fill: '#FFFFFF', - fillOpacity: 0, - stroke: '#1890FF', - strokeOpacity: 0, + lineWidth: 1, + fill: 'white', + fillOpacity: 1, + stroke: '#096DD9', + strokeOpacity: 1, cursor: 'crosshair' }, hover: {