# cytoscape-noderesize

> A plugin that creates a node resize control

Latest version **1.0.0** (published 2015-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install cytoscape-noderesize
pnpm add cytoscape-noderesize
yarn add cytoscape-noderesize
bun add cytoscape-noderesize
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-06-17 |
| First published | 2015-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jhonatandarosa |
| Keywords | cytoscape, cyext |

## Links

- npm: https://www.npmjs.com/package/cytoscape-noderesize
- Repository: https://github.com/cytoscape-noderesize
- Issues: https://github.com/cytoscape-noderesize/issues
- npm.io page: https://npm.io/package/cytoscape-noderesize

## Recent versions

- 1.0.0 (latest) — 2015-06-17

## README

cytoscape-noderesize
================================================================================


## Description

A plugin that creates a node resize control


## Dependencies

 * Cytoscape.js >=2.3.8
 * jQuery >= 1.4


## Usage instructions

Download the library:
 * via npm: `npm install cytoscape-noderesize`,
 * via bower: `bower install cytoscape-noderesize`, or
 * via direct download in the repository (probably from a tag).

`require()` the library as appropriate for your project:

CommonJS:
```js
var cytoscape = require('cytoscape');
var noderesize = require('cytoscape-noderesize');

noderesize( cytoscape ); // register extension
```

AMD:
```js
require(['cytoscape', 'cytoscape-noderesize'], function( cytoscape, noderesize ){
  noderesize( cytoscape ); // register extension
});
```

Plain HTML/JS has the extension registered for you automatically, because no `require()` is needed.


## API

Please briefly describe your API here:

```js
cy.noderesize({
  handleColor: '#000000', // the colour of the handle and the line drawn from it
  hoverDelay: 150, // time spend over a target node before it is considered a target selection
  enabled: true, // whether to start the plugin in the enabled state
  minNodeWidth: 30,
  minNodeHeight: 30,
  triangleSize: 10,
  lines: 3,
  padding: 5,

  start: function(sourceNode) {
    // fired when noderesize interaction starts (drag on handle)
  },
  complete: function(sourceNode, targetNodes, addedEntities) {
    // fired when noderesize is done and entities are added
  },
  stop: function(sourceNode) {
    // fired when noderesize interaction is stopped (either complete with added edges or incomplete)
  }
});
```

---
_Source: https://npm.io/package/cytoscape-noderesize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
