mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 13:02:50 -05:00
`app.preferences` reads, stores and removes values by key with the type they were set as. Keys that are not VectorCraft preferences are kept with the preferences under `scriptPreferences`, so they last across runs and restarts, and a failed or stopped run puts them back. Keys, values and the store have size limits, a setter refuses a value of the wrong type, and two windows that set different keys keep both when the preferences file is saved. - `ShowExternalJSXWarning` is the warning before a picked script runs. Setting it to true, or removing it, turns the warning on. Setting it to false opens a confirm with No as its default and turns the warning off only after Yes; a run that cannot show a dialog throws and changes nothing. This confirm is VectorCraft's own rule. - `app.getIdentityMatrix`, the `get…Matrix` and `concatenate…Matrix` functions, `invertMatrix`, `isEqualMatrix` and `isSingularMatrix` work on plain `Matrix` records and never change the records passed in. - `app.copy`, `app.cut` and `app.paste` run `edit.copy`, `edit.cut` and `edit.paste` on the active document inside the run's transaction. Docs: docs/mcp.md, docs/target-app-parity.md.