Comments (2)
The method RSEdgeDrivenLayout>>addDefaultAttachPointToEdges
needs to be updated
from roassal3.
In Roassal2 we needed it because of the declarative way of working with RTMondrian
. In Roassal3 we will probably do not need it.
Here is an example:
classes := Collection withAllSubclasses.
v := RSView new.
classShape := RSShapeBuilder box
width: [ :cls | cls instVarNames size * 3 max: 5];
height: [ :cls | cls numberOfMethods max: 5 ].
compositeShape := RSShapeBuilder composite
shapes: [ :cls |
| g |
g := TSGroup new.
g add: (RSShapeBuilder label elementOn: cls name).
g add: (classShape elementOn: cls).
RSVerticalLineLayout new center; on: g.
g
].
v addAll: (compositeShape elementsOn: classes).
RSEdgeBuilder line
color: Color gray;
attachPoint: (RSVerticalAttachPoint new);
view: v;
objects: classes;
connectFrom: #superclass.
RSTreeLayout on: v elements.
v elements @ RSDraggable.
RSEdgeBuilder line
color: Color blue trans;
"attachPoint: (RSVerticalAttachPoint new);"
view: v;
objects: classes;
connectToAll: #dependentClasses.
v @ RSControlsView.
v open
from roassal3.
Related Issues (20)
- remove random from tests in roassal HOT 1
- Border color HOT 2
- check mouse event issue with mouse move and mouse enter HOT 1
- One class for ticks HOT 1
- RSStyler HOT 1
- Pharo 11 error loading full version of Roassal3 HOT 1
- add voronoi examples to roassal HOT 1
- add identity shape to roassal
- selection shadow in RSPieSlice should be a pie slice HOT 1
- Dirty areas for Roassal3 HOT 1
- RSDensityPlot has performance issues HOT 1
- README: DO NOT ADD MORE ISSUES IN ROASSAL3 HOT 1
- Fix roassal3 to transfer the repository to pharo-graphics/Roassal HOT 3
- RSKeyNavigationCanvasInteraction is not very modular
- RSTimelineExample>>#example03ZoomInAxis broken
- New event processor for roassal
- Slowdown caused by dirty rectangles and explicitRequirements
- #markerMid: on RSLine not working HOT 2
- RSSearchInCanvasInteraction >> isKeyForSearch: malfunctions
- Roassal3: Problem with RSForceBasedLayout
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 roassal3.