HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file ui.SVGCanvas by barry
expand copy to clipboardexpand
/*
 {"description" : "This API represents a drawing canvas which captures all rendering in scalable vector graphics format, which for example can then be written to a file."
	}
*/

interface SVGCanvas extends Canvas {
	
	/*
	 {"@description" : "Set whether or not the canvas should embed all fonts into the SVG, so that the resulting SVG is self-contained. If this is not set, the SVG will instead link to the font files on disk."
		}
	*/
	void setEmbedFonts(bool on)
	
	/*
	 {"@description" : "Set the canvas size for the SVG document."
		}
	*/
	void setSize(int w, int h)
	
	/*
	 {"@description" : "Clear all data on the canvas."
		}
	*/
	void clear()
	
	/*
	 {"@description" : "Get the SVG representing everything drawn to this canvas."
		}
	*/
	char[] getSVG()
	
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n ui.SVGCanvas -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation