Overview of Canvas Editor Macros
Macros are used to record and replay a set of command calls. There are two types of macros:
- Recorded Macros (
RECORDED): Created usingstartRecordingandstopRecording. They capture everyexecute*command and can be serialized to JSON for persistence. - Script Macros (
SCRIPT): Registered viaregisteras JavaScript functions. They support arbitrary logic, including conditions, loops, asynchronous calls, and data retrieval.