From d38a1fa7d8271bec232bcb9684d80cb810d914b9 Mon Sep 17 00:00:00 2001 From: alan-wu Date: Thu, 12 Sep 2024 16:11:41 +1200 Subject: [PATCH 1/2] Change default species to human male. --- src/components/scripts/utilities.js | 4 ++-- src/components/viewers/MultiFlatmap.vue | 2 +- src/mixins/ContentMixin.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/scripts/utilities.js b/src/components/scripts/utilities.js index 2e35d53f..e547ad1e 100644 --- a/src/components/scripts/utilities.js +++ b/src/components/scripts/utilities.js @@ -2,7 +2,7 @@ const initialDefaultState = () => { return { entries: [ { - resource: "Rat", + resource: "Human Male", type: "MultiFlatmap", mode: "main", id: 1, @@ -18,7 +18,7 @@ const getNewMapEntry = async (type, sparcApi) => { let entry = { }; if (type === "AC") { entry = { - resource: "Rat", + resource: "Human Male", type: "MultiFlatmap", mode: "main", state: undefined, diff --git a/src/components/viewers/MultiFlatmap.vue b/src/components/viewers/MultiFlatmap.vue index 3c36983a..f7f89e5c 100644 --- a/src/components/viewers/MultiFlatmap.vue +++ b/src/components/viewers/MultiFlatmap.vue @@ -105,7 +105,7 @@ export default { availableSpecies: availableSpecies(), scaffoldResource: { }, showStarInLegend: false, - openMapOptions: getOpenMapOptions("Rat"), + openMapOptions: getOpenMapOptions("Human Male"), } }, methods: { diff --git a/src/mixins/ContentMixin.js b/src/mixins/ContentMixin.js index 7a91a10a..4d176c03 100644 --- a/src/mixins/ContentMixin.js +++ b/src/mixins/ContentMixin.js @@ -500,7 +500,7 @@ export default { data: function () { return { apiLocation: undefined, - activeSpecies: "Rat", + activeSpecies: "Human Male", scaffoldCamera: undefined, mainStyle: { height: this.entry.datasetTitle ? "calc(100% - 30px)" : "100%", From fae91fe73799e6aaffd4ce956bfccdc57daa86e1 Mon Sep 17 00:00:00 2001 From: alan-wu Date: Fri, 20 Sep 2024 10:54:38 +1200 Subject: [PATCH 2/2] Update flatmapvuer. --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2c18658..91077730 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.4.2", "license": "Apache-2.0", "dependencies": { - "@abi-software/flatmapvuer": "^1.4.4", + "@abi-software/flatmapvuer": "^1.5.1", "@abi-software/map-side-bar": "^2.4.1", "@abi-software/map-utilities": "^1.1.0", "@abi-software/plotvuer": "1.0.0", @@ -103,9 +103,9 @@ } }, "node_modules/@abi-software/flatmapvuer": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/@abi-software/flatmapvuer/-/flatmapvuer-1.4.4.tgz", - "integrity": "sha512-3lDto9qQWKrizGDCyB/GzNVrfoDgtAZI87JjfhCCV6NAChUJbPKsi5lGSTjie2WP+mVA1uiid7hiuvyYLSBSAw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@abi-software/flatmapvuer/-/flatmapvuer-1.5.1.tgz", + "integrity": "sha512-VR+DKsE9j3Cf865kqzxba3lGFvJ/oYR21kxGUP6Yh4Y6ZCu0Let+oeSG+dleoEAIdNUIdT0VuPLpQrB1dWRg9g==", "dependencies": { "@abi-software/flatmap-viewer": "3.1.8", "@abi-software/map-utilities": "1.1.0", diff --git a/package.json b/package.json index 23a04b62..527c219e 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "*.js" ], "dependencies": { - "@abi-software/flatmapvuer": "^1.4.4", + "@abi-software/flatmapvuer": "^1.5.1", "@abi-software/map-side-bar": "^2.4.1", "@abi-software/map-utilities": "^1.1.0", "@abi-software/plotvuer": "1.0.0",