{"id":13425494,"url":"https://github.com/1wheel/swoopy-drag","last_synced_at":"2025-04-12T23:42:45.956Z","repository":{"id":146023605,"uuid":"53160089","full_name":"1wheel/swoopy-drag","owner":"1wheel","description":"Artisanal label placement for d3 graphics","archived":false,"fork":false,"pushed_at":"2018-07-05T03:05:09.000Z","size":204,"stargazers_count":121,"open_issues_count":3,"forks_count":13,"subscribers_count":3,"default_branch":"gh-pages","last_synced_at":"2025-04-02T03:35:19.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://1wheel.github.io/swoopy-drag/","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/1wheel.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-03-04T19:24:36.000Z","updated_at":"2025-01-31T18:28:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7722a9c-5286-49d5-98bf-20d5bdbfd0f3","html_url":"https://github.com/1wheel/swoopy-drag","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/1wheel%2Fswoopy-drag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1wheel%2Fswoopy-drag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1wheel%2Fswoopy-drag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1wheel%2Fswoopy-drag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1wheel","download_url":"https://codeload.github.com/1wheel/swoopy-drag/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643004,"owners_count":21138355,"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-07-31T00:01:13.523Z","updated_at":"2025-04-12T23:42:45.934Z","avatar_url":"https://github.com/1wheel.png","language":"HTML","funding_links":[],"categories":["HTML","Utils","others"],"sub_categories":[],"readme":"# swoopyDrag\n\n\u003e The annotation layer is the most important thing we do\n\n*- Amanda Cox -*\n\n### [Demo/Documentation](http://1wheel.github.io/swoopy-drag/)\n\n### API Reference\n\n#### d3.swoopyDrag()\n\nCreates a new `swoopyDrag`. \n\n#### swoopyDrag.x([function])\n\nFunction called on each annotation object to determine its `x` position.\n\n#### swoopyDrag.y([function])\n\nFunction called on each annotation object to determine its `y` position. \n\n#### swoopyDraw.draggable([boolean])\n\nBoolean. Pass true while adjusting annotations to enable dragging and add control points to paths.\n\n#### swoopyDrag.annotations([array])\n\nArray of objects representing annotations. The `path` in each annotations will have its `d` attribute set to the `path` property. The `text` element will contain the `text` property and be translated by `textOffset`.\n\n#### swoopyDrag.on('drag', [function])\n\nCalled as the labels or paths are dragged.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1wheel%2Fswoopy-drag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1wheel%2Fswoopy-drag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1wheel%2Fswoopy-drag/lists"}