higlass-svelte
v0.1.3
Published
Svelte component for HiGlass
Downloads
6
Readme
You 😍 Svelte? We too! 😘 With higlass-svelte
you can easily use HiGlass in your Svelte app! 🥰
Install
npm i higlass-svelte
Get Started
<script>
import HiGlass from 'higlass-svelte';
const viewConfig = 'https://higlass.io/api/v1/viewconfs?d=default';
const options = {
sizeMode: 'bounded'
};
let api;
$: if (api) {
console.log('HiGlass is ready...');
}
</script>
<HiGlass
viewConfig={viewConfig}
options={options}
bind:api={api}
/>
Development
First run:
git clone https://github.com/flekschas/higlass-svelte
cd higlass-svelte
npm install
npm run dev
Then go to: http://localhost:5000