JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 177658
  • Score
    100M100P100Q180763F
  • License MIT

Toolkit for mapping elements of sets into geometric objects.

Package Exports

  • @antv/coord
  • @antv/coord/lib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@antv/coord) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@antv/coord

Toolkit for mapping elements of sets into geometric objects.

Build Status Coverage Status npm Version npm Download npm License

✨ Features

  • Powerful
  • High performance
  • Fully embrace TypeScript

📦 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.