# Interface: AnchorExtension (/jsdoc/pixi-vn/index/interfaces/AnchorExtension)



Defined in: [src/canvas/components/AnchorExtension.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/canvas/components/AnchorExtension.ts#L7)

Properties [#properties]

anchor [#anchor]

\> **anchor**: `PointData`

Defined in: [src/canvas/components/AnchorExtension.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/canvas/components/AnchorExtension.ts#L25)

The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/jsdoc/pixi-vn/index/variables/Texture)
and passed to the constructor.

The default is `(0,0)`, this means the imageContainer's origin is the top left.

Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered.

Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner.

If you pass only single parameter, it will set both x and y to the same value as shown in the example below.

Example [#example]

```ts
import { ImageContainer } from '@drincs/pixi-vn';

const imageContainer = new ImageContainer();
imageContainer.anchor = 0.5;
```
