Polyline.js 424 B

123456789101112131415161718192021222324
  1. var Path = require("../Path");
  2. var polyHelper = require("../helper/poly");
  3. /**
  4. * @module zrender/graphic/shape/Polyline
  5. */
  6. var _default = Path.extend({
  7. type: 'polyline',
  8. shape: {
  9. points: null,
  10. smooth: false,
  11. smoothConstraint: null
  12. },
  13. style: {
  14. stroke: '#000',
  15. fill: null
  16. },
  17. buildPath: function (ctx, shape) {
  18. polyHelper.buildPath(ctx, shape, false);
  19. }
  20. });
  21. module.exports = _default;