import TriangleNode from 'canvas-graph-creator/src/js/data/node/triangle-node.js'
Constructor Summary
Public Constructor | ||
public |
constructor(x: number, y: number) Constructs a TriangleNode instance. |
Member Summary
Public Members | ||
public |
inscribed: * |
|
public |
|
Inherited Summary
From class Node | ||
public |
x: * |
|
public |
y: * |
|
public abstract |
containsPoint(x: number, y: number) Check if the node contains the given point. |
|
public abstract |
distanceToPoint(x: number, y: number) Find the distance from the node's coordinates to a given point. |
|
public abstract |
draw(context: CanvasRenderingContext2D) Draw the node on the given canvas context. |
|
public |
drawLabel(context: CanvasRenderingContext2D) Draw the Label object associated with this node. |
|
public abstract |
edgePointInDirection(x: number, y: number) Find the point on the edge of the node in the direction of the given point. |
|
public abstract |
getAnglePoint(angle: number) Get the point on the edge of the node at the given angle. |
|
public |
Update the node position. |
From class PolygonNode | ||
public |
label: * |
|
public |
containsPoint(x: number, y: number): boolean Check if the node contains the given point. |
|
public |
distanceToPoint(x: number, y: number): number Find the distance from the node's coordinates to a given point. |
|
public |
draw(context: CanvasRenderingContext2D) Draw the node on the given canvas context. |
|
public |
drawAcceptingState(context: CanvasRenderingContext2D) Draw additional objects to display the node as an accepting state on the given canvas context. |
|
public |
drawStartingState(context: CanvasRenderingContext2D) Draw additional objects to display the node as a starting state on the given canvas context. |
|
public |
edgePointInDirection(x: number, y: number): Object Find the point on the edge of the node in the direction of the given point. |
|
public |
getAnglePoint(arbangle: number): Object Get the point on the edge of the node at the given angle. |