@abi-software/flatmapvuer 1.12.0 → 1.12.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
@@ -11,7 +11,7 @@
11
11
  </div>
12
12
  <div class="flatmap-error-message" v-if="flatmapError.messages">
13
13
  <div v-for="(message, index) in flatmapError.messages" :key="index">
14
- {{ message }}
14
+ <div v-html="message"></div>
15
15
  </div>
16
16
  </div>
17
17
  <div v-if="flatmapError.button">
@@ -3034,7 +3034,11 @@ export default {
3034
3034
  this.lastViewport = markRaw(this.mapImp.getState())
3035
3035
  this.flatmapError = {};
3036
3036
  this.flatmapError['title'] = 'GL context lost!'
3037
- this.flatmapError['messages'] = [`GL context is lost due to too many concurrent GL contexts. Please try using the Restore Context button.`]
3037
+ this.flatmapError['messages'] = [`A display issue has occurred due
3038
+ to a limit on available WebGL contexts. You can restore the display
3039
+ using the Restore Context button. Please see the
3040
+ <a href="https://docs.sparc.science/docs/integrated-maps-viewer-overview#limit-on-available-webgl-contexts" target='_blank'>documentation</a>
3041
+ for more details.`]
3038
3042
  this.flatmapError['button'] = {
3039
3043
  text: 'Restore Context',
3040
3044
  callback: () => {
@@ -70,6 +70,7 @@ export default {
70
70
  const specifiedColour = this.item["color"] ? this.item["color"] : this.item["colour"];
71
71
  let colour = specifiedColour ? specifiedColour : "transparent";
72
72
  let borderColour = this.item.border ? this.item.border : "black";
73
+ let borderStyle = this.item.borderStyle ? this.item.borderStyle : "default";
73
74
  if (specifiedColour && !this.item.border) {
74
75
  borderColour = colour;
75
76
  }
@@ -82,7 +83,7 @@ export default {
82
83
  } else if (this.item[this.styleKey] === 'line') {
83
84
  return {'color': colour};
84
85
  } else {
85
- return { 'background-color': colour, 'border-color': borderColour};
86
+ return { 'background-color': colour, 'border-color': borderColour, 'border-style': borderStyle};
86
87
  }
87
88
  },
88
89
  },
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * a single source for the flatmap-viewer library import
3
3
  */
4
- import * as flatmap from 'https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.1/+esm';
4
+ import * as flatmap from 'https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.3/+esm';
5
5
 
6
6
  export default flatmap;