Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.3.0
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher-5-x86_64.AppImage 2026-10-03 166.4 MB
5.3.0_ Dedicated Smart Arrows Engine, Floating Styling Controls _ Mobile Two-Tier Layout source code.tar.gz 2026-10-03 22.4 MB
5.3.0_ Dedicated Smart Arrows Engine, Floating Styling Controls _ Mobile Two-Tier Layout source code.zip 2026-10-03 22.7 MB
README.md 2026-10-03 24.3 kB
openpublisher5_amd64-windows-portable.exe 2026-10-03 183.2 MB
openpublisher5_amd64-windows.exe 2026-10-03 165.2 MB
openpublisher5_amd64-macos.dmg 2026-10-03 233.1 MB
openpublisher5_amd64-linux.run 2026-10-03 193.4 MB
openpublisher5_amd64-linux.rpm 2026-10-03 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-10-03 153.6 MB
openpublisher5_amd64-linux.deb 2026-10-03 156.2 MB
openpublisher5_amd64-freebsd.pkg 2026-10-03 185.5 MB
Totals: 12 Items   1.7 GB 0

🚀 Summary

Open Publisher version 5.3.0 introduces a major evolutionary milestone: a dedicated, vector-grade Smart Arrows Engine coupled with an intuitive On-Canvas Floating Action Toolbar, solving one of the most frustrating limitations in digital publishing: distorted arrowheads on resize. Prior to version 5.3.0, resizing arrow shapes scaled vector bounding boxes uniformly, causing arrowheads to become unnaturally stretched, flattened, or bloated when creating directional diagrams, flowcharts, and callouts.

Version 5.3.0 introduces parametric path generation where element resizing stretches only the stem or shaft, strictly locking and preserving the geometric aspect ratio, angle, and crisp contours of the arrowhead tips. Across a comprehensive master catalog of 28 vector presets (spanning Block, Notched & Shaped, Slender & Precision, and Hollow & Technical designs), users can create directional graphics of any length or thickness while arrowheads retain their ideal visual proportion.

In addition to parametric stem stretching, version 5.3.0 introduces a sleek, compact Two-Tier Floating Action Toolbar that docks directly to selected arrows:

  1. Interactive Tip Resizing: Adjust arrowhead tip length in real time via an on-canvas amber junction drag handle or a precise pixel slider with live readout.
  2. Direct Fill & Outline Color Pickers: Individual circular live swatches provide instant access to Open Publisher's full custom color picker (HSV canvas, scheme swatches, standard palette, and hex/rgb inputs) without needing to navigate to the Page Design or Format Shape ribbon tabs. Setting custom colors cleanly decouples arrow paths from theme clobbering.
  3. Outline Thickness Control with 0px Mouse Wheel Scrolling: A dedicated line width slider, -1px / +1px stepper buttons, and mouse wheel scroll support allow continuous thickness adjustments from 0px to 24px. Scrolling down to 0px completely removes the outline (stroke="none", stroke-width="0"), while scrolling back up automatically restores the previous outline color.
  4. Mobile-Optimized Two-Tier Architecture: Stacking the Tip Size slider and Color swatches on the top row, and the Outline Thickness controls on the bottom row, reduces total toolbar width from ~550px down to 320px. This guarantees comfortable visibility and touch interaction on mobile devices and narrow display viewports without horizontal overflow.
  5. Zoom-Invariant UI Optical Scaling: All on-canvas handles, badges, and floating toolbar controls automatically scale inversely with editor magnification (--arrow-ui-scale), keeping interface elements perfectly proportioned, razor-sharp, and easy to click whether viewed at 35%, 56%, 100%, or 200% zoom.
  6. High-Resolution Print Spooling: Automatic 4x supersampled rasterization guarantees 0-pixel offset, no stroke clipping, and identical vector fidelity across physical printers and PDF exports.

In addition, version 5.3.0 completes a full application cache update: bumping the Service Worker cache (open-publisher-v5-3-0), refreshing PWA registration, modernizing template fetchers, and synchronizing cachebusters across all application components to ?v=5.3.0.


🔍 Problem Analysis: Distorted Arrowheads, Canvas Styling Inconvenience & Mobile Usability

Investigation into vector shape workflows and user feedback highlighted six key challenges in previous releases:

  1. Uniform Coordinate Distortion on Vector Scaling: Standard SVG shapes rely on static paths scaled across bounding boxes. Resizing an arrow from 100px to 600px stretched every vector coordinate along the X-axis by 600%. An arrowhead designed to be 30px wide became a 180px elongated spearhead, destroying visual balance in flowcharts and technical callouts.

  2. Tip Flattening and Squashing on Cross-Section Resize: When an arrow's height or thickness was increased (for example, expanding height from 60px to 140px), previous fixed pixel caps caused the arrowhead to flatten into a squashed, blunt triangle instead of growing wider to balance the thicker shaft.

  3. Microscopic Controls when Zoomed Out: Because desktop publishing workflows frequently operate at fit-to-page zoom levels (such as 40% to 60% zoom for A4 sheets), fixed-pixel UI overlays shrank proportionally with the canvas. The floating controls, badges, and drag handles became microscopic, blurry, and difficult to click.

  4. Inconvenient Multi-Step Color Customization: Customizing arrow colors previously required users to navigate away from the canvas to the Page Design or Format Shape ribbon tabs. Theme switches also frequently clobbered custom colors because shapes were bound to document scheme attributes.

  5. Lack of Direct Outline Thickness Tuning and Stroke Removal: Users had no on-canvas mechanism to adjust outline thickness or quickly remove the outline altogether. Adjusting strokes required multi-step menus rather than fluid sliding or mouse wheel scrolling.

  6. Horizontal Overflow on Mobile and Narrow Screens: Arranging tip sliders, color selectors, and stroke thickness controls in a single horizontal row produced an excessively wide toolbar (~552px). On mobile screens and narrow browser windows, controls clipped off the viewport edge.

  7. Print Spooler and PDF Export Fidelity: Live vector paths with complex strokes can experience hairline clipping, driver shifts, or anti-aliasing variations across browser print engines. A reliable serialization pipeline was needed to bake parametric arrows into high-resolution rasters during print spooling and PDF export without affecting in-editor interactivity.


💡 Architectural Solution: Dedicated Smart Arrows Engine, Floating Styling Controls & Mobile Layout

Open Publisher 5.3.0 resolves these challenges with a dedicated parametric vector architecture and a compact floating interface:

Added a new Arrows button directly adjacent to Shapes in the Insert > Graphics ribbon group. Clicking the button opens a dedicated 7-column dropdown gallery organized into 4 distinct categories:

  • Block Arrows: Right Arrow, Left Arrow, Up Arrow, Down Arrow, Double Arrow (H), Double Arrow (V), 4-Way Quad Arrow.
  • Notched & Shaped: Notched Right, Notched Left, Pentagon Arrow, Chevron Arrow, Stealth Arrow, Curved Swoop, U-Turn Loop.
  • Slender & Precision: Slender Right, Slender Left, Slender Up, Slender Down, Needle Arrow, Diamond Tip, Ball Base Pointer, Callout Arrow.
  • Hollow & Technical: Hollow Block Right, Hollow Block Left, Hollow Double Arrow, Open Barb Right, Open Barb Left, Technical Double, Dimension Marker.

2. Unified Dropdown Aesthetics & 1:1 Square Vector Geometry (style.css & elements/arrow/arrow.js)

  • The dropdown menu is framed with an identical 1px teal-green border (border: 1px solid var(--ui-theme-color)), 6px border-radius, and theme-colored drop shadow to perfectly match the Shapes dropdown.
  • Grid items use a 7-column square layout (aspect-ratio: 1; background: transparent;) with subtle hover highlights, eliminating grey rectangular boxes.
  • Each arrow preview is rendered in a normalized 100x100 vector viewBox with balanced proportions, ensuring vertical arrows (Up, Down, Double V, Quad) maintain vertical symmetry and pristine clarity.

3. Natural Proportional Geometry & Stem-Only Stretching (elements/arrow/arrow.js)

Replaced static paths with parametric path generation in buildArrowPath(styleId, width, height, customHead):

  • When an arrow is lengthened or shortened, arrowhead coordinates remain locked to a fixed geometric length (or user-customized ratio).
  • Only the connecting shaft vertices (stemTop, stemBottom, stemLen) are recalculated.
  • Whether an arrow is 60px short or 800px long across an entire poster, the arrowhead maintains its exact geometric angle and weight.
  • Proportional cross-section scaling: for horizontal arrows, defaultHead = Math.round(height * 0.7); for vertical arrows, defaultHead = Math.round(width * 0.7). Expanding arrow thickness naturally scales the arrowhead without squashing.

4. Zoom-Invariant UI Optical Scaling (canvas/canvas.js & style.css)

  • Dynamic optical zoom compensation in syncHandleScaling computes --arrow-ui-scale (1 / zoom), --arrow-handle-size (16px / zoom), and --arrow-handle-border (2px / zoom).
  • The floating action toolbar, value labels, and tip size badge scale with scale(var(--arrow-ui-scale, 1)), ensuring they stay at 100% standard readable screen size on the user's monitor across all zoom levels (30% to 200%).
  • At 56% zoom (or 35% deep zoom), controls remain completely sharp, readable, and comfortable to grab.

5. Inner Sub-Selection Box & Live Tip Badge (extensions/system-patches.js & style.css)

  • Injected an inner sub-selection box (.arrow-tip-subbox) with a refined dashed amber border (border: var(--arrow-border-width, 1.5px) dashed #f59e0b) and subtle tint (rgba(245, 158, 11, 0.08)) encompassing only the arrowhead tip.
  • Pinned a floating pill badge (.arrow-tip-badge) to the top-right corner of the sub-box displaying the exact tip dimension in real-time (e.g. Tip: 100px).
  • Automatically supports single-head and multi-head arrow styles (such as Double and 4-Way Quad arrows) with synchronized sub-boxes.

6. On-Canvas Amber Junction Handle with Rotated Vectoring (extensions/system-patches.js & canvas/interaction-mouse.js)

  • Placed an amber circular handle (.arrow-tip-handle) at the exact vector junction between the arrow stem and the arrowhead tip.
  • Clicking and dragging the handle enters real-time arrow-tip drag mode. Mouse deltas are automatically transformed through the arrow's rotation matrix (cos(rad), sin(rad)), allowing fluid tip adjustment along the arrow's axis even when rotated at arbitrary angles.
  • Changes are computed at 60 FPS in lockstep with the mouse cursor, with instant SVG path updates and zero latency.

7. Direct On-Canvas Fill & Outline Color Pickers (extensions/system-patches.js & elements/arrow/arrow.js)

  • Left-clicking the Fill or Outline button opens CustomColorPicker.open(btn, initialHex, callback), providing document theme swatches, standard palettes, recent swatches, HSV spectrum canvas, hex/rgb inputs, and eyedropper sampling.
  • Right-clicking either Fill or Outline instantly toggles transparent mode (none), displaying a red diagonal strike-through on the circular swatch (.no-color).
  • Setting a custom color removes the data-scheme-fill or data-scheme-stroke attributes, ensuring subsequent theme palette switches do not overwrite user-chosen colors.

8. Outline Thickness Control with Mouse Wheel Scrolling to 0px (extensions/system-patches.js & elements/arrow/arrow.js)

  • Continuous Range Slider: Allows smooth dragging from 0px to 24px with live pixel readout.
  • Stepper Buttons: High-precision -1px and +1px buttons provide single-pixel increment/decrement adjustments.
  • Mouse Wheel Scrolling: Hovering anywhere over the thickness section and scrolling the mouse wheel down decreases thickness all the way down to 0px; scrolling up increases it.
  • Total Outline Removal at 0px: At 0px, stroke-width is set to 0 and stroke to 'none', completely removing the stroke from both SVG and canvas rasterizers.
  • Automatic Restoration: When thickness is scrolled back up from 0px to 1px or higher, the arrow's previously active outline color is automatically restored from data-prev-stroke.

9. Compact Two-Tier Responsive Toolbar Layout (extensions/system-patches.js & style.css)

  • Top Row (.arrow-tip-top-row): Stacks the Tip Size slider ([ ▶ Tip: ──●── 100px ]), a vertical dividing rule, and dedicated Fill and Outline circular color buttons.
  • Bottom Row (.arrow-thickness-section): Separated by a clean horizontal rule (.arrow-tip-h-divider), features the Outline Width icon, - button, range slider, + button, and live pixel readout.
  • Mobile-Friendly Footprint: Reduces toolbar width from ~552px down to 320px (320px x 61px at 56% zoom), guaranteeing comfortable operation on mobile touchscreens and narrow browser viewports.
  • Intelligent Edge-Docking: When an arrow is positioned near the bottom margin of the publication paper, the toolbar automatically flips to dock above the arrow (.dock-top), preventing viewport clipping.

10. Synchronous Zero-Warp Live Resizing (canvas/interaction-mouse.js, canvas/interaction.js, & extensions/system-patches.js)

Hooked window.refreshSmartArrow(el, rawW, rawH, customHead) directly into the synchronous mousemove loop across all canvas interaction handlers and system patches. As the user drags outer resize handles, the tip sub-box, amber handle, and slider update synchronously with the outer selection box without visual lag or detachment.

11. Format Shape Contextual Ribbon Routing (ui/ui.js & ui/menus.js)

Selecting a Smart Arrow automatically activates the Drawing Tools / Format Shape contextual ribbon tab (#tab-format-shape). Users can apply theme palette fills, custom solid colors, gradients, outlines, border thickness, opacity, and drop shadows using the existing shape styling tools.

12. Offscreen High-Density Print Spooler Serialization (elements/arrow/arrow.js & extensions/print-engine.js)

Implemented window.bakeSmartArrowForPrint(arrowEl, 4.0) in the print engine. During buildPrintDOM (native browser print) and printFullDocument (PDF export), each Smart Arrow vector path is rasterized onto an offscreen 2D canvas at 4.0x print density (384+ DPI) using Canvas 2D Path2D commands and serialized to a high-resolution PNG <img> tag in the print staging area. Live workspace vector elements remain interactive and untouched.

13. Persistence & Page Lifecycle Integration (core/history.js & core/pages.js)

All arrow attributes (data-arrow-style, data-arrow-head-px, data-arrow-head-ratio, data-arrow-fill, data-arrow-stroke, data-arrow-stroke-width, data-prev-stroke) persist seamlessly across page serialization, undo/redo cycles, page additions, and .opub file loading.


🛠️ Files Modified

  • arrow.js: Created dedicated Smart Arrows Engine containing ARROW_CATALOG (28 presets), buildArrowPath, insertSmartArrow, refreshSmartArrow, getArrowTipInfo, setSmartArrowColor, setSmartArrowStrokeWidth, and bakeSmartArrowForPrint.
  • system-patches.js: Implemented renderSmartArrowTipControls and updateArrowTipOverlay with the compact two-tier floating action bar, tip slider, Fill/Outline color pickers, width slider, stepper buttons, and mouse wheel scroll handlers down to 0px.
  • style.css: Added CSS rules for .arrow-tip-container, .arrow-tip-subbox, .arrow-tip-badge, .arrow-tip-handle, .arrow-tip-slider-overlay, .arrow-tip-top-row, .arrow-tip-h-divider, .arrow-thickness-section, .arrow-thickness-step-btn, and complete dark mode overrides.
  • canvas.js: Enhanced syncHandleScaling to compute --arrow-ui-scale, --arrow-handle-size, and --arrow-handle-border on every zoom event.
  • interaction-mouse.js: Added mouse interaction handling for state.dragMode === 'arrow-tip', incorporating 2D rotation matrix projection for rotated arrows.
  • interaction.js: Integrated real-time Smart Arrow synchronization during multi-handle resize.
  • menus.js: Added the dedicated "Arrows" button to the Insert ribbon tab with dropdown gallery launcher.
  • ui.js: Connected contextual ribbon activation for Drawing Tools / Format Shape on Smart Arrow selection.
  • print-engine.js: Integrated bakeSmartArrowForPrint at 4.0x print supersampling in print DOM generation and PDF export.
  • core/history.js: Preserved arrow geometry, fill, stroke, and tip attributes in serializeCurrentPage().
  • core/pages.js: Ensured Smart Arrow attributes and elements render cleanly across page switching.
  • index.html: Bumped all 77 script, stylesheet, and module cachebusters across the application to ?v=5.3.0.
  • sw.js: Bumped Service Worker cache name to open-publisher-v5-3-0 and updated header comment.
  • pwa-install.js: Updated Service Worker registration to sw.js?v=5.3.0.
  • geo-defense.js: Updated version header comment to (v5.3.0).
  • dashboard.js: Synchronized template index and file fetch cachebusters to ?v=5.3.0.
  • templates.js: Synchronized template loaders to ?v=5.3.0.

🧪 Verification & Automated Testing

Test / Scenario Verification Metric Result Output Details
Smart Arrow Insertion Element creation and DOM wrapper Passed Vector arrow inserted with data-type="smart-arrow" and correct geometry
Parametric Stem Stretch Resize width from 260px to 600px Passed Shaft stretches smoothly while arrowhead dimensions remain locked
Aspect Ratio Preservation Height scaled from 60px to 120px Passed Tip scaled naturally from 42px to 84px without squashing or flattening
Inner Tip Sub-Box & Badge Overlay injection and label Passed .arrow-tip-subbox rendered with live badge: Tip: 42px / Tip: 84px
On-Canvas Amber Junction Handle 60fps interactive drag handle Passed Handle placed at junction; dragging resizes tip smoothly in real time
Rotated Vector Drag Math (-28 deg) Interactive mouse drag along angle Passed Projecting deltas into local coords resized tip cleanly along axis
Compact Two-Row Action Bar Bounding box screen dimensions at 56% zoom Passed Compact 320px x 61px layout fits mobile viewports without horizontal overflow
Fill Color Picker Color mutation and live swatch sync Passed Path fill set to #e11d48; swatch background updated; theme decoupled
Outline Color Picker Color mutation and live swatch sync Passed Path stroke set to #2563eb; swatch background updated; theme decoupled
Outline Thickness Slider Slider drag from 2px to 0px Passed Setting 0px applies stroke="none", stroke-width="0", and .no-color swatch
Mouse Wheel Thickness Scroll Wheel down events to 0px Passed Wheel scrolling down decrements thickness to 0px, removing outline
Color Restoration from 0px Wheel up events from 0px to 3px Passed Restores stroke="#2563eb" at 3px and removes .no-color swatch
Right-Click Transparency Toggle Context menu toggle on Fill and Outline Passed Toggles between custom color and none with visual diagonal strike-through
Zoom-Invariance (56% & 35%) Optical sizing via --arrow-ui-scale Passed Controls remain crisp and comfortably legible at fit-to-page zoom levels
High-Res Print Baking Native print spooler canvas export Passed Spooler canvas rendered at 4.0x resolution with custom colors intact
Browser Runtime Reliability Console error listeners Passed 0 JavaScript errors or unhandled exceptions

✅ Checklist Completed

  • [x] Dedicated Arrows Ribbon Button: Placed directly next to Shapes in the Graphics group on the Insert ribbon tab.
  • [x] Unified Dropdown Aesthetics: Matches Shapes dropdown with 1px teal-green border, 6px border radius, and theme drop shadow.
  • [x] Master Catalog of 28 Vector Presets: Created 28 arrow styles spanning Block, Notched & Shaped, Slender & Precision, and Hollow & Technical designs.
  • [x] Parametric Stem-Only Stretching: Dynamic path generator ensures element resizing stretches only the shaft, strictly locking arrowhead tip geometry.
  • [x] Aspect Ratio Preservation without Squashing: Replaced static caps with natural proportional scaling based on arrow cross-section.
  • [x] Inner Tip Sub-Selection Box & Live Badge: Rendered dashed amber bounding box around arrowhead tips with real-time pixel size readout.
  • [x] On-Canvas Amber Junction Handle: 60fps interactive drag handle positioned at the stem/tip junction for direct manipulation.
  • [x] Rotated Vector Drag Math: 2D rotation matrix projection translates mouse movement along the arrow axis at any rotation angle.
  • [x] Direct On-Canvas Color Pickers: Circular live swatches for Fill and Outline provide instant access to HSV spectrum, palette, and hex/rgb inputs.
  • [x] Right-Click Transparency Toggles: Right-clicking color swatches toggles transparency (none) with diagonal strike-through indicators.
  • [x] Outline Thickness Control with 0px Scroll: Range slider, stepper buttons, and mouse wheel scrolling down to 0px.
  • [x] Total Outline Removal & Restoration: At 0px, outline is completely removed; scrolling above 0px automatically restores the previous outline color.
  • [x] Compact Two-Tier Responsive Toolbar: Stacked layout reduces toolbar width to 320px, optimizing usability on mobile and narrow viewports.
  • [x] Intelligent Edge-Docking: Toolbar automatically flips above the arrow when within 75px of the page bottom to prevent clipping.
  • [x] Zoom-Invariant UI Optical Scaling: All handles, badges, and toolbar controls scale inversely with canvas zoom (--arrow-ui-scale), ensuring comfort and legibility at 56%, 35%, or 200% zoom.
  • [x] Synchronous Zero-Warp Live Resizing: Real-time stem and tip updates on every mousemove frame across all canvas interaction loops.
  • [x] Contextual Ribbon Integration: Automatically activates the Format Shape ribbon tab on selection for fills, strokes, and shadows.
  • [x] High-Density (4.0x) Print Spooler PNG Serialization: Offscreen Canvas 2D rasterization guarantees 100% vector fidelity and 0-pixel offset in physical print and PDF export.
  • [x] Page Lifecycle & Undo/Redo Persistence: Arrow geometry and styling attributes persist seamlessly across page transitions and history states.
  • [x] Full Version 5.3.0 Synchronization: Updated Service Worker cache (open-publisher-v5-3-0), PWA installer, module headers, and all 77 cachebusters in index.html.
  • [x] Automated Verification: Validated via automated Playwright test suite with verified screenshot artifacts and 0 console errors.

Screenshot 2026-10-03 160420 Screenshot 2026-10-03 160459 arrows

🎉 Version 5.3.0 - Open Publisher

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