| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 5.6.4_ Bulk Selection Transform Support _ Clean Multi-Selection Overlay Engine source code.tar.gz | 2026-10-08 | 22.5 MB | |
| 5.6.4_ Bulk Selection Transform Support _ Clean Multi-Selection Overlay Engine source code.zip | 2026-10-08 | 22.7 MB | |
| README.md | 2026-10-08 | 13.7 kB | |
| OpenPublisher-5-x86_64.AppImage | 2026-10-08 | 166.4 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-10-08 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-10-08 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-10-08 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-10-08 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-10-08 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-10-08 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-10-08 | 156.2 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-10-08 | 185.5 MB | |
| Totals: 12 Items | 1.7 GB | 0 | |
π Summary
Version 5.6.4 of Open Publisher introduces complete bulk selection transform support (allowing users to freely resize and rotate multiple elements together in bulk) alongside complete real-time synchronization of the element selection overlay bounding box, 8 resize handles, and rotation controls during drag, resize, and rotation interactions.
In addition, Version 5.6.4 polishes multi-element selection rendering by completely eliminating distracting individual inner boxes when multiple items are selected, presenting a unified master bounding box around the entire collective cluster.
Previously:
- When users selected multiple elements, they could move them together, but resizing or rotating the bulk selection was impossible.
- When resizing or dragging a single element, the selection bounding box and handles lagged behind, updating only upon
mouseup. - When multiple elements were selected and rotated together, each item's individual dashed selection box remained visible inside the master transform frame, creating visual clutter and misaligned overlapping outlines.
Version 5.6.4 fully resolves these limitations with a unified, high-performance selection overlay and transform engine:
- Unified Group Selection Bounding Box: When two or more elements are selected, Open Publisher computes the collective bounding box enclosing all selected elements (projecting unrotated and rotated corners onto paper coordinates) and renders
#group-selection-overlay. - Clean Multi-Selection Presentation: Individual inner dashed boxes are suppressed during multi-selection. The selection overlay container presents only the crisp master bounding box around the entire group, ensuring bulk rotation and transformations look seamless and uncluttered.
- 8 Interactive Group Resize Handles: Renders eight crisp handles (
nw,n,ne,e,se,s,sw,w) around the collective selection. Dragging any handle resizes all elements proportionally while scaling their widths, heights, font sizes, image frames, and offsets from the group origin. - Top Group Rotate Stem and Handle: Extends a top rotation stem with a circular rotate handle above the bulk selection. Dragging the handle orbits all selected elements around the collective center
(cx, cy), updating each element's individual rotation angle and position dynamically. - Real-Time Visual Orbit Feedback: The selection overlay container rotates and transforms smoothly in real time during drag gestures without DOM flicker or tearing.
- Real-Time Resize Bounding Box Tracking: When resizing an element from any of the 8 handles, the selection boundary box, handles, and rotation stem expand, contract, and move in real time with 60 FPS in-place DOM synchronization.
- Real-Time Drag Synchronization: Selection borders and all 8 handles follow dragged elements in lockstep throughout movement and remain pinned upon mouse release.
- Modifier Key Integration:
- Shift Key: Constrains group resizing to lock the group's original aspect ratio.
- Ctrl / Cmd Key: Centers group resizing around the center of the selection.
- Smart Element Adaptation:
- Image elements scale their internal preview dimensions cleanly.
- Smart arrows and WordArt components re-render their geometry to match new dimensions.
- Full Undo / Redo History Support: Every bulk resize and rotate operation takes a clean snapshot before and after the interaction, allowing instantaneous single-keystroke undo (
Ctrl+Z) and redo (Ctrl+Y). - Zero Regressions: Single-element selection, single-element resize, single-element rotation, and canvas panning remain completely unaffected.
π¨ Architectural & Implementation Details
1. Group Selection Overlay Architecture
- In
extensions/system-patches.js(window.renderSelectionOverlays): - When
els.length === 1: Renders the single-element selection overlay with 8 handles and the top rotate handle. - When
els.length > 1: Suppresses individual element overlay generation and computes the collective minimum and maximum X/Y bounds across all multi-selected elements:- Queries each element's left, top, width, height, and existing CSS rotation transform.
- Projects the four corners of rotated elements through their local center of rotation to ensure the enclosing group bounding box accurately wraps the entire collective cluster.
- Generates
#group-selection-overlaywith eight resize handles (rh-nw,rh-n,rh-ne,rh-e,rh-se,rh-s,rh-sw,rh-w) and a top rotate handle (rotate-stickandrotate-handle). - Eliminates internal dashed box clutter, delivering a clean and unified presentation during both static selection and dynamic rotation.
2. Multi-Element Proportional Resizing Math
- In
canvas/interaction-mouse.js&extensions/system-patches.js(window.handleMouseDown,window.handleMouseMove): - On
mousedownover any resize handle on#group-selection-overlay:- Flags
state.dragData.isGroup = true. - Captures the initial collective group bounds (
startGroupLeft,startGroupTop,startGroupWidth,startGroupHeight). - Records baseline metrics for each element in
state.multiSelected(individualstartLeft,startTop,startWidth,startHeight,scaleX,scaleY, image data, and arrow points).
- Flags
- On
mousemove:- Computes
deltaXanddeltaYbased on paper zoom. - Computes the new collective bounding box dimensions according to the active handle direction.
- Calculates horizontal and vertical scale factors:
factorX = newGroupWidth / startGroupWidthandfactorY = newGroupHeight / startGroupHeight. - For each selected element:
- Scales width and height:
item.newWidth = item.startWidth * factorX,item.newHeight = item.startHeight * factorY. - Computes proportional offset from the group origin:
item.newLeft = newGroupLeft + (item.startLeft - startGroupLeft) * factorXitem.newTop = newGroupTop + (item.startTop - startGroupTop) * factorY
- Updates internal image sizes, arrow coordinates, and WordArt shapes.
- Computes
3. Multi-Element Circular Orbit Rotation
- In
canvas/interaction-mouse.js&extensions/system-patches.js: - On
mousedownover the group rotate handle:- Computes the group center:
cx = groupLeft + groupWidth / 2,cy = groupTop + groupHeight / 2. - Computes the initial angle:
startAngle = Math.atan2(mouseY - cy, mouseX - cx). - Stores the initial local center coordinate and initial rotation angle of each element.
- Computes the group center:
- On
mousemove:- Computes
currentAngle = Math.atan2(currentMouseY - cy, currentMouseX - cx). - Calculates
deltaAngleRad = currentAngle - startAngleanddeltaDeg = deltaAngleRad * 180 / Math.PI. - Orbits each element's center
(itemCx, itemCy)around the group center(cx, cy): dx = itemCx - cx,dy = itemCy - cyrotatedX = cx + dx * Math.cos(deltaAngleRad) - dy * Math.sin(deltaAngleRad)rotatedY = cy + dx * Math.sin(deltaAngleRad) + dy * Math.cos(deltaAngleRad)item.style.left = (rotatedX - itemWidth / 2) + 'px'item.style.top = (rotatedY - itemHeight / 2) + 'px'- Updates individual rotation angle:
item.newAngle = item.startAngle + deltaDeg. - Applies
transform: rotate(...)preserving any horizontal or vertical flip scale factors. - Dynamically rotates the group selection overlay container in real time for immediate visual alignment.
- Computes
4. High-Performance Real-Time Overlay Synchronization
- In-Place Single Overlay Updates:
- In
window.renderSelectionOverlays(extensions/system-patches.js), single-element overlays are tagged with_boundEl = el. When updating overlays for an active single element during drag, resize, or rotate,renderSelectionOverlaysdirectly updates the existing.selected-overlaydimensions (left,top,width,height, andtransform) in place. - This preserves DOM node identity so handles currently under the user's cursor are never destroyed mid-drag, eliminating DOM churn and ensuring smooth 60 FPS tracking.
- Active Single Resize and Rotate Calls:
- In both
canvas/interaction-mouse.jsandextensions/system-patches.js, explicitwindow.renderSelectionOverlays()calls were added to single-element resize and rotate handlers insidehandleMouseMove. - In
canvas/interaction.js(selectElement), addedupdateSelectionObserver()andrenderSelectionOverlays()triggers to guarantee immediate handle display when selecting single elements.
π Problems Solved
1. Inability to Resize Multiple Elements Together
- Problem: When selecting multiple elements, users could only move them as a group. Resizing required deselecting, resizing each element individually, and manually repositioning elements, destroying relative spacing.
- Solution in v5.6.4: Users can now grab any of the 8 handles on the outer selection boundary to resize the entire arrangement proportionally, maintaining relative spacing and aspect ratios.
2. Inability to Rotate Bulk Selections
- Problem: There was no rotation handle available when multiple elements were selected. Users had to rotate elements one by one, making it impossible to rotate an entire composition or diagram around a shared pivot point.
- Solution in v5.6.4: A top rotate handle appears on the group boundary box. Dragging it orbits all elements cleanly around the collective center point.
3. Redundant Inner Selection Boxes During Multi-Selection
- Problem: When selecting multiple items, individual dashed blue boxes were drawn around each child element alongside the large master group box. When rotating the group, these inner boxes clashed with the rotated master frame.
- Solution in v5.6.4: Suppressed individual child overlays during multi-selection (
els.length > 1), showing exclusively the clean outer group frame.
4. Selection Box Static During Image Resize
- Problem: When dragging any resize handle on an image, the image changed size but the dashed selection outline and handles stayed frozen at the starting size until mouse release.
- Solution in v5.6.4: Real-time in-place overlay synchronization updates the selection box and handle positions continuously during mouse movement, providing immediate visual feedback.
5. Selection Border Left Behind When Moving Images
- Problem: Dragging an element on the canvas caused the image or shape to move while its blue dashed border and 8 resize handles remained stationary at the original location.
- Solution in v5.6.4: Repaired script initialization and added continuous overlay synchronization in mouse move and mouse up handlers so the selection box tracks elements in real time.
π Files Modified
| File | Changes |
|---|---|
extensions/system-patches.js |
Added group bounding box calculations, multi-select overlay handle rendering, inner box suppression for multi-select, in-place real-time overlay sync during resize/rotate/drag, and group transform handlers. |
canvas/interaction-mouse.js |
Fixed syntax parse error, updated mouse down/move/up handlers for group transforms, single-element drag/resize/rotate overlay tracking, and undo history commits. |
canvas/interaction.js |
Integrated overlay refresh in selectElement() to guarantee instant handle display upon single item selection. |
core/selection.js |
Integrated window.renderSelectionOverlays() in deselect() and deleteSelected(). |
extensions/legacy-fixes.js |
Added overlay updates on Ctrl+A and bumped engine log to v5.6.4. |
style.css |
Added styles for .group-selection-overlay with high z-index and handle styling. Bumped version comments to (v5.6.4). |
sw.js |
Bumped Service Worker cache name to open-publisher-v5-6-4. |
index.html |
Updated all asset query parameters to ?v=5.6.4. |
ui/dashboard.js |
Updated fetch queries to ?v=5.6.4. |
ui/modals/options-modal.js |
Updated header comment to (v5.6.4). |
ui/sidebar-context.js |
Updated header comment to (v5.6.4). |
β v5.6.4 Verification Checklist
- [x] Clean Multi-Selection Presentation: Only the large master bounding box renders when multiple items are selected; individual inner dashed boxes are omitted (0 inner overlays).
- [x] Multi-Element Rotation: Rotating multiple items rotates the master box and orbits items smoothly without inner box clash.
- [x] Bulk Resizing: Dragging
sehandle scaled all elements up proportionally (el1: 140px -> 217.8px,el2: 160px -> 248.9px,el3: 200px -> 311.1px). - [x] Bulk Rotating: Dragging rotate handle orbited all elements around the collective center and updated element rotation angles.
- [x] Single-Element Selection Intact: Reverting to a single selected element immediately restores its dedicated 8 resize handles and rotate stem.
- [x] Real-Time Resize Sync: Dragging
seandnwhandles updates the bounding box and 8 handles in real time (400px x 366.7pxduring drag). - [x] Real-Time Drag Sync: Dragging an image or shape moves the selection border and handles in lockstep (
left: 450px, top: 416.7pxmatched precisely). - [x] Undo & Redo: Calling undo reverted bulk transformations cleanly to original coordinates.
- [x] Cachebuster Synchronization: All query parameters in
index.htmland Service Worker bumped tov5.6.4.
π Version 5.6.4 - Open Publisher