UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

28 lines (21 loc) 763 B
import { Factory } from "./../core/factory"; import { BaseMark } from "./base/base-mark"; import { registerPath, registerShadowRoot } from "@visactor/vrender-kits"; import { createPath } from "@visactor/vrender-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), registerShadowRoot(), registerPath(), Factory.registerGraphicComponent("path", createPath); }; //# sourceMappingURL=path.js.map