Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/attr

Package Overview
Dependencies
Maintainers
57
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/attr - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

src/attributes/base.ts

1

lib/factory.js
"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");

5

lib/index.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc