Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.22.7
Name Modified Size InfoDownloads / Week
Parent folder
5.22.7_ Numerical Object Positioning _ Sizing (Dimensions) source code.tar.gz 2026-11-17 123.3 MB
5.22.7_ Numerical Object Positioning _ Sizing (Dimensions) source code.zip 2026-11-17 123.8 MB
README.md 2026-11-17 7.4 kB
OpenPublisher5-i386-windowsXP.exe 2026-11-17 56.5 MB
openpublisher5g_amd64-windows.exe 2026-11-17 81.1 MB
openpublisher5_amd64-windows-portable.exe 2026-11-17 183.2 MB
openpublisher5_amd64-windows.exe 2026-11-17 165.2 MB
openpublisher5_amd64-macos.dmg 2026-11-17 233.1 MB
openpublisher5_amd64-linux.run 2026-11-17 193.4 MB
openpublisher5_amd64-linux.rpm 2026-11-17 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-11-17 153.6 MB
openpublisher5_amd64-linux.deb 2026-11-17 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-11-17 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-11-17 185.5 MB
Totals: 14 Items   2.0 GB 0

πŸ“‹ Summary

Version 5.22.7 implements GitHub Issue [#12], adding numerical positioning (X, Y) and sizing (W, H) controls for text boxes, pictures, shapes, WordArt, tables, and other canvas objects via the Ribbon, a dedicated Size and Position dialog, a Dimensions properties sidebar, and the right-click context menu without relying on rulers:

  1. Unified Dimension Engine (ui/modals/size-position-modal.js, DimensionControlService): Added window.DimensionControlService on top of UnitConversionService to convert between canvas pixels and physical units (cm, mm, in, pt, px), parse both . and , decimal separators as well as inline unit overrides (such as 8.4 cm, 2.5 in, or 120 px), enforce Lock aspect ratio, and keep all UI inputs synchronized two-way with canvas interactions (extensions/system-patches.js, renderSelectionOverlays).
  2. Ribbon Size & Position Controls (ui/ui.js, index.html, style.css): Upgraded the contextual ribbon sizeGroup to include X, Y, W, and H numerical spinners, active unit display, Lock Ratio, and a Dialog launcher across Text Box Tools, WordArt Tools, Table Design, Picture Tools, and Drawing Tools. Added a Size & Position button in Home -> Arrange and a Dimensions sidebar toggle in View -> Show.
  3. Size and Position Dialog, Dimensions Sidebar & Context Menu (ui/modals/size-position-modal.js, ui/menus.js): Added window.showSizePositionModal() (with Position, Dimensions & Scale, Rotation, Page Centering, Reset Size, Apply/OK/Cancel, Undo history push, and ? Help modal), window.toggleDimensionsPane() (an acrylic glass #op-dimensions-sidebar panel with X, Y, W, H, unit selector, Apply/Edit, and nudge buttons), and Size and Position... right-click context menu items.

op-NumericalObjectPositioningAndSizing


πŸ› οΈ Key Improvements

1. Numerical Ribbon Controls Across All Object Types (ui/ui.js, index.html, style.css)

  • Full X, Y, W, H Ribbon Spinners (sizeGroup):
  • Replaced the pixel-only W / H inputs in ContextRibbonSystem.init() with .ribbon-dim-input fields and .dim-spinner steppers for horizontal position (X), vertical position (Y), width (W), and height (H) in the active document unit (state.unit, defaulting to cm).
  • Added ${sizeGroup} to Text Box Tools (#ribbon-format-text), WordArt Tools (#ribbon-format-wordart), and Table Design (#ribbon-table-design), alongside Picture Tools (#ribbon-format-pic) and Drawing Tools (#ribbon-format-shape).
  • Supports Enter to commit, Arrow Up / Down (plus Shift for larger increments), and click-and-hold continuous spinning (holdSpinRibbon / stopSpinRibbon, matching the font size spinner with a 400ms initial delay and 75ms repeat interval) to move or resize smoothly, while ContextRibbonSystem.updateTabs and hideAllTabs sync or clear the ribbon inputs cleanly.
  • Home & View Ribbon Launchers (index.html):
  • Added Size & Position inside Home -> Arrange (window.showSizePositionModal()) and Dimensions inside View -> Show (#ribbon-view-dim-pane calling window.toggleDimensionsPane()).

2. Size and Position Modal Dialog & Context Menu (ui/modals/size-position-modal.js, ui/menus.js)

  • Dedicated Precision Dialog (window.showSizePositionModal):
  • Displays Object Position (#sp-input-x, #sp-input-y from page top-left), Dimensions & Scale (#sp-input-w, #sp-input-h, #sp-input-lock), Rotation & Page Centering (#sp-input-rot, horizontal/vertical center buttons), Reset Size (for images with natural dimensions), and live Apply / OK / Cancel with snapshot revert on Cancel and pushHistory() on commit.
  • Includes a .sp-help-icon-btn Help button (window.showSizePositionHelp) styled with the standard translucent white hover highlight.
  • Right-Click Context Menu (ui/menus.js):
  • Added Size and Position... to the Picture, Text Box, and Universal Object context menus so any selected canvas object can open the dialog directly.

3. Dimensions Properties Sidebar & Two-Way Canvas Sync (ui/modals/size-position-modal.js, extensions/system-patches.js)

  • Acrylic Dimensions Sidebar (#op-dimensions-sidebar):
  • Provides a compact X, Y, W, H grid (#sidebar-dim-x, #sidebar-dim-y, #sidebar-dim-w, #sidebar-dim-h), unit selector (cm, in, mm, pt, px), Lock aspect ratio toggle, Apply and Edit... buttons, and directional Move / Width+ / Height+ nudge controls.
  • Real-Time Canvas Synchronization (extensions/system-patches.js):
  • Hooked window.DimensionControlService.sync() into window.renderSelectionOverlays() so dragging, resizing, or rotating an object on #paper updates the Ribbon, Dimensions Sidebar, and open Dialog values automatically without overwriting an actively focused input.

πŸ”„ Version Synchronization (v5.22.7)

Component Target Version Updated Reference
Size & Position Engine, Dialog & Sidebar v5.22.7 ui/modals/size-position-modal.js, style.css
Ribbon Dimensions & Context Menus v5.22.7 ui/ui.js, ui/menus.js
Canvas Overlay Two-Way Sync v5.22.7 extensions/system-patches.js
Application Assets & Cache Busting v5.22.7 index.html
Service Worker & Cache Store open-publisher-v5-22-7-1 sw.js
Watermark & Print Engines v5.22.7 extensions/watermark-engine.js, extensions/print-engine.js
AI Assistant & UI Interactions v5.22.7 extensions/ai-assistant.js, extensions/ui-interactions.js
PWA Registration & Templates v5.22.7 extensions/pwa-install.js, elements/templates/templates.js
Dashboard, 404 Router, & Badges v5.22.7 ui/dashboard.js, 404.html, README.md

βœ… Checklist Completed

  • [x] Create DimensionControlService, window.showSizePositionModal(), and window.toggleDimensionsPane() in ui/modals/size-position-modal.js with physical unit conversions (cm, in, mm, pt, px), comma/dot decimal parsing, aspect ratio lock, and Undo/Redo history support
  • [x] Upgrade sizeGroup in ui/ui.js to include X, Y, W, H spinners, active unit badge, Lock Ratio, and Dialog button across Text Box Tools, WordArt Tools, Table Design, Picture Tools, and Drawing Tools
  • [x] Add Size & Position to Home -> Arrange, Dimensions to View -> Show, and size-position-modal.js script include in index.html
  • [x] Add Size and Position... to object right-click context menus in ui/menus.js and live two-way sync inside window.renderSelectionOverlays() (extensions/system-patches.js)
  • [x] Add .dim-spinner, .sp-help-icon-btn, and #op-dimensions-sidebar styles in style.css
  • [x] Synchronize version strings and cachebusters from 5.22.6 to 5.22.7 across index.html, sw.js, 404.html, README.md, ui/dashboard.js, elements/templates/templates.js, and extensions/*.js

πŸš€ Version 5.22.7 - Open Publisher

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