higlass-svelte Svelte Themes

Higlass Svelte

Example app how to integrate HiGlass into Svelte

HiGlass-Svelte Component

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

Top categories

Loading Svelte Themes