url()

Produces a "url(#name)" reference for SVG elements.

Syntax

url( name STRING )
 RETURNS STRING
  1. name is the URL name.

Usage

This function builds a "url(#name)" SVG attribute with the name passed as parameter.

Such URL attribute is typically used in SVG element to reference a common reusable element defined in the "defs" element, such as SVG patterns.

Example

CALL n.setAttribute(SVGATT_STYLE,
   SFMT('stroke:gray; fill:%1;', fglsvgcanvas.url("pattern_1") )
 )