You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The treemap builder should offer a default weight of 1 #1003
Right now, the weight block has to be specified. Instead, we should have a default weight
of 1. Furthermore, right now, if the weight returns 0 (like above), we get a ZeroDivide.
Zero should be handled without an error.
Reported by tudor@tudorgirba.com on 2013-11-15 05:25:25
Also, the weight should ideally be aggregated from leaf nodes. For example, the code
below makes packages have only 1 weight, and thus the classes appear tiny and empty
packages appear as large as non empty ones. If we would have a way to specify aggregation,
we would be better off.
| builder rawView packages |
builder := ROTreeMapBuilder new.
rawView := ROView new.
packages := self mooseModel allNamespaces.
builder weightBlock: [ :el | (el isKindOf: FAMIXType) ifTrue: [ el numberOfMethods
+ 1] ifFalse: [ 1 ] ].
builder nodes: (packages), (self).
builder nestingFromAssociations:
(builder nodes collect: [ :each |
each parentScope -> each ]).
builder drawOn: rawView.
rawView open
Reported by tudor@tudorgirba.com on 2013-11-15 07:16:11
Activity
seandenigris commentedon Aug 3, 2015
Reported by
tudor@tudorgirba.comon 2013-11-15 07:16:11seandenigris commentedon Aug 3, 2015
Reported by
tudor@tudorgirba.comon 2014-11-13 21:41:21WontFix