util.d.ts 856 B

12345678910111213
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { MarkStyleCanvasType } from './typings';
  6. /** Returns the ratio of the device's physical pixel resolution to the css pixel resolution */
  7. export declare function getPixelRatio(): number;
  8. export declare function toLowercaseSeparator(key: keyof MarkStyleCanvasType): string;
  9. export declare function getStyleStr(style: MarkStyleCanvasType): string;
  10. /** Whether to re-render the watermark */
  11. export declare function reRendering(mutation: MutationRecord, watermarkElement?: HTMLElement): boolean;
  12. /** Rotate with the watermark as the center point */
  13. export declare function rotateWatermark(ctx: CanvasRenderingContext2D, rotateX: number, rotateY: number, rotate: number): void;