{"id":20206861,"url":"https://github.com/tomgp/simplify-line","last_synced_at":"2025-03-03T09:44:32.824Z","repository":{"id":2653642,"uuid":"47075380","full_name":"tomgp/simplify-line","owner":"tomgp","description":"A drop in replacement for D3s line generator that intelligently simplifies the line data","archived":false,"fork":false,"pushed_at":"2022-12-02T13:48:51.000Z","size":1038,"stargazers_count":29,"open_issues_count":10,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-15T11:03:03.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/tomgp.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}},"created_at":"2015-11-29T18:40:32.000Z","updated_at":"2023-09-22T00:04:53.000Z","dependencies_parsed_at":"2023-01-13T12:00:07.936Z","dependency_job_id":null,"html_url":"https://github.com/tomgp/simplify-line","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/tomgp%2Fsimplify-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgp%2Fsimplify-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgp%2Fsimplify-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgp%2Fsimplify-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomgp","download_url":"https://codeload.github.com/tomgp/simplify-line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241644543,"owners_count":19996177,"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-14T05:26:25.943Z","updated_at":"2025-03-03T09:44:32.804Z","avatar_url":"https://github.com/tomgp.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What it is?\n\nA simplified path generator for D3, more or less a drop in replacement for d3.line with the added ability to specify a tolerance.\n\n## Usage\n\nInstall and use via npm `npm install --save @tomgp/simplify-line` \n\n```\nconst { simplifiedLine } = require('simplify-line');\n\nconst simple = simplePath()\n\t.tolerance(3)\n\t.x(function(d){ return dateScale(d.date); })\n\t.y(function(d){ return valueScale(d.value); })\n```\n\t\nBased on Simplify.js a tiny high-performance JavaScript polyline simplification library by Vladimir Agafonkin, extracted from Leaflet, a JS interactive maps library by the same author. \n\nIt uses a combination of Douglas-Peucker and Radial Distance algorithms.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgp%2Fsimplify-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomgp%2Fsimplify-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgp%2Fsimplify-line/lists"}