@antv/attr
Advanced tools
Comparing version 0.3.2 to 0.3.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Attribute = exports.registerAttribute = exports.getAttribute = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ var base_1 = require("./attributes/base"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Size = exports.Shape = exports.Position = exports.Opacity = exports.Color = exports.Attribute = exports.getAttribute = exports.registerAttribute = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -17,4 +18,4 @@ var base_1 = require("./attributes/base"); | ||
var factory_1 = require("./factory"); | ||
exports.getAttribute = factory_1.getAttribute; | ||
exports.registerAttribute = factory_1.registerAttribute; | ||
Object.defineProperty(exports, "getAttribute", { enumerable: true, get: function () { return factory_1.getAttribute; } }); | ||
Object.defineProperty(exports, "registerAttribute", { enumerable: true, get: function () { return factory_1.registerAttribute; } }); | ||
factory_1.registerAttribute('Color', color_1.default); | ||
@@ -21,0 +22,0 @@ factory_1.registerAttribute('Opacity', opacity_1.default); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Scale = void 0; | ||
var scale_1 = require("@antv/scale"); | ||
exports.Scale = scale_1.Scale; | ||
Object.defineProperty(exports, "Scale", { enumerable: true, get: function () { return scale_1.Scale; } }); | ||
//# sourceMappingURL=interface.js.map |
{ | ||
"name": "@antv/attr", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "The Attribute module for G2, F2.", | ||
@@ -9,2 +9,3 @@ "main": "lib/index.js", | ||
"files": [ | ||
"src", | ||
"lib", | ||
@@ -11,0 +12,0 @@ "esm", |
# @antv/attr | ||
[![](https://img.shields.io/travis/antvis/attr.svg)](https://travis-ci.org/antvis/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) | ||
@@ -12,16 +13,27 @@ [![NPM downloads](http://img.shields.io/npm/dm/@antv/attr.svg)](https://npmjs.org/package/@antv/attr) | ||
## Installing | ||
`npm install @antv/attr` | ||
```bash | ||
npm install @antv/attr | ||
``` | ||
## Usage | ||
```js | ||
import { getAttribute, registerAttribute, Attribute } from '@antv/attr'; | ||
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('杭州'); | ||
``` | ||
## API | ||
See details at https://antv.alipay.com | ||
## License | ||
## Contributing | ||
MIT |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
58234
66
1116
39