callTradeLineReactPath method
dynamic
callTradeLineReactPath(
- dynamic linePath,
- dynamic objList,
- dynamic type,
- dynamic zIndex,
- dynamic color,
- dynamic react,
- dynamic isBorder,
- dynamic strokeWidth,
- dynamic strokeColor,
Implementation
callTradeLineReactPath(linePath, objList, type, zIndex, color, react,
isBorder, strokeWidth, strokeColor) {
//背景
var lineDataPath = {
'drawType': 'drawRect',
'type': type,
'zIndex': zIndex,
'stroke': {
'color': color,
'style': PaintingStyle.fill,
},
'linePath': [
["drawRect", react]
],
};
linePath.add(lineDataPath);
objList.add(lineDataPath);
//边框
if (isBorder) {
var lineDataBorderPath = {
'drawType': 'drawRect',
'type': type,
'zIndex': zIndex + 1,
'stroke': {
'color': strokeColor,
'style': PaintingStyle.stroke,
'strokeWidth': strokeWidth,
},
'linePath': [
["drawRect", react]
],
};
linePath.add(lineDataBorderPath);
objList.add(lineDataBorderPath);
}
}