Login  Register

Re: [Ann] DragPanels: Floating palette windows with drag-and-drop in Morphic

Posted by Nicolai Hess on Jun 29, 2015; 6:52pm
URL: https://forum.world.st/Ann-DragPanels-Floating-palette-windows-with-drag-and-drop-in-Morphic-tp4834283p4834674.html



2015-06-29 14:52 GMT+02:00 H. Hirzel <[hidden email]>:
On 6/29/15, Nicolai Hess <[hidden email]> wrote:
> 2015-06-29 12:55 GMT+02:00 Peter Uhnák <[hidden email]>:
>
>>
>>
>> On Mon, Jun 29, 2015 at 12:16 PM, Stephan Eggermont <[hidden email]>
>> wrote:
>>
>>> On 29-06-15 10:26, Hannes Hirzel wrote:
>>>
>>>> Thank you, Stephan, for providing a well worked out example continuing
>>>> where
>>>> Morphic tutorials normally end. This is a real need to unearth
>>>> functions
>>>> which have been there fore years but mostly unused.
>>>>
>>>> The two video clips document the use cases of the code nicely.
>>>>
>>>> A question not answered yet is: How do I export the panel with the
>>>> cards
>>>> as
>>>> an SVG file?
>>>>
>>>
>>> Hmm. What would be the best way to do that?
>>> - I assume in Bloc with Cairo I should be able to use an SVGCanvas?
>>>
>>
>> I thought that this was already possible with Morph>>drawOnAthensCanvas:
>>
>
> That does not imply it can be used to generate svg elements on the fly.
> Athens  backend is based on a vector "drawing" library that does not
> mean it can generate any vector drawing files ...
> luckily, cairo can ! And with just a couple of native function  calls,

What are these calls?

we
> can
> add this support to athens (see attached svg images)


Unfortunately the svg file does not contain the text of the cards.
E.g. searching for 'Test2' gives no result.

That's bad. Yes, it looks like string characters are converted to svg-paths.