123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- import { __extends } from "tslib";
- import createSeriesData from '../helper/createSeriesData.js';
- import { makeInner } from '../../util/model.js';
- import SeriesModel from '../../model/Series.js';
- export var STYLE_VISUAL_TYPE = {
- color: 'fill',
- borderColor: 'stroke'
- };
- export var NON_STYLE_VISUAL_PROPS = {
- symbol: 1,
- symbolSize: 1,
- symbolKeepAspect: 1,
- legendIcon: 1,
- visualMeta: 1,
- liftZ: 1,
- decal: 1
- };
- ;
- export var customInnerStore = makeInner();
- var CustomSeriesModel = function (_super) {
- __extends(CustomSeriesModel, _super);
- function CustomSeriesModel() {
- var _this = _super !== null && _super.apply(this, arguments) || this;
- _this.type = CustomSeriesModel.type;
- return _this;
- }
- CustomSeriesModel.prototype.optionUpdated = function () {
- this.currentZLevel = this.get('zlevel', true);
- this.currentZ = this.get('z', true);
- };
- CustomSeriesModel.prototype.getInitialData = function (option, ecModel) {
- return createSeriesData(null, this);
- };
- CustomSeriesModel.prototype.getDataParams = function (dataIndex, dataType, el) {
- var params = _super.prototype.getDataParams.call(this, dataIndex, dataType);
- el && (params.info = customInnerStore(el).info);
- return params;
- };
- CustomSeriesModel.type = 'series.custom';
- CustomSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];
- CustomSeriesModel.defaultOption = {
- coordinateSystem: 'cartesian2d',
-
- z: 2,
- legendHoverLink: true,
-
-
-
- clip: false
-
-
-
-
-
-
-
- };
- return CustomSeriesModel;
- }(SeriesModel);
- export default CustomSeriesModel;
|