
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@types/react-cytoscapejs
Advanced tools
TypeScript definitions for react-cytoscapejs
npm install --save @types/react-cytoscapejs
This package contains type definitions for react-cytoscapejs (https://github.com/plotly/react-cytoscapejs).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-cytoscapejs.
import cytoscape = require("cytoscape");
import { Component, CSSProperties } from "react";
interface CytoscapeComponentProps {
id?: string | undefined;
cy?: ((cy: cytoscape.Core) => void) | undefined;
style?: CSSProperties | undefined;
elements: cytoscape.ElementDefinition[];
layout?: cytoscape.LayoutOptions | undefined;
stylesheet?: cytoscape.StylesheetJsonBlock | cytoscape.StylesheetJsonBlock[] | string | undefined;
className?: string | undefined;
zoom?: number | undefined;
pan?: cytoscape.Position | undefined;
minZoom?: number | undefined;
maxZoom?: number | undefined;
zoomingEnabled?: boolean | undefined;
userZoomingEnabled?: boolean | undefined;
boxSelectionEnabled?: boolean | undefined;
autoungrabify?: boolean | undefined;
autounselectify?: boolean | undefined;
panningEnabled?: boolean | undefined;
userPanningEnabled?: boolean | undefined;
autolock?: boolean | undefined;
get?: ((obj: Record<string, any>, key: string) => any) | undefined;
toJson?: ((obj: Record<string, any>) => any) | undefined;
diff?: ((objA: Record<string, any>, objB: Record<string, any>) => boolean) | undefined;
forEach?: (<T>(list: T[], iterator: (value: T, index: number, array: T[]) => void) => void) | undefined;
headless?: boolean | undefined;
styleEnabled?: boolean | undefined;
hideEdgesOnViewport?: boolean | undefined;
textureOnViewport?: boolean | undefined;
motionBlur?: boolean | undefined;
motionBlurOpacity?: number | undefined;
wheelSensitivity?: number | undefined;
pixelRatio?: number | string | undefined;
}
declare class CytoscapeComponent extends Component<CytoscapeComponentProps> {
static normalizeElements(
data:
| {
nodes: cytoscape.ElementDefinition[];
edges: cytoscape.ElementDefinition[];
}
| cytoscape.ElementDefinition[],
): cytoscape.ElementDefinition[];
}
export default CytoscapeComponent;
These definitions were written by Emmanuel Counasse, and newraina.
FAQs
TypeScript definitions for react-cytoscapejs
The npm package @types/react-cytoscapejs receives a total of 13,819 weekly downloads. As such, @types/react-cytoscapejs popularity was classified as popular.
We found that @types/react-cytoscapejs demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.