12345678910111213141516171819202122 |
- import { IElement as IBaseElement, IGroup as IBaseGroup, IShape as IBaseShape } from '@antv/g-base';
- import Defs from './defs';
- export * from '@antv/g-base';
- export interface IElement extends IBaseElement {
- /**
- * 裁剪和绘制图形元素
- * @param {Defs} context 上下文
- */
- draw(context: Defs, targetAttrs?: any): any;
- }
- export interface IGroup extends IBaseGroup {
- /**
- * 创建分组容器,对应 <g> 元素
- * @return {SVGGElement} 分组容器
- */
- createDom(): SVGGElement;
- }
- export interface IShape extends IBaseShape {
- type: string;
- canFill: boolean;
- canStroke: boolean;
- }
|