Socket
Socket
Sign inDemoInstall

@antv/coord

Package Overview
Dependencies
10
Maintainers
67
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @antv/coord

Toolkit for mapping elements of sets into geometric objects.


Version published
Weekly downloads
123K
increased by3.18%
Maintainers
67
Install size
3.31 MB
Created
Weekly downloads
 

Readme

Source

@antv/coord

Toolkit for mapping elements of sets into geometric objects. (demo)

examples

Build Status Coverage Status npm Version npm Download npm License

✨ Features

  • Powerful: Not only does @antv/coord provide some basic affine transformations(translate, rotate, scale, etc.), it also provide some advanced coordinate system transformations(polar, helix, parallel) and cool fisheye transformations.
  • Fixable: It is a independent lib which means you can use it with other libs besides G2, such as D3 to create some awesome charts and animations.
  • Fully embrace TypeScript: All code are written in TypeScript and complete type definition files are provided.

bubbles

📦 Installation

$ npm install @antv/coord

🔨 Getting Started

import { Coordinate, Options } from '@antv/coord';

const optons: Options = {
  x: 0,
  y: 0,
  width: 500,
  height: 500,
  transformations: [['cartesian']]
};

const coord = new Coordinate(options);
coord.transform('translate', 10, 10);
coord.map([0.5, 0.5]); // [260, 260]
coord.getSize(); // [500, 500]
coord.getCenter(); // [250, 250]

📮 Contribution

$ git clone git@github.com:antvis/coord.git

$ cd coord

$ npm i

$ npm t

Then send a pull request after coding.

📄 License

MIT@AntV.

Keywords

FAQs

Last updated on 23 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc