Skip to content

feat: (esign) introduce viewOptions for document layout and deprecate layoutMode and layoutMargins#1957

Merged
harbournick merged 2 commits intomainfrom
andrii/sd-1789-esign-component-not-passing-web-view-parameter
Feb 6, 2026
Merged

feat: (esign) introduce viewOptions for document layout and deprecate layoutMode and layoutMargins#1957
harbournick merged 2 commits intomainfrom
andrii/sd-1789-esign-component-not-passing-web-view-parameter

Conversation

@andrii-harbour
Copy link
Contributor

  • Added viewOptions to control document layout with options for 'web' and 'print'.
  • Deprecated layoutMode and layoutMargins, recommending CSS for margin control.
  • Updated documentation and examples to reflect the new configuration.

… layoutMode and layoutMargins

- Added `viewOptions` to control document layout with options for 'web' and 'print'.
- Deprecated `layoutMode` and `layoutMargins`, recommending CSS for margin control.
- Updated documentation and examples to reflect the new configuration.
@andrii-harbour andrii-harbour self-assigned this Feb 5, 2026
@linear
Copy link

linear bot commented Feb 5, 2026

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22204e04c8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good! make sure to test it locally and make sure it works with the new options

after addressing relevant comments feel free to merge

- Improved the logic for setting `viewOptions` to ensure it falls back to `layoutMode` when `viewOptions` is an empty object.
- Updated the documentation to clarify the recommended usage of `viewOptions` for SuperDoc versions greater than 1.6.x.
- Added a test case to verify the fallback behavior for layout options.
@harbournick harbournick merged commit 93e1b69 into main Feb 6, 2026
5 checks passed
@harbournick harbournick deleted the andrii/sd-1789-esign-component-not-passing-web-view-parameter branch February 6, 2026 00:37
@superdoc-bot
Copy link

superdoc-bot bot commented Feb 6, 2026

🎉 This PR is included in esign v2.1.0-next.4

The release is available on GitHub release

@superdoc-bot
Copy link

superdoc-bot bot commented Feb 6, 2026

🎉 This PR is included in superdoc v1.11.0-next.19

The release is available on GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants