mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
The params text of ui.simplifyAuto and ui.smoothAuto and docs/mcp.md say
Object > Path > Simplify and Smooth open the dialogs simplifySlider and
smoothSlider with field `level`, kept by ui.dialog.confirm. The sliders
are a strip over the canvas, not hosted dialogs, so ui.inspect listed no
dialog while one was open and ui.dialog.set and ui.dialog.confirm had
nothing to answer.
- ui.inspect lists the open slider as {id, parent, key, fields: {level}},
first in `dialogs`, so "top" still names a hosted dialog open over it.
- ui.dialog.set {field: "level", value} moves the slider to a level from
0 to 100 and previews it. A value outside that range, a value that is
not a number, another field, or a set while another edit holds the
interaction is refused and leaves the level as it was.
- ui.dialog.confirm keeps the preview as one undo step, as Enter does,
and ui.dialog.cancel puts the paths back, as Escape does. A set with
`action` answers in the same request and replies {dialog, result}.