Skip to content

3.1.1 Grid

Jonas de Luna Skulberg edited this page Jun 20, 2024 · 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.
  • latexLabeltext?: boolean Whether the input to the labels should be Latex
  • xLabelOffset?: InputPosition Offset for x-Label
  • yLabelOffset?: InputPosition Offset for y-Label

Default Parameters:

  cellSize: 10,
  pointRadius: 1.5,
  pointColor: new Color(0xe1e1e1),
  labels: true,
  xLabelText: "x",
  yLabelText: "y",
  hasAxis: true,
  latexLabeltext?: false;
  xLabelOffset?: [0,0],
  yLabelOffset?: [0,0],

Implemented Methods:

  • none

Methods

  • none
Clone this wiki locally