projects/make-a-vis/src/lib/shared/services/export/exportToPdfOptions.type.ts
Properties |
| assumePt |
assumePt:
|
Type : boolean
|
| colorCallback |
colorCallback:
|
Type : Function
|
| documentCallback |
documentCallback:
|
Type : Function
|
| fontCallback |
fontCallback:
|
Type : Function
|
| height |
height:
|
Type : number
|
| imageCallback |
imageCallback:
|
Type : Function
|
| precision |
precision:
|
Type : number
|
| preserveAspectRatio |
preserveAspectRatio:
|
Type : string
|
| useCSS |
useCSS:
|
Type : boolean
|
| warningCallback |
warningCallback:
|
Type : Function
|
| width |
width:
|
Type : number
|
import { InjectionToken } from '@angular/core';
export interface ExportToPdfOptions {
width: number;
height: number;
preserveAspectRatio: string;
useCSS: boolean;
fontCallback: Function;
imageCallback: Function;
documentCallback: Function;
colorCallback: Function;
warningCallback: Function;
assumePt: boolean;
precision: number;
}
export type PdfOptions = Partial<ExportToPdfOptions>;
export const pdfOptionsToken = new InjectionToken<PdfOptions>('Pdf options', {
providedIn: 'root',
factory: () => ({})
});