Skip to content

@feds01/graphika


@feds01/graphika / core/point

core/point

Classes

default

Defined in: core/point.ts:37

Constructors

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

Defined in: core/point.ts:48

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:49
data.xpublicnumber-core/point.ts:49
data.ypublicnumber-core/point.ts:49
xpublicnumberSince v0.0.1 This is the 'real' x-coordinate of the point.core/point.ts:41
ypublicnumberSince v0.0.1 This is the 'real' y-coordinate of the point.core/point.ts:46

Methods

draw()
ts
draw(): void;

Defined in: core/point.ts:83

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.