锚点处理完成
This commit is contained in:
parent
bd5e9f4db3
commit
c5dc8674e0
|
|
@ -14,7 +14,7 @@ import diceErEdge from './dice-er-edge'
|
|||
|
||||
const obj = {
|
||||
// dragAddEdge,
|
||||
// hoverEventEdit,
|
||||
hoverEventEdit,
|
||||
// clickEventEdit,
|
||||
dragEventEdit,
|
||||
keyupEventEdit,
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
// }
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue