source: imaps-frontend/node_modules/konva/lib/shapes/Path.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.7 KB
Line 
1import { Shape, ShapeConfig } from '../Shape.js';
2import { GetSet, PathSegment } from '../types.js';
3export interface PathConfig extends ShapeConfig {
4 data?: string;
5}
6export declare class Path extends Shape<PathConfig> {
7 dataArray: PathSegment[];
8 pathLength: number;
9 constructor(config?: PathConfig);
10 _readDataAttribute(): void;
11 _sceneFunc(context: any): void;
12 getSelfRect(): {
13 x: number;
14 y: number;
15 width: number;
16 height: number;
17 };
18 getLength(): number;
19 getPointAtLength(length: any): {
20 x: any;
21 y: any;
22 } | null;
23 data: GetSet<string, this>;
24 static getLineLength(x1: any, y1: any, x2: any, y2: any): number;
25 static getPathLength(dataArray: PathSegment[]): number;
26 static getPointAtLengthOfDataArray(length: number, dataArray: any): {
27 x: any;
28 y: any;
29 } | null;
30 static getPointOnLine(dist: any, P1x: any, P1y: any, P2x: any, P2y: any, fromX?: any, fromY?: any): {
31 x: any;
32 y: any;
33 };
34 static getPointOnCubicBezier(pct: any, P1x: any, P1y: any, P2x: any, P2y: any, P3x: any, P3y: any, P4x: any, P4y: any): {
35 x: number;
36 y: number;
37 };
38 static getPointOnQuadraticBezier(pct: any, P1x: any, P1y: any, P2x: any, P2y: any, P3x: any, P3y: any): {
39 x: number;
40 y: number;
41 };
42 static getPointOnEllipticalArc(cx: number, cy: number, rx: number, ry: number, theta: number, psi: number): {
43 x: number;
44 y: number;
45 };
46 static parsePathData(data: any): PathSegment[];
47 static calcLength(x: any, y: any, cmd: any, points: any): any;
48 static convertEndpointToCenterParameterization(x1: any, y1: any, x2: any, y2: any, fa: any, fs: any, rx: any, ry: any, psiDeg: any): any[];
49}
Note: See TracBrowser for help on using the repository browser.