Skip to content

Commit d5fb3c8

Browse files
authored
Merge pull request #320 from napakalas/issue-#319
Add borderStyle property, defaulting to default if not set.
2 parents 42a2044 + 9404b35 commit d5fb3c8

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed
-160 Bytes
Loading
-319 Bytes
Loading

cypress/support/commands.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Cypress.on('uncaught:exception', (err) => {
4747
return false
4848
if (err.message.includes("Cannot read properties of null (reading 'length')"))
4949
return false
50+
if (err.message.includes("Cannot read properties of null (reading 'id')"))
51+
return false
5052
return true
5153
})
5254

src/components/legends/LegendItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default {
7070
const specifiedColour = this.item["color"] ? this.item["color"] : this.item["colour"];
7171
let colour = specifiedColour ? specifiedColour : "transparent";
7272
let borderColour = this.item.border ? this.item.border : "black";
73+
let borderStyle = this.item.borderStyle ? this.item.borderStyle : "default";
7374
if (specifiedColour && !this.item.border) {
7475
borderColour = colour;
7576
}
@@ -82,7 +83,7 @@ export default {
8283
} else if (this.item[this.styleKey] === 'line') {
8384
return {'color': colour};
8485
} else {
85-
return { 'background-color': colour, 'border-color': borderColour};
86+
return { 'background-color': colour, 'border-color': borderColour, 'border-style': borderStyle};
8687
}
8788
},
8889
},

src/services/flatmapLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* a single source for the flatmap-viewer library import
33
*/
4-
import * as flatmap from 'https://cdn.jsdelivr.net/npm/@abi-software/[email protected].1/+esm';
4+
import * as flatmap from 'https://cdn.jsdelivr.net/npm/@abi-software/[email protected].2/+esm';
55

66
export default flatmap;

0 commit comments

Comments
 (0)