
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
vue-d3-network
Advanced tools
Vue component to graph networks using d3-force
npm install vue-d3-network --save
...
<d3-network :net-nodes="nodes" :net-links="links" :options="options" />
...
import D3Network from 'vue-d3-network'
...
components: {
D3Network
},
....
<style src="vue-d3-network/dist/vue-d3-network.css"></style>
Or: import source component from: 'vue-d3-network/src/vue-d3-network.vue' And install devDependencies. (d3-force, stylus and pug) See: package.json)
net-nodes: Array of nodes objects:
net-links: Array of links objects:
selection : Object, links and nodes selected
nodeSym: String, node sprite svg doc
nodeCb: Function(node) -> node, node formatter
linkCb: Function(link) -> link, node link formatter
simCb: Function(sim) -> sim, d3 simulation formatter
customForces: Object: { [d3Function]:args }
options:
canvas: Boolean, render as canvas, false = svg
size: Object, graph size. Default: container size
offset: Object, graph center offset
force: Number
forces Object:
nodeSize: Number, node radius | size in px
linkWidth: Number, link thickness in px
canvasStyles: Object
SVG css classes:
To use this css styles in canvas we create 'ghosts' svg elements to pick up values from computed css properties. If you want, you can stylize the canvas elements directly, setting: options.canvasStyles, but these styles will not be applied to the svg graph.
see: src/canvasStyles.js
FAQs
Vue component to graph networks using d3-force
The npm package vue-d3-network receives a total of 1,284 weekly downloads. As such, vue-d3-network popularity was classified as popular.
We found that vue-d3-network 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.