UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

21 lines 758 B
import { __extends } from "tslib"; import LineLayer from '../line/layer'; import { registerPlotType } from '../../base/global'; import * as _ from '@antv/util'; var StepLineLayer = /** @class */ (function (_super) { __extends(StepLineLayer, _super); function StepLineLayer() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'step-line'; // 覆写父类的 type return _this; } StepLineLayer.getDefaultOptions = function () { return _.deepMix({}, _super.getDefaultOptions.call(this), { step: 'hv', }); }; return StepLineLayer; }(LineLayer)); export { StepLineLayer }; registerPlotType('step-line', StepLineLayer); //# sourceMappingURL=layer.js.map