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.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 注册字体实体
3
+ */
4
+ export type RegisterFontModel = {
5
+ /** 字体名称,如:宋体 */
6
+ name: string;
7
+ /** 字体类型,如:normal 、bold 、italic 、bolditalic */
8
+ type: string;
9
+ /** 字体文件地址 */
10
+ url: string;
11
+ };
@@ -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
  };
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapid-spreadjs",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "SpreadJS常用公用处理函数,包括设计器、工作簿和工作表的相关处理函数。",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",