{"id":20461394,"url":"https://github.com/antvis/coord","last_synced_at":"2025-05-08T21:20:25.827Z","repository":{"id":32985239,"uuid":"147610772","full_name":"antvis/coord","owner":"antvis","description":"Toolkit for apply point transformations for vector.","archived":false,"fork":false,"pushed_at":"2025-02-24T05:29:21.000Z","size":1023,"stargazers_count":43,"open_issues_count":1,"forks_count":6,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-05-06T09:08:23.437Z","etag":null,"topics":["coord","coordinate","coordinate-systems"],"latest_commit_sha":null,"homepage":"https://observablehq.com/@antv/wow-antv-coord","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antvis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-09-06T03:10:54.000Z","updated_at":"2025-04-04T03:48:27.000Z","dependencies_parsed_at":"2023-12-13T18:18:53.003Z","dependency_job_id":"5a4ce64e-9d98-420d-832c-49ba5b629690","html_url":"https://github.com/antvis/coord","commit_stats":{"total_commits":54,"total_committers":6,"mean_commits":9.0,"dds":"0.20370370370370372","last_synced_commit":"a02e131645008884139e1d9a498c9d451c9368cb"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fcoord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fcoord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fcoord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antvis%2Fcoord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antvis","download_url":"https://codeload.github.com/antvis/coord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149984,"owners_count":21861805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coord","coordinate","coordinate-systems"],"created_at":"2024-11-15T12:25:12.302Z","updated_at":"2025-05-08T21:20:25.807Z","avatar_url":"https://github.com/antvis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\u003cb\u003e@antv/coord\u003c/b\u003e\n\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n\nToolkit for mapping elements of sets into geometric objects. ([demo](https://observablehq.com/@pearmini/antv-coord))\n\n![examples](https://gw.alipayobjects.com/mdn/rms_026665/afts/img/A*3jseR7EZEBwAAAAAAAAAAAAAARQnAQ)\n\n[![Build Status](https://github.com/antvis/coord/workflows/build/badge.svg?branch=master)](https://github.com/antvis/coord/actions)\n[![Coverage Status](https://img.shields.io/coveralls/github/antvis/coord/master.svg)](https://coveralls.io/github/antvis/coord?branch=master)\n[![npm Version](https://img.shields.io/npm/v/@antv/coord.svg)](https://www.npmjs.com/package/@antv/coord)\n[![npm Download](https://img.shields.io/npm/dm/@antv/coord.svg)](https://www.npmjs.com/package/@antv/coord)\n[![npm License](https://img.shields.io/npm/l/@antv/coord.svg)](https://www.npmjs.com/package/@antv/coord)\n\n\u003c/div\u003e\n\n## ✨ Features\n\n- **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.\n- **Fixable**: It is a independent lib which means you can use it with other libs besides [G2](https://github.com/antvis/g2/), such as [D3](https://github.com/d3/d3) to create some awesome charts and animations.\n- **Fully embrace TypeScript**: All code are written in TypeScript and complete type definition files are provided.\n\n![bubbles](https://gw.alipayobjects.com/mdn/rms_026665/afts/img/A*G5jIQLRQ86QAAAAAAAAAAAAAARQnAQ)\n\n## 📦 Installation\n\n```bash\n$ npm install @antv/coord\n```\n\n## 🔨 Getting Started\n\n```ts\nimport { Coordinate, Options } from '@antv/coord';\n\nconst optons: Options = {\n  x: 0,\n  y: 0,\n  width: 500,\n  height: 500,\n  transformations: [['cartesian']]\n};\n\nconst coord = new Coordinate(options);\ncoord.transform('translate', 10, 10);\ncoord.map([0.5, 0.5]); // [260, 260]\ncoord.getSize(); // [500, 500]\ncoord.getCenter(); // [250, 250]\n```\n\n## 📎 Links\n\n- [Online Demo](https://observablehq.com/@pearmini/antv-coord)\n- [API Reference](./docs/api/README.md)\n\n## 📮 Contribution\n\n```bash\n$ git clone git@github.com:antvis/coord.git\n\n$ cd coord\n\n$ npm i\n\n$ npm t\n```\n\nThen send a pull request after coding.\n\n## 📄 License\n\nMIT@[AntV](https://github.com/antvis).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantvis%2Fcoord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantvis%2Fcoord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantvis%2Fcoord/lists"}