UNPKG

1.11 kBTypeScriptView Raw
1import { EdgeBase } from "./util/edge-base";
2import { EdgeFormattingValues, Label, EdgeOptions, Point, PointT, SelectiveRequired, VBody, VNode } from "./util/types";
3/**
4 * A Straight Edge.
5 */
6export declare class StraightEdge extends EdgeBase {
7 /**
8 * Create a new instance.
9 *
10 * @param options - The options object of given edge.
11 * @param body - The body of the network.
12 * @param labelModule - Label module.
13 */
14 constructor(options: EdgeOptions, body: VBody, labelModule: Label);
15 /** @inheritDoc */
16 protected _line(ctx: CanvasRenderingContext2D, values: SelectiveRequired<EdgeFormattingValues, "shadowColor" | "shadowSize" | "shadowX" | "shadowY">): void;
17 /** @inheritDoc */
18 getViaNode(): undefined;
19 /** @inheritDoc */
20 getPoint(position: number): Point;
21 /** @inheritDoc */
22 protected _findBorderPosition(nearNode: VNode, ctx: CanvasRenderingContext2D): PointT;
23 /** @inheritDoc */
24 protected _getDistanceToEdge(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): number;
25}
26//# sourceMappingURL=straight-edge.d.ts.map
\No newline at end of file