Skip to content

v2.1.0

Choose a tag to compare

@almasumdev almasumdev released this 29 Aug 20:14
· 124 commits to main since this release

Added

  • Split panes. sheet.splitPanes(xSplit:, ySplit:, topLeftCell:) creates
    independently scrolling panes (positions in twips), complementing
    freezePanes. Read back via sheet.splitX and sheet.splitY; splits
    round-trip and are mutually exclusive with frozen panes.
  • More formula functions: MAXIFS, MINIFS, DATEDIF, REPLACE,
    MROUND, ISEVEN, ISODD.
  • XLOOKUP enhancements: wildcard match mode and reverse search mode.
  • Chart read-back. Charts in an opened workbook are parsed into
    sheet.charts (type, title, series, categories, grouping, legend, axis
    titles, anchor). Existing charts still round-trip untouched.
  • Chart.plotVisibleOnly. Set it to false to plot data kept in hidden
    rows and columns.
  • Chart.anchorTo. When set, the chart is written as a two-cell anchor
    spanning anchor to anchorTo, so it lines up with the grid and resizes
    with the columns and rows instead of using a fixed pixel size.
  • Pivot-table read-back. Pivots in an opened workbook are parsed into
    sheet.pivotTables (name, anchor, source range, row, column, page, and
    nested fields, and data fields with their aggregation). Existing pivots
    still round-trip untouched; an unmodeled pivot shape is preserved on save
    but omitted from the list.

Fixed

  • Left-aligned cell padding (indent) is no longer dropped. Indented
    left-aligned cells now emit an explicit left alignment so the padding
    applies.
  • No more orphaned drawing part. The blank-workbook template shipped an
    empty drawing, so the first chart or image left a stranded part that
    stricter importers could mishandle. Fresh charts and images now land in a
    single clean drawing part, and blank workbooks are smaller.
  • Authored charts bake in cached values. Series embed their resolved
    values and category labels, so consumers that do not re-evaluate (notably
    LibreOffice, and charts over hidden rows) no longer draw empty plots.
  • Authored chart series have explicit colors. LibreOffice rendered
    color-less series as invisible; each series and slice now gets an explicit
    Office accent color, and charts gain sensible gap, axis, and blank-handling
    defaults.
  • Explicit column widths are no longer written as best-fit. Width-honoring
    apps (notably Google Sheets) re-fit such columns to their contents,
    collapsing empty columns and skewing merged layouts. A width set through the
    API now writes as a fixed width; only auto-fit columns keep the flag.
  • The worksheet dimension reflects the real used range instead of the
    template's single-cell claim, so consumers that trust it no longer drop
    custom widths outside it.
  • Authored charts get an explicit white background, so the chart and plot
    areas no longer render transparent in LibreOffice.