Skip to content

Feat/element lock visibility#59

Merged
u8array merged 3 commits into
mainfrom
feat/element-lock-visibility
May 12, 2026
Merged

Feat/element lock visibility#59
u8array merged 3 commits into
mainfrom
feat/element-lock-visibility

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 12, 2026

No description provided.

u8array added 2 commits May 12, 2026 21:56
Implement object locking to prevent accidental edits and allow users to
exclude objects from ZPL output.

- Locked objects are no longer draggable, resizable, or deletable.
- The "Include in ZPL output" checkbox in the Properties panel controls
  whether an object is exported.
- Added corresponding translations for the new features.
- Updated tests to cover locking behavior and ZPL exclusion.
Introduces `objectIdsAtPoint` to abstract Konva hit testing and a new
`buildBulkToggleUpdates` helper to encapsulate the logic for toggling
properties in the LayersPanel. This refactoring improves code clarity
and reusability.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces object locking, visibility controls, and ZPL export exclusion. Locking prevents transformation and deletion while maintaining editability for specific meta-fields. Visibility and export settings allow users to hide objects from the canvas or omit them from ZPL output independently. The UI is updated with new controls in the Layers and Properties panels, along with keyboard shortcuts for locking. Feedback suggests refining the bulk toggle logic to use undefined for default states, ensuring consistency with the Properties panel and keeping the persisted JSON clean.

Comment thread src/lib/bulkToggle.ts Outdated
@u8array u8array merged commit 0356f15 into main May 12, 2026
2 checks passed
@u8array u8array deleted the feat/element-lock-visibility branch May 13, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant