mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
object.setProps with visible: false or locked: true left the objects it hid or locked selected, the key object included, and kept selected objects inside a group or layer it hid or locked. Align then moved a locked object, and aligned the other objects to a hidden key object. object.lock and object.hide clear the selection, and layer.setProps, which the Layers panel's eye and lock columns run, deselects what it hides or locks. After a call with visible: false or locked: true, object.setProps now deselects every selected object that is then hidden or locked, as layer.setProps does: the selected objects it hides or locks, selected objects inside them, and selected objects that were hidden or locked before the call. It clears the key object when the key is one of them. Undo selects them again and restores the key object. A call with visible: false or locked: true that changes nothing records no undo step and still deselects them, as object.lock and object.hide do. A call that sets neither, such as an opacity change from the Control bar or the Transparency panel, leaves the selection as it is. Docs: the object.setProps params text, docs/mcp.md, docs/target-app-parity.md.