{"id":18801923,"url":"https://github.com/sporto/polylinear-scale","last_synced_at":"2026-01-04T18:30:16.411Z","repository":{"id":62419569,"uuid":"99857835","full_name":"sporto/polylinear-scale","owner":"sporto","description":"A polylinear scale for Elm","archived":false,"fork":false,"pushed_at":"2018-08-30T06:14:57.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T19:58:35.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/sporto/polylinear-scale/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sporto.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":"2017-08-09T22:28:43.000Z","updated_at":"2019-11-08T23:17:18.000Z","dependencies_parsed_at":"2022-11-01T17:00:40.246Z","dependency_job_id":null,"html_url":"https://github.com/sporto/polylinear-scale","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporto%2Fpolylinear-scale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporto%2Fpolylinear-scale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporto%2Fpolylinear-scale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporto%2Fpolylinear-scale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sporto","download_url":"https://codeload.github.com/sporto/polylinear-scale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239735263,"owners_count":19688262,"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-07T22:25:48.605Z","updated_at":"2026-01-04T18:30:16.373Z","avatar_url":"https://github.com/sporto.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm Polylinear Scale\n\nCreate a polylinear scales and map values.\n\nAs explained here \u003chttps://github.com/d3/d3-scale/blob/master/README.md#continuous_domain\u003e\n\nExample polylinear scale:\n\n```\n[(0, 0), (100, 50), (300, 100)]\n```\n\nThis is a scale that maps one domain to a different one. The first value in the tuple is domain A and the second domain B.\n\nFor example given value 100 in domain A you want to know the equivalent in domain B which would be 50.\n\n\n```elm\nscale = polylinearScale [(0, 0), (100, 50), (300, 100)]\n\nscale 100 == 50\nscale 150 == 62.5\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporto%2Fpolylinear-scale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsporto%2Fpolylinear-scale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporto%2Fpolylinear-scale/lists"}