Comments (2)
The IIFE versions (dist/cgview.js & dist/cgview.min.js) are meant to be added as script tags to a project with d3 being sourced first:
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="PATH/TO/cgview.min.js"></script>
And then accessed via the global CGV:
cgv = new CGV.Viewer('#my-viewer', {OPTIONS});
That is how it is used on the js.cgview.ca site.
from cgview-js.
The IIFE versions (dist/cgview.js & dist/cgview.min.js) are meant to be added as script tags to a project with d3 being sourced first:
<script src="https://d3js.org/d3.v7.min.js"></script> <script src="PATH/TO/cgview.min.js"></script>
And then accessed via the global CGV:
cgv = new CGV.Viewer('#my-viewer', {OPTIONS});That is how it is used on the js.cgview.ca site.
That makes sense. I was trying the method I described above as a fallback before resolving #10 . Appreciate the responsiveness to both!
from cgview-js.
Related Issues (13)
- Error "SyntaxError: Cannot use import statement outside a module" when importing CGView ESM HOT 3
- Will there be any problems if there is a lot of data? HOT 2
- I'm not sure if it's a data issue, please take a look HOT 3
- “gc-skew gc-content” It was moved to the maximum before drawing was completed, and there was a problem after moving it. HOT 7
- Problem with scaling HOT 3
- SVG export HOT 2
- 1 bp features are not displayed HOT 3
- Zooming on circular view and then switching to linear map leads to blank map HOT 1
- Pinch zoom gesture, zooming not centred on touch site HOT 1
- Show more content HOT 6
- Identify the newly added information in json HOT 3
- Change the Labels font color HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgview-js.