Skip to content

Refactor/editor - #47

Merged
KonstantinMerkel merged 2 commits into
developfrom
refactor/editor
Oct 23, 2026
Merged

KonstantinMerkel merged 2 commits into
developfrom
refactor/editor

Conversation

@KonstantinMerkel

Copy link
Copy Markdown
Owner

#46

Slot geometry (cuts, resizing, splitting, colours) lives in prefs/draft.js
and is unit tested; prefs/preview.js keeps each UI piece with its own
handlers and shares one drawing routine across all canvases.

Percentage spinners and cut dragging edit the same draft and resync in
place, which removes the timeout debounce. Slots are coloured per id with
golden-angle hues and labelled by their own number. The cascading
deletion policy is unchanged.
toDraft rounds slot edges instead of sizes, so shared edges stay shared
and dragged cuts cannot produce overlaps or gaps. A draft whose layout
was removed by a cascading delete is dropped, and adding or editing
another layout is unavailable while a draft is open.

Split Largest is disabled when no slot can be halved, the cursor follows
the pointer after a drag and on leave, a save rebuilds the page once, and
layouts are read from the parsed escalator.
@KonstantinMerkel
KonstantinMerkel merged commit 26f31c4 into develop Oct 23, 2026
4 checks passed
@KonstantinMerkel
KonstantinMerkel deleted the refactor/editor branch October 23, 2026 14:57
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