New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/cytoscape-dagre

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cytoscape-dagre

TypeScript definitions for cytoscape-dagre

  • 2.3.3
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • ts5.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/cytoscape-dagre

Summary

This package contains type definitions for cytoscape-dagre (https://github.com/cytoscape/cytoscape.js-dagre).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cytoscape-dagre.

index.d.ts

import cytoscape = require("cytoscape");

declare const cytoscapeDagre: cytoscape.Ext;

export = cytoscapeDagre;
export as namespace cytoscapeDagre;

declare namespace cytoscapeDagre {
    // function( edge ){ return 1; }
    type EdgeAssessmentFunction = (edge: cytoscape.EdgeSingular) => number;

    // function( node, i ){ return true; },
    type AnimationFilterFunction = (node: cytoscape.NodeSingular, i: number) => boolean;

    // function( node, pos ){ return pos; }
    type TransformFunction = (node: cytoscape.NodeSingular, pos: cytoscape.Position) => cytoscape.Position;

    interface DagreLayoutOptions extends cytoscape.ShapedLayoutOptions {
        name: "dagre";

        /**
         *  the separation between adjacent nodes in the same rank, default: 50
         */
        nodeSep?: number | undefined;
        /**
         * the separation between adjacent edges in the same rank, default: 10
         */
        edgeSep?: number | undefined;
        /**
         * the separation between each rank in the layout, default: 50
         */
        rankSep?: number | undefined;
        /**
         *  'TB' for top to bottom flow, 'LR' for left to right, default: 'TB'
         */
        rankDir?: "TB" | "LR" | undefined;
        /**
         * Type of algorithm to assign a rank to each node in the input graph.
         * Possible values: 'network-simplex', 'tight-tree', or 'longest-path'.
         * default: 'network-simplex'
         */
        ranker?: "network-simplex" | "tight-tree" | "longest-path" | undefined;
        /**
         * number of ranks to keep between the source and target of the edge, default: 1 for all edges
         */
        minLen?: EdgeAssessmentFunction | undefined;
        /**
         * higher weight edges are generally made shorter and straighter than lower weight edges,
         * default: 1 for all edges
         */
        edgeWeight?: EdgeAssessmentFunction | undefined;
        /**
         * whether to animate specific nodes when animation is on; non-animated nodes immediately go to their final positions
         */
        animateFilter?: AnimationFilterFunction | undefined;
        /**
         * a function that applies a transform to the final node position
         */
        transform?: TransformFunction | undefined;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/cytoscape

Credits

These definitions were written by Felix Barczewicz.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc