cytoscape-js-node-resizer
v1.0.6
Published
A zero dependency extension for Cytoscape.js that adds node resizing functionality.
Downloads
1,043
Readme
Zero dependency extension for Cytoscape.js that adds node resizing functionality.
A replacement for cytoscape.js-noderesize and cytoscape.js-node-editing that requires neither jQuery nor Konva.
This package was created and maintained by NodeLand. A whiteboard solution that is heavy dependant on Cytoscape to represent notes as nodes in the canvas.
Installation
npm install cytoscape-js-node-resizerUsage
import Cytoscape from "cytoscape";
import resizeHandler from "cytoscape-js-node-resizer";
Cytoscape.use(resizeHandler);
...
cy.resizeHandler({
grapperColor: "#7711C0", // default color
grapperRadius: "50%", // default radius
grapperSize: "8px", // default size
});
