Affinity SDK
This is the documentation for the Affinity SDK, which lets you script and extend Affinity from JavaScript.
Note: the scripting feature is currently in beta, and this documentation may contain errors and omissions.
Documentation and downloads
-
Affinity JavaScript SDK documentation »
The full API reference for the JavaScript bindings in theaffinitymodules. -
TypeScript declarations — download affinity.d.ts »
Type declarations for theaffinitymodules, for code completion and type checking in editors such as VS Code. Put the file alongside your scripts, or list it in ajsconfig.json. -
JSLib — download ZIP »
A convenience library that wraps the JavaScript SDK with a friendlier API. It is included in Affinity, but made available here for reference.