Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Export to SVG (Read 2543 times)
princji
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Sep 8th, 2009
Export to SVG
Sep 14th, 2009 at 3:06pm
Print Post  
Hello,

I'm still working on the proof of concept for MindFusion NetDiagram and I've run into an issue with SVG Exporter.

The layout is perfect (better than Visio Exporter), however there's one major issue: it appears every word is a separated textbox within a node so it makes it impossible to edit the content of the node.

Is this the normal behaviour?
Thank you.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to SVG
Reply #1 - Sep 14th, 2009 at 3:33pm
Print Post  
Hi,

The SVG exporter creates text elements as suggested in the first item in this list from the SVG specification:

Quote:
Each 'text' element causes a single string of text to be rendered. SVG performs no automatic line breaking or word wrapping. To achieve the effect of multiple lines of text, use one of the following methods:

- The author or authoring package needs to pre-compute the line breaks and use multiple 'text' elements (one for each line of text).

- The author or authoring package needs to pre-compute the line breaks and use a single 'text' element with one or more 'tspan' child elements with appropriate values for attributes x, y, dx and dy to set new start positions for those characters which start new lines. (This approach allows user text selection across multiple lines of text -- see Text selection and clipboard operations.)

- Express the text to be rendered in another XML namespace such as XHTML [XHTML] embedded inline within a 'foreignObject' element. (Note: the exact semantics of this approach are not completely defined at this time.)


I suppose we could try using tspans for the next release.

Stoyan
  
Back to top
 
IP Logged
 
princji
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Sep 8th, 2009
Re: Export to SVG
Reply #2 - Sep 14th, 2009 at 5:04pm
Print Post  
Stoyan, thank you for your reply. This makes sense...

I have however noticed that the export to SVG is so muck quicker than the export to Visio.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to SVG
Reply #3 - Sep 15th, 2009 at 6:40am
Print Post  
Yes, Visio requires creating much larger XML trees than SVG.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint