
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@mattiash/grid-graph
Advanced tools
  
Built from component template at https://github.com/gojutin/svelte-custom-element.
grid-graph is a custom element that should be possible to use in any web framework and also in plain html.
<grid-graph nodes="..." connectors='...'/>
nodes
should be a json-encoded string containing a two-dimensional array of nodes.
Each node is an object with the following properties:
;[[{ id: 'A' }, { id: 'B' }], [undefined, { id: 'C' }]]
connectors
shall be an array of connector objects. Each connector object has the following properties:
;[{ from: 'A', to: 'B' }, { from: 'A', to: 'C' }]
The grid-graph element emits a nodeclick
whenever the user clicks a node,
with the id of the node in event.detail.nodeId.
See public/index.html
for a complete example.
See @mattiash/grid-graph-placement for a module that automatically places out your nodes on a grid.
The grid-graph can be styled with css variables.
<grid-graph style="--node-margin: 5px 30px; --node-padding: 2px 10px">
</grid-graph>
npm run dev
npm run build
[1.4.1] - 2022-01-23
FAQs
  
The npm package @mattiash/grid-graph receives a total of 0 weekly downloads. As such, @mattiash/grid-graph popularity was classified as not popular.
We found that @mattiash/grid-graph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.