source: imaps-frontend/node_modules/canvg/lib/Property.d.ts

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.6 KB
Line 
1import { Axis } from './ViewPort';
2import Document, { Element } from './Document';
3export default class Property<T = any> {
4 private readonly document;
5 private readonly name;
6 private value;
7 static empty(document: Document): Property<string>;
8 static readonly textBaselineMapping: {
9 baseline: string;
10 'before-edge': string;
11 'text-before-edge': string;
12 middle: string;
13 central: string;
14 'after-edge': string;
15 'text-after-edge': string;
16 ideographic: string;
17 alphabetic: string;
18 hanging: string;
19 mathematical: string;
20 };
21 private isNormalizedColor;
22 constructor(document: Document, name: string, value: T);
23 split(separator?: string): Property<string>[];
24 hasValue(zeroIsValue?: boolean): boolean;
25 isString(regexp?: RegExp): boolean;
26 isUrlDefinition(): boolean;
27 isPixels(): boolean;
28 setValue(value: T): this;
29 getValue(def?: T): T;
30 getNumber(def?: T): number;
31 getString(def?: T): string;
32 getColor(def?: T): string;
33 getDpi(): number;
34 getRem(): number;
35 getEm(): number;
36 getUnits(): string;
37 getPixels(axis?: Axis, processPercent?: boolean): number;
38 getPixels(isFontSize?: boolean): number;
39 getMilliseconds(): number;
40 getRadians(): number;
41 getDefinition<T extends Element>(): T;
42 getFillStyleDefinition(element: Element, opacity: Property): string | CanvasPattern | CanvasGradient;
43 getTextBaseline(): string;
44 addOpacity(opacity: Property): Property<string>;
45}
46//# sourceMappingURL=Property.d.ts.map
Note: See TracBrowser for help on using the repository browser.