Commit Graph
14 Commits
Author SHA1 Message Date
by-ae 64d2515b8c fix: offset each paste so copies do not stack
Ctrl+V always nudged the original clipboard by the same amount, so a
second paste landed on the first copy.
2026-11-01 07:31:19 +10:00
by-ae 3c580cb821 fix: show the canvas size the prompt will use
A typed size was snapped to a multiple of 8 for the width and height
outputs, but the size field kept the number the user typed.
2026-11-01 07:31:19 +10:00
by-ae f42da019f4 fix: note canvas sizes the open Ideogram 4 model rejects
The editor accepts 64-16384 and snaps to a multiple of 8, so 1920x1080
is easy to enter. The open model needs multiples of 16, from 256 to 2048,
at an aspect ratio of at most 6:1. The size fields show that rule and do
not change the numbers. The spinner steps by 16.
2026-10-31 07:52:49 +10:00
by-ae 677b390a50 fix: clear the active region when deleting a selection
Deleting several regions left another region active. The next Delete
removed that one as well, even though it had not been selected.
2026-10-31 07:52:49 +10:00
by-ae 1a578bb44c fix: keep non-string region text from stopping the canvas
A number or other non-string description reached the canvas line wrap,
which expects a string, and the redraw stopped. Labels, copies, and
loaded presets keep finite numbers as text and drop anything else.
2026-10-31 07:52:49 +10:00
by-ae 66da76e7ac fix: keep pasted palette colors editable
input[type=color] only accepts #rrggbb. A pasted #fff or other shorthand
was given to it unchanged, and the picker then opened on black. Palettes
are stored as the uppercase #RRGGBB colors Ideogram 4 keeps, at most five
per element and sixteen for the style.
2026-10-31 07:52:49 +10:00
by-ae 5b7222606e fix: hit the top region on shift-click and double-click
Shift-click and double-click preferred the active region when boxes
overlapped, so the region drawn on top could not be toggled or edited.
Both now follow paint order. Dragging still prefers the active handles.
2026-10-30 07:29:24 +10:00
by-ae 02058dc8a2 fix: fit pasted regions when the source canvas size differs
Choosing source dimensions or an aspect ratio did nothing while scale mode
was stretch, which is the default. That choice now fits the source layout.
Don't care still stretches, and anchor modes still pin the fit.
2026-10-29 07:48:02 +10:00
by-ae cd9df07f38 fix: keep unusable region fields from failing the prompt
A boolean palette or a non-string description raised while building the
caption or the preview. Those values are dropped or turned into text.
Short hex colors use the expanded color in the preview.

Style tooltips said a blank descriptor is omitted. It is sent as an empty
string, which is what the caption schema requires for those keys.
2026-10-29 07:46:20 +10:00
2929e02252 fix: skip unusable region coordinates instead of failing the caption
A region stored with numeric strings, NaN, a boolean, or a huge finite
value raised from round() while building the Ideogram bbox or the preview,
so one bad box failed the whole node. Those coordinates are now omitted
from the caption and the preview, and numeric strings still convert.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: AE <by-ae@users.noreply.github.com>
2026-10-27 21:00:52 +00:00
adfbb424cf fix: keep pasted and loaded regions inside the canvas
Ctrl+V only clamped the origin, so a region near the edge kept its size and
extended past the canvas. Loading many characters did the same along the
0.04 diagonal. Paste now uses the same inside-canvas nudge as scene add,
and loads after the 17th tile a grid that still fits.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: AE <by-ae@users.noreply.github.com>
2026-10-27 20:59:04 +00:00
f87d64c3b1 fix: keep saved scene layout when adding it to the canvas
Additive scene load nudged each region further than the one before it, so
a saved composition was sheared. Every region now moves by the same offset
and is clamped back inside the canvas.

Co-authored-by: AE <by-ae@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-26 21:10:03 +00:00
a35ebb7d3f fix: keep color palettes inside the Ideogram 4 caption schema
The caption verifier accepts only uppercase #RRGGBB, at most 16 style
colors and 5 per element. Shorthand #RGB is expanded, other values are
dropped, and a null palette no longer crashes prompt assembly.

Co-authored-by: AE <by-ae@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-26 21:08:32 +00:00
6a050339f7 fix: normalize inverted and non-numeric Ideogram bboxes
Pasted captions with swapped or non-numeric bbox values produced negative
or NaN regions, so the editor could not select them. Coordinates are now
swapped and clamped to the 0-1000 range from the Ideogram 4 caption schema,
and unreadable bboxes keep the non-overlapping grid slot for that element.
Saved regions with NaN coordinates are dropped on restore.

Co-authored-by: AE <by-ae@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-26 21:07:29 +00:00