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

# Type Alias VariableOffset

type VariableOffset \= {  
    [anchor](#anchor): [TextAnchor](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TextAnchor/);  
    [height](#height): number;  
    [prevAnchor](#prevanchor)?: [TextAnchor](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TextAnchor/);  
    [textBoxScale](#textboxscale): number;  
    [textOffset](#textoffset): \[number, number\];  
    [width](#width): number;  
}

##### Index

### Properties[](#properties)

[anchor](#anchor) [height](#height) [prevAnchor?](#prevanchor) [textBoxScale](#textboxscale) [textOffset](#textoffset) [width](#width)

## Properties[](#properties-1)

### anchor[](#anchor)

anchor: [TextAnchor](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TextAnchor/)

### height[](#height)

height: number

### `Optional`prevAnchor[](#prevanchor)

prevAnchor?: [TextAnchor](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TextAnchor/)

### textBoxScale[](#textboxscale)

textBoxScale: number

### textOffset[](#textoffset)

textOffset: \[number, number\]

### width[](#width)

width: number
