{"id":13721174,"url":"https://github.com/caryll/shapeops","last_synced_at":"2025-05-07T13:31:53.648Z","repository":{"id":108438626,"uuid":"65522652","full_name":"caryll/shapeops","owner":"caryll","description":"Boolean operations and overlap removal for curves.","archived":false,"fork":false,"pushed_at":"2017-12-01T13:40:15.000Z","size":99,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-14T10:38:32.701Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caryll.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}},"created_at":"2016-08-12T04:14:33.000Z","updated_at":"2022-11-17T12:34:40.000Z","dependencies_parsed_at":"2023-06-01T02:00:25.695Z","dependency_job_id":null,"html_url":"https://github.com/caryll/shapeops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caryll%2Fshapeops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caryll%2Fshapeops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caryll%2Fshapeops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caryll%2Fshapeops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caryll","download_url":"https://codeload.github.com/caryll/shapeops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252886455,"owners_count":21819720,"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-08-03T01:01:13.337Z","updated_at":"2025-05-07T13:31:53.236Z","avatar_url":"https://github.com/caryll.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/caryll/design/master/caryll-logo-libs-githubreadme.png\" width=200\u003e\u003c/p\u003e\u003ch1 align=\"center\"\u003ecaryll / shapeops\u003c/h1\u003e\nBoolean operations and overlap removal for curves.\n\n## Usage\n\n```javascript\nvar caryllShapeOps = require('caryll-shapeops');\nvar shape1 = [[\n  {x:0, y:0, on:true}, \n  {x:100, y:0, on:false}, \n  {x:200, y:100, on:false}, \n  {x:200, y:200, on:true},\n  {x:0, y:0, on:true}\n], ...];\nvar shape2 = [...];\nvar result = caryllShapeOps.boole(caryllShapeOps.ops.intersection, shape1, shap2);\n```\n\n* `caryllShapeOps.boole(operator, shape1, shap2, fillRule1=caryllShapeOps.fillRules.evenodd, fillrule2=caryllShapeOps.fillRules.evenodd, resolution=100)` Perform boolean operation over `shape1` and `shape2` using given operator.\n* `caryllShapeOps.removeOverlap(shape, fillRule=caryllShapeOps.fillrules.evenodd, resolution=100)` Remove overlap area under specified filling rule.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaryll%2Fshapeops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaryll%2Fshapeops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaryll%2Fshapeops/lists"}