{"id":13425889,"url":"https://github.com/rveciana/d3-composite-projections","last_synced_at":"2025-10-22T11:53:05.800Z","repository":{"id":30956692,"uuid":"34514815","full_name":"rveciana/d3-composite-projections","owner":"rveciana","description":"Set of d3 projections for showing countries distant lands together","archived":false,"fork":false,"pushed_at":"2025-09-06T17:32:59.000Z","size":4495,"stargazers_count":100,"open_issues_count":4,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-22T11:52:53.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rveciana.github.io/d3-composite-projections/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"appscode/jsonpatch","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rveciana.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2015-04-24T11:23:53.000Z","updated_at":"2025-09-06T17:32:30.000Z","dependencies_parsed_at":"2024-06-18T13:48:33.507Z","dependency_job_id":"b77d6afc-4790-4ee8-b757-7ee894ecf016","html_url":"https://github.com/rveciana/d3-composite-projections","commit_stats":{"total_commits":135,"total_committers":7,"mean_commits":"19.285714285714285","dds":0.0444444444444444,"last_synced_commit":"c33b09f19646dc5be8f0e626ce58ec9e5b7459e8"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/rveciana/d3-composite-projections","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rveciana%2Fd3-composite-projections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rveciana%2Fd3-composite-projections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rveciana%2Fd3-composite-projections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rveciana%2Fd3-composite-projections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rveciana","download_url":"https://codeload.github.com/rveciana/d3-composite-projections/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rveciana%2Fd3-composite-projections/sbom","scorecard":{"id":791080,"data":{"date":"2025-08-11","repo":{"name":"github.com/rveciana/d3-composite-projections","commit":"c33b09f19646dc5be8f0e626ce58ec9e5b7459e8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T07:34:50.616Z","repository_id":30956692,"created_at":"2025-08-23T07:34:50.616Z","updated_at":"2025-08-23T07:34:50.616Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280431497,"owners_count":26329786,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07-31T00:01:21.335Z","updated_at":"2025-10-22T11:53:05.794Z","avatar_url":"https://github.com/rveciana.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Maps"],"sub_categories":[],"readme":"# d3-composite-projections\n\n[![Build Status](https://travis-ci.org/rveciana/d3-composite-projections.svg?branch=master)](https://travis-ci.org/rveciana/d3-composite-projections)\n\nSet of d3 projections for showing countries' distant lands together\n\n![conicConformalFrance](thumbnail.png \"Conic Conformal France example\")\n\n# USAGE\n\nThis is the version compatible with d3v6, please [go here for the version compatible with d3v3](https://github.com/rveciana/d3-composite-projections/tree/v0.4.0).\n\nThe projection itself works the same way as the other d3 projections. To be more precise, exactly as the [albersUsa](https://github.com/mbostock/d3/wiki/Geo-Projections#albersUsa) projection:\n\n```html\n\u003cscript src=\"https://d3js.org/d3.v4.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"d3-composite-projections.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var projection = d3.geoConicConformalPortugal();\n\u003c/script\u003e\n```\n\nChange the scale using scale i.e. `.scale(3000)`, as usual. The projections are prepared to fit a 960x500px SVG or Canvas.\n\nProjections are available for:\n\n- USA: [geoAlbersUSA](http://bl.ocks.org/rveciana/ee2119324e835e1bad42d0e4c1b9ab0d)\n- USA Territories: [geoAlbersUsaTerritories](http://bl.ocks.org/rveciana/5040be82aea528b6f785464f8816690f) as albersUsa, but adding the American Samoa, Puerto Rico, U.S. Virgin Islands, Guam and Northern Marianas Islands, so all the [Congressional Districts](https://en.wikipedia.org/wiki/List_of_districts_of_the_House_of_Representatives_of_Japan) are represented\n- France: [geoConicConformalFrance](http://bl.ocks.org/rveciana/0ff189b15449330828605fe4e118a716)\n- Portugal: [geoConicConformalPortugal](http://bl.ocks.org/rveciana/ee09a2c3732f3e0d6872d1a7f796a29b)\n- Spain: [geoConicConformalSpain](http://bl.ocks.org/rveciana/d635afded8c4eae36ecf61a15bdf0a98)\n- Netherlands [geoConicConformalNetherlands](https://observablehq.com/@julesblm/the-netherlands-composite-projection)\n- Europe: [geoConicConformalEurope](http://bl.ocks.org/rveciana/ced3109b372039afbcf7278ba3d14250) (thought for Eurostat data)\n- Japan: [geoConicEquidistantJapan](http://bl.ocks.org/rveciana/1f5399d8887428ad67665d106ec089d1)\n- Ecuador: [geoMercatorEcuador](http://bl.ocks.org/rveciana/306a5202e1facf7a22e08fbb1044f568)\n- Chile: [geoTransverseMercatorChile](http://bl.ocks.org/rveciana/3a31865e82f4fab8ac2522545bbc7741), including the [Chilean Antarctic Territory](https://en.wikipedia.org/wiki/Chilean_Antarctic_Territory)\n- Malaysia: [geoMercatorMalaysia](http://bl.ocks.org/rveciana/6298dd3e71cf98b6930c06f19b6684a2), created with the help of [Saiful Azfar Ramlee](https://github.com/saifulazfar)\n- Equatorial Guinea: [geoMercatorEquatorialGuinea](http://bl.ocks.org/rveciana/4dfc136b8e2707f182aa4591f892f82e)\n- United Kingdom: [geoAlbersUk](https://gist.github.com/rveciana/27272a581e975835aaa321ddf816d726)\n- Denmark: [geoTransverseMercatorDenmark](https://observablehq.com/d/3a28765e735c5e67)\n\nTo draw the borders between the projection zones, use `getCompositionBorders()` for SVG:\n\n```javascript\nsvg\n  .append(\"path\")\n  .style(\"fill\", \"none\")\n  .style(\"stroke\", \"#000\")\n  .attr(\"d\", path(projection.getCompositionBorders()));\n```\n\nor drawCompositionBorders if using Canvas:\n\n`projection.drawCompositionBorders(context);`\n\nUsing with node\n\n---\n\n```javascript\nvar d3_composite = require(\"d3-composite-projections\");\nvar d3_geo = require(\"d3-geo\");\nvar projection = d3_composite.geoAlbersUsaTerritories();\n```\n\n# INSTALLATION\n\n## Getting the files\n\nYou can get the files just by cloning the repository:\n\n```bash\ngit clone https://github.com/rveciana/d3-composite-projections.git\n```\n\nor downloading the _d3-composite-projections.js_ or _d3-composite-projections.min.js_ files.\n\n## Using cdnjs or unpkg\n\nYou can link the files from your web page to [cdnjs](https://cdnjs.com/libraries/d3-composite-projections):\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/d3-composite-projections/1.0.2/d3-composite-projections.min.js\"\u003e\u003c/script\u003e\n```\n\nor\n\n```html\n\u003cscript src=\"https://unpkg.com/d3-composite-projections@1.2.0\"\u003e\u003c/script\u003e\n```\n\n## As a module:\n\nInstall the library:\n\n```bash\nnpm install --save d3-composite-projections\n```\n\nImport it:\n\n```javascript\nimport { geoAlbersUk } from \"d3-composite-projections\";\n```\n\n## In node:\n\nInstall the library:\n\n```bash\nnpm install --save d3-composite-projections\n```\n\nImport it:\n\n```javascript\nconst d3cp = require(\"d3-composite-projections\");\n\nconst projection = d3cp.geoAlbersUk();\n```\n\n## Running the tests\n\nDownload the library by cloning the git repo:\n\n```bash\ngit clone https://github.com/rveciana/d3-composite-projections.git\n```\n\nThe tests can be run using:\n\n```bash\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frveciana%2Fd3-composite-projections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frveciana%2Fd3-composite-projections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frveciana%2Fd3-composite-projections/lists"}