Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.21.4
Name Modified Size InfoDownloads / Week
Parent folder
5.21.4_ Auto-Retracting Shadow _ Glow Options Sidebar + Non-Destructive Preservation source code.tar.gz 2026-11-16 123.1 MB
5.21.4_ Auto-Retracting Shadow _ Glow Options Sidebar + Non-Destructive Preservation source code.zip 2026-11-16 123.7 MB
README.md 2026-11-16 6.5 kB
OpenPublisher5-i386-windowsXP.exe 2026-11-16 56.5 MB
openpublisher5g_amd64-windows.exe 2026-11-16 81.1 MB
openpublisher5_amd64-windows-portable.exe 2026-11-16 183.2 MB
openpublisher5_amd64-windows.exe 2026-11-16 165.2 MB
openpublisher5_amd64-macos.dmg 2026-11-16 233.1 MB
openpublisher5_amd64-linux.run 2026-11-16 193.4 MB
openpublisher5_amd64-linux.rpm 2026-11-16 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-11-15 153.6 MB
openpublisher5_amd64-linux.deb 2026-11-15 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-11-15 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-11-15 185.5 MB
Totals: 14 Items   2.0 GB 0

πŸ“‹ Summary

Version 5.21.4 fixes two closely related usability issues in the Shadow / Glow Options workflow (#op-shadow-sidebar):

  1. Auto-Retract on Click Away: The Shadow / Glow Options sidebar (#op-shadow-sidebar) now tracks its active owner element and automatically retracts whenever the user clicks away onto the canvas, switches to another element, enters multi-select, switches pages, or deletes the element.
  2. Non-Destructive Ribbon Behavior & Template Glow Preservation: Clicking Shadow or Glow on the ribbon no longer overwrites, toggles off, or replaces an existing shadow or glow (including glows/shadows defined in loaded .opub templates on .element-content, <img>, or <svg>). If a shadow or glow is already present, clicking Shadow or Glow simply opens the sidebar showing its real existing color, transparency, blur, and offset values; defaults are only applied when the element has no shadow or glow yet.
  3. Full CSS drop-shadow() Parser & Remove Button: Replaced the legacy regex parser in parseShadowToSliders() so browser-normalized color-first drop-shadow(rgb(...) 0px 0px 3px) strings, unitless 0 offsets, hex/named colors, and existing RGBA alpha values load accurately into every slider and #shadow-color-swatch, and added a dedicated Remove Shadow / Glow button inside the sidebar.

op-AdvancedShadowAndGlowEngineAndWorkspaceImprovements


πŸ› οΈ Key Improvements

1. Owner-Scoped Shadow / Glow Sidebar Lifecycle (ui/sidebar/shadow-pane.js)

  • window.syncShadowPaneForSelection(activeEl) & installShadowPaneAutoRetract(): Records the active owner element (window._shadowSidebarOwnerEl) when opening #op-shadow-sidebar and automatically retracts the panel on deselect(), element switching (currentEl !== owner), Ctrl+Click / marquee multi-select, page switches, or element deletion (executeDeleteElements), while keeping it open during slider/color-picker interactions or edits on the same element.
  • Unified drop-shadow() Detection & Migration (getElementDropShadowInfo, normalizeDropShadowForElement): Scans .element-content, element root, and inner <img>/<svg>/wrapper elements for existing drop-shadow(...) filters (such as glows saved on <img> or .element-content in .opub templates) and migrates legacy inner <img>/<svg> filters cleanly without altering their color, opacity, blur, or offset.
  • Browser-Normalized CSS Parser (parseDropShadowCss): Supports both color-first (drop-shadow(rgba(...) X Y blur)) and length-first (drop-shadow(X Y blur color)) formats, unitless 0 values, rgb/rgba/hsl/#hex/named colors, and keeps #shadow-color-swatch and #shadow-alpha-slider synced accurately.
  • Remove Shadow / Glow Control (#shadow-remove-btn): Added window.removeShadowFromSelected() inside #op-shadow-sidebar to cleanly remove any shadow/glow effect, update thumbnails/history, and close the sidebar.

2. Ribbon & Core Selection Sync (ui/ui.js, canvas/interaction.js, core/selection.js)

  • ContextRibbonActions._applyOrOpenShadowEffect() (ui/ui.js): Shared helper for both Shadow (addDropShadow) and Glow (addGlow). Preserves any existing drop-shadow(...) on the selected element (only opening #op-shadow-sidebar for inspection/editing), and applies the default black shadow or cyan glow only when no shadow/glow is currently set.
  • Canvas & Selection Synchronization (canvas/interaction.js, core/selection.js): Routed selectElement(), deselect(), and executeDeleteElements() through window.syncShadowPaneForSelection() so switching elements, deselecting, or deleting immediately syncs and retracts #op-shadow-sidebar.

πŸ”„ Version Synchronization (v5.21.4)

Component Target Version Updated Reference
Application Assets & Cache Busting v5.21.4 index.html
Service Worker & Cache Store open-publisher-v5-21-4-1 sw.js
Watermark & Print Engines v5.21.4 watermark-engine.js, print-engine.js
AI Assistant & UI Interactions v5.21.4 ai-assistant.js, ui-interactions.js
PWA Registration & Templates v5.21.4 pwa-install.js, templates.js
Dashboard, 404 Router, & Badges v5.21.4 dashboard.js, 404.html, README.md

βœ… Checklist Completed

  • [x] Track the active target element in ui/sidebar/shadow-pane.js and auto-retract #op-shadow-sidebar when clicking away, switching elements, multi-selecting, or deleting
  • [x] Preserve existing shadows/glows (including template .element-content and inner <img> glows) when clicking Shadow or Glow on the ribbon, applying defaults only when none exists
  • [x] Parse browser-normalized color-first and length-first drop-shadow() CSS values cleanly into sliders and #shadow-color-swatch
  • [x] Add Remove Shadow / Glow button (#shadow-remove-btn) inside #op-shadow-sidebar
  • [x] Live browser E2E verified (ExploringAbstractConcepts.opub teal glow preserved + sliders synced #007670 / 3px; posters_product_launch.opub inner <img> purple glow #7b1fa2 / 30px / 20% preserved & removed via #shadow-remove-btn; fresh element defaults + custom edit preservation + auto-retract; zero app JS errors)
  • [x] Synchronize version strings from 5.21.3 to 5.21.4 across core HTML/JS/SW files and README badges

πŸš€ Version 5.21.4 - Open Publisher

Source: README.md, updated 2026-11-16