@antv/g2
Version:
the Grammar of Graphics in Javascript
23 lines (22 loc) • 589 B
TypeScript
import { Coordinate } from '../../../dependents';
import { Position, Shape, ShapeInfo } from '../../../interface';
/**
* @ignore
* Gets shape attrs
* @param cfg
* @param isStroke
* @param smooth
* @param registeredShape
* @param [constraint]
* @returns
*/
export declare function getShapeAttrs(cfg: ShapeInfo, isStroke: boolean, smooth: boolean, registeredShape: Shape, constraint?: Position[]): {
[x: string]: any;
};
/**
* @ignore
* Gets constraint
* @param coordinate
* @returns constraint
*/
export declare function getConstraint(coordinate: Coordinate): Position[];