GithubHelp home page GithubHelp logo

johnnyflinn / ngcytoscape Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 18.0 4.63 MB

Angular directive for cytoscape.js

Home Page: http://johnnyflinn.github.io/ngCytoscape

License: MIT License

JavaScript 100.00%

ngcytoscape's People

Contributors

andlar avatar ckapopoulos avatar johnnyflinn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ngcytoscape's Issues

npm install?

Do you think you might add an npm install for this at any point?

how to use cytoscape-cxtmenu.js with ngCytoscape

Hi, thank you for your effort.
I'm now using ngCytoscape and try to use cytoscape-cxtmenu in github but it does not work well.
Can I have your suggestion or code fragment in order to use such external cytoscape library ?

Layout doesn't apply

after appling the examples I can get a display but only see positioning of nodes when specified. any layout properties I apply seem to be ignored. I did a recent install of cytoscape which I think is 3.1.2
on latest angular 1. As you can see all nodes are at 0,0

    $scope.cyt={};
    $scope.cyt.options = { 
        fit:true
       };
       $scope.cyt.layout = {name: 'grid'}  
   $scope.cyt.ready = function(evt){
      console.log('graph ready to be interacted with: ', evt);
   }

   $scope.cyt.elements = {
    n1:{
     group: 'nodes',
     data:{}
    },
    n2:{
     group: 'nodes',
     data:{}
   },
    e1:{
     group:'edges',
     data:{
      target: 'n1',  //Source and Target mandatory for edges.
      source: 'n2'
     }
    }
   }
    $scope.cyt.style = [ // See http://js.cytoscape.org/#style for style formatting and options.
      {
            selector: 'node',
            style: {
                'shape': 'ellipse',
                'border-width': 0,
                'background-color': 'blue'
            }
        }
    ];
<cytoscape 
		graph-options="cyt.options" 
		graph-elements="cyt.elements" 
		graph-layout="cyt.layout" 
		graph-style="cyt.style" 
		graph-ready="cyt.ready" >	
	</cytoscape>

screen shot 2017-06-28 at 9 40 28 pm

Problem using cytoscape extensions

Hi I'm a university student from University of Rome Tor Vergata and I'm developing a project for my graduate.
I'm currently using ngCytoscape and I'm having problem importing extension such like cytoscape.js-cola (Here is the link https://github.com/cytoscape/cytoscape.js-cola).
Is possible to import these type of extensions using ngCytoscape? And if so, how can I do?
Thanks for your attention!

Unit Testing

Need Unit Testing for all directives and services.

Default CoSe Layout Error

Setting graph-layout="{name:'cose'"} causes Cannot read property 'length' of undefined error. This only seems to happen on initialization. Other layouts do not reproduce this error.

Remove Angular.forEach

Since I'm already moving things to Webpack / ES6, it's a good opportunity to remove the angular.forEach's and replace them with POJ For Loops. I seem to remember an old perf that proved it was faster, but since jsperf is down...no link.

Graph changes not updated

Hi
It seems changes to edges, are not reflected on the graph. When loading, the graph is drawn as expected, but later adding/removal of edges seem ignored.

I have tried extending the changes on the nodes object, as in the demo - without any luck. What could be the problem?

killer demo

Invest some time to create a 'showcase' of sorts. Similar to three.js and D3.

Node and edge notes and names

Hello, is it possible to display a name on each node and edge? Or a note, something. I couldn't possibly find anything in the documentation. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.