UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

30 lines (23 loc) 971 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.registerPathMark = exports.PathMark = void 0; const factory_1 = require("./../core/factory"), base_mark_1 = require("./base/base-mark"), vrender_bridge_1 = require("../vrender-bridge"); class PathMark extends base_mark_1.BaseMark { constructor() { super(...arguments), this.type = PathMark.type; } _getDefaultStyle() { return Object.assign(Object.assign({}, super._getDefaultStyle()), { lineWidth: 0, path: "" }); } } exports.PathMark = PathMark, PathMark.type = "path"; const registerPathMark = () => { factory_1.Factory.registerMark(PathMark.type, PathMark), (0, vrender_bridge_1.registerShadowRoot)(), (0, vrender_bridge_1.registerPath)(), factory_1.Factory.registerGraphicComponent("path", vrender_bridge_1.createPath); }; exports.registerPathMark = registerPathMark; //# sourceMappingURL=path.js.map