CuttleContext

The Cuttle context can be accessed in expressions via the cuttle global. It holds information about Cuttle and the current project.

Properties

The current project.

Methods

.getQRCodeFromText(text,errorCorrectionLevel)(QRCode | undefined)

Returns a QR Code encoded from the given text, or undefined while the QR code library is loading. Example rendering:

return cuttle.getQRCodeFromText("https://cuttle.xyz", "low")?.toCompoundPath();

QR Code is registered trademark of DENSO WAVE INCORPORATED.

text
string
errorCorrectionLevel
("low" | "medium" | "high")
optional