NumberPlane constructor

NumberPlane({
  1. double xMin = -FRAME_X_RADIUS,
  2. double xMax = FRAME_X_RADIUS,
  3. double yMin = -FRAME_Y_RADIUS,
  4. double yMax = FRAME_Y_RADIUS,
  5. Vector3 centerPoint = ORIGIN,
  6. AxisConfig axisConfig = DefaultAxisConfig,
  7. AxisConfig xAxisConfig = const AxisConfig(),
  8. AxisConfig yAxisConfig = const AxisConfig(),
  9. VMobjectStyle backgroundLineStyle = DefaultBackgroundLineStyle,
  10. VMobjectStyle? fadedLineStyle,
  11. double xLineFrequency = 1,
  12. double yLineFrequency = 1,
  13. double fadedLineRatio = 1,
  14. bool makeSmoothAfterApplyingFunctions = true,
})

Implementation

NumberPlane({
  double xMin = -FRAME_X_RADIUS,
  double xMax = FRAME_X_RADIUS,
  double yMin = -FRAME_Y_RADIUS,
  double yMax = FRAME_Y_RADIUS,
  Vector3 centerPoint = ORIGIN,
  AxisConfig axisConfig = DefaultAxisConfig,
  AxisConfig xAxisConfig = const AxisConfig(),
  AxisConfig yAxisConfig = const AxisConfig(),
  this.backgroundLineStyle = DefaultBackgroundLineStyle,
  this.fadedLineStyle,
  this.xLineFrequency = 1,
  this.yLineFrequency = 1,
  this.fadedLineRatio = 1,
  // TODO currently make smooth doesn't work
  bool makeSmoothAfterApplyingFunctions = true,
}) : super(
        xMin: xMin,
        xMax: xMax,
        yMin: yMin,
        yMax: yMax,
        centerPoint: centerPoint,
        axisConfig: axisConfig,
        xAxisConfig: xAxisConfig,
        yAxisConfig: yAxisConfig,
      ) {
  this.makeSmoothAfterApplyingFunctions = makeSmoothAfterApplyingFunctions;
  initBackgroundLines();
  setStroke(width: backgroundLineStyle.strokeWidth);
}