Add freeze panes to worksheet views - #89
Merged
Merged
Conversation
Support for frozen panes (aka freeze panes) was added to the JSF format in jsfkit/types#59. This adds support for exporting freeze panes from .xlsx files to JSF-formatted JSON. Excel allows a worksheet view to be divided into panes: two panes stacked vertically, two panes stacked horizontally, or four panes that divide the sheet into quadrants. Excel supports splitting or freezing panes, but only the latter is supported in JSF. This is deliberate, because split panes is rarely used these days and likely only kept for backwards compatibility. Frozen panes lock top rows and/or left-most columns in place while the rest of the sheet scrolls beneath them. Dividers can't be dragged to resize panes and the frozen regions can't be scrolled. Pane sizes are measured in row and/or column offsets. xlsx-convert will now change OOXML like this: <sheetView tabSelected="1" workbookViewId="0"> <pane state="frozen" xSplit="1" ySplit="2" topLeftCell="C1" activePane="bottomRight"/> </sheetView> To JSF like this: { // WorksheetView object // ... "panes": { "type": "frozen", "columns": "1", "rows": "2", "firstVisibleCell": "C1", "activePane": "bottomEnd" } }
borgar
pushed a commit
that referenced
this pull request
Aug 19, 2026
A handful of tests that check `<sheetView>` cell/range selections are converted correctly. I added these while working on frozen panes (#89) but pulled them out into a seperate change.
Brings in the type changes required for frozen panes.
Contributor
Author
New version released and pulled in in cc45b69. |
flother
marked this pull request as ready for review
August 21, 2026 13:27
borgar
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support for frozen panes (aka freeze panes) was added to the JSF format in jsfkit/types#59. This adds support for exporting freeze panes from .xlsx files to JSF-formatted JSON.
Excel allows a worksheet view to be divided into panes: two panes stacked vertically, two panes stacked horizontally, or four panes that divide the sheet into quadrants. Excel supports splitting or freezing panes, but only the latter is supported in JSF. This is deliberate, because split panes is rarely used these days and likely only kept for backwards compatibility.
Frozen panes lock top rows and/or left-most columns in place while the rest of the sheet scrolls beneath them. Dividers can't be dragged to resize panes and the frozen regions can't be scrolled. Pane sizes are measured in row and/or column offsets.
xlsx-convert will now change OOXML like this:
To JSF like this:
{ // WorksheetView object // ... "panes": { "type": "frozen", "columns": "1", "rows": "2", "firstVisibleCell": "C1", "activePane": "bottomEnd" } }This requires a new release of the jsfkit/types package with the changes from jsfkit/types#59. Until then the typecheck CI job will fail.