| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 5.6.6_ Smart Arrow Color Picker _ Tip Handle Drag Precision Engine source code.tar.gz | 2026-10-10 | 22.5 MB | |
| 5.6.6_ Smart Arrow Color Picker _ Tip Handle Drag Precision Engine source code.zip | 2026-10-10 | 22.7 MB | |
| README.md | 2026-10-10 | 10.1 kB | |
| OpenPublisher-5-x86_64.AppImage | 2026-10-10 | 166.4 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-10-10 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-10-10 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-10-10 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-10-10 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-10-10 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-10-10 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-10-10 | 156.2 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-10-10 | 185.5 MB | |
| Totals: 12 Items | 1.7 GB | 0 | |
π Summary
Version 5.6.6 of Open Publisher restores the interactive Fill Color and Outline Color picker buttons on the Smart Arrow Floating HUD, and fixes an inversion bug with the on-canvas arrowhead tip drag handle where dragging the orange junction handle moved backwards relative to the mouse cursor on directional arrows.
Previously, a regression introduced during the bulk selection overlay optimizations caused window.renderSelectionOverlays() to unconditionally tear down and recreate the arrow controls container on every mouse release (mouseup). Because the target button was destroyed mid-interaction before the browser could dispatch a click event, clicking Fill or Outline resulted in nothing appearing on screen.
Additionally, when creating arrows pointing left, up, or down (such as Left Arrow), the arrow style was not detected on the wrapper during initial creation, causing the handle direction to default to right. When the container was subsequently reused in place, the handle's closure and dataset direction remained bound to right. This inverted mouse delta calculations during drags: dragging the orange junction handle right moved it left, and dragging left moved it right.
Version 5.6.6 completely resolves both issues. Color pickers open reliably on clicks, and the on-canvas arrowhead handle follows cursor movement with 1:1 precision across all arrow orientations (Left, Right, Up, Down, Double, and Quad).
π Key Updates in v5.6.6
1. Smart Arrow On-Canvas Handle Drag Precision Fix
- True Directional Tracking: Fixed handle delta calculations across all arrow orientations. Dragging the junction handle to the right moves it right, dragging to the left moves it left, dragging up moves it up, and dragging down moves it down.
- Immediate Style Detection:
getArrowTipInfonow inspects child<svg class="smart-arrow-svg">attributes if wrapper dataset attributes are not yet set during creation, guaranteeing correct orientation (left,right,up,down,double-h,double-v) on the initial render. - Dynamic Handle Direction:
updateArrowTipOverlaysynchronizeshEl.dataset.arrowTipHandleand cursor styling in place, and mousedown handlers dynamically read the current handle direction attribute rather than relying on stale closures. - Rotation and Flip Invariance: Integrated
data-scaleXanddata-scaleYinversion detection intohandleMouseMove, ensuring flipped and rotated arrows calculate drag deltas accurately. - HUD Slider Parity: Moving the tip slider in the floating HUD and dragging the on-canvas junction handle remain in exact mathematical synchrony.
2. Smart Arrow Color Picker Restoration
- Fill Color Button: Clicking the Fill button opens the Custom Color Picker anchored directly to the HUD swatch. Selecting any swatch or custom color immediately applies the new fill to the arrow path and updates the HUD indicator.
- Outline Color Button: Clicking the Outline button opens the color picker to select border color, dynamically adjusting the stroke on the arrow path while maintaining or restoring line thickness.
- Right-Click Transparent Toggles: Right-clicking either button toggles transparency (No Fill or No Outline) cleanly.
- In-Place Overlay Updates: In
extensions/system-patches.js,renderSelectionOverlaysnow checks whether.arrow-tip-containeralready exists and whether its bound style matches. When present, it callswindow.updateArrowTipOverlay(existing, el)to update dimensions and swatches in place without DOM churn. - Event Lifecycle Isolation: Added
mouseupevent propagation stoppage to.arrow-tip-slider-overlayand its buttons, preventing window-level canvas selection handlers from resetting the controls during mouse clicks.
3. Version Bump & Cache Invalidation
- Bumped Service Worker cache name to
open-publisher-v5-6-6for immediate cache refreshment. - Bumped all 81 script, stylesheet, and template fetch cachebuster query parameters across
index.htmlandui/dashboard.jsto?v=5.6.6. - Synchronized version labels in
extensions/ui-interactions.js,extensions/legacy-fixes.js,ui/sidebar-context.js, andui/modals/options-modal.js.
π¨ Architectural & UI Details
1. Color Picker Button Root Cause
- In
canvas/interaction-mouse.js,window.handleMouseUpexecutes on every global mouse release. At the end ofhandleMouseUp,window.renderSelectionOverlays()was called. - In
extensions/system-patches.js(renderSelectionOverlays), when checking an existing single-element overlay (existing._boundEl === el), it previously invokedrenderSmartArrowTipControls(existing, el). - Inside
renderSmartArrowTipControls,const oldCont = overlay.querySelector('.arrow-tip-container'); if (oldCont) oldCont.remove();destroyed all HUD elements and replaced them with fresh DOM nodes. - When a user clicked on the Fill or Outline button, the
mousedownevent was received by the button, but before theclickevent could fire,mouseuptriggered the global handler which removed the button from the document. The browser therefore aborted the syntheticclickevent, preventingCustomColorPicker.openfrom ever running.
2. Handle Drag Inversion Root Cause
- When inserting a Left Arrow (
block-left),window.createWrappercreates the wrapper<div>and synchronously selects it beforeel.setAttribute('data-arrow-style', 'block-left')runs. getArrowTipInfodefaulted to'block-right', configuring the drag handle withdir: 'right'.- When the overlay optimization preserved the container,
updateArrowTipOverlayupdatedstyle.leftandstyle.topbut never updatedhEl.dataset.arrowTipHandle, leaving the handle closure stuck ondir: 'right'. - In
handleMouseMove,dir === 'right'calculatednewHead = startHead - curDx. For a left arrow where the junction handle sits atx = headLength, moving the mouse right (curDx > 0) decreasednewHead, causing the handle to move left. Moving the mouse left (curDx < 0) increasednewHead, causing the handle to move right.
π Problems Solved
1. Inverted On-Canvas Arrowhead Tip Dragging
- Problem: Dragging the orange junction handle on left, up, or down arrows moved in the opposite direction of the mouse cursor (moving right shifted the handle left, and moving left shifted the handle right).
- Solution in v5.6.6: Early child SVG style inspection, dynamic handle direction evaluation, and scale flip awareness ensure drag handles track the mouse cursor 1:1 in all directions.
2. Unresponsive Fill & Outline Color Buttons
- Problem: Clicking on the Fill or Outline button in the arrow HUD did nothing; the color picker never appeared.
- Solution in v5.6.6: Preserved the HUD DOM nodes across mouse events and isolated button clicks from global mouseup resets.
3. Unnecessary DOM Tearing on Mouseup
- Problem: Releasing any mouse click or slider gesture tore down and rebuilt the arrow controls, resetting active states.
- Solution in v5.6.6: Utilized non-destructive in-place synchronization via
updateArrowTipOverlay.
π Files Modified
| File | Changes |
|---|---|
elements/arrow/arrow.js |
Updated getArrowTipInfo to inspect child SVG attributes when wrapper attributes are pending, added forcedHead support, and returned styleId. |
extensions/system-patches.js |
Updated renderSelectionOverlays to verify _boundArrowStyle, added dynamic handle direction sync in updateArrowTipOverlay, updated handle mousedown listener, and added flip transform delta calculation. |
canvas/interaction-mouse.js |
Updated handleMouseDown to retrieve fresh tipInfo and dynamic handle direction, and added flip transform support in handleMouseMove. |
sw.js |
Updated Service Worker cache name to open-publisher-v5-6-6. |
index.html |
Updated all 81 asset query parameters to ?v=5.6.6. |
ui/dashboard.js |
Updated template fetch cachebuster query parameters to ?v=5.6.6. |
extensions/ui-interactions.js |
Bumped About dialog subtitle to v5.6.6. |
extensions/legacy-fixes.js |
Bumped engine log message to v5.6.6. |
ui/sidebar-context.js |
Bumped header comment to (v5.6.6). |
ui/modals/options-modal.js |
Bumped header comment to (v5.6.6). |
β v5.6.6 Verification Checklist
- [x] Tip Handle Drag Direction (Left Arrow): Dragging the junction handle right moves it right; dragging left moves it left.
- [x] Tip Handle Drag Direction (Right Arrow): Dragging the junction handle right moves it right; dragging left moves it left.
- [x] Tip Handle Drag Direction (Up & Down Arrows): Dragging the junction handle up moves it up; dragging down moves it down.
- [x] Tip Slider Parity: Moving the tip slider in the HUD and dragging the on-canvas junction handle produce identical results and stay synchronized.
- [x] Fill Color Button Clickable: Physical mouse click on the Fill button reliably displays the Custom Color Picker.
- [x] Outline Color Button Clickable: Physical mouse click on the Outline button reliably displays the Custom Color Picker.
- [x] Swatch Selection Dynamic Update: Choosing a color swatch updates the arrow's SVG path fill or stroke dynamically and updates the HUD preview circle.
- [x] No DOM Tearing on Mouseup: Arrow HUD container is preserved in place without node destruction during clicks or slider interactions.
- [x] Thickness Controls Functional: Outline thickness increment/decrement buttons and sliders adjust stroke width cleanly.
- [x] Dark Mode Verification: Arrow HUD and Color Picker render seamlessly with correct theme contrast in dark mode.
- [x] Cachebuster Synchronization: All 81 asset query strings in
index.htmland Service Worker cache bumped tov5.6.6.
π Version 5.6.6: Open Publisher