From bcf44c6a234c7999e449df17fa33882ac2e31bdc Mon Sep 17 00:00:00 2001 From: akhuoa Date: Tue, 24 Nov 2026 11:18:49 +1300 Subject: [PATCH 1/5] Remove old helpMode properties --- src/components/PlotControls.vue | 77 +++++++-------------------------- src/components/PlotVuer.vue | 7 --- 2 files changed, 16 insertions(+), 68 deletions(-) diff --git a/src/components/PlotControls.vue b/src/components/PlotControls.vue index 17b51fd..633d6c7 100644 --- a/src/components/PlotControls.vue +++ b/src/components/PlotControls.vue @@ -3,39 +3,31 @@
@@ -55,21 +47,17 @@
@@ -97,13 +85,7 @@ export default { }, data: function () { return { - hoverVisibilities: [ - { value: false }, - { value: false }, - { value: false }, - { value: false }, - { value: false }, - ], + tooltipDelay: 500, zoomSelect: [ { value: '1', @@ -183,33 +165,6 @@ export default { }); } }, - setHelpMode: function (helpMode) { - if (helpMode) { - this.inHelp = true; - this.hoverVisibilities.forEach((item) => { - item.value = true; - }); - } else { - this.inHelp = false; - this.hoverVisibilities.forEach((item) => { - item.value = false; - }); - } - }, - showToolitip: function (tooltipNumber) { - if (!this.inHelp) { - this.hoverVisibilities[tooltipNumber].value = true; - this.tooltipWait = setTimeout(() => { - this.hoverVisibilities[tooltipNumber].value = true; - }, 1000); - } - }, - hideToolitip: function (tooltipNumber) { - if (!this.inHelp) { - this.hoverVisibilities[tooltipNumber].value = false; - clearInterval(this.tooltipWait); - } - }, handleWheel: function (event) { let change = Math.round(event.deltaY / 7); this.zoom = this.zoom - change; diff --git a/src/components/PlotVuer.vue b/src/components/PlotVuer.vue index 1f7b1db..25ef3e6 100644 --- a/src/components/PlotVuer.vue +++ b/src/components/PlotVuer.vue @@ -97,13 +97,6 @@ export default { type: Array, default: () => [], }, - /** - * The option to choose helpMode. - */ - helpMode: { - type: Boolean, - default: false, - }, /** * The option to show the selector UI. */ From 5ca79dcd67438ed6efee9c0a65da8b9bf7b10124 Mon Sep 17 00:00:00 2001 From: akhuoa Date: Tue, 24 Nov 2026 11:38:04 +1300 Subject: [PATCH 2/5] Add map-utilities for help mode --- package-lock.json | 45 ++++++++++++++++++++++++++++++++++++++++++++- package.json | 1 + 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index f35918e..8b506cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.3.0", "license": "Apache-2.0", "dependencies": { + "@abi-software/map-utilities": "1.14.0", "@abi-software/svg-sprite": "1.4.0", "css-element-queries": "^1.2.3", "element-plus": "^2.14.5", @@ -50,6 +51,31 @@ "@rollup/rollup-win32-x64-msvc": "4.63.0" } }, + "node_modules/@abi-software/map-utilities": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/@abi-software/map-utilities/-/map-utilities-1.14.0.tgz", + "integrity": "sha512-bOFUsk1yaa1ksoWNTdLHoYAWCS9MgJQQOD55azIE6mQmOapF5xTaJHnhQ7sQxHBW9Q2SGaDoN4GkVAVCxk0Lug==", + "license": "Apache-2.0", + "dependencies": { + "@abi-software/svg-sprite": "1.4.0", + "@element-plus/icons-vue": "^2.3.2", + "cytoscape": "^3.34.0", + "cytoscape-dagre": "^4.0.0", + "element-plus": "^2.14.5", + "mitt": "^3.0.1", + "vue": "^3.5.41" + }, + "engines": { + "node": "^24.20.0" + }, + "optionalDependencies": { + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@rollup/rollup-darwin-arm64": "4.63.0", + "@rollup/rollup-linux-x64-gnu": "4.63.0", + "@rollup/rollup-win32-x64-msvc": "4.63.0" + } + }, "node_modules/@abi-software/svg-sprite": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@abi-software/svg-sprite/-/svg-sprite-1.4.0.tgz", @@ -4042,6 +4068,24 @@ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "license": "MIT" }, + "node_modules/cytoscape": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.35.0.tgz", + "integrity": "sha512-sMvBIXiGMnhkCaWz2R06FwF/27MNlS+Tqvi17foO9UhnUg3XGZccKjxsvEqQFAQYMSSZmN5SxYzUYlQ0DOJJ3g==", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cytoscape-dagre": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cytoscape-dagre/-/cytoscape-dagre-4.1.0.tgz", + "integrity": "sha512-wZYva0KmkIeCrUIy6u/SJgwEFHtWUuu4UqVOjJ6thtvmiNcjS9hY/4AXiIDx8k/zleVxrYCPb7TGlAyNjZ627Q==", + "license": "MIT", + "peerDependencies": { + "cytoscape": "^3.2.22" + } + }, "node_modules/d": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", @@ -7104,7 +7148,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", - "dev": true, "license": "MIT" }, "node_modules/mlly": { diff --git a/package.json b/package.json index 5346158..9e64e20 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "*.js" ], "dependencies": { + "@abi-software/map-utilities": "1.14.0", "@abi-software/svg-sprite": "1.4.0", "css-element-queries": "^1.2.3", "element-plus": "^2.14.5", From d4e5ae13a9f9139dc04ac311837511f12d4b51a6 Mon Sep 17 00:00:00 2001 From: akhuoa Date: Tue, 24 Nov 2026 11:50:30 +1300 Subject: [PATCH 3/5] Add new help mode from map-utilities --- src/App.vue | 48 +++++++++++++++++++++++++++++ src/components/HeatmapPlot.vue | 42 ++++++++++++++++++++++++-- src/components/PlotControls.vue | 50 +++++++++++++++++++++++++++++-- src/components/PlotVuer.vue | 14 ++++++++- src/components/TimeseriesPlot.vue | 21 ++++++++++++- src/mixins/plot_common.js | 4 +++ vite.config.js | 17 ++++++++++- 7 files changed, 188 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7d9f300..745a22a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,49 @@ + +