UNPKG

@antv/attr

Version:

The Attribute module for G2, F2.

9 lines (8 loc) 316 B
import { AttributeCfg } from '../interface'; import Attribute from './base'; export type Value = number | string; export type MappingValue = Value[] | Value; export default class Position extends Attribute { constructor(cfg: AttributeCfg); mapping(x: MappingValue, y: MappingValue): (number | number[])[]; }