Repository navigation
Refactor/editor - #47
Merged
Merged
Conversation
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
force-pushed
the
refactor/editor
branch
from
October 23, 2026 14:51
7abfde5 to
f67421c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#46