All Projects → antvis → coord

antvis / coord

Licence: MIT license
Toolkit for apply point transformations for vector.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to coord

cube-coordinates
Unity package providing a cube coordinate system for building and using hexagonal tiles for gameplay.
Stars: ✭ 23 (-37.84%)
Mutual labels:  coordinate-systems
EvenVizion
Camera localization and video stabilization component. Fixed coordinates system. Using Python and OpenCV.
Stars: ✭ 38 (+2.7%)
Mutual labels:  coordinate-systems
blender-importer-unity
A tool to fix orientation issues from Blender to Unity
Stars: ✭ 23 (-37.84%)
Mutual labels:  coordinate-systems
erkir
Երկիր (Erkir) - a C++ library for geodesic and trigonometric calculations
Stars: ✭ 26 (-29.73%)
Mutual labels:  coordinate-systems
Lattice2
FreeCAD workbench about arrays of all sorts and kinds, and local coordinate systems
Stars: ✭ 40 (+8.11%)
Mutual labels:  coordinate-systems

@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]

📎 Links

📮 Contribution

$ git clone [email protected]:antvis/coord.git

$ cd coord

$ npm i

$ npm t

Then send a pull request after coding.

📄 License

MIT@AntV.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].