Skip to content

Commit 3e88bc6

Browse files
authored
Merge pull request #9 from PDBeurope/PDBE-7921
For v0.3.0
2 parents e611a5f + 92cbd9f commit 3e88bc6

14 files changed

Lines changed: 13442 additions & 301 deletions

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.20.2

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ npm run watch
2020
|02|entityId|`string`|Entity ID - Example: '3'|
2121
|03|chainId|`string`|Chain ID - Example: 'R'|
2222
|04|subscribeEvents|`boolean`| Default - `false`|
23+
|05|apiData|`ApiData`| Default - `undefined` |
24+
|06|FR3DData|`JSON`| Default - `undefined` |
25+
26+
apiData and FR3DData are automatically retrieved using pdbeId, entityId and chainId if not set on options
27+
28+
See data examples at:
29+
- APIData: https://www.ebi.ac.uk/pdbe/static/entry/7v08_4_3.json
30+
- FR3DData: https://www.ebi.ac.uk/pdbe/static/entry/7v08_3_basepair.json
2331

2432
## Web app implementation
2533
**Refer index.html and component.html for implementation example**

component-demo.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212
<!-- Required to polyfill modern browsers as code is ES5 for IE... -->
1313
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js" charset="utf-8"></script>
1414

15-
<!-- d3.js dependency script -->
16-
<script src="https://cdn.jsdelivr.net/npm/d3@5.9.2"></script>
17-
18-
<link rel="stylesheet" type="text/css" href="build/pdb-rna-viewer-0.1.0.css">
19-
<script type="text/javascript" src="build/pdb-rna-viewer-component-0.1.0.js"></script>
15+
<link rel="stylesheet" type="text/css" href="build/pdb-rna-viewer-0.3.0.css">
16+
<script type="text/javascript" src="build/pdb-rna-viewer-component-0.3.0.js"></script>
2017
<style>
2118
#pdbRnaViewer{
2219
width:500px;

index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
</style>
1515
<!-- PDB RNA Viewer CSS -->
16-
<link rel="stylesheet" type="text/css" href="build/pdb-rna-viewer-0.2.0.css">
16+
<link rel="stylesheet" type="text/css" href="build/pdb-rna-viewer-0.3.0.css">
1717

1818
</head>
1919

@@ -23,11 +23,8 @@ <h4>PDB RNA Viewer Plugin Demo</h4>
2323
<!-- PDB RNA Viewer container -->
2424
<div id="pdb-rna-viewer" style="float: left;"></div>
2525

26-
<!-- d3.js dependency script -->
27-
<script src="https://cdn.jsdelivr.net/npm/d3@5.9.2"></script>
28-
2926
<!-- PDB RNA Viewer JS -->
30-
<script type="text/javascript" src="build/pdb-rna-viewer-plugin-0.2.0.js"></script>
27+
<script type="text/javascript" src="build/pdb-rna-viewer-plugin-0.3.0.js"></script>
3128
<script>
3229
//Create plugin instance
3330
const pluginInstance = new PdbRnaViewerPlugin();

0 commit comments

Comments
 (0)