mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 07:10:13 +00:00
Load Variable Library defines each variable with the kind of its trait (textcontent, visibility, fileref, graphdata; any other or none is the unknown kind) and reads visibility values from true or false, image values from a file's absolute path or file: URL, and graph values from a data element of series names and rows. A document variable declared with the same name and kind keeps its bindings. Save Variable Library writes every kind in the same forms and is enabled with any variable. Image values that aren't absolute paths and graph data past what a graph holds are refused, so every saved file loads back.