@gridsheet/preact-core 2.0.2 → 2.0.4
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/components/FormulaBar.d.ts +5 -1
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/dist/lib/structs.d.ts +7 -1
- package/package.json +1 -1
package/dist/lib/structs.d.ts
CHANGED
|
@@ -22,7 +22,13 @@ export declare const oa2aa: (oa: {
|
|
|
22
22
|
export declare const aa2oa: (aa: MatrixType, fields: string[]) => {
|
|
23
23
|
[s: string]: any;
|
|
24
24
|
}[];
|
|
25
|
-
|
|
25
|
+
type PutMatrixFilterProps<T = any> = {
|
|
26
|
+
srcValue: T;
|
|
27
|
+
dstValue: T;
|
|
28
|
+
srcPoint: PointType;
|
|
29
|
+
dstPoint: PointType;
|
|
30
|
+
};
|
|
31
|
+
export declare const putMatrix: <T = any>(dst: T[][], src: T[][], dstArea: AreaType, filter?: (arg: PutMatrixFilterProps) => boolean) => MatricesByAddress<T>;
|
|
26
32
|
export declare const createMatrix: <T = any>(numRows: number, numCols: number, fill?: T) => T[][];
|
|
27
33
|
export declare const cropMatrix: <T = any>(matrix: T[][], area: AreaType) => T[][];
|
|
28
34
|
export declare const buildInitialCellsFromOrigin: ({ cells, ensured, matrix, flattenAs, origin, }: {
|