---
title: "Interface: IRulersConfig | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/ConfigurationInterfaces.IRulersConfig/"
---

# Interface: IRulersConfig

> A structure containing the configuration of rulers.

## Remarks

For details, see the [Rulers https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/rulers-grids-snaplines.html\|Rulers](https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/rulers-grids-snaplines.html) topic.

## Example

``` js
configuration = {
   canvas: {
       rulers: {
           origin: { X: -1.15, Y: -1.67 }
       },
       shadowEnabled: false
   }
};
```

## Properties

### enabled?

> `optional` **enabled?**: `boolean`

Displays rulers. The default value is `true`.

***

### unit?

> `optional` **unit?**: `RulersConfigUnit`

Rulers measurement unit.

***

### customUnitScale?

> `optional` **customUnitScale?**: `number`

The ratio of the custom unit to points; this parameter is applied only if the unit parameter described above is set to `"custom"`.

***

### origin?

> `optional` **origin?**: `object`

The point of origin relatively to the upper-left corner of the design; the coordinates are measured in the units specified by the [IRulersConfig.unit](#unit) parameter.

#### X

> **X**: `number`

#### Y

> **Y**: `number`
