Neverending Puppy Marathon

    graphgenomeviewer

    2.0.3 • Public • Published

    graphgenomeviewer

    Install

    The graphgenomeviewer NPM module is a React component that can be installed with yarn or npm

    yarn add graphgenomeviewer
    

    Usage

    import Graph from 'graphgenomeviewer'
    
    function App() {
      return (
        <Graph
          graph={{
            nodes: [{ id: 'id1' }, { id: 'id2' }],
            links: [{ source: 'id1', target: 'id2' }]
          }}
        />
      )
    }

    Here are all the props for the Graph component

        graph,
        drawPaths = false,
        drawLabels = false,
        drag = false,
        settings: {
          chunkSize = 1000,
          forceSteps = 500,
          linkSteps = 3,
          sequenceThickness = 10,
          linkThickness = 2,
          theta = 0.9,
          forceType = 'center',
          strengthCenter = -50,
          strengthXY = 0.3
        },
        color = 'Rainbow',
        width = 2000,
        height = 1000,
        redraw = 0,
        onFeatureClick = () => {
          console.log('no feature click configured')
        }
    

    Keywords

    none

    Install

    npm i graphgenomeviewer

    DownloadsWeekly Downloads

    1

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    16.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • cmdcolin