{"id":20238000,"url":"https://github.com/basilfx/es6-geometry","last_synced_at":"2025-04-10T19:12:56.148Z","repository":{"id":44124845,"uuid":"53936193","full_name":"basilfx/es6-geometry","owner":"basilfx","description":"Collection of immutable ES6 classes for simple 2D geometric objects and calculations.","archived":false,"fork":false,"pushed_at":"2022-12-30T20:20:56.000Z","size":3127,"stargazers_count":3,"open_issues_count":16,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T16:55:07.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/basilfx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-15T10:39:55.000Z","updated_at":"2020-07-23T10:53:36.000Z","dependencies_parsed_at":"2023-01-31T15:45:54.976Z","dependency_job_id":null,"html_url":"https://github.com/basilfx/es6-geometry","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2Fes6-geometry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2Fes6-geometry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2Fes6-geometry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2Fes6-geometry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basilfx","download_url":"https://codeload.github.com/basilfx/es6-geometry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248280079,"owners_count":21077409,"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":[],"created_at":"2024-11-14T08:30:00.924Z","updated_at":"2025-04-10T19:12:56.132Z","avatar_url":"https://github.com/basilfx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ES6-Geometry\nCollection of immutable ES6 classes for simple 2D geometric objects and calculations.\n\n[![Build Status](https://travis-ci.org/basilfx/babel-plugin-transform-react-pure-components.svg?branch=master)](https://travis-ci.org/basilfx/babel-plugin-transform-react-pure-components)\n\n## Features\n* Immutable classes.\n* Statically typed using [Flow](https://flow.org).\n* Arguments checking (zero overhead in production).\n* Inspired by [Victor.js](http://victorjs.org/).\n\n## Installation\n`npm install --save es6-geometry`\n\n## Usage\nAs an example:\n\n```js\nimport { Point, Rectangle, Vector } from 'es6-geometry';\n\n// A vector is an offset with a certain length (magnitude) and direction.\nconst vector = Vector.fromArray([100, 100]);\n\n// A rectangle is defined by two points.\nconst rectangle = new Rectangle(\n    new Point(10, 10),\n    new Point(20, 20)\n);\n\n// Operations are immutable: rectangle remains untouched.\nconst newRectangle = rectangle.move(vector);\n```\n\nSee the documentation for more information.\n\n## Development\nTo (re)compile, run `npm run compile`. If you prefer to have a Webpack bundle, run `npm run bundle`.\n\nTests can be invoked using `npm run test`. Mocha is used as the test framework.\n\n## License\nSee the `LICENSE.md` file (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasilfx%2Fes6-geometry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasilfx%2Fes6-geometry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasilfx%2Fes6-geometry/lists"}