Skip to content

@feds01/graphika


@feds01/graphika / core/point

core/point

Classes

default

Defined in: core/point.ts:38

Constructors

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

Defined in: core/point.ts:49

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

Methods

draw()
ts
draw(): void;

Defined in: core/point.ts:61

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.