callTradeLineReactPath method

dynamic callTradeLineReactPath(
  1. dynamic linePath,
  2. dynamic objList,
  3. dynamic type,
  4. dynamic zIndex,
  5. dynamic color,
  6. dynamic react,
  7. dynamic isBorder,
  8. dynamic strokeWidth,
  9. 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);
  }
}