Giter Site home page Giter Site logo

TLProjectMap is not right about telescope HOT 2 OPEN

jecisc avatar jecisc commented on July 18, 2024
TLProjectMap is not right

from telescope.

Comments (2)

jecisc avatar jecisc commented on July 18, 2024

In fact it is not the configurations that it does not manage. It's the dependencies not loaded in the image.

from telescope.

jecisc avatar jecisc commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.