RadarMapPainter constructor

RadarMapPainter(
  1. double w,
  2. double top,
  3. RadarMapModel radarMap,
  4. WidthHeight _widthHeight,
  5. List<Rect> node,
  6. TapModel tab,
  7. double skewing, {
  8. TextStyle? textStyle,
  9. LineText? lineText,
  10. DialogText? dilogText,
  11. OutLineText? outLineText,
  12. Listenable? repaint,
})

Implementation

RadarMapPainter(this.w,this.top,this.radarMap,this._widthHeight, this.node,this.tab,this.skewing,{this.textStyle,this.lineText,this.dilogText,this.outLineText,Listenable? repaint}) :super(repaint: repaint){
  mLinePath = Path();
  mDialogPath = Path();
  mLinePaint = Paint()
    ..color = Colors.grey
    ..style = PaintingStyle.stroke
    ..strokeWidth = 0.008 * radarMap.radius
    ..isAntiAlias = true;
  mDialogPaint = Paint() //填充画笔
    ..color = const Color(0xE64C4C4C)
    ..isAntiAlias = true;
  mFillPaint = Paint() //填充画笔
    ..strokeWidth = 0.05 * radarMap.radius
    ..color = Colors.black
    ..isAntiAlias = true;
  mLineInnerPaint = Paint()
    ..strokeWidth = 1.5
    ..style = PaintingStyle.stroke
    ..strokeJoin = StrokeJoin.round;
  mAreaPaint = Paint()..isAntiAlias = true;
  elementLength = radarMap.indicator.length;
}