diff --git a/.gitignore b/.gitignore
index e66fee60..3d8fc175 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,4 +9,3 @@ docs/.vitepress/dist
docs/.vitepress/cache
docs/components
.DS_Store
-/.vitepress
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 97394c40..caa7aa4a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,162 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
-## [v1.3.1](https://github.com/alan-wu/flatmapvuer/compare/v1.3.0...v1.3.1)
-
-### Commits
-
-- Update map-utilties to version 1.3.0. [`013c45b`](https://github.com/alan-wu/flatmapvuer/commit/013c45b2de7d401dc9937b4b550b10071f820ba5)
-
-## [v1.3.0](https://github.com/alan-wu/flatmapvuer/compare/v1.2.0...v1.3.0) - 2024-07-10
-
-### Merged
-
-- Display connectivity info without obstructing current map view [`#175`](https://github.com/alan-wu/flatmapvuer/pull/175)
-- Revert "Fix PubMed URL issue" [`#177`](https://github.com/alan-wu/flatmapvuer/pull/177)
-- Fix PubMed URL issue [`#176`](https://github.com/alan-wu/flatmapvuer/pull/176)
-- Utilities package [`#174`](https://github.com/alan-wu/flatmapvuer/pull/174)
-
-### Commits
-
-- Replace local components by map-utilities package [`e59cf6e`](https://github.com/alan-wu/flatmapvuer/commit/e59cf6e284a99d3abae12248e6da6b7a4b1cbe33)
-- Update code for upcoming toolbar component [`94e38f4`](https://github.com/alan-wu/flatmapvuer/commit/94e38f47c48226f759b24c59f53ea119cce61331)
-- Update code for upcoming treecontrols component [`ab31662`](https://github.com/alan-wu/flatmapvuer/commit/ab316621cfeeee234eeaf5a7b54de039f4a09bd6)
-
-## [v1.2.0](https://github.com/alan-wu/flatmapvuer/compare/v1.1.1...v1.2.0) - 2024-06-24
-
-### Merged
-
-- Update to how modes are selected [`#170`](https://github.com/alan-wu/flatmapvuer/pull/170)
-- Switch to latest version of flatmap-viewer [`#173`](https://github.com/alan-wu/flatmapvuer/pull/173)
-- Update marker icon for help mode [`#6`](https://github.com/alan-wu/flatmapvuer/pull/6)
-
-### Commits
-
-- Switch the mode selector to a title/subtitle style [`13f1ff7`](https://github.com/alan-wu/flatmapvuer/commit/13f1ff79eb903ce2103d9d289b95dd4f161d1009)
-- Switch network discover mode to 'neuron connections' mode and add help text [`2d4f050`](https://github.com/alan-wu/flatmapvuer/commit/2d4f050ca1011c1272d1515e8be5993fbba5d8ca)
-- Maintain viewing modes order. [`bb1dc6a`](https://github.com/alan-wu/flatmapvuer/commit/bb1dc6ae5609869935e46c4fd235d9c2badfb1ea)
-
-## [v1.1.1](https://github.com/alan-wu/flatmapvuer/compare/v1.1.0...v1.1.1) - 2024-06-06
-
-### Merged
-
-- UI updates for FC map pathway container [`#171`](https://github.com/alan-wu/flatmapvuer/pull/171)
-- Now can handle single and double nodes at all times [`#169`](https://github.com/alan-wu/flatmapvuer/pull/169)
-
-### Commits
-
-- Add a fix to cypress testing. [`aa8de18`](https://github.com/alan-wu/flatmapvuer/commit/aa8de189572cb34ba584f99cc895926b79ed7d22)
-- Make improvements on TreeControls UI [`72fe2ee`](https://github.com/alan-wu/flatmapvuer/commit/72fe2ee54f6b257d870d3ff7bf4dbe336c2e98dd)
-- Update cypress testing. [`266c29c`](https://github.com/alan-wu/flatmapvuer/commit/266c29c28d2c25665f49267f7953abb6fcf46daa)
-
-## [v1.1.0](https://github.com/alan-wu/flatmapvuer/compare/v1.1.0-beta.3...v1.1.0) - 2024-05-29
-
-### Merged
-
-- Remove origins from highlight in network explorer mode: [`#144`](https://github.com/alan-wu/flatmapvuer/pull/144)
-- Toolbar icon style [`#168`](https://github.com/alan-wu/flatmapvuer/pull/168)
-- fix toolbar when Drawn By specified [`#167`](https://github.com/alan-wu/flatmapvuer/pull/167)
-- New draw feature for Annotator [`#142`](https://github.com/alan-wu/flatmapvuer/pull/142)
-- Refactor [`#14`](https://github.com/alan-wu/flatmapvuer/pull/14)
-- Add features alert [`#161`](https://github.com/alan-wu/flatmapvuer/pull/161)
-- Supports the old help mode without help dialog. [`#166`](https://github.com/alan-wu/flatmapvuer/pull/166)
-- Flatmap improvements - help text visible [`#165`](https://github.com/alan-wu/flatmapvuer/pull/165)
-
-### Commits
-
-- Update package-lock.json. [`4300265`](https://github.com/alan-wu/flatmapvuer/commit/4300265d0b175e003d937c225765466219d1663a)
-- Remove console message. [`eeaa6cc`](https://github.com/alan-wu/flatmapvuer/commit/eeaa6cc0f309b880fef4d66c01abd14eb804f1c0)
-- move dialog display control into draw tool component [`aafa7a8`](https://github.com/alan-wu/flatmapvuer/commit/aafa7a87e4cdbf5dc576f09534f6b21fc4f1eb93)
-
-## [v1.1.0-beta.3](https://github.com/alan-wu/flatmapvuer/compare/v1.0.2...v1.1.0-beta.3) - 2024-05-22
-
-### Merged
-
-- Highlight on species [`#127`](https://github.com/alan-wu/flatmapvuer/pull/127)
-- Add relation between drawn features [`#13`](https://github.com/alan-wu/flatmapvuer/pull/13)
-- Refactor annotator code [`#12`](https://github.com/alan-wu/flatmapvuer/pull/12)
-- Send item details when adding an annotation. [`#11`](https://github.com/alan-wu/flatmapvuer/pull/11)
-- A tidy up and pass more connection information to the annotation service [`#10`](https://github.com/alan-wu/flatmapvuer/pull/10)
-- Annotator further development [`#8`](https://github.com/alan-wu/flatmapvuer/pull/8)
-- Viewer changes merged [`#7`](https://github.com/alan-wu/flatmapvuer/pull/7)
-- pull requirements [`#6`](https://github.com/alan-wu/flatmapvuer/pull/6)
-- pull latest changes [`#4`](https://github.com/alan-wu/flatmapvuer/pull/4)
-- Merge new changes [`#3`](https://github.com/alan-wu/flatmapvuer/pull/3)
-- Vue3 migration [`#2`](https://github.com/alan-wu/flatmapvuer/pull/2)
-
-### Commits
-
-- Merged in annotationn changes. [`7b8cfcb`](https://github.com/alan-wu/flatmapvuer/commit/7b8cfcb0ba742711936d353759c86c2f7fa35887)
-- Merged in upstream changes. [`eeba37c`](https://github.com/alan-wu/flatmapvuer/commit/eeba37cb1c7c7efc3589c09fb6a2d1538debf023)
-- merged in upstream changes. [`77ddcf7`](https://github.com/alan-wu/flatmapvuer/commit/77ddcf73569a72613bd45de90bafbc5b74641ba6)
-
-## [v1.0.2](https://github.com/alan-wu/flatmapvuer/compare/v1.0.1...v1.0.2) - 2024-05-15
-
-### Merged
-
-- Bugfix - Help Mode Tooltips [`#164`](https://github.com/alan-wu/flatmapvuer/pull/164)
-- Add pathways checkbox events for data tracking [`#163`](https://github.com/alan-wu/flatmapvuer/pull/163)
-
-### Commits
-
-- Fix featured dataset tooltip and help mode [`883e6c5`](https://github.com/alan-wu/flatmapvuer/commit/883e6c5acf243abda7f0da047a80ff7af3677f95)
-- Open drawer to show tooltips inside when help mode is activated [`82b1ce6`](https://github.com/alan-wu/flatmapvuer/commit/82b1ce6405e6e6dac31f0e959010b06c7aa2f268)
-- Add open pubmed button click event [`782145d`](https://github.com/alan-wu/flatmapvuer/commit/782145d4641f173c992c36792eacf960b2456e3c)
-
-## [v1.0.1](https://github.com/alan-wu/flatmapvuer/compare/v1.0.0...v1.0.1) - 2024-05-02
-
-### Merged
-
-- Add species switch in component testing [`#150`](https://github.com/alan-wu/flatmapvuer/pull/150)
-
-### Commits
-
-- Update changelogs. [`164211a`](https://github.com/alan-wu/flatmapvuer/commit/164211aafed94962d79666caabe8e7df15726912)
-- Update test for species switch [`5cba70e`](https://github.com/alan-wu/flatmapvuer/commit/5cba70e6310fe5339017b8140c91d16e3b883b79)
-- Fix a typo. [`6feeab9`](https://github.com/alan-wu/flatmapvuer/commit/6feeab9a33e1ba2a4960a1a344442fa864a7c582)
-
-## [v1.0.0](https://github.com/alan-wu/flatmapvuer/compare/v0.5.9...v1.0.0) - 2024-04-24
-
-### Merged
-
-- Fix popup close error [`#160`](https://github.com/alan-wu/flatmapvuer/pull/160)
-- Fix tooltip arrow on top position [`#159`](https://github.com/alan-wu/flatmapvuer/pull/159)
-- Fix api docs demo for pinia [`#158`](https://github.com/alan-wu/flatmapvuer/pull/158)
-- Fix popup showing on switching viewingMode [`#157`](https://github.com/alan-wu/flatmapvuer/pull/157)
-- Popup UI Updates [`#156`](https://github.com/alan-wu/flatmapvuer/pull/156)
-- Fix tooltip arrows UI for corner positions [Bugfix] [UI] [`#153`](https://github.com/alan-wu/flatmapvuer/pull/153)
-- Update vitepress config with alias to resolve dir [`#148`](https://github.com/alan-wu/flatmapvuer/pull/148)
-- Update flatmapvuer. [`#147`](https://github.com/alan-wu/flatmapvuer/pull/147)
-- Add pinia in Cypress component test [`#4`](https://github.com/alan-wu/flatmapvuer/pull/4)
-- Annotation authentication [`#143`](https://github.com/alan-wu/flatmapvuer/pull/143)
-- Fix a bug causing annotation to not open the editing dialog. [`#9`](https://github.com/alan-wu/flatmapvuer/pull/9)
-- Update docs content [`#146`](https://github.com/alan-wu/flatmapvuer/pull/146)
-- Cleanup unused npm packages [`#137`](https://github.com/alan-wu/flatmapvuer/pull/137)
-- Make flatmap query helper functions more robust [`#141`](https://github.com/alan-wu/flatmapvuer/pull/141)
-- Change Flight Path Option [`#140`](https://github.com/alan-wu/flatmapvuer/pull/140)
-- Feature/3d fc map [`#139`](https://github.com/alan-wu/flatmapvuer/pull/139)
-- Hotfix - el-radio props incorrectly changed [`#136`](https://github.com/alan-wu/flatmapvuer/pull/136)
-- Cypress testing Vue 3 [`#134`](https://github.com/alan-wu/flatmapvuer/pull/134)
-- Update test and dependencies. [`#4`](https://github.com/alan-wu/flatmapvuer/pull/4)
-- APIs Documentation [`#133`](https://github.com/alan-wu/flatmapvuer/pull/133)
-- Update species selectbox style for hidden contents [`#135`](https://github.com/alan-wu/flatmapvuer/pull/135)
-- Fix svg being slighlty to big for its container [`#132`](https://github.com/alan-wu/flatmapvuer/pull/132)
-- Featured marker fix [`#128`](https://github.com/alan-wu/flatmapvuer/pull/128)
-- Add missing interface [`#131`](https://github.com/alan-wu/flatmapvuer/pull/131)
-- Add a property to disable UI elements [`#130`](https://github.com/alan-wu/flatmapvuer/pull/130)
-- Vue3 migration [`#126`](https://github.com/alan-wu/flatmapvuer/pull/126)
-- Remove warning [`#3`](https://github.com/alan-wu/flatmapvuer/pull/3)
-- fetch vue3 migration changes [`#1`](https://github.com/alan-wu/flatmapvuer/pull/1)
-- Allow html in "what's new": [`#125`](https://github.com/alan-wu/flatmapvuer/pull/125)
-- Featured marker legend name fix [`#124`](https://github.com/alan-wu/flatmapvuer/pull/124)
-
-### Commits
-
-- Add missing files [`219c3fe`](https://github.com/alan-wu/flatmapvuer/commit/219c3fe91fce576bc6314bd328f2ffaa89d89e3f)
-- Remove vuese/cli for npm security vulnerabilities [`bc46469`](https://github.com/alan-wu/flatmapvuer/commit/bc4646969051d750dc02a19c3226c067aea8b809)
-- Fix an issue with package-lock.json. [`1d9b9e5`](https://github.com/alan-wu/flatmapvuer/commit/1d9b9e57fc2765fd718ccaa6ac4ecae1aad43b72)
-
-## [v0.5.9](https://github.com/alan-wu/flatmapvuer/compare/v0.5.8...v0.5.9) - 2023-12-08
+## [v0.5.9](https://github.com/alan-wu/flatmapvuer/compare/v0.5.9-beta.0...v0.5.9)
### Merged
@@ -175,6 +20,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Reset version. [`5f10239`](https://github.com/alan-wu/flatmapvuer/commit/5f10239a05f33b9d6bb1b6c71d02605c0d1c0c58)
- Merge in changes. [`76ee249`](https://github.com/alan-wu/flatmapvuer/commit/76ee249280969445f48af38e9dfe8677d45faa00)
+## [v0.5.9-beta.0](https://github.com/alan-wu/flatmapvuer/compare/v0.5.8...v0.5.9-beta.0) - 2023-11-09
+
+### Commits
+
+- Add initial UI for annotation viewing/submitting dialog. [`b5d3263`](https://github.com/alan-wu/flatmapvuer/commit/b5d326303f83bba7c1c7f468aecee49d092e0b4d)
+- Restructure Tooltip component. Add in Annotational Tool component [`974f07e`](https://github.com/alan-wu/flatmapvuer/commit/974f07e6b242d11f3fb33469f0ae59246a5647e7)
+- Improve annotation UI based on feedbacks. [`c631c7a`](https://github.com/alan-wu/flatmapvuer/commit/c631c7a98e8b5baf070b02c3a7bdfbfcf999bd80)
+
## [v0.5.8](https://github.com/alan-wu/flatmapvuer/compare/v0.5.7...v0.5.8) - 2023-11-07
### Merged
@@ -259,18 +112,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [v0.4.6](https://github.com/alan-wu/flatmapvuer/compare/0.4.6-fixes-2...v0.4.6) - 2023-06-01
-## [0.4.6-fixes-2](https://github.com/alan-wu/flatmapvuer/compare/0.4.6-fixes-1...0.4.6-fixes-2) - 2023-06-05
-
-### Commits
-
-- Search will display the label and location of the highest score result. [`c3b2e47`](https://github.com/alan-wu/flatmapvuer/commit/c3b2e471ed3bb6eb61c078c903814f40d57ca3fa)
-
-## [0.4.6-fixes-1](https://github.com/alan-wu/flatmapvuer/compare/v0.4.6-fixes-0...0.4.6-fixes-1) - 2023-06-02
+## [0.4.6-fixes-2](https://github.com/alan-wu/flatmapvuer/compare/v0.4.6-fixes-0...0.4.6-fixes-2) - 2023-06-05
### Commits
- Version 0.4.6-fixes-1 [`e8b60c3`](https://github.com/alan-wu/flatmapvuer/commit/e8b60c3e9bf381f4af68bd95612cdd20ea3132d0)
- Rename mapboxgl in css rules to maplibregl. [`9040cc9`](https://github.com/alan-wu/flatmapvuer/commit/9040cc96d32bb076c14c05af52f79a7137cd2651)
+- Search will display the label and location of the highest score result. [`c3b2e47`](https://github.com/alan-wu/flatmapvuer/commit/c3b2e471ed3bb6eb61c078c903814f40d57ca3fa)
## [v0.4.6-fixes-0](https://github.com/alan-wu/flatmapvuer/compare/v0.4.5...v0.4.6-fixes-0) - 2023-06-01
@@ -326,8 +174,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
### Commits
- Create a new vue component for the selection controls. [`aed5e35`](https://github.com/alan-wu/flatmapvuer/commit/aed5e3598d4d1fc8d6dd34a0cb7541066d155751)
+- Add dynamic system legends. [`9c86414`](https://github.com/alan-wu/flatmapvuer/commit/9c8641476d61830f5f5141f3fe29c1a4c04b316f)
- update flatmap-viewer to 2.2.13 [`f8e0dc8`](https://github.com/alan-wu/flatmapvuer/commit/f8e0dc8473b37935dc24b9765569ed5c9d26604d)
-- Update flatmap-viewer. [`33c53dc`](https://github.com/alan-wu/flatmapvuer/commit/33c53dc53989823f934235e6ebbfe2a8bd1652a9)
## [v0.3.15](https://github.com/alan-wu/flatmapvuer/compare/v0.3.12...v0.3.15) - 2023-02-27
@@ -347,18 +195,29 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [v0.3.12](https://github.com/alan-wu/flatmapvuer/compare/v0.3.12-fixes-0...v0.3.12) - 2023-01-20
-## [v0.3.12-fixes-0](https://github.com/alan-wu/flatmapvuer/compare/v0.3.10...v0.3.12-fixes-0) - 2023-01-20
+## [v0.3.12-fixes-0](https://github.com/alan-wu/flatmapvuer/compare/v0.3.11...v0.3.12-fixes-0) - 2023-01-20
### Merged
- Permalink update [`#90`](https://github.com/alan-wu/flatmapvuer/pull/90)
-- Now search on model for pubmed ids [`#85`](https://github.com/alan-wu/flatmapvuer/pull/85)
### Commits
- Flatmapvuer now uses uuid to fetch the map when saved in state. [`af447d3`](https://github.com/alan-wu/flatmapvuer/commit/af447d3e73bb8324d636b4831d7527d821704a60)
+- Improve initialisation of the multi flatmap. [`c00e258`](https://github.com/alan-wu/flatmapvuer/commit/c00e2584f02e0e9d4fbb8507a5ebbabd0f2f9655)
+- Fix an issue with reactivity by assigning value directly into an object. [`f87757b`](https://github.com/alan-wu/flatmapvuer/commit/f87757b32f0566eb8d6355055d60cb4ff724b597)
+
+## [v0.3.11](https://github.com/alan-wu/flatmapvuer/compare/v0.3.10...v0.3.11) - 2022-12-16
+
+### Merged
+
+- Now search on model for pubmed ids [`#85`](https://github.com/alan-wu/flatmapvuer/pull/85)
+
+### Commits
+
- Cut down pubmedviewer, organise tooltip proccessing [`dde4b8b`](https://github.com/alan-wu/flatmapvuer/commit/dde4b8b62808475dac4e4cc2ecbbcc72c48d1196)
- Increment version number to 0.3.11. [`a7509fd`](https://github.com/alan-wu/flatmapvuer/commit/a7509fdbd4f6914f4362f2e526362ca8248b1a5e)
+- Remove older unused watch on the pubmedvuer [`a74efe6`](https://github.com/alan-wu/flatmapvuer/commit/a74efe6ea54380d36afdaeede339584697701d5b)
## [v0.3.10](https://github.com/alan-wu/flatmapvuer/compare/0.3.9...v0.3.10) - 2022-12-13
diff --git a/cypress/component/MultiFlatmapVuer.cy.js b/cypress/component/MultiFlatmapVuer.cy.js
index 48d642b3..1d9a7cba 100644
--- a/cypress/component/MultiFlatmapVuer.cy.js
+++ b/cypress/component/MultiFlatmapVuer.cy.js
@@ -9,25 +9,15 @@ import { createPinia, setActivePinia } from 'pinia';
describe('MultiFlatmapVuer', () => {
- Cypress.on('uncaught:exception', (err) => {
- // returning false here prevents Cypress from
- // failing the test
- if (err.message.includes('Source "markers" already exists.'))
- return false
- return true
- })
-
beforeEach(() => {
cy.viewport(1920, 1080);
- cy.fixture('MultiFlatmapProps.json').as('props');
});
//Load in some responses/assets before beginning the test
//This should prevent any async behaviours.
before(() => {
- // moved to beforeEach
- // cy.fixture('MultiFlatmapProps.json').as('props');
+ cy.fixture('MultiFlatmapProps.json').as('props');
})
it('Workflow testing', () => {
@@ -114,7 +104,7 @@ describe('MultiFlatmapVuer', () => {
}, [])
// Check the pop up has the same information as when the test was created
- cy.get('.subtitle').should('exist').contains('Studied in Rattus norvegicus species')
+ cy.get('.subtitle').should('exist').contains('Observed in Rattus norvegicus species')
cy.get('[origin-item-label="Twelfth thoracic ganglion"]').should('exist')
cy.get('[component-item-label="connective tissue, neck of urinary bladder"]').should('exist')
cy.get('[destination-item-label="wall of blood vessel, Arteriole in connective tissue of bladder dome"]').should('exist')
@@ -147,7 +137,7 @@ describe('MultiFlatmapVuer', () => {
// Click the open pubmed button and check that the window.open call was intercepted
cy.get('#open-pubmed-button').should('exist').click()
- cy.get('@Open').should('have.been.calledOnceWithExactly', Cypress.sinon.match(/^https:\/\/pubmed\.ncbi\.nlm\.nih\.gov(?:\/.*)/), '_blank')
+ cy.get('@Open').should('have.been.calledOnceWithExactly', 'https://pubmed.ncbi.nlm.nih.gov/?term=1358408%2C9622251%2C9442414%2C7174880', '_blank')
})
@@ -162,97 +152,11 @@ describe('MultiFlatmapVuer', () => {
})
- })
-
- })
- it('change different species', () => {
- // const resourceSelectedSpy = cy.spy().as('resourceSelectedSpy')
- cy.get('@props').then((props) => {
- console.log('flatmapAPI', props)
- cy.mount(CypressComponentWrapper, {
- propsData: {
- component: 'MultiFlatmapVuer',
- props: props,
- },
- global: {
- plugins: setActivePinia(createPinia())
- }
- }).then((vm) => {
- cy.wrap(vm).as('vm')
- window.vm = vm
-
- }).get('@vue').should('exist')
-
- // Now that we have the vue wrapper, check that the ready event is fired
- .then(() => {
- cy.get('@vue').should(wrapper => {
- expect(wrapper.emitted('ready')).to.be.ok
- Cypress.multiFlatmapVuerWrapper = wrapper
- })
- })
-
- })
-
- //Check if multiflatmap is mounted correctly
- cy.get('.content-container').should('exist');
-
- // Check if flatmap emits ready event
- cy.get('@vue').should(wrapper => {
- expect(wrapper.emitted('ready')).to.be.ok
- }).then(() => {
- const multiFlatmapVuer = window.Cypress.multiFlatmapVuer
- const speciesList = [
- {
- name: 'Human Female',
- taxon: 'NCBITaxon:9606'
- },
- {
- name: 'Rat (NPO)',
- taxon: 'NCBITaxon:10116'
- },
- {
- name: 'Functional Connectivity',
- taxon: 'FunctionalConnectivity'
- }
- ]
-
- // Switching species
- const switchSpeciesAndTest = (speciesId, speciesTaxo) => {
- multiFlatmapVuer.setSpecies(
- speciesId,
- multiFlatmapVuer.state ? multiFlatmapVuer.state.state : undefined,
- 1
- )
- }
-
- // Human Female
- switchSpeciesAndTest(speciesList[0].name, speciesList[0].taxon)
- expect(multiFlatmapVuer.activeSpecies).to.eq(speciesList[0].name)
- cy.get('#maplibre-minimap > .maplibregl-canvas-container > .maplibregl-canvas').should('exist');
- cy.get('.maplibregl-map').should('exist');
- cy.get('.pathway-location').should('exist');
-
- cy.wait(8000)
-
- // Rat (NPO)
- switchSpeciesAndTest(speciesList[1].name, speciesList[1].taxon)
- expect(multiFlatmapVuer.activeSpecies).to.eq(speciesList[1].name)
- cy.get('#maplibre-minimap > .maplibregl-canvas-container > .maplibregl-canvas').should('exist');
- cy.get('.maplibregl-map').should('exist');
- cy.get('.pathway-location').should('exist');
-
- cy.wait(8000)
-
- // Functional Connectivity
- switchSpeciesAndTest(speciesList[2].name, speciesList[2].taxon)
- expect(multiFlatmapVuer.activeSpecies).to.eq(speciesList[2].name)
- cy.get('#maplibre-minimap > .maplibregl-canvas-container > .maplibregl-canvas').should('exist');
- cy.get('.maplibregl-map').should('exist');
- cy.get('.pathway-location').should('exist');
})
})
+
});
diff --git a/cypress/fixtures/MultiFlatmapProps.json b/cypress/fixtures/MultiFlatmapProps.json
index ba40acbf..6c5c38e4 100644
--- a/cypress/fixtures/MultiFlatmapProps.json
+++ b/cypress/fixtures/MultiFlatmapProps.json
@@ -4,22 +4,6 @@
"Test": {
"taxo": "NCBITaxon:1",
"displayWarning": true
- },
- "Human Female": {
- "taxo": "NCBITaxon:9606",
- "biologicalSex": "PATO:0000383",
- "iconClass": "mapicon-icon_human",
- "displayWarning": true
- },
- "Rat (NPO)": {
- "taxo": "NCBITaxon:10116",
- "iconClass": "mapicon-icon_rat",
- "displayWarning": true,
- "displayLatestChanges": true
- },
- "Functional Connectivity": {
- "taxo": "FunctionalConnectivity",
- "displayWarning": true
}
},
"displayCloseButton": false,
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index 110337dc..71a79c64 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -1,4 +1,3 @@
-import path from 'path'
import { defineConfig } from 'vitepress'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
@@ -69,11 +68,6 @@ export default defineConfig({
},
},
},
- resolve: {
- alias: {
- '@': path.resolve(__dirname, '../../src'),
- }
- },
plugins: [
Components({
// allow auto load markdown components under `./src/components/`
diff --git a/docs/demo-flatmapvuer.md b/docs/demo-flatmapvuer.md
index b9a5ca3c..fedcf7c3 100644
--- a/docs/demo-flatmapvuer.md
+++ b/docs/demo-flatmapvuer.md
@@ -13,15 +13,9 @@
@@ -364,8 +306,6 @@ body {
.options-button {
z-index:100;
position: absolute;
- left: 50%;
- transform: translateX(-50%);
}
.options-container {
diff --git a/src/components.d.ts b/src/components.d.ts
index 2799c294..ad6b3ead 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -7,6 +7,7 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
+ AnnotationTool: typeof import('./components/AnnotationTool.vue')['default']
DynamicLegends: typeof import('./components/legends/DynamicLegends.vue')['default']
ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
ElButton: typeof import('element-plus/es')['ElButton']
@@ -16,8 +17,13 @@ declare module 'vue' {
ElIcon: typeof import('element-plus/es')['ElIcon']
ElIconArrowDown: typeof import('@element-plus/icons-vue')['ArrowDown']
ElIconArrowLeft: typeof import('@element-plus/icons-vue')['ArrowLeft']
+ ElIconArrowUp: typeof import('@element-plus/icons-vue')['ArrowUp']
+ ElIconClose: typeof import('@element-plus/icons-vue')['Close']
+ ElIconEdit: typeof import('@element-plus/icons-vue')['Edit']
ElIconWarning: typeof import('@element-plus/icons-vue')['Warning']
ElIconWarningFilled: typeof import('@element-plus/icons-vue')['WarningFilled']
+ ElInput: typeof import('element-plus/es')['ElInput']
+ ElMain: typeof import('element-plus/es')['ElMain']
ElOption: typeof import('element-plus/es')['ElOption']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElRadio: typeof import('element-plus/es')['ElRadio']
@@ -25,10 +31,19 @@ declare module 'vue' {
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
+ ElTag: typeof import('element-plus/es')['ElTag']
+ ElTree: typeof import('element-plus/es')['ElTree']
+ ExternalResourceCard: typeof import('./components/ExternalResourceCard.vue')['default']
FlatmapVuer: typeof import('./components/FlatmapVuer.vue')['default']
+ IframeImageDialog: typeof import('./components/IframeImageDialog.vue')['default']
+ ImageGalleryPopup: typeof import('./components/ImageGalleryPopup.vue')['default']
+ ImagePopup: typeof import('./components/imagePopup.vue')['default']
MultiFlatmapVuer: typeof import('./components/MultiFlatmapVuer.vue')['default']
+ ProvenancePopup: typeof import('./components/ProvenancePopup.vue')['default']
SelectionsGroup: typeof import('./components/SelectionsGroup.vue')['default']
SvgLegends: typeof import('./components/legends/SvgLegends.vue')['default']
+ Tooltip: typeof import('./components/Tooltip.vue')['default']
+ TreeControls: typeof import('./components/TreeControls.vue')['default']
}
export interface ComponentCustomProperties {
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
diff --git a/src/components/AnnotationTool.vue b/src/components/AnnotationTool.vue
new file mode 100644
index 00000000..11083e7b
--- /dev/null
+++ b/src/components/AnnotationTool.vue
@@ -0,0 +1,446 @@
+
+
This is a legacy map, you may view the latest map instead.
This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron @@ -54,7 +49,7 @@ Please use `const` to assign meaningful names to them... SCKAN .
-+