---
title: "SVGTextPathElement | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable SVGTextPathElement

SVGTextPathElement: {  
    prototype: [SVGTextPathElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGTextPathElement/);  
    TEXTPATH\_METHODTYPE\_ALIGN: 1;  
    TEXTPATH\_METHODTYPE\_STRETCH: 2;  
    TEXTPATH\_METHODTYPE\_UNKNOWN: 0;  
    TEXTPATH\_SPACINGTYPE\_AUTO: 1;  
    TEXTPATH\_SPACINGTYPE\_EXACT: 2;  
    TEXTPATH\_SPACINGTYPE\_UNKNOWN: 0;  
    new (): [SVGTextPathElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGTextPathElement/);  
}

#### Type Declaration

-   -   new (): [SVGTextPathElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGTextPathElement/)
    -   #### Returns [SVGTextPathElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGTextPathElement/)
        
-   ##### prototype: [SVGTextPathElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGTextPathElement/)
    
-   ##### `Readonly`TEXTPATH\_METHODTYPE\_ALIGN: 1
    
-   ##### `Readonly`TEXTPATH\_METHODTYPE\_STRETCH: 2
    
-   ##### `Readonly`TEXTPATH\_METHODTYPE\_UNKNOWN: 0
    
-   ##### `Readonly`TEXTPATH\_SPACINGTYPE\_AUTO: 1
    
-   ##### `Readonly`TEXTPATH\_SPACINGTYPE\_EXACT: 2
    
-   ##### `Readonly`TEXTPATH\_SPACINGTYPE\_UNKNOWN: 0
