npm i higlass-svelte
<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}
/>
First run:
git clone https://github.com/flekschas/higlass-svelte
cd higlass-svelte
npm install
npm run dev
Then go to: http://localhost:5000