~~~~~~~~~~~~~~
|v e p|
v := RTView new.
p := 'M 1 0 Q 2 0 2 1 Q 2 2 1 2 Q 0 2 0 1 Q 0 0 1 0'.
e := RTSVGPath new path: p; scale: 10; element.
e @ RTResizeable.
v add: e.
v
~~~~~~~~~~~~~
However there is related issue that this is a path and not an actual SVG shape - so if
the shape has visual border than it scales as well which is unwanted.
So for the moment I rest the case --- I can get back to it in the mid-summer.
Oh I see!
I have added #borderWidthConstant to keep the border width to 1 pixel, independently of
the scale. Does this help?
|v e p|
v := RTView new.
p := 'M 1 0 Q 2 0 2 1 Q 2 2 1 2 Q 0 2 0 1 Q 0 0 1 0'.
e := RTSVGPath new path: p; scale: 40; borderWidthConstant; element.
e @ RTResizeable.
v add: e.
v
Regarding the RTResizeable, we can discuss about this when we will meet at ESUG
For example we were making more arrow heads.
Exciting!
But, do you have these shapes? If yes, can you send me the code to include them in the
main release?
Or various icons that I've ended up using
PNG/RTBitmap
<2015-04-29_12:37:25.png>
(this is also a good example related to composite shapes and resizing --- both the blue
containers and shapes inside it are independently resizable.
Is this screenshot a working result you have? This is impressive!
It would be great to have these icons somewhere. Maybe in RTIcon, class side. Are the
icons open source?
But again, I have a working solution, so this is a
more long-term plans discussion.
This is all highly exciting!
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.