Canvas Rules

Rules 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 rules?

To control rules from the code, you can use Store API.

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

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

News, updates and promos – be the first to get 'em

News, updates and promos – be the first to get 'em