utils.d.ts 728 B

12345678910
  1. import type { CSSProperties } from 'vue';
  2. /** converting camel-cased strings to be lowercase and link it with Separato */
  3. export declare function toLowercaseSeparator(key: string): string;
  4. export declare function getStyleStr(style: CSSProperties): string;
  5. /** Returns the ratio of the device's physical pixel resolution to the css pixel resolution */
  6. export declare function getPixelRatio(): number;
  7. /** Rotate with the watermark as the center point */
  8. export declare function rotateWatermark(ctx: CanvasRenderingContext2D, rotateX: number, rotateY: number, rotate: number): void;
  9. /** Whether to re-render the watermark */
  10. export declare const reRendering: (mutation: MutationRecord, watermarkElement?: HTMLElement) => boolean;