mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 13:22:18 +00:00
Transparency: opacity mask commands reject a param of the wrong type
transparency.makeOpacityMask read `clip` and `invert` with bool_or, transparency.setOpacityMask read `clip`, `invert`, `disabled` and `linked` with as_bool, and the New Opacity Masks and page toggles read `value` with bool_or, so a value of the wrong type was dropped: "clip": "false" made a clipping mask, "invert": "yes" next to another flag was ignored, and "value": "on" toggled the page knockout group. They are now read with switch_or, and such a value is an error that names the param, before anything changes. Omitting a param or giving null keeps its default.
This commit is contained in:
@@ -1608,6 +1608,12 @@ the editing layer. With gradient mesh points picked, `opacity` goes to those poi
|
||||
{"name":"run_command","arguments":{"command":"transparency.info","params":{"ids":[12,20]}}}
|
||||
```
|
||||
|
||||
`transparency.makeOpacityMask` rejects a `clip` or `invert` value that is not a boolean, such as `"clip": "false"`,
|
||||
and `transparency.setOpacityMask` does the same for `clip`, `invert`, `disabled` and `linked`. The toggles
|
||||
`transparency.toggleNewMasksClipping`, `transparency.toggleNewMasksInverted`, `transparency.togglePageKnockoutGroup`
|
||||
and `transparency.togglePageIsolatedBlending` reject a `value` that is not a boolean. A rejected call changes nothing.
|
||||
Omitting a param or giving null keeps its default.
|
||||
|
||||
Knockout Group has three states: `transparency.set {knockout: "on"|"off"|"neutral"}` (`true` = on, `false` =
|
||||
neutral, the default). In a knockout group each child hides what it covers of the children below it; neutral groups
|
||||
pass the enclosing group's setting to their children, off groups never knock out. `knockoutShape: true` makes the
|
||||
|
||||
Reference in New Issue
Block a user