some no-ops
This commit is contained in:
parent
e146aaf746
commit
930b0ba0eb
|
@ -86,6 +86,8 @@ class HierarchicalGraphWidget(QZoomableDraggableGraphicsView):
|
|||
self.layout_prog = 'neato'
|
||||
self.layout_social_distancing = 200 / DPI
|
||||
self.layout_overlap = 'vpsc'
|
||||
self.layout_damping = 0.5
|
||||
self.layout_mode = 'major'
|
||||
|
||||
self._labels = {}
|
||||
self.ng = None
|
||||
|
@ -361,6 +363,8 @@ class HierarchicalGraphWidget(QZoomableDraggableGraphicsView):
|
|||
self.ag.graph_attr['maxiter'] = maxiter
|
||||
self.ag.graph_attr['normalize'] = 'false'
|
||||
self.ag.graph_attr['inputscale'] = '0'
|
||||
self.ag.graph_attr['Damping'] = self.layout_damping if maxiter == 1 else '0.99'
|
||||
self.ag.graph_attr['mode'] = self.layout_mode
|
||||
self.ag._layout(self.layout_prog)
|
||||
|
||||
for node in self.ag.nodes_iter():
|
||||
|
@ -753,7 +757,7 @@ class HGExtern(HGNode):
|
|||
|
||||
def shape(self) -> QPainterPath:
|
||||
result = QPainterPath()
|
||||
result.addEllipse(0, 0, self.radius*2, self.radius*2)
|
||||
result.addEllipse(-self.radius, -self.radius, self.radius*2, self.radius*2)
|
||||
return result
|
||||
|
||||
def paint(self, painter, option, widget=...):
|
||||
|
|
Loading…
Reference in New Issue