Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antvis/attr
Attribute mapping module for @antvis.
https://github.com/antvis/attr
attribute mapping
Last synced: about 2 months ago
JSON representation
Attribute mapping module for @antvis.
- Host: GitHub
- URL: https://github.com/antvis/attr
- Owner: antvis
- License: mit
- Created: 2018-06-21T08:04:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T02:37:47.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T21:05:30.225Z (2 months ago)
- Topics: attribute, mapping
- Language: TypeScript
- Homepage:
- Size: 808 KB
- Stars: 12
- Watchers: 41
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @antv/attr
> Mapping data to visual AES.
![](https://img.shields.io/badge/language-javascript-red.svg)
![](https://img.shields.io/badge/license-MIT-000000.svg)
[![npm package](https://img.shields.io/npm/v/@antv/attr.svg)](https://www.npmjs.com/package/@antv/attr)
[![NPM downloads](http://img.shields.io/npm/dm/@antv/attr.svg)](https://npmjs.org/package/@antv/attr)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/attr.svg)](http://isitmaintained.com/project/antvis/attr "Percentage of issues still open")## Installing
```bash
npm install @antv/attr
```## Usage
```js
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