Polygon.js 375 B

123456789101112131415161718192021
  1. var Path = require("../Path");
  2. var polyHelper = require("../helper/poly");
  3. /**
  4. * 多边形
  5. * @module zrender/shape/Polygon
  6. */
  7. var _default = Path.extend({
  8. type: 'polygon',
  9. shape: {
  10. points: null,
  11. smooth: false,
  12. smoothConstraint: null
  13. },
  14. buildPath: function (ctx, shape) {
  15. polyHelper.buildPath(ctx, shape, true);
  16. }
  17. });
  18. module.exports = _default;