npm.io
0.3.5 • Published 3 years ago

@antv/attr

Licence
MIT
Version
0.3.5
Deps
4
Size
57 kB
Vulns
0
Weekly
0
Stars
12

@antv/attr

Mapping data to visual AES.

npm package NPM downloads Percentage of issues still open

Installing

npm install @antv/attr

Usage

import { getAttribute } from '@antv/adjust';

// contains Color, Opacity, Position, Shape, Size
const Color = getAttribute('color');

const color = new Color({/* ... */});

// mapping data to color
const r = color.mapping('杭州');

License

MIT

Keywords