Skip to content

Commit

Permalink
Fix Spec example + little formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Mar 19, 2019
1 parent 31ecbb0 commit c7d44c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Hiedra/HiSimpleRenderer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ HiSimpleRenderer >> renderNodes: nodes on: athensCanvas [

athensCanvas paintMode restoreAfter: [
"Set the stroke for all the nodes."
(athensCanvas setStrokePaint: nodeColor)
width: nodeBorderWidth.
(athensCanvas setStrokePaint: nodeColor) width: nodeBorderWidth.

nodes do: [ :each |
athensCanvas pathTransform restoreAfter: [
Expand Down
16 changes: 10 additions & 6 deletions src/Hiedra/HiSpecExample.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,16 @@ HiSpecExample >> initializeWidgets [

"Configure hiedra controller"
hiedraColumnController := HiColumnController new.
hiedraColumnController renderer
nodeRadius: 1.0;
nodeBorderWidth: 5.0;
rowHeight: rowHeight;
cellWidth: 8;
nodeColor: Smalltalk ui theme textColor.
"Increase the default value since Spec wants all Morphs initially."
hiedraColumnController pageSize: 1000.
hiedraColumnController renderer
rowHeight: rowHeight;
nodeRadius: 1.5;
nodeBorderWidth: 3.0;
arrowSize: 2.5;
nodeConnectionOffset: 3.5;
cellWidth: 8;
nodeColor: Smalltalk ui theme textColor.

"Configure columns"
tree columns: {
Expand Down

0 comments on commit c7d44c9

Please sign in to comment.