---
title: "TextAnchorOffsetStruct | 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.

# Class TextAnchorOffsetStruct

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.TextAnchorOffsetStruct))

-   [Struct](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.Struct/)
    -   TextAnchorOffsetStruct

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[size](#size)

### Accessors[](#accessors)

[textAnchor](#textanchor) [textOffset0](#textoffset0) [textOffset1](#textoffset1)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new TextAnchorOffsetStruct(  
        structArray: [StructArray](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.StructArray/),  
        index: number,  
    ): TextAnchorOffsetStruct[](#constructortextanchoroffsetstruct)
    
    #### Parameters
    
    -   structArray: [StructArray](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.StructArray/)
        
        The StructArray the struct is stored in
        
    -   index: number
        
        The index of the struct in the StructArray.
        
    
    #### Returns TextAnchorOffsetStruct
    
    Inherited from [Struct](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.Struct/).[constructor](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.Struct/#constructor)
    

## Properties[](#properties-1)

### size[](#size)

size: number

Inherited from [Struct](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.Struct/).[size](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.Struct/#size)

## Accessors[](#accessors-1)

### textAnchor[](#textanchor)

-   get textAnchor(): number
    
    #### Returns number
    

### textOffset0[](#textoffset0)

-   get textOffset0(): number
    
    #### Returns number
    

### textOffset1[](#textoffset1)

-   get textOffset1(): number
    
    #### Returns number
