Skip to content

@feds01/graphika


@feds01/graphika / core/point

core/point ​

Classes ​

default ​

Defined in: core/point.ts:42

Constructors ​

Constructor ​
ts
new default(data, graph): default;

Defined in: core/point.ts:53

Parameters ​
ParameterType
data{ x: number; y: number; }
data.xnumber
data.ynumber
graphdefault
Returns ​

default

Properties ​

PropertyModifierTypeDescriptionDefined in
datareadonly{ x: number; y: number; }-core/point.ts:54
data.xpublicnumber-core/point.ts:54
data.ypublicnumber-core/point.ts:54
xpublicnumberSince v0.0.1 This is the 'real' x-coordinate of the point.core/point.ts:46
ypublicnumberSince v0.0.1 This is the 'real' y-coordinate of the point.core/point.ts:51

Methods ​

draw() ​
ts
draw(): void;

Defined in: core/point.ts:65

Returns ​

void

Since ​

v0.0.1 This function is a simple draw function which will just draw a circle at the calculated x & y points, this saves higher level functions from accessing x, y and drawing circles.

Released under the ISC License.