[79a0317] | 1 | import { RenderingContext2D } from '../types';
|
---|
| 2 | import Point from '../Point';
|
---|
| 3 | import BoundingBox from '../BoundingBox';
|
---|
| 4 | import PathParser from '../PathParser';
|
---|
| 5 | import Document from './Document';
|
---|
| 6 | import RenderedElement from './RenderedElement';
|
---|
| 7 | export declare type Marker = [Point, number];
|
---|
| 8 | export default class PathElement extends RenderedElement {
|
---|
| 9 | type: string;
|
---|
| 10 | readonly pathParser: PathParser;
|
---|
| 11 | constructor(document: Document, node: HTMLElement, captureTextNodes?: boolean);
|
---|
| 12 | path(ctx?: RenderingContext2D): BoundingBox;
|
---|
| 13 | getBoundingBox(_?: RenderingContext2D): BoundingBox;
|
---|
| 14 | getMarkers(): Marker[];
|
---|
| 15 | renderChildren(ctx: RenderingContext2D): void;
|
---|
| 16 | static pathM(pathParser: PathParser): {
|
---|
| 17 | point: Point;
|
---|
| 18 | };
|
---|
| 19 | protected pathM(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 20 | static pathL(pathParser: PathParser): {
|
---|
| 21 | current: Point;
|
---|
| 22 | point: Point;
|
---|
| 23 | };
|
---|
| 24 | protected pathL(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 25 | static pathH(pathParser: PathParser): {
|
---|
| 26 | current: Point;
|
---|
| 27 | point: Point;
|
---|
| 28 | };
|
---|
| 29 | protected pathH(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 30 | static pathV(pathParser: PathParser): {
|
---|
| 31 | current: Point;
|
---|
| 32 | point: Point;
|
---|
| 33 | };
|
---|
| 34 | protected pathV(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 35 | static pathC(pathParser: PathParser): {
|
---|
| 36 | current: Point;
|
---|
| 37 | point: Point;
|
---|
| 38 | controlPoint: Point;
|
---|
| 39 | currentPoint: Point;
|
---|
| 40 | };
|
---|
| 41 | protected pathC(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 42 | static pathS(pathParser: PathParser): {
|
---|
| 43 | current: Point;
|
---|
| 44 | point: Point;
|
---|
| 45 | controlPoint: Point;
|
---|
| 46 | currentPoint: Point;
|
---|
| 47 | };
|
---|
| 48 | protected pathS(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 49 | static pathQ(pathParser: PathParser): {
|
---|
| 50 | current: Point;
|
---|
| 51 | controlPoint: Point;
|
---|
| 52 | currentPoint: Point;
|
---|
| 53 | };
|
---|
| 54 | protected pathQ(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 55 | static pathT(pathParser: PathParser): {
|
---|
| 56 | current: Point;
|
---|
| 57 | controlPoint: Point;
|
---|
| 58 | currentPoint: Point;
|
---|
| 59 | };
|
---|
| 60 | protected pathT(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 61 | static pathA(pathParser: PathParser): {
|
---|
| 62 | currentPoint: Point;
|
---|
| 63 | rX: number;
|
---|
| 64 | rY: number;
|
---|
| 65 | sweepFlag: 0 | 1;
|
---|
| 66 | xAxisRotation: number;
|
---|
| 67 | centp: Point;
|
---|
| 68 | a1: number;
|
---|
| 69 | ad: number;
|
---|
| 70 | };
|
---|
| 71 | protected pathA(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 72 | static pathZ(pathParser: PathParser): void;
|
---|
| 73 | protected pathZ(ctx: RenderingContext2D, boundingBox: BoundingBox): void;
|
---|
| 74 | }
|
---|
| 75 | //# sourceMappingURL=PathElement.d.ts.map |
---|