|
пре 1 година | |
---|---|---|
.. | ||
dist | пре 1 година | |
esm | пре 1 година | |
lib | пре 1 година | |
node_modules | пре 1 година | |
src | пре 1 година | |
LICENSE | пре 1 година | |
README.md | пре 1 година | |
package.json | пре 1 година |
Toolkit for mapping elements of sets into geometric objects. (demo)
$ npm install @antv/coord
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]
$ git clone git@github.com:antvis/coord.git
$ cd coord
$ npm i
$ npm t
Then send a pull request after coding.
MIT@AntV.