svg

object svg extends SvgAttrs with SvgTags
trait SvgTags
trait SvgTagBuilder[SvgTag, Element]
trait HtmlTagBuilder[HtmlTag, Element]
trait SvgTags[SvgTag, Element, A, Circle, ClipPath, Defs, Desc, Ellipse, FEBlend, FEColorMatrix, ComponentTransferFunction, FEComposite, FEConvolveMatrix, FEDiffuseLighting, FEDisplacementMap, FEDiffuseLighting, FEFlood, FEFuncA, FEFuncB, FEFuncG, FEFuncR, FEGaussianBlur, FEImage, FEMerge, FEMergeNode, FEMorphology, FEOffset, FEPointLight, FESpecularLighting, FESpecularLighting, FETile, FETurbulence, Filter, G, Image, Line, LinearGradient, Marker, Mask, Metadata, Path, Pattern, Polygon, Polyline, RadialGradient, RectElement, SVG, Stop, Switch, Symbol, Text, TextPath, TSpan, Use, View]
trait SvgAttrs
trait SvgAttrBuilder[Attribute]
trait SvgAttrs[Attribute]
class Object
trait Matchable
class Any
svg.type

Value members

Inherited methods

@inline
protected def doubleSvgAttr(key: String, namespace: Option[String]): Attribute[Double]
Inherited from:
SvgAttrBuilder
@inline
override protected def htmlTag[Ref <: Element](tagName: String, void: Boolean): HtmlVNode
Definition Classes
TagBuilder -> HtmlTagBuilder
Inherited from:
TagBuilder
@inline
protected def htmlTag[Ref <: Element](tagName: String): HtmlTag[Ref]
Inherited from:
HtmlTagBuilder
@inline
protected def intSvgAttr(key: String, namespace: Option[String]): Attribute[Int]
Inherited from:
SvgAttrBuilder
@inline
protected def stringSvgAttr(key: String, namespace: Option[String]): Attribute[String]
Inherited from:
SvgAttrBuilder
final override protected def svgAttr[V](key: String, codec: Codec[V, String], namespace: Option[String]): BasicAttrBuilder[V]
Definition Classes
SvgAttrs -> SvgAttrBuilder
Inherited from:
SvgAttrs
@inline
override protected def svgTag[Ref <: Element](tagName: String, void: Boolean): SvgVNode
Definition Classes
TagBuilder -> SvgTagBuilder
Inherited from:
TagBuilder
@inline
protected def svgTag[Ref <: Element](tagName: String): SvgTag[Ref]
Inherited from:
SvgTagBuilder

Deprecated and Inherited methods

@deprecated("removed to free up name for use in local variables, use idAttr instead", "scala-dom-types: 0.10.0; outwatch: 1.0.0") @inline
final def id: Attribute[String]
Deprecated
Inherited from:
SvgAttributeDeprecations
@deprecated("removed to free up name for use in local variables, use maxAttr instead", "scala-dom-types: 0.10.0; outwatch: 1.0.0") @inline
final def max: Attribute[String]
Deprecated
Inherited from:
SvgAttributeDeprecations
@deprecated("removed to free up name for use in local variables, use minAttr instead", "scala-dom-types: 0.10.0; outwatch: 1.0.0") @inline
final def min: Attribute[String]
Deprecated
Inherited from:
SvgAttributeDeprecations
@deprecated("removed to free up name for use in local variables, use offsetAttr instead", "scala-dom-types: 0.10.0; outwatch: 1.0.0") @inline
final def offset: Attribute[String]
Deprecated
Inherited from:
SvgAttributeDeprecations
@deprecated("removed to free up name for use in local variables, use resultAttr instead", "scala-dom-types: 0.10.0; outwatch: 1.0.0") @inline
final def result: Attribute[String]
Deprecated
Inherited from:
SvgAttributeDeprecations

Inherited fields

lazy val `type`: Attribute[String]
Inherited from:
SvgAttrs
lazy val a: SvgTag[A]

Represents a hyperlink, linking to another resource.

Represents a hyperlink, linking to another resource.

MDN org.scalajs.dom.svg.A

Inherited from:
SvgTags
lazy val accentHeight: Attribute[Double]

This attribute defines the distance from the origin to the top of accent characters, measured by a distance within the font coordinate system. If the attribute is not specified, the effect is as if the attribute were set to the value of the ascent attribute.

This attribute defines the distance from the origin to the top of accent characters, measured by a distance within the font coordinate system. If the attribute is not specified, the effect is as if the attribute were set to the value of the ascent attribute.

Value

MDN

Inherited from:
SvgAttrs
lazy val accumulate: Attribute[String]

This attribute controls whether or not the animation is cumulative. It is frequently useful for repeated animations to build upon the previous results, accumulating with each iteration. This attribute said to the animation if the value is added to the previous animated attribute's value on each iteration.

This attribute controls whether or not the animation is cumulative. It is frequently useful for repeated animations to build upon the previous results, accumulating with each iteration. This attribute said to the animation if the value is added to the previous animated attribute's value on each iteration.

Value none | sum

MDN

Inherited from:
SvgAttrs
lazy val additive: Attribute[String]

This attribute controls whether or not the animation is additive. It is frequently useful to define animation as an offset or delta to an attribute's value, rather than as absolute values. This attribute said to the animation if their values are added to the original animated attribute's value.

This attribute controls whether or not the animation is additive. It is frequently useful to define animation as an offset or delta to an attribute's value, rather than as absolute values. This attribute said to the animation if their values are added to the original animated attribute's value.

Value replace | sum

MDN

Inherited from:
SvgAttrs
lazy val alignmentBaseline: Attribute[String]

The alignment-baseline attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. For example, this allows alphabetic baselines in Roman text to stay aligned across font size changes. It defaults to the baseline with the same name as the computed value of the alignment-baseline property. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css alignment-baseline for further information.

The alignment-baseline attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. For example, this allows alphabetic baselines in Roman text to stay aligned across font size changes. It defaults to the baseline with the same name as the computed value of the alignment-baseline property. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css alignment-baseline for further information.

Value: auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | inherit

MDN

Inherited from:
SvgAttrs
lazy val altGlyph: SvgTag[Element]

The altGlyph element allows sophisticated selection of the glyphs used to render its child character data.

The altGlyph element allows sophisticated selection of the glyphs used to render its child character data.

MDN

Inherited from:
SvgTags
lazy val altGlyphDef: SvgTag[Element]

The altGlyphDef element defines a substitution representation for glyphs.

The altGlyphDef element defines a substitution representation for glyphs.

MDN

Inherited from:
SvgTags
lazy val altGlyphItem: SvgTag[Element]

The altGlyphItem element provides a set of candidates for glyph substitution by the altGlyph element.

The altGlyphItem element provides a set of candidates for glyph substitution by the altGlyph element.

MDN

Inherited from:
SvgTags
lazy val animate: SvgTag[Element]

The animate element is put inside a shape element and defines how an attribute of an element changes over the animation

The animate element is put inside a shape element and defines how an attribute of an element changes over the animation

MDN

Inherited from:
SvgTags
lazy val animateMotion: SvgTag[Element]

The animateMotion element causes a referenced element to move along a motion path.

The animateMotion element causes a referenced element to move along a motion path.

MDN

Inherited from:
SvgTags
lazy val animateTransform: SvgTag[Element]

The animateTransform element animates a transformation attribute on a target element, thereby allowing animations to control translation, scaling, rotation and/or skewing.

The animateTransform element animates a transformation attribute on a target element, thereby allowing animations to control translation, scaling, rotation and/or skewing.

MDN

Inherited from:
SvgTags
lazy val ascent: Attribute[Double]

This attribute defines the maximum unaccented depth of the font within the font coordinate system. If the attribute is not specified, the effect is as if the attribute were set to the vert-origin-y value for the corresponding font.

This attribute defines the maximum unaccented depth of the font within the font coordinate system. If the attribute is not specified, the effect is as if the attribute were set to the vert-origin-y value for the corresponding font.

Value

MDN

Inherited from:
SvgAttrs
lazy val attributeName: Attribute[String]

This attribute indicates the name of the attribute in the parent element that is going to be changed during an animation.

This attribute indicates the name of the attribute in the parent element that is going to be changed during an animation.

Value

MDN

Inherited from:
SvgAttrs
lazy val attributeType: Attribute[String]

This attribute specifies the namespace in which the target attribute and its associated values are defined.

This attribute specifies the namespace in which the target attribute and its associated values are defined.

Value CSS | XML | auto

MDN

Inherited from:
SvgAttrs
lazy val azimuth: Attribute[Double]

The azimuth attribute represent the direction angle for the light source on the XY plane (clockwise), in degrees from the x axis. If the attribute is not specified, then the effect is as if a value of 0 were specified.

The azimuth attribute represent the direction angle for the light source on the XY plane (clockwise), in degrees from the x axis. If the attribute is not specified, then the effect is as if a value of 0 were specified.

Value

MDN

Inherited from:
SvgAttrs
lazy val baseFrequency: Attribute[String]

The baseFrequency attribute represent The base frequencies parameter for the noise function of the primitive. If two s are provided, the first number represents a base frequency in the X direction and the second value represents a base frequency in the Y direction. If one number is provided, then that value is used for both X and Y. Negative values are forbidden. If the attribute is not specified, then the effect is as if a value of 0 were specified.

The baseFrequency attribute represent The base frequencies parameter for the noise function of the primitive. If two s are provided, the first number represents a base frequency in the X direction and the second value represents a base frequency in the Y direction. If one number is provided, then that value is used for both X and Y. Negative values are forbidden. If the attribute is not specified, then the effect is as if a value of 0 were specified.

Value

MDN

Inherited from:
SvgAttrs
lazy val baselineShift: Attribute[String]

The baseline-shift attribute allows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element. The shifted object might be a sub- or superscript. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css baseline-shift for further information.

The baseline-shift attribute allows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element. The shifted object might be a sub- or superscript. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css baseline-shift for further information.

Value auto | baseline | sup | sub | | | inherit

MDN

Inherited from:
SvgAttrs
lazy val begin: Attribute[String]

This attribute defines when an animation should begin. The attribute value is a semicolon separated list of values. The interpretation of a list of start times is detailed in the SMIL specification in "Evaluation of begin and end time lists". Each individual value can be one of the following: , , , , , or the keyword indefinite.

This attribute defines when an animation should begin. The attribute value is a semicolon separated list of values. The interpretation of a list of start times is detailed in the SMIL specification in "Evaluation of begin and end time lists". Each individual value can be one of the following: , , , , , or the keyword indefinite.

Value

MDN

Inherited from:
SvgAttrs
lazy val bias: Attribute[Double]

The bias attribute shifts the range of the filter. After applying the kernelMatrix of the element to the input image to yield a number and applied the divisor attribute, the bias attribute is added to each component. This allows representation of values that would otherwise be clamped to 0 or 1. If bias is not specified, then the effect is as if a value of 0 were specified.

The bias attribute shifts the range of the filter. After applying the kernelMatrix of the element to the input image to yield a number and applied the divisor attribute, the bias attribute is added to each component. This allows representation of values that would otherwise be clamped to 0 or 1. If bias is not specified, then the effect is as if a value of 0 were specified.

Value

MDN

Inherited from:
SvgAttrs
lazy val calcMode: Attribute[String]

This attribute specifies the interpolation mode for the animation. The default mode is linear, however if the attribute does not support linear interpolation (e.g. for strings), the calcMode attribute is ignored and discrete interpolation is used.

This attribute specifies the interpolation mode for the animation. The default mode is linear, however if the attribute does not support linear interpolation (e.g. for strings), the calcMode attribute is ignored and discrete interpolation is used.

Value discrete | linear | paced | spline

MDN

Inherited from:
SvgAttrs
lazy val circle: SvgTag[Circle]

The circle element is an SVG basic shape, used to create circles based on a center point and a radius.

The circle element is an SVG basic shape, used to create circles based on a center point and a radius.

MDN

Inherited from:
SvgTags
lazy val clip: Attribute[String]

The clip attribute has the same parameter values as defined for the css clip property. Unitless values, which indicate current user coordinates, are permitted on the coordinate values on the . The value of auto defines a clipping path along the bounds of the viewport created by the given element. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css clip for further information.

The clip attribute has the same parameter values as defined for the css clip property. Unitless values, which indicate current user coordinates, are permitted on the coordinate values on the . The value of auto defines a clipping path along the bounds of the viewport created by the given element. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css clip for further information.

Value auto | | inherit

MDN

Inherited from:
SvgAttrs
lazy val clipPathAttr: Attribute[String]

The clip-path attribute bind the element is applied to with a given element As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet

The clip-path attribute bind the element is applied to with a given element As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet

Value | none | inherit

MDN

Inherited from:
SvgAttrs
lazy val clipPathTag: SvgTag[ClipPath]

The clipping path restricts the region to which paint can be applied. Conceptually, any parts of the drawing that lie outside of the region bounded by the currently active clipping path are not drawn.

The clipping path restricts the region to which paint can be applied. Conceptually, any parts of the drawing that lie outside of the region bounded by the currently active clipping path are not drawn.

MDN

Inherited from:
SvgTags
lazy val clipPathUnits: Attribute[String]

The clipPathUnits attribute defines the coordinate system for the contents of the element. the clipPathUnits attribute is not specified, then the effect is as if a value of userSpaceOnUse were specified. Note that values defined as a percentage inside the content of the are not affected by this attribute. It means that even if you set the value of maskContentUnits to objectBoundingBox, percentage values will be calculated as if the value of the attribute were userSpaceOnUse.

The clipPathUnits attribute defines the coordinate system for the contents of the element. the clipPathUnits attribute is not specified, then the effect is as if a value of userSpaceOnUse were specified. Note that values defined as a percentage inside the content of the are not affected by this attribute. It means that even if you set the value of maskContentUnits to objectBoundingBox, percentage values will be calculated as if the value of the attribute were userSpaceOnUse.

Value userSpaceOnUse | objectBoundingBox

MDN

Inherited from:
SvgAttrs
lazy val clipRule: Attribute[String]

The clip-rule attribute only applies to graphics elements that are contained within a element. The clip-rule attribute basically works as the fill-rule attribute, except that it applies to definitions.

The clip-rule attribute only applies to graphics elements that are contained within a element. The clip-rule attribute basically works as the fill-rule attribute, except that it applies to definitions.

Value nonezero | evenodd | inherit

MDN

Inherited from:
SvgAttrs
lazy val color: Attribute[String]

The color attribute is used to provide a potential indirect value (currentColor) for the fill, stroke, stop-color, flood-color and lighting-color attributes. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color for further information.

The color attribute is used to provide a potential indirect value (currentColor) for the fill, stroke, stop-color, flood-color and lighting-color attributes. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color for further information.

Value | inherit

MDN

Inherited from:
SvgAttrs
lazy val colorInterpolation: Attribute[String]

The color-interpolation attribute specifies the color space for gradient interpolations, color animations and alpha compositing.When a child element is blended into a background, the value of the color-interpolation attribute on the child determines the type of blending, not the value of the color-interpolation on the parent. For gradients which make use of the xlink:href attribute to reference another gradient, the gradient uses the color-interpolation attribute value from the gradient element which is directly referenced by the fill or stroke attribute. When animating colors, color interpolation is performed according to the value of the color-interpolation attribute on the element being animated. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-interpolation for further information

The color-interpolation attribute specifies the color space for gradient interpolations, color animations and alpha compositing.When a child element is blended into a background, the value of the color-interpolation attribute on the child determines the type of blending, not the value of the color-interpolation on the parent. For gradients which make use of the xlink:href attribute to reference another gradient, the gradient uses the color-interpolation attribute value from the gradient element which is directly referenced by the fill or stroke attribute. When animating colors, color interpolation is performed according to the value of the color-interpolation attribute on the element being animated. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-interpolation for further information

Value auto | sRGB | linearRGB | inherit

MDN

Inherited from:
SvgAttrs
lazy val colorInterpolationFilters: Attribute[String]

The color-interpolation-filters attribute specifies the color space for imaging operations performed via filter effects. Note that color-interpolation-filters has a different initial value than color-interpolation. color-interpolation-filters has an initial value of linearRGB, whereas color-interpolation has an initial value of sRGB. Thus, in the default case, filter effects operations occur in the linearRGB color space, whereas all other color interpolations occur by default in the sRGB color space. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-interpolation-filters for further information

The color-interpolation-filters attribute specifies the color space for imaging operations performed via filter effects. Note that color-interpolation-filters has a different initial value than color-interpolation. color-interpolation-filters has an initial value of linearRGB, whereas color-interpolation has an initial value of sRGB. Thus, in the default case, filter effects operations occur in the linearRGB color space, whereas all other color interpolations occur by default in the sRGB color space. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-interpolation-filters for further information

Value auto | sRGB | linearRGB | inherit

MDN

Inherited from:
SvgAttrs
lazy val colorProfileAttr: Attribute[String]

The color-profile attribute is used to define which color profile a raster image included through the element should use. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-profile for further information.

The color-profile attribute is used to define which color profile a raster image included through the element should use. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-profile for further information.

Value auto | sRGB | | | inherit

MDN

Inherited from:
SvgAttrs
lazy val colorProfileTag: SvgTag[Element]

The element allows describing the color profile used for the image.

The element allows describing the color profile used for the image.

MDN

Inherited from:
SvgTags
lazy val colorRendering: Attribute[String]

The color-rendering attribute provides a hint to the SVG user agent about how to optimize its color interpolation and compositing operations. color-rendering takes precedence over color-interpolation-filters. For example, assume color-rendering: optimizeSpeed and color-interpolation-filters: linearRGB. In this case, the SVG user agent should perform color operations in a way that optimizes performance, which might mean sacrificing the color interpolation precision as specified by color-interpolation-filters: linearRGB. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-rendering for further information

The color-rendering attribute provides a hint to the SVG user agent about how to optimize its color interpolation and compositing operations. color-rendering takes precedence over color-interpolation-filters. For example, assume color-rendering: optimizeSpeed and color-interpolation-filters: linearRGB. In this case, the SVG user agent should perform color operations in a way that optimizes performance, which might mean sacrificing the color interpolation precision as specified by color-interpolation-filters: linearRGB. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css color-rendering for further information

Value auto | optimizeSpeed | optimizeQuality | inherit

MDN

Inherited from:
SvgAttrs
lazy val contentScriptType: Attribute[String]

The contentScriptType attribute on the element specifies the default scripting language for the given document fragment. This attribute sets the default scripting language used to process the value strings in event attributes. This language must be used for all instances of script that do not specify their own scripting language. The value content-type specifies a media type, per MIME Part Two: Media Types [RFC2046]. The default value is application/ecmascript

The contentScriptType attribute on the element specifies the default scripting language for the given document fragment. This attribute sets the default scripting language used to process the value strings in event attributes. This language must be used for all instances of script that do not specify their own scripting language. The value content-type specifies a media type, per MIME Part Two: Media Types [RFC2046]. The default value is application/ecmascript

Value

MDN

Inherited from:
SvgAttrs
lazy val contentStyleType: Attribute[String]

This attribute specifies the style sheet language for the given document fragment. The contentStyleType is specified on the element. By default, if it's not defined, the value is text/css

This attribute specifies the style sheet language for the given document fragment. The contentStyleType is specified on the element. By default, if it's not defined, the value is text/css

Value

MDN

Inherited from:
SvgAttrs
lazy val cursor: SvgTag[Element]

The cursor element can be used to define a platform-independent custom cursor. A recommended approach for defining a platform-independent custom cursor is to create a PNG image and define a cursor element that references the PNG image and identifies the exact position within the image which is the pointer position (i.e., the hot spot).

The cursor element can be used to define a platform-independent custom cursor. A recommended approach for defining a platform-independent custom cursor is to create a PNG image and define a cursor element that references the PNG image and identifies the exact position within the image which is the pointer position (i.e., the hot spot).

MDN

Inherited from:
SvgTags
lazy val cursorAttr: Attribute[String]

The cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element.This attribute behave exactly like the css cursor property except that if the browser suport the element, it should allow to use it with the notation. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css cursor for further information.

The cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element.This attribute behave exactly like the css cursor property except that if the browser suport the element, it should allow to use it with the notation. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css cursor for further information.

Value auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help | inherit

MDN

Inherited from:
SvgAttrs
lazy val cx: Attribute[String]

For the and the element, this attribute define the x-axis coordinate of the center of the element. If the attribute is not specified, the effect is as if a value of "0" were specified.For the element, this attribute define the x-axis coordinate of the largest (i.e., outermost) circle for the radial gradient. The gradient will be drawn such that the 100% gradient stop is mapped to the perimeter of this largest (i.e., outermost) circle. If the attribute is not specified, the effect is as if a value of 50% were specified

For the and the element, this attribute define the x-axis coordinate of the center of the element. If the attribute is not specified, the effect is as if a value of "0" were specified.For the element, this attribute define the x-axis coordinate of the largest (i.e., outermost) circle for the radial gradient. The gradient will be drawn such that the 100% gradient stop is mapped to the perimeter of this largest (i.e., outermost) circle. If the attribute is not specified, the effect is as if a value of 50% were specified

Value

MDN

Inherited from:
SvgAttrs
lazy val cy: Attribute[String]

For the and the element, this attribute define the y-axis coordinate of the center of the element. If the attribute is not specified, the effect is as if a value of "0" were specified.For the element, this attribute define the x-axis coordinate of the largest (i.e., outermost) circle for the radial gradient. The gradient will be drawn such that the 100% gradient stop is mapped to the perimeter of this largest (i.e., outermost) circle. If the attribute is not specified, the effect is as if a value of 50% were specified

For the and the element, this attribute define the y-axis coordinate of the center of the element. If the attribute is not specified, the effect is as if a value of "0" were specified.For the element, this attribute define the x-axis coordinate of the largest (i.e., outermost) circle for the radial gradient. The gradient will be drawn such that the 100% gradient stop is mapped to the perimeter of this largest (i.e., outermost) circle. If the attribute is not specified, the effect is as if a value of 50% were specified

Value

MDN

Inherited from:
SvgAttrs
lazy val d: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val defs: SvgTag[Defs]

SVG allows graphical objects to be defined for later reuse. It is recommended that, wherever possible, referenced elements be defined inside of a defs element. Defining these elements inside of a defs element promotes understandability of the SVG content and thus promotes accessibility. Graphical elements defined in a defs will not be directly rendered. You can use a use element to render those elements wherever you want on the viewport.

SVG allows graphical objects to be defined for later reuse. It is recommended that, wherever possible, referenced elements be defined inside of a defs element. Defining these elements inside of a defs element promotes understandability of the SVG content and thus promotes accessibility. Graphical elements defined in a defs will not be directly rendered. You can use a use element to render those elements wherever you want on the viewport.

MDN

Inherited from:
SvgTags
lazy val desc: SvgTag[Desc]

Each container element or graphics element in an SVG drawing can supply a desc description string where the description is text-only. When the current SVG document fragment is rendered as SVG on visual media, desc elements are not rendered as part of the graphics. Alternate presentations are possible, both visual and aural, which display the desc element but do not display path elements or other graphics elements. The desc element generally improve accessibility of SVG documents

Each container element or graphics element in an SVG drawing can supply a desc description string where the description is text-only. When the current SVG document fragment is rendered as SVG on visual media, desc elements are not rendered as part of the graphics. Alternate presentations are possible, both visual and aural, which display the desc element but do not display path elements or other graphics elements. The desc element generally improve accessibility of SVG documents

MDN

Inherited from:
SvgTags
lazy val diffuseConstant: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val direction: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val display: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val divisor: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val dominantBaseline: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val dur: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val dx: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val dy: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val edgeMode: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val elevation: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val ellipse: SvgTag[Ellipse]

The ellipse element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius.

The ellipse element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius.

Ellipses are unable to specify the exact orientation of the ellipse (if, for example, you wanted to draw an ellipse titled at a 45 degree angle), but can be rotated by using the transform attribute.

MDN

Inherited from:
SvgTags
lazy val end: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val externalResourcesRequired: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val feBlend: SvgTag[FEBlend]

The feBlend filter composes two objects together ruled by a certain blending mode. This is similar to what is known from image editing software when blending two layers. The mode is defined by the mode attribute.

The feBlend filter composes two objects together ruled by a certain blending mode. This is similar to what is known from image editing software when blending two layers. The mode is defined by the mode attribute.

MDN

Inherited from:
SvgTags
lazy val feColorMatrix: SvgTag[FEColorMatrix]

This filter changes colors based on a transformation matrix. Every pixel's color value (represented by an [R,G,B,A] vector) is matrix multiplied to create a new color.

This filter changes colors based on a transformation matrix. Every pixel's color value (represented by an [R,G,B,A] vector) is matrix multiplied to create a new color.

MDN

Inherited from:
SvgTags
lazy val feComponentTransfer: SvgTag[ComponentTransferFunction]

The color of each pixel is modified by changing each channel (R, G, B, and A) to the result of what the children feFuncR, feFuncB, feFuncG, and feFuncA return.

The color of each pixel is modified by changing each channel (R, G, B, and A) to the result of what the children feFuncR, feFuncB, feFuncG, and feFuncA return.

MDN

Inherited from:
SvgTags
lazy val feComposite: SvgTag[FEComposite]

This filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: over, in, atop, out, xor. Additionally, a component-wise arithmetic operation (with the result clamped between [0..1]) can be applied.

This filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: over, in, atop, out, xor. Additionally, a component-wise arithmetic operation (with the result clamped between [0..1]) can be applied.

MDN

Inherited from:
SvgTags
lazy val feConvolveMatrix: SvgTag[FEConvolveMatrix]

the feConvolveMatrix element applies a matrix convolution filter effect. A convolution combines pixels in the input image with neighboring pixels to produce a resulting image. A wide variety of imaging operations can be achieved through convolutions, including blurring, edge detection, sharpening, embossing and beveling.

the feConvolveMatrix element applies a matrix convolution filter effect. A convolution combines pixels in the input image with neighboring pixels to produce a resulting image. A wide variety of imaging operations can be achieved through convolutions, including blurring, edge detection, sharpening, embossing and beveling.

MDN

Inherited from:
SvgTags
lazy val feDiffuseLighting: SvgTag[FEDiffuseLighting]

This filter primitive lights an image using the alpha channel as a bump map. The resulting image, which is an RGBA opaque image, depends on the light color, light position and surface geometry of the input bump map.

This filter primitive lights an image using the alpha channel as a bump map. The resulting image, which is an RGBA opaque image, depends on the light color, light position and surface geometry of the input bump map.

MDN

Inherited from:
SvgTags
lazy val feDisplacementMap: SvgTag[FEDisplacementMap]

This filter primitive uses the pixels values from the image from in2 to spatially displace the image from in.

This filter primitive uses the pixels values from the image from in2 to spatially displace the image from in.

MDN

Inherited from:
SvgTags
lazy val feDistantLighting: SvgTag[FEDiffuseLighting]

This filter primitive define a distant light source that can be used within a lighting filter primitive: feDiffuseLighting or feSpecularLighting.

This filter primitive define a distant light source that can be used within a lighting filter primitive: feDiffuseLighting or feSpecularLighting.

MDN

Inherited from:
SvgTags
lazy val feFlood: SvgTag[FEFlood]

The filter fills the filter subregion with the color and opacity defined by flood-color and flood-opacity.

The filter fills the filter subregion with the color and opacity defined by flood-color and flood-opacity.

MDN

Inherited from:
SvgTags
lazy val feFuncA: SvgTag[FEFuncA]

This filter primitive defines the transfer function for the alpha component of the input graphic of its parent feComponentTransfer element.

This filter primitive defines the transfer function for the alpha component of the input graphic of its parent feComponentTransfer element.

MDN

Inherited from:
SvgTags
lazy val feFuncB: SvgTag[FEFuncB]

This filter primitive defines the transfer function for the blue component of the input graphic of its parent feComponentTransfer element.

This filter primitive defines the transfer function for the blue component of the input graphic of its parent feComponentTransfer element.

MDN

Inherited from:
SvgTags
lazy val feFuncG: SvgTag[FEFuncG]

This filter primitive defines the transfer function for the green component of the input graphic of its parent feComponentTransfer element.

This filter primitive defines the transfer function for the green component of the input graphic of its parent feComponentTransfer element.

MDN

Inherited from:
SvgTags
lazy val feFuncR: SvgTag[FEFuncR]

This filter primitive defines the transfer function for the red component of the input graphic of its parent feComponentTransfer element.

This filter primitive defines the transfer function for the red component of the input graphic of its parent feComponentTransfer element.

MDN

Inherited from:
SvgTags
lazy val feGaussianBlur: SvgTag[FEGaussianBlur]

The filter blurs the input image by the amount specified in stdDeviation, which defines the bell-curve.

The filter blurs the input image by the amount specified in stdDeviation, which defines the bell-curve.

MDN

Inherited from:
SvgTags
lazy val feImage: SvgTag[FEImage]

The feImage filter fetches image data from an external source and provides the pixel data as output (meaning, if the external source is an SVG image, it is rasterize).

The feImage filter fetches image data from an external source and provides the pixel data as output (meaning, if the external source is an SVG image, it is rasterize).

MDN

Inherited from:
SvgTags
lazy val feMerge: SvgTag[FEMerge]

The feMerge filter allows filter effects to be applied concurrently instead of sequentially. This is achieved by other filters storing their output via the result attribute and then accessing it in a feMergeNode child.

The feMerge filter allows filter effects to be applied concurrently instead of sequentially. This is achieved by other filters storing their output via the result attribute and then accessing it in a feMergeNode child.

MDN

Inherited from:
SvgTags
lazy val feMergeNode: SvgTag[FEMergeNode]

The feMergeNode takes the result of another filter to be processed by its parent feMerge.

The feMergeNode takes the result of another filter to be processed by its parent feMerge.

MDN

Inherited from:
SvgTags
lazy val feMorphology: SvgTag[FEMorphology]

This filter is used to erode or dilate the input image. It's usefulness lies especially in fattening or thinning effects.

This filter is used to erode or dilate the input image. It's usefulness lies especially in fattening or thinning effects.

MDN

Inherited from:
SvgTags
lazy val feOffset: SvgTag[FEOffset]

The input image as a whole is offset by the values specified in the dx and dy attributes. It's used in creating drop-shadows.

The input image as a whole is offset by the values specified in the dx and dy attributes. It's used in creating drop-shadows.

MDN

Inherited from:
SvgTags
lazy val fePointLight: SvgTag[FEPointLight]
Inherited from:
SvgTags
lazy val feSpecularLighting: SvgTag[FESpecularLighting]

This filter primitive lights a source graphic using the alpha channel as a bump map. The resulting image is an RGBA image based on the light color. The lighting calculation follows the standard specular component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. The result of the lighting calculation is added. The filter primitive assumes that the viewer is at infinity in the z direction.

This filter primitive lights a source graphic using the alpha channel as a bump map. The resulting image is an RGBA image based on the light color. The lighting calculation follows the standard specular component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. The result of the lighting calculation is added. The filter primitive assumes that the viewer is at infinity in the z direction.

MDN

Inherited from:
SvgTags
lazy val feSpotlight: SvgTag[FESpecularLighting]
Inherited from:
SvgTags
lazy val feTile: SvgTag[FETile]

An input image is tiled and the result used to fill a target. The effect is similar to the one of a pattern.

An input image is tiled and the result used to fill a target. The effect is similar to the one of a pattern.

MDN

Inherited from:
SvgTags
lazy val feTurbulence: SvgTag[FETurbulence]

This filter primitive creates an image using the Perlin turbulence function. It allows the synthesis of artificial textures like clouds or marble.

This filter primitive creates an image using the Perlin turbulence function. It allows the synthesis of artificial textures like clouds or marble.

MDN

Inherited from:
SvgTags
lazy val fill: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val fillOpacity: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val fillRule: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val filter: SvgTag[Filter]

The filter element serves as container for atomic filter operations. It is never rendered directly. A filter is referenced by using the filter attribute on the target SVG element.

The filter element serves as container for atomic filter operations. It is never rendered directly. A filter is referenced by using the filter attribute on the target SVG element.

MDN

Inherited from:
SvgTags
lazy val filterAttr: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val filterRes: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val filterUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val floodColor: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val floodOpacity: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val font: SvgTag[Element]

The font element defines a font to be used for text layout.

The font element defines a font to be used for text layout.

MDN

Inherited from:
SvgTags
lazy val fontFace: SvgTag[Element]

The font-face element corresponds to the CSS @font-face declaration. It defines a font's outer properties.

The font-face element corresponds to the CSS @font-face declaration. It defines a font's outer properties.

MDN

Inherited from:
SvgTags
lazy val fontFaceFormat: SvgTag[Element]

The font-face-format element describes the type of font referenced by its parent font-face-uri.

The font-face-format element describes the type of font referenced by its parent font-face-uri.

MDN

Inherited from:
SvgTags
lazy val fontFaceName: SvgTag[Element]

The font-face-name element points to a locally installed copy of this font, identified by its name.

The font-face-name element points to a locally installed copy of this font, identified by its name.

MDN

Inherited from:
SvgTags
lazy val fontFaceSrc: SvgTag[Element]

The font-face-src element corresponds to the src property in CSS @font-face descriptions. It serves as container for font-face-name, pointing to locally installed copies of this font, and font-face-uri, utilizing remotely defined fonts.

The font-face-src element corresponds to the src property in CSS @font-face descriptions. It serves as container for font-face-name, pointing to locally installed copies of this font, and font-face-uri, utilizing remotely defined fonts.

MDN

Inherited from:
SvgTags
lazy val fontFaceUri: SvgTag[Element]

The font-face-uri element points to a remote definition of the current font.

The font-face-uri element points to a remote definition of the current font.

MDN

Inherited from:
SvgTags
lazy val fontFamily: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val fontSize: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val fontSizeAdjust: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val fontStretch: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val fontVariant: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val fontWeight: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val foreignObject: SvgTag[Element]

The foreignObject element allows for inclusion of a foreign XML namespace which has its graphical content drawn by a different user agent. The included foreign graphical content is subject to SVG transformations and compositing.

The foreignObject element allows for inclusion of a foreign XML namespace which has its graphical content drawn by a different user agent. The included foreign graphical content is subject to SVG transformations and compositing.

MDN

Inherited from:
SvgTags
lazy val from: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val g: SvgTag[G]

The g element is a container used to group objects. Transformations applied to the g element are performed on all of its child elements. Attributes applied are inherited by child elements. In addition, it can be used to define complex objects that can later be referenced with the use element.

The g element is a container used to group objects. Transformations applied to the g element are performed on all of its child elements. Attributes applied are inherited by child elements. In addition, it can be used to define complex objects that can later be referenced with the use element.

MDN

Inherited from:
SvgTags
lazy val glyph: SvgTag[Element]

A glyph defines a single glyph in an SVG font.

A glyph defines a single glyph in an SVG font.

MDN

Inherited from:
SvgTags
lazy val glyphRef: SvgTag[Element]

The glyphRef element provides a single possible glyph to the referencing altGlyph substitution.

The glyphRef element provides a single possible glyph to the referencing altGlyph substitution.

MDN

Inherited from:
SvgTags
lazy val gradientTransform: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val gradientUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val height: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val hkern: SvgTag[Element]

The horizontal distance between two glyphs can be fine-tweaked with an hkern Element. This process is known as Kerning.

The horizontal distance between two glyphs can be fine-tweaked with an hkern Element. This process is known as Kerning.

MDN

Inherited from:
SvgTags
lazy val href: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val idAttr: Attribute[String]
Inherited from:
SvgAttrs
lazy val image: SvgTag[Image]

The SVG Image Element (image) allows a raster image into be included in an SVG document.

The SVG Image Element (image) allows a raster image into be included in an SVG document.

MDN

Inherited from:
SvgTags
lazy val imageRendering: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val in: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val in2: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val k1: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val k2: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val k3: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val k4: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val kernelMatrix: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val kernelUnitLength: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val kerning: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val keySplines: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val keyTimes: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val letterSpacing: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val lightingColor: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val limitingConeAngle: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val line: SvgTag[Line]

The line element is an SVG basic shape, used to create a line connecting two points.

The line element is an SVG basic shape, used to create a line connecting two points.

MDN

Inherited from:
SvgTags
lazy val linearGradient: SvgTag[LinearGradient]

linearGradient lets authors define linear gradients to fill or stroke graphical elements.

linearGradient lets authors define linear gradients to fill or stroke graphical elements.

MDN

Inherited from:
SvgTags
lazy val local: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val marker: SvgTag[Marker]

The marker element defines the graphics that is to be used for drawing arrowheads or polymarkers on a given path, line, polyline or polygon element.

The marker element defines the graphics that is to be used for drawing arrowheads or polymarkers on a given path, line, polyline or polygon element.

MDN

Inherited from:
SvgTags
lazy val markerEnd: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val markerHeight: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val markerMid: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val markerStart: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val markerUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val markerWidth: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val mask: SvgTag[Mask]

In SVG, you can specify that any other graphics object or g element can be used as an alpha mask for compositing the current object into the background. A mask is defined with the mask element. A mask is used/referenced using the mask property.

In SVG, you can specify that any other graphics object or g element can be used as an alpha mask for compositing the current object into the background. A mask is defined with the mask element. A mask is used/referenced using the mask property.

MDN

Inherited from:
SvgTags
lazy val maskAttr: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val maskContentUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val maskUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val maxAttr: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val metadata: SvgTag[Metadata]

Metadata is structured data about data. Metadata which is included with SVG content should be specified within metadata elements. The contents of the metadata should be elements from other XML namespaces such as RDF, FOAF, etc.

Metadata is structured data about data. Metadata which is included with SVG content should be specified within metadata elements. The contents of the metadata should be elements from other XML namespaces such as RDF, FOAF, etc.

MDN

Inherited from:
SvgTags
lazy val minAttr: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val missingGlyph: SvgTag[Element]

The missing-glyph's content is rendered, if for a given character the font doesn't define an appropriate glyph.

The missing-glyph's content is rendered, if for a given character the font doesn't define an appropriate glyph.

MDN

Inherited from:
SvgTags
lazy val mode: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val mpath: SvgTag[Element]

the mpath sub-element for the animateMotion element provides the ability to reference an external path element as the definition of a motion path.

the mpath sub-element for the animateMotion element provides the ability to reference an external path element as the definition of a motion path.

MDN

Inherited from:
SvgTags
lazy val numOctaves: Attribute[Int]

MDN

MDN

Inherited from:
SvgAttrs
lazy val offsetAttr: Attribute[String]
Inherited from:
SvgAttrs
lazy val opacity: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val operator: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val order: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val orient: Attribute[String]

This attribute defines the orientation of the marker relative to the shape it is attached to.

This attribute defines the orientation of the marker relative to the shape it is attached to.

Value type: auto|auto-start-reverse| ; Default value: 0; Animatable: yes

MDN

Inherited from:
SvgAttrs
lazy val overflow: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val paintOrder: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val path: SvgTag[Path]

The path element is the generic element to define a shape. All the basic shapes can be created with a path element.

The path element is the generic element to define a shape. All the basic shapes can be created with a path element.

Inherited from:
SvgTags
lazy val pathLength: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val pattern: SvgTag[Pattern]

A pattern is used to fill or stroke an object using a pre-defined graphic object which can be replicated ("tiled") at fixed intervals in x and y to cover the areas to be painted. Patterns are defined using the pattern element and then referenced by properties fill and stroke on a given graphics element to indicate that the given element shall be filled or stroked with the referenced pattern.

A pattern is used to fill or stroke an object using a pre-defined graphic object which can be replicated ("tiled") at fixed intervals in x and y to cover the areas to be painted. Patterns are defined using the pattern element and then referenced by properties fill and stroke on a given graphics element to indicate that the given element shall be filled or stroked with the referenced pattern.

MDN

Inherited from:
SvgTags
lazy val patternContentUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val patternTransform: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val patternUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val pointerEvents: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val points: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val pointsAtX: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val pointsAtY: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val pointsAtZ: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val polygon: SvgTag[Polygon]

The polygon element defines a closed shape consisting of a set of connected straight line segments.

The polygon element defines a closed shape consisting of a set of connected straight line segments.

MDN

Inherited from:
SvgTags
lazy val polyline: SvgTag[Polyline]

The polyline element is an SVG basic shape, used to create a series of straight lines connecting several points. Typically a polyline is used to create open shapes

The polyline element is an SVG basic shape, used to create a series of straight lines connecting several points. Typically a polyline is used to create open shapes

MDN

Inherited from:
SvgTags
lazy val preserveAlpha: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val preserveAspectRatio: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val primitiveUnits: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val r: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val radialGradient: SvgTag[RadialGradient]

radialGradient lets authors define radial gradients to fill or stroke graphical elements.

radialGradient lets authors define radial gradients to fill or stroke graphical elements.

MDN

Inherited from:
SvgTags
lazy val radius: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val rect: SvgTag[RectElement]

The rect element is an SVG basic shape, used to create rectangles based on the position of a corner and their width and height. It may also be used to create rectangles with rounded corners.

The rect element is an SVG basic shape, used to create rectangles based on the position of a corner and their width and height. It may also be used to create rectangles with rounded corners.

MDN

Inherited from:
SvgTags
lazy val refX: Attribute[String]

The refX attribute is used alongside the refY attribute to provide coordinates for the location on the marker where it will be joined to its markable element. Coordinates are relative to the marker's coordinate system (after application of the ‘viewBox’ and ‘preserveAspectRatio’ attributes), and not the markable element it is placed on.

The refX attribute is used alongside the refY attribute to provide coordinates for the location on the marker where it will be joined to its markable element. Coordinates are relative to the marker's coordinate system (after application of the ‘viewBox’ and ‘preserveAspectRatio’ attributes), and not the markable element it is placed on.

MDN

Inherited from:
SvgAttrs
lazy val refY: Attribute[String]

The refY attribute is used alongside the refY attribute to provide coordinates for the location on the marker where it will be joined to its markable element. Coordinates are relative to the marker's coordinate system (after application of the ‘viewBox’ and ‘preserveAspectRatio’ attributes), and not the markable element it is placed on.

The refY attribute is used alongside the refY attribute to provide coordinates for the location on the marker where it will be joined to its markable element. Coordinates are relative to the marker's coordinate system (after application of the ‘viewBox’ and ‘preserveAspectRatio’ attributes), and not the markable element it is placed on.

MDN

Inherited from:
SvgAttrs
lazy val repeatCount: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val repeatDur: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val requiredFeatures: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val restart: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val resultAttr: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val rx: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val ry: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val scale: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val seed: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val set: SvgTag[Element]

The set element provides a simple means of just setting the value of an attribute for a specified duration. It supports all attribute types, including those that cannot reasonably be interpolated, such as string and boolean values. The set element is non-additive. The additive and accumulate attributes are not allowed, and will be ignored if specified.

The set element provides a simple means of just setting the value of an attribute for a specified duration. It supports all attribute types, including those that cannot reasonably be interpolated, such as string and boolean values. The set element is non-additive. The additive and accumulate attributes are not allowed, and will be ignored if specified.

MDN

Inherited from:
SvgTags
lazy val shapeRendering: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val specularConstant: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val specularExponent: Attribute[Double]

MDN

MDN

Inherited from:
SvgAttrs
lazy val spreadMethod: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val stdDeviation: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val stitchTiles: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val stop: SvgTag[Stop]

The ramp of colors to use on a gradient is defined by the stop elements that are child elements to either the lineargradient element or the radialGradient element.

The ramp of colors to use on a gradient is defined by the stop elements that are child elements to either the lineargradient element or the radialGradient element.

MDN

Inherited from:
SvgTags
lazy val stopColor: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val stopOpacity: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val stroke: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val strokeDashArray: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val strokeDashOffset: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val strokeLineCap: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val strokeLineJoin: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val strokeMiterLimit: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val strokeOpacity: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val strokeWidth: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val style: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val surfaceScale: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val svg: SvgTag[SVG]

When it is not the root element, the svg element can be used to nest a standalone SVG fragment inside the current document (which can be an HTML document). This standalone fragment has its own viewPort and its own coordinate system.

When it is not the root element, the svg element can be used to nest a standalone SVG fragment inside the current document (which can be an HTML document). This standalone fragment has its own viewPort and its own coordinate system.

MDN

Inherited from:
SvgTags
lazy val switch: SvgTag[Switch]

The switch element evaluates the requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then processes and renders the first child for which these attributes evaluate to true. All others will be bypassed and therefore not rendered. If the child element is a container element such as a g, then the entire subtree is either processed/rendered or bypassed/not rendered.

The switch element evaluates the requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then processes and renders the first child for which these attributes evaluate to true. All others will be bypassed and therefore not rendered. If the child element is a container element such as a g, then the entire subtree is either processed/rendered or bypassed/not rendered.

MDN

Inherited from:
SvgTags
lazy val symbol: SvgTag[Symbol]

The symbol element is used to define graphical template objects which can be instantiated by a use element. The use of symbol elements for graphics that are used multiple times in the same document adds structure and semantics. Documents that are rich in structure may be rendered graphically, as speech, or as braille, and thus promote accessibility. note that a symbol element itself is not rendered. Only instances of a symbol element (i.e., a reference to a symbol by a use element) are rendered.

The symbol element is used to define graphical template objects which can be instantiated by a use element. The use of symbol elements for graphics that are used multiple times in the same document adds structure and semantics. Documents that are rich in structure may be rendered graphically, as speech, or as braille, and thus promote accessibility. note that a symbol element itself is not rendered. Only instances of a symbol element (i.e., a reference to a symbol by a use element) are rendered.

MDN

Inherited from:
SvgTags
lazy val target: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val targetX: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val targetY: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val text: SvgTag[Text]

The text element defines a graphics element consisting of text. Note that it is possible to apply a gradient, pattern, clipping path, mask or filter to text.

The text element defines a graphics element consisting of text. Note that it is possible to apply a gradient, pattern, clipping path, mask or filter to text.

MDN

Inherited from:
SvgTags
lazy val textAnchor: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val textDecoration: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val textPath: SvgTag[TextPath]

In addition to text drawn in a straight line, SVG also includes the ability to place text along the shape of a path element. To specify that a block of text is to be rendered along the shape of a path, include the given text within a textPath element which includes an xlink:href attribute with a reference to a path element.

In addition to text drawn in a straight line, SVG also includes the ability to place text along the shape of a path element. To specify that a block of text is to be rendered along the shape of a path, include the given text within a textPath element which includes an xlink:href attribute with a reference to a path element.

MDN

Inherited from:
SvgTags
lazy val textRendering: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val to: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val tpe: Attribute[String]
Inherited from:
SvgAttrs
lazy val transform: Attribute[String]
Inherited from:
SvgAttrs
lazy val tref: SvgTag[Element]

The textual content for a text can be either character data directly embedded within the text element or the character data content of a referenced element, where the referencing is specified with a tref element.

The textual content for a text can be either character data directly embedded within the text element or the character data content of a referenced element, where the referencing is specified with a tref element.

MDN

Inherited from:
SvgTags
lazy val tspan: SvgTag[TSpan]

Within a text element, text and font properties and the current text position can be adjusted with absolute or relative coordinate values by including a tspan element.

Within a text element, text and font properties and the current text position can be adjusted with absolute or relative coordinate values by including a tspan element.

MDN

Inherited from:
SvgTags
lazy val typ: Attribute[String]
Inherited from:
SvgAttrs
lazy val use: SvgTag[Use]

The use element takes nodes from within the SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, and then pasted where the use element is, much like anonymous content and XBL. Since the cloned nodes are not exposed, care must be taken when using CSS to style a use element and its hidden descendants. CSS attributes are not guaranteed to be inherited by the hidden, cloned DOM unless you explicitly request it using CSS inheritance.

The use element takes nodes from within the SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, and then pasted where the use element is, much like anonymous content and XBL. Since the cloned nodes are not exposed, care must be taken when using CSS to style a use element and its hidden descendants. CSS attributes are not guaranteed to be inherited by the hidden, cloned DOM unless you explicitly request it using CSS inheritance.

MDN

Inherited from:
SvgTags
lazy val values: Attribute[String]
Inherited from:
SvgAttrs
lazy val view: SvgTag[View]

A view is a defined way to view the image, like a zoom level or a detail view.

A view is a defined way to view the image, like a zoom level or a detail view.

MDN

Inherited from:
SvgTags
lazy val viewBox: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val visibility: Attribute[String]
Inherited from:
SvgAttrs
lazy val vkern: SvgTag[Element]

The vertical distance between two glyphs in top-to-bottom fonts can be fine-tweaked with an vkern Element. This process is known as Kerning.

The vertical distance between two glyphs in top-to-bottom fonts can be fine-tweaked with an vkern Element. This process is known as Kerning.

MDN

Inherited from:
SvgTags
lazy val width: Attribute[String]
Inherited from:
SvgAttrs
lazy val wordSpacing: Attribute[String]
Inherited from:
SvgAttrs
lazy val writingMode: Attribute[String]
Inherited from:
SvgAttrs
lazy val x: Attribute[String]
Inherited from:
SvgAttrs
lazy val x1: Attribute[String]
Inherited from:
SvgAttrs
lazy val x2: Attribute[String]
Inherited from:
SvgAttrs
lazy val xChannelSelector: Attribute[String]
Inherited from:
SvgAttrs
lazy val xlinkHref: Attribute[String]
Inherited from:
SvgAttrs
lazy val xlinkRole: Attribute[String]
Inherited from:
SvgAttrs
lazy val xlinkTitle: Attribute[String]
Inherited from:
SvgAttrs
lazy val xmlSpace: Attribute[String]
Inherited from:
SvgAttrs
lazy val xmlns: Attribute[String]

MDN

MDN

Inherited from:
SvgAttrs
lazy val y: Attribute[String]
Inherited from:
SvgAttrs
lazy val y1: Attribute[String]
Inherited from:
SvgAttrs
lazy val y2: Attribute[String]
Inherited from:
SvgAttrs
lazy val yChannelSelector: Attribute[String]
Inherited from:
SvgAttrs
lazy val z: Attribute[String]
Inherited from:
SvgAttrs