ProtectedfontCSSStringFormatted as CSS font shorthand (e.g., 'italic bold 12pt Arial')
ProtectedgroupProtectedprecisionProtected StaticmeasureStaticCATEGORYUse one of the overload signatures to create an SVG element of a specific type. The last overload accepts an arbitrary string, and is identical to the implementation signature. Feel free to add new overloads for other SVG element types as required.
Use one of the overload signatures to create an SVG element of a specific type. The last overload accepts an arbitrary string, and is identical to the implementation signature. Feel free to add new overloads for other SVG element types as required.
Use one of the overload signatures to create an SVG element of a specific type. The last overload accepts an arbitrary string, and is identical to the implementation signature. Feel free to add new overloads for other SVG element types as required.
Use one of the overload signatures to create an SVG element of a specific type. The last overload accepts an arbitrary string, and is identical to the implementation signature. Feel free to add new overloads for other SVG element types as required.
Use one of the overload signatures to create an SVG element of a specific type. The last overload accepts an arbitrary string, and is identical to the implementation signature. Feel free to add new overloads for other SVG element types as required.
Use one of the overload signatures to create an SVG element of a specific type. The last overload accepts an arbitrary string, and is identical to the implementation signature. Feel free to add new overloads for other SVG element types as required.
Optionalattributes: AttributesReturn a string of the form 'italic bold 15pt Arial'
ProtectedgetOptionalcls: stringOptionalid: stringOptionalattributes: AttributesProtectedroundUsed to set the fill color for clearRect(). This allows us to simulate
cutting a "hole" into the SVG drawing.
Optionalf: string | FontInfois 1) a FontInfo object or
2) a string formatted as CSS font shorthand (e.g., 'bold 10pt Arial') or
3) a string representing the font family (one of size, weight, or style must also be provided).
Optionalsize: string | numbera string specifying the font size and unit (e.g., '16pt'), or a number (the unit is assumed to be 'pt').
Optionalweight: string | numberis a string (e.g., 'bold', 'normal') or a number (100, 200, ... 900). It is inserted into the font-weight attribute (e.g., font-weight="bold")
Optionalstyle: stringis a string (e.g., 'italic', 'normal') that is inserted into the font-style attribute (e.g., font-style="italic")
this
an array of integers in the form of [dash, space, dash, space, etc...]
this
this
A non-negative float specifying the level of shadow blur, where 0 represents no blur and larger numbers represent increasingly more blur.
this
1 arg: string in the "x y w h" format 4 args: x:number, y:number, w:number, h:number
OptionalminY: numberOptionalwidth: numberOptionalheight: number
SVG rendering context with an API similar to CanvasRenderingContext2D.