Polotno Docs
Features

Canvas Rulers

Show and toggle rulers to improve alignment and precision

Rulers in Polotno SDK's canvas editor ensure consistent alignment and precision, enhancing design cohesion. By defining guidelines and constraints, they streamline the design process, enabling users to create polished compositions efficiently.

How to enable rulers?

To control rulers from code, use the Store API.

// hide/show rulers
store.toggleRulers();

// check if rulers are currently visible
console.log(store.rulersVisible);

Live demo