Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. SVGTextPathElement

SVGTextPathElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

TheSVGTextPathElement interface corresponds to the<textPath> element.

EventTarget Node Element SVGElement SVGGraphicsElement SVGTextContentElement SVGTextPathElement

Instance properties

This interface also inherits properties from its parent interface,SVGTextContentElement.

SVGTextPathElement.hrefRead only

AnSVGAnimatedString corresponding to thehref orxlink:href attribute of the given element.

SVGTextPathElement.startOffsetRead only

AnSVGAnimatedLength corresponding to the X component of thestartOffset attribute of the given element.

SVGTextPathElement.methodRead only

AnSVGAnimatedEnumeration corresponding to themethod attribute of the given element. It takes one of theTEXTPATH_METHODTYPE_* constants defined on this interface.

SVGTextPathElement.spacingRead only

AnSVGAnimatedEnumeration corresponding to thespacing attribute of the given element. It takes one of theTEXTPATH_SPACINGTYPE_* constants defined on this interface.

Instance methods

This interface does not provide any specific methods, but implements those of its parent,SVGTextContentElement.

Static properties

TEXTPATH_METHODTYPE_UNKNOWN (0)

The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.

TEXTPATH_METHODTYPE_ALIGN (1)

Corresponds to the valuealign.

TEXTPATH_METHODTYPE_STRETCH (2)

Corresponds to the valuestretch.

TEXTPATH_SPACINGTYPE_UNKNOWN (0)

The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.

TEXTPATH_SPACINGTYPE_AUTO (1)

Corresponds to the valueauto.

TEXTPATH_SPACINGTYPE_EXACT (2)

Corresponds to the valueexact.

Specifications

Specification
Scalable Vector Graphics (SVG) 2
# InterfaceSVGTextPathElement

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp