Modify svgReplaces Syntax #719

Open
opened 2026-02-20 10:19:59 -05:00 by deekerman · 0 comments
Owner

Originally created by @96LawDawg on GitHub (Sep 22, 2023).

A suggestion from @mousewax:

Can we change how SVG replaces are done?
"svgReplaces": { "currentColor": "color1" }

should really be
"svgReplaces": { "currentColor": "${PROPERTY color1}" }

And should also support
"svgReplaces": { "currentColor": "${PROPERTY color1 OF anotherWidget}" }

This way, we can put whatever we want in the svgReplaces without having to make a property for it. Also, this would be consistent with other property references in VTT.

Originally created by @96LawDawg on GitHub (Sep 22, 2023). A suggestion from @mousewax: Can we change how SVG replaces are done? `"svgReplaces": { "currentColor": "color1" }` should really be `"svgReplaces": { "currentColor": "${PROPERTY color1}" }` And should also support `"svgReplaces": { "currentColor": "${PROPERTY color1 OF anotherWidget}" }` This way, we can put whatever we want in the `svgReplaces` without having to make a property for it. Also, this would be consistent with other property references in VTT.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/virtualtabletop#719
No description provided.