-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/theosanderson/taxonium
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ Here's an example of how to set up the source data and use the Taxonium componen | |
|
||
First, set up the source data in JavaScript: | ||
|
||
```{js} | ||
```js | ||
const nwk = `((A:0.1,B:0.2):0.3,(C:0.4,D:0.5):0.6);`; | ||
|
||
const metadata_text = | ||
|
@@ -42,7 +42,7 @@ const sourceData = { | |
|
||
In React, you can use the Taxonium component as follows: | ||
|
||
```{js} | ||
```js | ||
import Taxonium from 'taxonium-component'; | ||
|
||
const App = () => { | ||
|
@@ -54,7 +54,7 @@ const App = () => { | |
|
||
If you're working with basic HTML, you can include the Taxonium component using a script tag: | ||
|
||
```{html} | ||
```html | ||
<body> | ||
<div id="root"></div> | ||
|
||
|
@@ -63,7 +63,11 @@ If you're working with basic HTML, you can include the Taxonium component using | |
<script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script> | ||
|
||
<!-- Include Taxonium Component --> | ||
<script src="https://unpkg.com/[email protected]/dist/taxonium-component.umd.js"></script> | ||
<script src="https://unpkg.com/taxonium-component"></script> | ||
|
||
<script> | ||
// Source data code from above | ||
</script> | ||
|
||
<script> | ||
const MyComponent = TaxoniumComponent.Taxonium; | ||
|
@@ -81,7 +85,7 @@ If you're working with basic HTML, you can include the Taxonium component using | |
|
||
### Developing the package | ||
|
||
``` | ||
```bash | ||
yarn install | ||
yarn storybook | ||
``` | ||
``` |