@visactor/vchart
Version:
charts lib based @visactor/VGrammar
33 lines (24 loc) • 979 B
JavaScript
import { Factory } from "./../core/factory";
import { BaseMark } from "./base/base-mark";
import { registerRectAnimation } from "../animation/config";
import { registerRect, registerShadowRoot } from "@visactor/vrender-kits";
import { registerRectDataLabel } from "@visactor/vrender-components";
import { createRect } from "@visactor/vrender-core";
export class RectMark extends BaseMark {
constructor() {
super(...arguments), this.type = RectMark.type;
}
_getDefaultStyle() {
return Object.assign(Object.assign({}, super._getDefaultStyle()), {
width: void 0,
height: void 0,
lineWidth: 0
});
}
}
RectMark.type = "rect";
export const registerRectMark = () => {
registerShadowRoot(), registerRect(), registerRectDataLabel(), Factory.registerMark(RectMark.type, RectMark),
registerRectAnimation(), Factory.registerGraphicComponent("rect", createRect);
};
//# sourceMappingURL=rect.js.map