phyloio 2.1.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Examples/Website/phyloio.html +73 -71
- package/Examples/Website/src_worker_bcn_js.phylo.js +8093 -0
- package/Examples/Website/src_worker_distance_js.phylo.js +6257 -0
- package/README.md +16 -2
- package/dist/phylo.js +7 -7
- package/dist/src_worker_bcn_js.phylo.js +2 -2
- package/dist/src_worker_distance_js.phylo.js +1 -1
- package/{src_phylo_compare → dist-jest}/phylo.js +68 -132
- package/{src_phylo_compare → dist-jest}/src_utils_js.phylo.js +1 -1
- package/dist-jest/src_worker_bcn_js.phylo.js +350 -0
- package/dist-jest/src_worker_distance_js.phylo.js +219 -0
- package/{src_phylo_compare/vendors-node_modules_biojs-io-newick_src_index_js-node_modules_minhashjs_index_js.phylo.js → dist-jest/vendors-node_modules_biojs-io-newick_src_index_js-node_modules_minhashjs_index_js-node_module-7b40e5.phylo.js} +25 -15
- package/package-lock.json +19607 -0
- package/package.json +1 -1
- package/rerooting.test.js +297 -0
- package/src/api.js +19 -9
- package/src/container.js +408 -64
- package/src/interface.css +6 -0
- package/src/interface.js +371 -207
- package/src/model.js +19 -20
- package/src/tmp +12 -0
- package/src/utils.js +31 -1
- package/src/viewer.js +177 -88
- package/src_phylo_compare/fonts/fa-brands-400.eot +0 -0
- package/src_phylo_compare/fonts/fa-brands-400.svg +0 -3717
- package/src_phylo_compare/fonts/fa-brands-400.ttf +0 -0
- package/src_phylo_compare/fonts/fa-brands-400.woff +0 -0
- package/src_phylo_compare/fonts/fa-brands-400.woff2 +0 -0
- package/src_phylo_compare/fonts/fa-regular-400.eot +0 -0
- package/src_phylo_compare/fonts/fa-regular-400.svg +0 -801
- package/src_phylo_compare/fonts/fa-regular-400.ttf +0 -0
- package/src_phylo_compare/fonts/fa-regular-400.woff +0 -0
- package/src_phylo_compare/fonts/fa-regular-400.woff2 +0 -0
- package/src_phylo_compare/fonts/fa-solid-900.eot +0 -0
- package/src_phylo_compare/fonts/fa-solid-900.svg +0 -5034
- package/src_phylo_compare/fonts/fa-solid-900.ttf +0 -0
- package/src_phylo_compare/fonts/fa-solid-900.woff +0 -0
- package/src_phylo_compare/fonts/fa-solid-900.woff2 +0 -0
- package/src_phylo_compare/fonts/fa-v4compatibility.ttf +0 -0
- package/src_phylo_compare/fonts/fa-v4compatibility.woff2 +0 -0
- package/src_phylo_compare/src_worker_bcn_js.phylo.js +0 -341
- package/src_phylo_compare/src_worker_distance_js.phylo.js +0 -227
- package/src_phylo_compare.zip +0 -0
- /package/{src_phylo_compare → dist-jest}/vendors-node_modules_d3_index_js-node_modules_file-saver_dist_FileSaver_min_js.phylo.js +0 -0
package/README.md
CHANGED
|
@@ -41,15 +41,29 @@ the web workers for the distance and bcn algorithms.
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
**Local build:** If you need to modify part of the source code or simply
|
|
44
|
-
want to build the package from source, you can use the following command
|
|
44
|
+
want to build the package from source, you can use the following command.
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
47
|
npm run-script build
|
|
48
48
|
```
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
This will build the dist/ folder where you can import the *.js files as shown above.
|
|
51
51
|
|
|
52
52
|
|
|
53
|
+
**npm install** You can also use npm (https://www.npmjs.com/package/phyloio) to install the package for your project
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm install phyloio
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Then you can import the library in your code:
|
|
60
|
+
```js
|
|
61
|
+
import { PhyloIO } from 'phyloio';
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
53
67
|
## Initialisation
|
|
54
68
|
First, you need to create an instance of PhyloIO:
|
|
55
69
|
```js
|