The SVGTextPositioningElement
interface is implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement
, SVGTSpanElement
, SVGTRefElement
and SVGAltGlyphElement
.
SVGTextPositioningElement
Properties
This interface also inherits properties from its parent, SVGTextContentElement
.
-
SVGTextPositioningElement.x
Read only -
Returns an
SVGAnimatedLengthList
reflecting thex
attribute of the given element. -
SVGTextPositioningElement.y
Read only -
Returns an
SVGAnimatedLengthList
reflecting they
attribute of the given element. -
SVGTextPositioningElement.dx
Read only -
Returns an
SVGAnimatedLengthList
reflecting thedx
attribute of the given element. -
SVGTextPositioningElement.dy
Read only -
Returns an
SVGAnimatedLengthList
reflecting thedy
attribute of the given element. -
SVGTextPositioningElement.rotate
Read only -
Returns an
SVGAnimatedNumberList
reflecting therotate
attribute of the given element.
Methods
This interface doesn't provide any specific methods, but inherits methods from its parent, SVGTextContentElement
.
Specifications
Specification |
---|
Scalable Vector Graphics (SVG) 1.1 (Second Edition) # InterfaceSVGTextPositioningElement |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
SVGTextPositioningElement |
1
|
12
|
1.5
|
9
|
≤12.1
|
3
|
3
|
18
|
4
|
≤12.1
|
1
|
1.0
|
dx |
1
|
12
|
1.5
|
9
|
≤12.1
|
3
|
3
|
18
|
4
|
≤12.1
|
1
|
1.0
|
dy |
1
|
12
|
1.5
|
9
|
≤12.1
|
3
|
3
|
18
|
4
|
≤12.1
|
1
|
1.0
|
rotate |
1
|
12
|
1.5
|
9
|
≤12.1
|
3
|
3
|
18
|
4
|
≤12.1
|
1
|
1.0
|
x |
1
|
12
|
1.5
|
9
|
≤12.1
|
3
|
3
|
18
|
4
|
≤12.1
|
1
|
1.0
|
y |
1
|
12
|
1.5
|
9
|
≤12.1
|
3
|
3
|
18
|
4
|
≤12.1
|
1
|
1.0
|
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement