UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

29 lines (22 loc) 778 B
import { Factory } from "./../core/factory"; import { BaseLineMark } from "./base/base-line"; import { registerAreaGraphic } from "@visactor/vgrammar-core"; import { registerVGrammarLineOrAreaAnimation } from "../animation/config"; export class AreaMark extends BaseLineMark { constructor() { super(...arguments), this.type = AreaMark.type; } _getDefaultStyle() { return Object.assign(Object.assign({}, super._getDefaultStyle()), { lineWidth: 0 }); } _getIgnoreAttributes() { return []; } } AreaMark.type = "area"; export const registerAreaMark = () => { Factory.registerMark(AreaMark.type, AreaMark), registerAreaGraphic(), registerVGrammarLineOrAreaAnimation(); }; //# sourceMappingURL=area.js.map