{"id":16888821,"url":"https://github.com/willium/vega-label","last_synced_at":"2025-03-20T07:15:09.525Z","repository":{"id":138835848,"uuid":"83250563","full_name":"willium/vega-label","owner":"willium","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-28T13:56:52.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-25T08:26:50.580Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willium.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-27T00:04:59.000Z","updated_at":"2017-02-28T02:02:57.000Z","dependencies_parsed_at":"2023-03-17T23:15:41.581Z","dependency_job_id":null,"html_url":"https://github.com/willium/vega-label","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/willium%2Fvega-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willium%2Fvega-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willium%2Fvega-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willium%2Fvega-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willium","download_url":"https://codeload.github.com/willium/vega-label/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566945,"owners_count":20473451,"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-10-13T16:54:17.854Z","updated_at":"2025-03-20T07:15:09.501Z","avatar_url":"https://github.com/willium.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vega-label\nLabel layout algorithm for Vega dataflows.\n\n## line\n- prefer 90, 45, degrees\n- handle overlap (consider double outset stack)\n- constant for how long a tail can possibly be (A/B test)\n\n### rect\n1. determine orient\n2. if vertical, right most; if horizontal top most\n3. if not possible, outset from right/top\n4. if stacked, outset from group, need line\n\n### line\n1. try longest segment, starting from right\n2. consider flag for points individually (or would you make invisible points?)\n### area\n1. largest internal rect. Otherwise, find place, use tail\n\n### arc\n1. use angle to determine orient relatively\n2. position at top of pie (crust)\n3. use line?\n\n### scatter\n1. simulated annealing\n2. use line\n\n### geo\n1. similar to area\n\n\n//  var point = {\n//     x: 1,\n//     y: 1\n//   };\n\n//   var rect = {\n//     x: 1,\n//     y: 1,\n//     x2: 1,\n//     y2: 1\n//   };\n\n//   var path = {\n//     string: \"PATH\", // line, arc\n//     horizon: \"line\" // line symbolizing the horizon\n//   }\n\n//   var shape = \"SHAPE\";\n\n//   var datum = {\n//     label: [100, 100], // width, height\n//     baseline: path | null,\n//     mark: point | rect | path | shape\n//   }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillium%2Fvega-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillium%2Fvega-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillium%2Fvega-label/lists"}