@univerjs/sheets-formula 0.1.15 → 0.1.16

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.
@@ -17,6 +17,7 @@ export declare class ActiveDirtyController extends Disposable {
17
17
  private _getSetRangeValuesMutationDirtyRange;
18
18
  private _getMoveRangeMutationDirtyRange;
19
19
  private _getMoveRowsMutationDirtyRange;
20
+ private _getReorderRangeMutationDirtyRange;
20
21
  private _getDeleteRangeMutationDirtyRange;
21
22
  private _getRemoveRowOrColumnMutation;
22
23
  private _getRemoveSheetMutation;
@@ -63,4 +63,21 @@ export declare function refRangeFormula(oldFormulaData: IFormulaData, newFormula
63
63
  * └──────────────────┴─────┴───┴───┴───────────┴─────┘
64
64
  */
65
65
  export declare function formulaDataItemToCellData(formulaDataItem: Nullable<IFormulaDataItem>): Nullable<ICellData>;
66
+ /**
67
+ * Transfer the formulaDataItem to the cellData, contains formula
68
+ * ┌────────────────────────────────┬─────────────────┐
69
+ * │ IFormulaDataItem │ ICellData │
70
+ * ├──────────────────┬─────┬───┬───┼───────────┬─────┤
71
+ * │ f │ si │ x │ y │ f │ si │
72
+ * ├──────────────────┼─────┼───┼───┼───────────┼─────┤
73
+ * │ =SUM(1) │ │ │ │ =SUM(1) │ │
74
+ * │ │ id1 │ │ │ │ id1 │
75
+ * │ =SUM(1) │ id1 │ │ │ =SUM(1) │ │
76
+ * │ =SUM(1) │ id1 │ 0 │ 0 │ =SUM(1) │ │
77
+ * │ =SUM(1) │ id1 │ 0 │ 1 │ =SUM(1) │ │
78
+ * └──────────────────┴─────┴───┴───┴───────────┴─────┘
79
+ *
80
+ * The fifth case: The value f of the formula is already the result value. If the formula content of si contains #REF, it cannot be obtained from the formula offset of si, and the result value must be stored directly
81
+ */
82
+ export declare function formulaDataItemToCellDataFormula(formulaDataItem: Nullable<IFormulaDataItem>): Nullable<ICellData>;
66
83
  export declare function isFormulaDataItem(cell: IFormulaDataItem): boolean;