RadarMapPainter constructor
RadarMapPainter(
- double w,
- double top,
- RadarMapModel radarMap,
- WidthHeight _widthHeight,
- List<
Rect> node, - TapModel tab,
- double skewing, {
- TextStyle? textStyle,
- LineText? lineText,
- DialogText? dilogText,
- OutLineText? outLineText,
- 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;
}