Icard/angular-clarity-master(work.../node_modules/canvg/lib/Property.d.ts

46 lines
1.6 KiB
TypeScript

import { Axis } from './ViewPort';
import Document, { Element } from './Document';
export default class Property<T = any> {
private readonly document;
private readonly name;
private value;
static empty(document: Document): Property<string>;
static readonly textBaselineMapping: {
baseline: string;
'before-edge': string;
'text-before-edge': string;
middle: string;
central: string;
'after-edge': string;
'text-after-edge': string;
ideographic: string;
alphabetic: string;
hanging: string;
mathematical: string;
};
private isNormalizedColor;
constructor(document: Document, name: string, value: T);
split(separator?: string): Property<string>[];
hasValue(zeroIsValue?: boolean): boolean;
isString(regexp?: RegExp): boolean;
isUrlDefinition(): boolean;
isPixels(): boolean;
setValue(value: T): this;
getValue(def?: T): T;
getNumber(def?: T): number;
getString(def?: T): string;
getColor(def?: T): string;
getDpi(): number;
getRem(): number;
getEm(): number;
getUnits(): string;
getPixels(axis?: Axis, processPercent?: boolean): number;
getPixels(isFontSize?: boolean): number;
getMilliseconds(): number;
getRadians(): number;
getDefinition<T extends Element>(): T;
getFillStyleDefinition(element: Element, opacity: Property): string | CanvasPattern | CanvasGradient;
getTextBaseline(): string;
addOpacity(opacity: Property): Property<string>;
}
//# sourceMappingURL=Property.d.ts.map