Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 798 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 798 Bytes

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

Export-1735055174526

Installation

npm install cytoscape-js-node-resizer

Usage

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
});