jspreadsheet 9.1.17 → 9.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -558,6 +558,10 @@ declare namespace jspreadsheet {
558
558
  tableHeight?: number | string;
559
559
  /** Define the table overflow width. Example: '800px' */
560
560
  tableWidth?: number | string;
561
+ /** Virtualization for columns. Works only when tableOverflow: true. Default: true */
562
+ virtualizationX?: boolean;
563
+ /** Virtualization for rows. Works only when tableOverflow: true. Default: true */
564
+ virtualizationY: boolean;
561
565
  /** Initial comments. Default: null */
562
566
  comments?: Record<string, string>;
563
567
  /** Initial meta information. Default: null */
@@ -797,8 +801,8 @@ declare namespace jspreadsheet {
797
801
  getLabel: (cellName: string) => Object;
798
802
  /** Get the processed data cell shown to the user by its coordinates */
799
803
  getLabelFromCoords: (x: number, y: number) => string[];
800
- /** Get the merged cells. Cell name: A1, A2, etc */
801
- getMerge: (cellName: string) => Object | Array<number>;
804
+ /** Get the merged cells. Cell name: A1, A2, etc or null for all cells */
805
+ getMerge: (cellName?: string) => Object | Array<number>;
802
806
  /** Get one or all meta information for one cell. */
803
807
  getMeta: (cellName: string, property: string) => Object;
804
808
  /** Get the nested cells */
@@ -907,8 +911,8 @@ declare namespace jspreadsheet {
907
911
  refreshBorders: (border?: string) => void;
908
912
  /** Refresh footers */
909
913
  refreshFooter: () => void;
910
- /** Remove the merged cells by the cell name */
911
- removeMerge: (cellName: String) => void;
914
+ /** Remove the merged cells by the cell name or a object with all cells to be removed. */
915
+ removeMerge: (cellName: String | Object) => void;
912
916
  /** Reset the borders by name border name */
913
917
  resetBorders: (border: String, resetPosition: boolean) => void;
914
918
  /** Close the filters */
@@ -980,7 +984,7 @@ declare namespace jspreadsheet {
980
984
  /** Set the height of one row by its position */
981
985
  setHeight: (row: number, width: number) => void;
982
986
  /** Get the merged cells. Cellname: A1, A2, etc */
983
- setMerge: (cellName: String, colspan: number, rowspan: number, forceOverwrite?: boolean) => void;
987
+ setMerge: (cellName: String | Object, colspan?: number, rowspan?: number, forceOverwrite?: boolean) => void;
984
988
  /** Get one or various meta information for one cell. */
985
989
  setMeta: (cell: string | object, property?: string, value?: string) => void;
986
990
  /** Set the nested headers */