UNPKG

@antv/g-base

Version:

A common util collection for antv projects

14 lines (12 loc) 260 B
import { SimpleBBox } from '../types'; import { IShape } from '../interfaces'; export default function (shape: IShape): SimpleBBox { const attrs = shape.attr(); const { x, y, width, height } = attrs; return { x, y, width, height, }; }