UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

18 lines (14 loc) 409 B
import { CoordinateComponent as CC } from '../runtime'; import { FisheyeCoordinate } from '../spec'; export type FisheyeOptions = FisheyeCoordinate; /** * Fisheye */ export const Fisheye: CC<FisheyeOptions> = ({ focusX = 0, focusY = 0, distortionX = 2, distortionY = 2, visual = false, }) => [['fisheye', focusX, focusY, distortionX, distortionY, visual]]; Fisheye.props = { transform: true };