blob: 3504d3d67d700be77ee4622fcde7cb23b6c67675 [file] [log] [blame]
/**
* 多边形
* @module zrender/shape/Polygon
*/
import Path from '../Path';
import * as polyHelper from '../helper/poly';
export default Path.extend({
type: 'polygon',
shape: {
points: null,
smooth: false,
smoothConstraint: null
},
buildPath: function (ctx, shape) {
polyHelper.buildPath(ctx, shape, true);
}
});