@abi-software/flatmapvuer 0.6.1-annotator.0 → 0.6.1-demo-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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # FlatmapVuer
2
2
 
3
+ View the a live demo and documentation at: https://abi-software.github.io/flatmapvuer/
4
+
3
5
  This project aims to wrap the flatmap viewer project into a vue component.
4
6
  There are currently two components available. FlatmapVuer and MultiFlatmapVuer. FlatmapVuer is used for displaying a single flatmap whereas MultiFlatmapVuer takes in an array of flatmaps and provide a chooser for selecting the flatmap on display.
5
7
 
@@ -41,7 +43,7 @@ You can now use the FlatmapVuer in your vue template as followed:
41
43
  NCBITaxon:9606 (Human), NCBITaxon:9685 (Cat), NCBITaxon:9823 (Pig), NCBITaxon:10090 (Mouse) and NCBITaxon:10114 (Rat)
42
44
 
43
45
  **ready** is the custom event when the map has been loaded successfully.
44
- **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.
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.
45
47
 
46
48
  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.
47
49
 
@@ -54,7 +56,7 @@ Please see the following sample codes for details.
54
56
  },
55
57
  FlatmapReady: function(flatmapComponent) {
56
58
  labels = flatmapComponent.getLabels(); //return list of labels
57
- //The following line adds a marker on the map. UBERON:0000948
59
+ //The following line adds a marker on the map. UBERON:0000948
58
60
  //is the UBERON id representing the heart.
59
61
  flatmapComponent.mapImp.addMarker("UBERON:0000948", "simulation");
60
62
  }
@@ -63,7 +65,7 @@ Please see the following sample codes for details.
63
65
 
64
66
  You can also use MultiFlatmapVuer to provide a selection of flatmaps.
65
67
  ```html
66
- <MultiFlatmapVuer :availableSpecies="availableSpecies"
68
+ <MultiFlatmapVuer :availableSpecies="availableSpecies"
67
69
  @resource-selected="FlatmapSelected"
68
70
  @ready="FlatmapReady" :initial="initial"/>
69
71
  ```
@@ -73,7 +75,7 @@ You can also use MultiFlatmapVuer to provide a selection of flatmaps.
73
75
  "Human":{taxo: "NCBITaxon:9606", iconClass:"icon-mapicon_human"},
74
76
  "Rat":{taxo: "NCBITaxon:10114", iconClass:"icon-mapicon_rat"},
75
77
  "Mouse":{taxo: "NCBITaxon:10090", iconClass:"icon-mapicon_mouse"},
76
- "Pig":{taxo: "NCBITaxon:9823", iconClass:"icon-mapicon_pig"},
78
+ "Pig":{taxo: "NCBITaxon:9823", iconClass:"icon-mapicon_pig"},
77
79
  "Cat":{taxo: "NCBITaxon:9685", iconClass:"icon-mapicon_cat"},
78
80
  }
79
81
  ```
@@ -105,3 +107,14 @@ npm run build-bundle
105
107
  ```bash
106
108
  npm run serve
107
109
  ```
110
+
111
+
112
+ ## Documentation
113
+
114
+ The documentation is developed with `vitepress` and `vuese`. Documentation pages are in the `docs` folder.
115
+
116
+ ### To run in local development mode
117
+ ```bash
118
+ npm run docs:watch
119
+ ```
120
+ This will start the documentation server with `vitepress` on port `:5173` and watch the `FlatmapVuer` and `MultiFlatmapVuer` components changes.
@@ -0,0 +1,24 @@
1
+ import { defineConfig } from "cypress";
2
+
3
+ const config = defineConfig({
4
+ "viewportWidth": 1920,
5
+ "viewportHeight": 1080,
6
+ defaultCommandTimeout: 30000,
7
+ // reporter: "junit",
8
+ experimentalMemoryManagement: true,
9
+ numTestsKeptInMemory: 0,
10
+ reporter: "cypress-multi-reporters",
11
+ reporterOptions: {
12
+ configFile: "reporter-config.json"
13
+ },
14
+
15
+ component: {
16
+ specPattern: "cypress/component/*.cy.js",
17
+ devServer: {
18
+ framework: "vue",
19
+ bundler: "vite",
20
+ },
21
+ },
22
+ });
23
+
24
+ export default config;