sbgnviz.js icon indicating copy to clipboard operation
sbgnviz.js copied to clipboard

How to cite the sbgnviz.js into the <script> lable of html?

Open HanMengying opened this issue 4 years ago • 2 comments

Hi, I want to use this sbgnviz.js to show my pathway inserct my frame of Django, so I need to insert this into html by citing the label of

HanMengying avatar Apr 09 '20 16:04 HanMengying

@HanMengying maybe this CodeSandbox example helps: https://github.com/cannin/sbgnviz.js-sample-app

cannin avatar Apr 09 '20 18:04 cannin

@cannin The sbgnviz.js-sample-app is written in way that is very different from the typical cytoscape extension.

Is it possible to provide simple example showing how to use the various sbgnviz API in the same format as typical cytoscape extensions

A single demo.html showing how to use SBGNviz API to load a sbgn.xml file and display that.

e.g.

<link href="app/css/sbgnviz.css" rel="stylesheet">
<script src="node_modules/sbgnviz/dist/sbgnviz.min.js"></script>

with other dependent stylesheet and cytoscape and cytoscape extension libraries. 
var sbgn = window.sbgn = sbgnviz({
	container: document.getElementById('sbgn-network-container'),

	ready: function(){
},

GeorgeS2019 avatar Nov 05 '20 13:11 GeorgeS2019