The MindFusion Forums | |
Flow Diagramming Components >> News >> Diagramming for JavaScript, V3.2
https://mindfusion.eu/Forum/YaBB.pl?num=1510140036 Message started by Forum Admin on Nov 8th, 2017 at 11:20am |
Title: Diagramming for JavaScript, V3.2 Post by Forum Admin on Nov 8th, 2017 at 11:20am
We have released version 3.2 of MindFusion JavaScript Diagram library. It contains the following new features and improvements:
Export to SVG The SvgExporter class creates a Scalable Vector Graphics (SVG) drawing from the content of a Diagram. The exportElement method returns a DOM <svg> element that can be directly added to the page. The exportString method returns an SVG string that can be saved in local storage or submitted to server. Code (] function onExportSvg() { var diagram = $find("diagram"); var exporter = new MindFusion.Diagramming.SvgExporter(); var svgElement = exporter.exportElement(diagram); document.body.appendChild(svgElement); svgElement.style.position = 'fixed'; svgElement.style.zIndex = 100; } [/code):
Miscellaneous
Distribution for the latest version can be downloaded here, or from the clients area on our site: https://mindfusion.eu/JsDiagramTrial.zip Updated scripts are also available as diagram-library NPM package. Enjoy! |
The MindFusion Forums » Powered by YaBB 2.6.11! YaBB Forum Software © 2000-2024. All Rights Reserved. |