Skip to content

3.1.1 Grid

Jonas de Luna Skulberg edited this page Oct 14, 2023 · 2 revisions

Grid

You will usually not pass in any options to the Grid unless you don't want the axis. In that case just set hasAxis to false.

Extends:

Implements:

  • none

Parameters:

Required:

  • none

Optional:

  • cellSize?: number: Size of the background cells.
  • pointRadius?: number: Radius of the background points.
  • pointColor?: Color Color of the background points.
  • labels: boolean: Whether the axis should have labels.
  • yLabelText?: string Label text for the y-axis.
  • xLabelText?: string Label text for the x-axis.
  • hasAxis?: boolean Whether the grid should have x and y axis.

Default Parameters:

  cellSize: 10,
  pointRadius: 1.5,
  pointColor: new Color(0xe1e1e1),
  labels: true,
  xLabelText: "x",
  yLabelText: "y",
  hasAxis: true,

Implemented Methods:

  • none

Methods

  • none
Clone this wiki locally