@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
| Parameter | Type |
|---|---|
data | { x: number; y: number; } |
data.x | number |
data.y | number |
graph | default |
Returns
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
data | readonly | { x: number; y: number; } | - | core/point.ts:49 |
data.x | public | number | - | core/point.ts:49 |
data.y | public | number | - | core/point.ts:49 |
x | public | number | Since v0.0.1 This is the 'real' x-coordinate of the point. | core/point.ts:41 |
y | public | number | Since 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.