Skip to content

Fix/barcode height config#8

Merged
u8array merged 4 commits into
mainfrom
fix/barcode-height-config
May 5, 2026
Merged

Fix/barcode height config#8
u8array merged 4 commits into
mainfrom
fix/barcode-height-config

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 5, 2026

No description provided.

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 a heightLocked property to the ObjectTypeDefinition, allowing specific barcode types like GS1 Databar to have a fixed height that cannot be modified via the UI or transformer anchors. It also refactors the height transformation logic for 1D barcodes into a shared commitHeightTransform helper. A review comment suggests optimizing the singleType lookup in useKonvaTransformer by guarding it with a selection length check to avoid unnecessary array searches on every render.

Comment thread src/components/Canvas/hooks/useKonvaTransformer.ts Outdated
@u8array u8array merged commit 66ceb5c into main May 5, 2026
2 checks passed
@u8array u8array deleted the fix/barcode-height-config branch May 5, 2026 20:26
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