We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Customization of SVG template

Customization of SVG template

We can customize the SVG template and render it as a native node. If we set an attributes for an SVG and set a same property in the native node, then the property in the node can be overridden by the inline style or SVG element specified in the template. Please refer to the code example in which we have customized the SVG template.

Code example:

 

The scale property of node allows to stretch the svg content as you desired (either to maintain proportion or to stretch). By default, the scale property of node is set as “meet”. The following code illustrates how to scale or stretch the content of the node. Please refer to the code example below.

Code example:

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7139 11/11/2016 11/15/2016 JavaScript ejDiagram
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.