{"id":32460395,"url":"https://github.com/thepeoplesbourgeois/d3-vector","last_synced_at":"2025-10-26T11:57:41.294Z","repository":{"id":215203986,"uuid":"77193223","full_name":"thepeoplesbourgeois/d3-vector","owner":"thepeoplesbourgeois","description":"A D3 force plug-in for programmatically determining a set of vectors' angles and magnitudes","archived":false,"fork":false,"pushed_at":"2019-08-15T16:46:09.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-25T08:14:26.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/thepeoplesbourgeois.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-12-23T03:04:05.000Z","updated_at":"2021-05-04T10:28:56.000Z","dependencies_parsed_at":"2024-01-07T14:06:05.683Z","dependency_job_id":null,"html_url":"https://github.com/thepeoplesbourgeois/d3-vector","commit_stats":null,"previous_names":["thepeoplesbourgeois/d3-vector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thepeoplesbourgeois/d3-vector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepeoplesbourgeois%2Fd3-vector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepeoplesbourgeois%2Fd3-vector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepeoplesbourgeois%2Fd3-vector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepeoplesbourgeois%2Fd3-vector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thepeoplesbourgeois","download_url":"https://codeload.github.com/thepeoplesbourgeois/d3-vector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepeoplesbourgeois%2Fd3-vector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281099982,"owners_count":26443537,"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-26T02:00:06.575Z","response_time":61,"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":"2025-10-26T11:57:40.321Z","updated_at":"2025-10-26T11:57:41.288Z","avatar_url":"https://github.com/thepeoplesbourgeois.png","language":"JavaScript","funding_links":[],"categories":["Software"],"sub_categories":["JavaScript"],"readme":"## d3-vector\n\nA module for [forceSimulations](https://github.com/d3/d3-force) to define connections between nodes as directional vectors, consisting of angles within a cone of dispersion, and magnitudes defined either by a constant or by a function of the individual `vector`s. Reverse-engineered from the [`Link`](https://github.com/d3/d3-force/blob/master/src/link.js) force by Mike Bostock.\n\n#### Usage\n\nPublic methods on `vector` are all defined on the `force` object at the bottom of `vector.js`.\n\n- `force.initialize`: begins running the simulation\n- `force.nodes`: the data used for each node\n- `force.vectors`: the connections between nodes, defined as an array of `source` and `target` objects\n- `force.id`: a function to allow the simulation to internally identify each `node` for updates\n- `force.iterations`: (ADVANCED) I'm not really sure... it's just kind of a thing that Mike made work and it affects how strongly your force is applied during the simulation\n- `force.orientation`: the basis degree for orienting the angles of `force.cone`\n- `force.direction`: 'reverse' will invert the cone of dispersion\n- `force.strength`: a relative multiplier that affects the potency of each vector while the simulation is running\n- `force.magnitude`: either a constant number indicating the length in pixels of each vector, or a function applied to each `vector` to determine its relative length\n- `force.cone`: an interpolative scale that is applied to a raw `degree` value to coerce the vector to go in a specific angle relative to its source\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepeoplesbourgeois%2Fd3-vector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepeoplesbourgeois%2Fd3-vector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepeoplesbourgeois%2Fd3-vector/lists"}