Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.6.6
Name Modified Size InfoDownloads / 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: getArrowTipInfo now 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: updateArrowTipOverlay synchronizes hEl.dataset.arrowTipHandle and 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-scaleX and data-scaleY inversion detection into handleMouseMove, 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, renderSelectionOverlays now checks whether .arrow-tip-container already exists and whether its bound style matches. When present, it calls window.updateArrowTipOverlay(existing, el) to update dimensions and swatches in place without DOM churn.
  • Event Lifecycle Isolation: Added mouseup event propagation stoppage to .arrow-tip-slider-overlay and 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-6 for immediate cache refreshment.
  • Bumped all 81 script, stylesheet, and template fetch cachebuster query parameters across index.html and ui/dashboard.js to ?v=5.6.6.
  • Synchronized version labels in extensions/ui-interactions.js, extensions/legacy-fixes.js, ui/sidebar-context.js, and ui/modals/options-modal.js.

🎨 Architectural & UI Details

1. Color Picker Button Root Cause

  • In canvas/interaction-mouse.js, window.handleMouseUp executes on every global mouse release. At the end of handleMouseUp, window.renderSelectionOverlays() was called.
  • In extensions/system-patches.js (renderSelectionOverlays), when checking an existing single-element overlay (existing._boundEl === el), it previously invoked renderSmartArrowTipControls(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 mousedown event was received by the button, but before the click event could fire, mouseup triggered the global handler which removed the button from the document. The browser therefore aborted the synthetic click event, preventing CustomColorPicker.open from ever running.

2. Handle Drag Inversion Root Cause

  • When inserting a Left Arrow (block-left), window.createWrapper creates the wrapper <div> and synchronously selects it before el.setAttribute('data-arrow-style', 'block-left') runs.
  • getArrowTipInfo defaulted to 'block-right', configuring the drag handle with dir: 'right'.
  • When the overlay optimization preserved the container, updateArrowTipOverlay updated style.left and style.top but never updated hEl.dataset.arrowTipHandle, leaving the handle closure stuck on dir: 'right'.
  • In handleMouseMove, dir === 'right' calculated newHead = startHead - curDx. For a left arrow where the junction handle sits at x = headLength, moving the mouse right (curDx > 0) decreased newHead, causing the handle to move left. Moving the mouse left (curDx < 0) increased newHead, 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.html and Service Worker cache bumped to v5.6.6.

πŸŽ‰ Version 5.6.6: Open Publisher

Source: README.md, updated 2026-10-10