@sv-print/hiprint 0.3.23 → 0.3.25
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 +4 -3
- package/dist/index.js +982 -990
- package/dist/index.mjs +10549 -10546
- package/dist/index.umd.js +982 -990
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -188,7 +188,7 @@ export declare interface PrintElementTypeGroup {
|
|
|
188
188
|
|
|
189
189
|
export declare interface PrintElementTypeManager {
|
|
190
190
|
buildByHtml(el: any): void;
|
|
191
|
-
build(el: any, type: string, render
|
|
191
|
+
build(el: any, type: string, render?: (list: any) => any): void;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
export declare interface PrinterInfo {
|
|
@@ -209,7 +209,7 @@ export declare class PrintTemplate {
|
|
|
209
209
|
container: any;
|
|
210
210
|
editingPanel: Array<any>;
|
|
211
211
|
printPanels: Array<any>;
|
|
212
|
-
design: (container: string, option
|
|
212
|
+
design: (container: string, option?: { grid?: boolean; activePanel?: boolean; adaptToSize?: boolean }) => any;
|
|
213
213
|
buildPagination: (container: string) => void;
|
|
214
214
|
update: (json: PrintTemplateJson, panelIndex?: number, history?: boolean) => any;
|
|
215
215
|
print: (
|
|
@@ -218,6 +218,7 @@ export declare class PrintTemplate {
|
|
|
218
218
|
ext?: {
|
|
219
219
|
callback?: () => void;
|
|
220
220
|
styleHandler?: () => string;
|
|
221
|
+
statusCallback?: (status: any) => void;
|
|
221
222
|
}
|
|
222
223
|
) => void;
|
|
223
224
|
print2: (data: PrintData, options?: Print2Options) => void;
|
|
@@ -228,7 +229,7 @@ export declare class PrintTemplate {
|
|
|
228
229
|
rotatePaper: () => void;
|
|
229
230
|
setPaper: (width: number, height: number) => void;
|
|
230
231
|
getOrient: () => number;
|
|
231
|
-
zoom: (scale: number) => void;
|
|
232
|
+
zoom: (scale: number, save?: boolean, toHistory?: boolean) => void;
|
|
232
233
|
undo: () => any;
|
|
233
234
|
redo: () => any;
|
|
234
235
|
getPrintStyle: () => string;
|