rapid-spreadjs 1.0.27 → 1.0.29
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.cjs.js +154 -71
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +154 -71
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/types/wookbook.d.ts +11 -0
- package/dist/utils/sheet.d.ts +6 -0
- package/dist/utils/wookbook.d.ts +7 -0
- package/package.json +1 -1
package/dist/utils/sheet.d.ts
CHANGED
|
@@ -154,4 +154,10 @@ export declare const SheetUtils: {
|
|
|
154
154
|
* @param isAutoSize 是否自适应单元格大小(默认为:true)
|
|
155
155
|
*/
|
|
156
156
|
setSheetCellDate: (GC: any, sheet: any, cells: CellDateModel[], isAutoSize?: boolean) => void;
|
|
157
|
+
/**
|
|
158
|
+
* 根据单元格范围获取范围字符串
|
|
159
|
+
* @param cellRange 单元格范围
|
|
160
|
+
* @returns 返回范围字符串,如:A1:B2
|
|
161
|
+
*/
|
|
162
|
+
getRangeStr: (cellRange: CellModel) => string;
|
|
157
163
|
};
|
package/dist/utils/wookbook.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RegisterFontModel } from '../types/wookbook';
|
|
1
2
|
/**
|
|
2
3
|
* SpreadJS工作簿工具函数属性
|
|
3
4
|
*/
|
|
@@ -47,4 +48,10 @@ export declare const WorkbookUtils: {
|
|
|
47
48
|
* @returns 合并后的工作簿实例
|
|
48
49
|
*/
|
|
49
50
|
mergeWorkbooksToExcel: (GC: any, spreads: any[], exportName?: string) => Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* 注册字体(主要为导出PDF使用)
|
|
53
|
+
* @param GC Spread的GC对象
|
|
54
|
+
* @param regFonts 字体配置集合
|
|
55
|
+
*/
|
|
56
|
+
registerFont: (GC: any, regFonts: RegisterFontModel[]) => Promise<unknown>;
|
|
50
57
|
};
|