mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
PageItem.tags and Document.tags give scripts the Tags and Tag objects the scripting reference describes: name and value pairs on a page item, read, added, renamed and deleted through the new object.tags, object.tag.add, object.tag.set, object.tag.remove and object.tag.removeAll commands, each one undo step. The native file keeps the tags and their ids. On opening, each object keeps its first 64 tags whose name and value are at most 65,536 bytes, and a tag whose id is missing, out of range or repeated gets a new one. A deleted tag's id is not given out again, so a script's Tag for it throws "Stale tag". The undo history's memory estimate now counts the text an object's attributes hold (note, URL, data, events, classes, foreign attributes and tags).