Comments (2)
In fact it is not the configurations that it does not manage. It's the dependencies not loaded in the image.
from telescope.
Here is a much better version:
| project |
project := BaselineOfMoose.
substringsOfProjectsToHighlight := #(#Famix #Fame #Moose #TestResource).
visu := TLVisualization new.
visu addNodesFromEntities: ((BaselineOfMoose project version withDeepCollect: [ :each | each projects collect: #version ])
inject: OrderedCollection new
into: [ :coll :vers |
coll detect: [ :each | each versionNumber = vers versionNumber and: [ each projectLabel = vers projectLabel ] ] ifNone: [ coll add: vers ].
coll ]).
visu nodes
do: [ :each |
(each entity projects collect: [ :e | visu nodes detect: [ :n | n entity = e version and: [ n entity projectLabel = e version projectLabel ] ] ifNone: [ nil ] ])
asSet do: [ :n | n ifNotNil: [ each connectToNode: n ] ] ].
visu styleSheet
nodeLabel: [ :each | each projectLabel withoutPrefix: #BaselineOf ];
nodeLabelPosition: #bottom;
backgroundColor: [ :each | (substringsOfProjectsToHighlight anySatisfy: [ :e | each projectLabel includesSubstring: e ]) ifTrue: [ MDLColor green ] ifFalse: [ MDLColor orange ] ];
labelSize: 11.
visu layout: (TLTreeLayout rightToLeft
leavesGap: 70;
levelGap: 100;
yourself).
visu addInteractions:
{(TLStyleCustomizationAction
custom: [ :style :drawable |
drawable isConnection
ifTrue: [ style
color: MDLColor blue;
width: 3 ]
ifFalse: [ style
labelSize: 20;
textColor: MDLColor blue ].
self ]
target: [ :aDrawable | aDrawable incomingConnections flatCollectAsSet: #withConnectedNodes ]) onMouseOver propagateToChildren . (TLStyleCustomizationAction
custom: [ :style :drawable |
drawable isConnection
ifTrue: [ style
color: MDLColor orange;
width: 3 ]
ifFalse: [ style
labelSize: 20;
textColor: MDLColor orange ].
self ]
target: [ :aDrawable | aDrawable outgoingConnections flatCollectAsSet: #withConnectedNodes ]) onMouseOver propagateToChildren}.
visu open
from telescope.
Related Issues (20)
- exampleLayoutsAngle has wrong pragma
- Add demo on node label positions
- Remove dead code
- Deprecate fullScreenOpening
- Add Smoke test on demos
- Add a hierarchy for Telescope's tests
- TLExpandCollapseNodesAction should have setter for expandToOrigin
- Add abstraction over layouts
- First time opening visu does not work
- BabyMock2 dependency should be removed from the baseline
- Asking the nodes of a TLVisualization answer an empty collection while #allNodes has results HOT 1
- Improve name of TLSortingBlockStrategy
- TLHideAction should by default hide the current element HOT 1
- Groups are not correctly removed from supergroups
- Create a matrix visualization for Nicolas
- Telescope contains halts
- Lack of an action creating connections with entity
- Actions condition should follow the standard of providing entity then node as block parameter HOT 1
- TLTreeLayout fails when applied on groups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telescope.