21 lines
643 B
Java
21 lines
643 B
Java
import { __extends } from "tslib";
|
|
import Path from './path';
|
|
/** 引入 Path 对应的 ShapeFactory */
|
|
import './shape/line';
|
|
/**
|
|
* Line 几何标记。
|
|
* 常用于折线图的绘制。
|
|
*/
|
|
var Line = /** @class */ (function (_super) {
|
|
__extends(Line, _super);
|
|
function Line(cfg) {
|
|
var _this = _super.call(this, cfg) || this;
|
|
_this.type = 'line';
|
|
var _a = cfg.sortable, sortable = _a === void 0 ? true : _a; // Line 默认会对数据按照 x 轴字段进行排序
|
|
_this.sortable = sortable;
|
|
return _this;
|
|
}
|
|
return Line;
|
|
}(Path));
|
|
export default Line;
|
|
//# sourceMappingURL=line.js.map |