mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-26 11:36:58 -06:00
Two gaps in the resize cursor, both found by a review of the fix: - The handle's direction was taken from the box centre to the handle, so a wide rectangle's corner pointed almost along an edge: a 400x80 shape's NW corner showed a horizontal cursor. A corner drags along the diagonal whatever the shape's proportions, so the direction is now normalised - the diagonal at 45 degrees - and only the shape's rotation and flips turn it. - The cursor read the shape's own box, but the handles are drawn from the effective one, which a placeholder inherits from its layout. Such a placeholder showed the default arrow instead of a resize cursor. The tests cover both: a wide shape keeps its corner cursors diagonal, and a placeholder that inherits its box has a resize cursor. Red-proof: with the aspect ratio back in the direction, the wide shape's NW corner shows a horizontal cursor; with the shape's own box, the placeholder shows the default arrow.