Commit Graph
6 Commits
Author SHA1 Message Date
dotCooCoo b0f74500ee Scripts: a native file with a tag id that is not a whole number opens
A tag id in a native file that is negative, a fraction or text read as
an error, so the whole file failed to open. It now reads as 0, and
opening gives the tag a new id as it does for a missing or repeated id,
with its name and value kept.

The Scripts line in docs/target-app-parity.md now describes
PageItem.tags and Document.tags separately: Document.tags reads, renames
and deletes tags but its add throws.
2026-11-25 05:07:46 -08:00
dotCooCoo bb1da3771d Scripts: tags on page items and documents
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).
2026-11-21 12:59:03 -08:00
vangel76andClaude Sonnet 5.5 42dd57d439 Merge upstream/main into fix/2414-svg-classes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 21:12:34 +01:00
vangel76andClaude Sonnet 5.5 bc19e29c61 Merge upstream/main into fix/2414-svg-classes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 20:26:05 +01:00
Dylan M. Taylor 010979864a refactor(doc): make live shape imports explicit 2026-10-27 17:47:12 +00:00
aiongg 5b70501e22 refactor(doc): move node.rs items to node/{attributes,clip,extras,ids,kind,live_shape,opacity,ops,wire}.rs 2026-10-26 21:17:08 +00:00