mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Symbols: Window › Symbol Libraries opens symbol libraries whose symbols click into the document's Symbols
Window › Symbol Libraries and the Symbols panel's Symbol Libraries Menu open each symbol library in a library panel of its own, on the shared library panel code the swatch and graphic style libraries use (https://helpx.adobe.com/illustrator/desktop/manage-objects/traces-mockups-symbols/create-or-import-symbol-libraries.html, .../symbols-panel-options.html, .../create-and-place-symbols.html). - Basic Shapes: one original library generated in code (circle, squares, triangle, diamond, hexagon, star, burst, arrow); no other app's libraries. - A click adds a library symbol to the document's Symbols as one undo step, with its Symbol Options and the resources it uses (nested symbols, patterns, swatches, brushes, graphic styles, images), and makes it the current symbol; one already there isn't added again, a clash of names numbers the library's. Shift/Cmd-clicks select for Add to Symbols. Dragging a library symbol onto the canvas adds it and places an instance there, in the same step. - Save Symbols… (library menu, Window menu) and Save Symbol Library… (Symbols panel menu) write the document's symbols as a .vectorcraft document holding only them, into the user library folder (User Defined, window.userSymbolLibrary1-10) or a file; Other Library… reads the symbols of any document VectorCraft opens, and a file it can't read is an error. Commands: symbol.libraries, symbol.library, symbol.addFromLibrary (place, x, y), symbol.saveLibrary, symbol.loadLibrary; UI: window.symbolLibrary (.other), ui.saveSymbolLibrary (dialog saveSymbolLibrary). i18n rows in every complete catalog; docs updated.
This commit is contained in:
committed by
bflatastic
parent
f247772042
commit
7da5e3062d
@@ -1,6 +1,6 @@
|
||||
# Control protocol
|
||||
|
||||
> **Last updated:** 2026-10-13 · **Change:** synthetic input budgets (#1709); bounded transport waits (#1726).
|
||||
> **Last updated:** 2026-10-23 · **Change:** symbol library panels (`window.symbolLibrary`, `window.symbolLibrary.other`, `ui.saveSymbolLibrary`); previously: synthetic input budgets (#1709); bounded transport waits (#1726).
|
||||
|
||||
`vectorcraft --control <port>` listens on `127.0.0.1:<port>` (loopback only). The port must be a number
|
||||
from 1 to 65535 (`--control=<port>` works too), given once; otherwise the app prints an error and exits
|
||||
@@ -274,6 +274,16 @@ Defined libraries are `window.userGraphicStyleLibrary1`…`10` in Window → Gra
|
||||
user library folder, `selectedOnly` with `names`); `ui.dialog.confirm` runs `graphicStyle.saveLibrary` (to a file it
|
||||
asks for a path and suggests `name` with `.vcstyles` as the file name; the web downloads the file under that name).
|
||||
|
||||
Symbol libraries open in the same panels: `window.symbolLibrary {library}` (`library_panels` kind `symbols`; `library:
|
||||
null` closes them). Clicking a symbol there runs `symbol.addFromLibrary {library, name}`, adding it to the document's
|
||||
Symbols in one undo step; Shift/Cmd-clicks select symbols for Add to Symbols, and a symbol dragged onto the canvas runs
|
||||
it with `place: true` and the drop point as `x`, `y`. `window.symbolLibrary.other {path?}` loads the symbols of any
|
||||
document VectorCraft opens (a saved symbol library is a `.vectorcraft` document) and opens them there. The User
|
||||
Defined libraries are `window.userSymbolLibrary1`…`10` in Window → Symbol Libraries. `ui.saveSymbolLibrary {names?}`
|
||||
(Save Symbols…, the Symbols panel's Save Symbol Library…) opens the `saveSymbolLibrary` dialog (fields `name`, `user`:
|
||||
save to the user library folder, `selectedOnly` with `names`); `ui.dialog.confirm` runs `symbol.saveLibrary` (to a
|
||||
file it asks for a path and suggests `name` with `.vectorcraft`).
|
||||
|
||||
Tile Edge Color: Object → Pattern → Tile Edge Color… (`ui.tileEdgeColor`) opens the `tileEdgeColor` dialog (field
|
||||
`color`: `#rrggbb` or a preset name such as "Light Blue"); `ui.dialog.confirm` sets the preference
|
||||
`patternTileEdgeColor` (`prefs.set`), the colour pattern editing mode draws the tile edge and the swatch bounds in.
|
||||
@@ -915,6 +925,7 @@ hidden tab (whose frames the browser pauses) answers when it is shown again.
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-23 | minor | Documented the symbol library panel commands (`window.symbolLibrary`, `.other`, `ui.saveSymbolLibrary`, `window.userSymbolLibrary1`…`10`). |
|
||||
| 2026-10-13 | minor | Documented count, pending-event and per-frame request budgets (#1709). |
|
||||
| 2026-10-13 | minor | Documented transport deadlines and connection-slot recovery (#1726). |
|
||||
| 2026-10-18 | minor | Documented `window.vectorcraft`, the web build's control channel. |
|
||||
|
||||
Reference in New Issue
Block a user