@abi-software/flatmapvuer 1.3.2 → 1.4.1-beta.0
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/README.md +5 -4
- package/dist/flatmapvuer.js +64203 -56197
- package/dist/flatmapvuer.umd.cjs +815 -808
- package/dist/style.css +1 -1
- package/package.json +8 -5
- package/src/App.vue +19 -3
- package/src/components/FlatmapVuer.vue +198 -64
- package/src/components/MultiFlatmapVuer.vue +33 -17
- package/src/components.d.ts +0 -2
- package/src/icons/imageThumbnail1.js +1 -0
- package/src/icons/imageThumbnail2.js +1 -0
- package/src/icons/imageThumbnail3.js +1 -0
- package/src/main.js +1 -1
- package/src/mixins/imageMixin.js +91 -0
- package/src/services/scicrunchQueries.js +280 -0
- package/src/stores/settings.js +46 -0
- /package/src/{store → stores}/index.js +0 -0
package/README.md
CHANGED
|
@@ -36,14 +36,15 @@ export default {
|
|
|
36
36
|
The line above registers both the FlatmapVuer and MultiFlatmapVuer component into the global scope.
|
|
37
37
|
You can now use the FlatmapVuer in your vue template as followed:
|
|
38
38
|
```html
|
|
39
|
-
<FlatmapVuer entry="NCBITaxon:9606"
|
|
39
|
+
<FlatmapVuer entry="NCBITaxon:9606" uuid="uuid-to-set" v-on:resource-selected="FlatmapSelected" v-on:ready="FlatmapReady"/>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
**entry** is the variable/string with the NCBI Taxonomy term.
|
|
43
|
-
|
|
42
|
+
**entry** is the variable/string with the NCBI Taxonomy term. Some of the available taxon including: NCBITaxon:9606 (Human), NCBITaxon:9685 (Cat), NCBITaxon:9823 (Pig), NCBITaxon:10090 (Mouse) and NCBITaxon:10114 (Rat). This will always get the latest version of a map with the matching taxon.
|
|
43
|
+
|
|
44
|
+
**uuid** is the unique id of a specific map. This will be used instead of **entry** when specified.
|
|
44
45
|
|
|
45
46
|
**ready** is the custom event when the map has been loaded successfully.
|
|
46
|
-
**resource-selected** is the custom event triggered when a part of the flatmap is selected, the returned argument **resource** provides information of the selected resource.
|
|
47
|
+
**resource-selected** is the custom event triggered when a part of the flatmap is selected, the returned argument **resource** provides information of the selected resource. Information of location is provided with supported maps in the **feature -> location** property.
|
|
47
48
|
|
|
48
49
|
Markers must be added to make a label selectable and it can be done through the **addMarker** method on the mapImp member of the FlatmapVuer component.
|
|
49
50
|
|