NumberPlane constructor
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(),
- VMobjectStyle backgroundLineStyle = DefaultBackgroundLineStyle,
- VMobjectStyle? fadedLineStyle,
- double xLineFrequency = 1,
- double yLineFrequency = 1,
- double fadedLineRatio = 1,
- 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);
}