I'm curious if there are any plans to provide Polymer web component elements for Cytoscapejs? This would make it easier to integrate Cytoscapejs with other web components. Ideally, I'd like to be able to do something like this:
...
<template>
<iron-ajax auto url="/mynetwork.js" last-response="{{model}}"></iron-ajax>
<cytoscape-canvas model="[[model]]" on-load="_highlightNodes"></cytoscape>
</template>
<script>
...
_highlightNodes: function(){
var canvas = Polymer.dom(this.root).querySelector("cytoscape-canvas");
["KRAS", "CDKN2A", "TP53"...]
canvas.highlight();
canvas
}
</script>