UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

25 lines (19 loc) 623 B
import { Factory } from "./../core/factory"; import { BaseMark } from "./base/base-mark"; import { registerPathGraphic } from "@visactor/vgrammar-core"; export class PathMark extends BaseMark { constructor() { super(...arguments), this.type = PathMark.type; } _getDefaultStyle() { return Object.assign(Object.assign({}, super._getDefaultStyle()), { lineWidth: 0, path: "" }); } } PathMark.type = "path"; export const registerPathMark = () => { Factory.registerMark(PathMark.type, PathMark), registerPathGraphic(); }; //# sourceMappingURL=path.js.map