|
@@ -514,7 +514,7 @@ export default {
|
|
|
let { myDiagram } = this;
|
|
|
|
|
|
myDiagram = $(go.Diagram, 'myDiagramDiv', {
|
|
|
- initialContentAlignment: go.Spot.Left,
|
|
|
+ // initialContentAlignment: go.Spot.Left,
|
|
|
allowCopy: false,
|
|
|
allowDelete: false
|
|
|
});
|
|
@@ -561,7 +561,6 @@ export default {
|
|
|
go.Panel,
|
|
|
'Spot',
|
|
|
{ desiredSize: new go.Size(45, 45) },
|
|
|
- new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
|
|
$(
|
|
|
go.Shape,
|
|
|
'Circle',
|
|
@@ -628,7 +627,6 @@ export default {
|
|
|
go.Panel,
|
|
|
'Spot',
|
|
|
{ desiredSize: new go.Size(40, 40) },
|
|
|
- new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
|
|
// 最外层
|
|
|
$(
|
|
|
go.Shape,
|
|
@@ -782,6 +780,7 @@ export default {
|
|
|
// curve: go.Link.JumpOver,
|
|
|
corner: 5
|
|
|
},
|
|
|
+ new go.Binding('points').makeTwoWay(),
|
|
|
$(
|
|
|
go.Shape, // the link path shape
|
|
|
{ isPanelMain: true, strokeWidth: 1 },
|