Hi Roberto,
I checked and yes, there was a little ugly bug :P I commited a new
version, can you try and see if it works now, please?
Vanessa.
On 12/05/2012 11:20 AM, roberto.minelli(a)usi.ch wrote:
Hi guys,
I'm using Roassal to build a visualization that looks like the following:
http://www.xconomy.com/**wordpress/wp-content/images/**
2012/11/skeuo-calendar.png<http://www.xconomy.com/wordpress/wp-content/i…
I create two ad-hoc layouts (i.e., extending the ROGridLayout) to
individually layout days inside months and months inside years.
I have a piece of code that looks something like:
view shape rectangle withText.
view nodes: nodes forEach: [ :aGroupOfObjects | | innerNodes |
innerNodes := do something with aGroupOfObjects.
...
view shape rectangle size: 25; withCenteredText.
...
view nodes: innerNodes.
view layout: ROMonthLayout new.
]
view layout: ROYearLayout new.
view edges: ...
Notice that I want the both the outer node (i.e., the month container)
and the inner nodes (i.e., days) with labels.
The problem is that when I set both nodes with labels the view takes time
to be generated and interactions become impossible (i.e., the whole image
actually becomes slow and you can no longer drag around shapes in the view).
I explored the issue a little bit and discovered that it might be
something related to ROShape>>chainedDrawOn:for: and the way Roassal
handles shapes with "nested" shapes (i.e., when 'next' is not a
RONullShape
.
I inspected one of my outer nodes and discovered that I have a chain such
that 'outerNode next' is a ROLabel and the ROLabel has a ROChildrenShape as
next and the next of the ROChildrenShape is a RONullShape .
Have you ever experienced such a problem? Do you know how can I handle
that? Do you see any potential problem in the snippet I posted above?
Cheers and thanks in advance,
Roberto
______________________________**_________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/**mailman/listinfo/moose-dev<https://www.iam.un…
______________________________**_________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch