This is a migrated thread and some comments may be shown as answers.

Exporting Custom Shapes to HTML

1 Answer 85 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Duncan
Top achievements
Rank 1
Duncan asked on 29 Oct 2012, 04:26 AM
I found a nice example of exporting a Diagram to HTML from the samples, within the Diagram Toolbox, however I've had a bit of a play with it; implementing the code into my own solution, and it doesnt seem to be handling custom shapes particularly well (the shapes themselves don't get rendered in the HTML output - the content and connectors do).
Is this something the sample code should handle, or do I need to somehow define the custom shapes in an additional way for the HTML output to pick up on perhaps?

Cheers,
Duncan

1 Answer, 1 is accepted

Sort by
0
Francois Vanderseypen
Top achievements
Rank 2
answered on 29 Oct 2012, 05:10 AM
Duncan, custom shapes are not being exported. There is no way that JavaScript can understand or parse XAML control template or even find them. You can read about the limitations of the export here. The string-serialization of geometry (things like "M0,0L120,455...") is the same in SVG and XAML and is the reason that exporting works well for geometric shapes but not for arbitrary XAML.
We're working on a diagramming framework for HTML/JS/SVG but no timeline for this yet.

Hope this helps, Fr.
Tags
Diagram
Asked by
Duncan
Top achievements
Rank 1
Answers by
Francois Vanderseypen
Top achievements
Rank 2
Share this question
or