@abi-software/flatmapvuer 0.5.9 → 0.5.10

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +402 -402
  2. package/LICENSE +201 -201
  3. package/README.md +105 -105
  4. package/babel.config.js +14 -14
  5. package/package-lock.json +18473 -18473
  6. package/package.json +79 -79
  7. package/public/index.html +17 -17
  8. package/src/App.vue +228 -228
  9. package/src/assets/_variables.scss +43 -43
  10. package/src/assets/styles.scss +7 -7
  11. package/src/components/AnnotationTool.vue +403 -403
  12. package/src/components/EventBus.js +2 -2
  13. package/src/components/ExternalResourceCard.vue +98 -98
  14. package/src/components/FlatmapVuer.vue +2070 -2059
  15. package/src/components/MultiFlatmapVuer.vue +535 -536
  16. package/src/components/ProvenancePopup.vue +422 -422
  17. package/src/components/SelectionsGroup.vue +249 -249
  18. package/src/components/Tooltip.vue +52 -52
  19. package/src/components/TreeControls.vue +231 -231
  20. package/src/components/index.js +9 -9
  21. package/src/components/legends/DynamicLegends.vue +112 -112
  22. package/src/components/legends/SvgLegends.vue +67 -67
  23. package/src/icons/fonts/mapicon-species.eot +0 -0
  24. package/src/icons/fonts/mapicon-species.svg +14 -14
  25. package/src/icons/fonts/mapicon-species.ttf +0 -0
  26. package/src/icons/fonts/mapicon-species.woff +0 -0
  27. package/src/icons/mapicon-species-style.css +42 -42
  28. package/src/icons/yellowstar.js +5 -5
  29. package/src/legends/legend.svg +25 -25
  30. package/src/main.js +8 -8
  31. package/src/nerve-map.js +99 -0
  32. package/src/services/flatmapQueries.js +415 -415
  33. package/vue.config.js +31 -31
  34. package/dist/demo.html +0 -10
  35. package/dist/flatmapvuer.common.js +0 -22741
  36. package/dist/flatmapvuer.common.js.map +0 -1
  37. package/dist/flatmapvuer.css +0 -1
  38. package/dist/flatmapvuer.umd.js +0 -22751
  39. package/dist/flatmapvuer.umd.js.map +0 -1
  40. package/dist/flatmapvuer.umd.min.js +0 -4
  41. package/dist/flatmapvuer.umd.min.js.map +0 -1
@@ -1,422 +1,422 @@
1
- <template>
2
- <el-main v-if="entry" class="main" v-loading="loading">
3
- <div class="block" v-if="entry.title">
4
- <span class="title">{{capitalise(entry.title)}}</span>
5
- <div v-if="entry.provenanceTaxonomyLabel && entry.provenanceTaxonomyLabel.length > 0" class="subtitle">
6
- {{provSpeciesDescription}}
7
- </div>
8
- </div>
9
- <div class="block" v-else>
10
- <span class="title">{{entry.featureId}}</span>
11
- </div>
12
- <div v-show="showDetails" class="hide" @click="showDetails = false">
13
- Hide path information
14
- <i class="el-icon-arrow-up"></i>
15
- </div>
16
- <div v-show="!showDetails" class="hide" @click="showDetails = true">
17
- Show path information
18
- <i class="el-icon-arrow-down"></i>
19
- </div>
20
- <transition name="slide-fade">
21
- <div v-show="showDetails" class="content-container scrollbar">
22
- {{entry.paths}}
23
- <div v-if="entry.origins && entry.origins.length > 0" class="block">
24
- <div>
25
- <span class="attribute-title">Origin</span>
26
- <el-popover
27
- width="250"
28
- trigger="hover"
29
- :append-to-body=false
30
- popper-class="popover-origin-help"
31
- >
32
- <i slot="reference" class="el-icon-warning-outline info"/>
33
- <span style="word-break: keep-all;">
34
- <i>Origin</i> {{originDescription}}
35
- </span>
36
- </el-popover>
37
- </div>
38
- <div v-for="(origin, i) in entry.origins" class="attribute-content" :key="origin">
39
- {{ capitalise(origin) }}
40
- <div v-if="i != entry.origins.length - 1" class="seperator"></div>
41
- </div>
42
- <el-button v-show="entry.originsWithDatasets && entry.originsWithDatasets.length > 0" class="button" @click="openDendrites">
43
- Explore origin data
44
- </el-button>
45
- </div>
46
- <div v-if="entry.components && entry.components.length > 0" class="block">
47
- <div class="attribute-title">Components</div>
48
- <div v-for="(component, i) in entry.components" class="attribute-content" :key="component">
49
- {{ capitalise(component) }}
50
- <div v-if="i != entry.components.length - 1" class="seperator"></div>
51
- </div>
52
- </div>
53
- <div v-if="entry.destinations && entry.destinations.length > 0" class="block">
54
- <div>
55
- <span class="attribute-title">Destination</span>
56
- <el-popover
57
- width="250"
58
- trigger="hover"
59
- :append-to-body=false
60
- popper-class="popover-origin-help"
61
- >
62
- <i slot="reference" class="el-icon-warning-outline info"/>
63
- <span style="word-break: keep-all;">
64
- <i>Destination</i> is where the axons terminate
65
- </span>
66
- </el-popover>
67
- </div>
68
- <div v-for="(destination, i) in entry.destinations" class="attribute-content" :key="destination">
69
- {{ capitalise(destination) }}
70
- <div v-if="i != entry.destinations.length - 1" class="seperator"></div>
71
- </div>
72
- <el-button v-show="entry.destinationsWithDatasets && entry.destinationsWithDatasets.length > 0" class="button" @click="openAxons">
73
- Explore destination data
74
- </el-button>
75
- </div>
76
-
77
- <el-button v-show="entry.componentsWithDatasets && entry.componentsWithDatasets.length > 0" class="button" @click="openAll">
78
- Search for data on components
79
- </el-button>
80
-
81
- <external-resource-card :resources="resources"></external-resource-card>
82
-
83
- </div>
84
- </transition>
85
- </el-main>
86
- </template>
87
-
88
-
89
- <script>
90
- /* eslint-disable no-alert, no-console */
91
- import Vue from "vue";
92
- import {
93
- Button,
94
- Container,
95
- Icon,
96
- Main
97
- } from "element-ui";
98
- import lang from "element-ui/lib/locale/lang/en";
99
- import locale from "element-ui/lib/locale";
100
- locale.use(lang);
101
- Vue.use(Button);
102
- Vue.use(Container);
103
- Vue.use(Icon);
104
- Vue.use(Main);
105
-
106
- import EventBus from './EventBus'
107
- import ExternalResourceCard from './ExternalResourceCard.vue';
108
-
109
- const titleCase = (str) => {
110
- return str.replace(/\w\S*/g, (t) => { return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase() });
111
- }
112
-
113
- const capitalise = function(str){
114
- if (str)
115
- return str.charAt(0).toUpperCase() + str.slice(1)
116
- return ""
117
- }
118
-
119
- export default {
120
- components: { ExternalResourceCard },
121
- name: "ProvenancePopup",
122
- props: {
123
- entry: {
124
- type: Object,
125
- default: () => ({
126
- destinations: [],
127
- origins: [],
128
- components: [],
129
- destinationsWithDatasets: [],
130
- originsWithDatasets: [],
131
- componentsWithDatasets: [],
132
- resource: undefined
133
- })
134
- },
135
- },
136
- data: function() {
137
- return {
138
- controller: undefined,
139
- activeSpecies: undefined,
140
- appendToBody: false,
141
- pubmedSearchUrl: '',
142
- loading: false,
143
- showToolip: false,
144
- showDetails: false,
145
- originDescriptions: {
146
- 'motor': 'is the location of the initial cell body of the circuit',
147
- 'sensory': 'is the location of the initial cell body in the PNS circuit'
148
- },
149
- componentsWithDatasets: [],
150
- uberons: [{id: undefined, name: undefined}]
151
- };
152
- },
153
- computed: {
154
- resources: function(){
155
- let resources = []
156
- if(this.entry && this.entry.hyperlinks){
157
- resources = this.entry.hyperlinks
158
- }
159
- return resources
160
- },
161
- originDescription: function(){
162
- if(this.entry && this.entry.title && this.entry.title.toLowerCase().includes('motor')){
163
- return this.originDescriptions.motor
164
- } else {
165
- return this.originDescriptions.sensory
166
- }
167
- },
168
- provSpeciesDescription: function(){
169
- let text = "Observed in"
170
- this.entry.provenanceTaxonomyLabel.forEach(label => {
171
- text += ` ${label},`
172
- });
173
- text = text.slice(0,-1) // remove last comma
174
- text += " species"
175
- return text
176
- }
177
- },
178
- methods: {
179
- titleCase: function(title){
180
- return titleCase(title)
181
- },
182
- capitalise: function(text){
183
- return capitalise(text)
184
- },
185
- openUrl: function(url){
186
- window.open(url, '_blank')
187
- },
188
- openAll: function(){
189
- EventBus.$emit('onActionClick', {type:'Facets', labels: this.entry.componentsWithDatasets.map(a=>a.name)})
190
- },
191
- openAxons: function(){
192
- EventBus.$emit('onActionClick', {type:'Facets', labels: this.entry.destinationsWithDatasets.map(a=>a.name)})
193
- },
194
- openDendrites: function(){
195
- EventBus.$emit('onActionClick', {type:'Facets', labels: this.entry.originsWithDatasets.map(a=>a.name)})
196
- },
197
- pubmedSearchUrlUpdate: function (val){
198
- this.pubmedSearchUrl = val
199
- },
200
- }
201
- };
202
- </script>
203
-
204
- <style scoped lang="scss">
205
- @import "~element-ui/packages/theme-chalk/src/button";
206
- @import "~element-ui/packages/theme-chalk/src/container";
207
- @import "~element-ui/packages/theme-chalk/src/header";
208
- @import "~element-ui/packages/theme-chalk/src/main";
209
-
210
- .display {
211
- width: 44px;
212
- word-break: normal;
213
- }
214
-
215
- .title {
216
- text-align: left;
217
- width: 16em;
218
- line-height: 1.5em !important;
219
- font-size: 1em;
220
- font-family: Helvetica;
221
- font-weight: 500;
222
- /* font-weight: bold; */
223
- padding-bottom: 8px;
224
- }
225
-
226
- .block {
227
- margin-bottom: 0.5em;
228
- }
229
-
230
- .pub {
231
- width: 16rem;
232
- }
233
-
234
- .icon {
235
- right: 0px;
236
- position: absolute;
237
- top: 10px;
238
- }
239
-
240
- .icon:hover {
241
- cursor: pointer;
242
- }
243
-
244
- .popover-origin-help {
245
- text-transform: none !important; // need to overide the tooltip text transform
246
- }
247
-
248
- .info{
249
- transform: rotate(180deg);
250
- color: #8300bf;
251
- margin-left: 8px;
252
- }
253
-
254
- .seperator {
255
- width:90%;
256
- height:1px;
257
- background-color:#bfbec2;
258
- }
259
-
260
- .hide{
261
- color: $app-primary-color;
262
- cursor: pointer;
263
- margin-right: 6px;
264
- margin-top: 3px;
265
- }
266
-
267
- .slide-fade-enter-active {
268
- transition: opacity 0.5s, transform 0.5s;
269
- }
270
- .slide-fade-leave-active {
271
- transition: opacity 0.2s, transform 0.2s;
272
- }
273
- .slide-fade-enter, .slide-fade-leave-to /* .slide-fade-leave-active in <2.1.8 */ {
274
- opacity: 0;
275
- transform: translateY(-8px);
276
- }
277
-
278
- .main {
279
- font-size: 14px;
280
- text-align: left;
281
- line-height: 1.5em;
282
- font-family: Asap, sans-serif,Helvetica;
283
- font-weight: 400;
284
- /* outline: thin red solid; */
285
- padding: 1em !important;
286
- overflow: hidden;
287
- min-width: 16rem;
288
- }
289
-
290
- .title{
291
- font-size: 18px;
292
- font-weight: 500;
293
- font-weight: bold;
294
- padding-bottom: 8px;
295
- color: rgb(131, 0, 191);
296
- }
297
-
298
- .attribute-title{
299
- font-size: 16px;
300
- font-weight: 600;
301
- /* font-weight: bold; */
302
- text-transform: uppercase;
303
- }
304
-
305
- .attribute-content{
306
- font-size: 14px;
307
- font-weight: 500;
308
- }
309
-
310
- .popover-container {
311
- height: 100%;
312
- width: 100%;
313
- }
314
-
315
- .main {
316
- .el-button.is-round{
317
- border-radius: 4px;
318
- padding: 9px 20px 10px 20px;
319
- display: flex;
320
- height: 36px;
321
- }
322
- }
323
-
324
- .button {
325
- margin-left: 0px !important;
326
- margin-top: 0px !important;
327
- font-size: 14px !important;
328
- background-color: $app-primary-color;
329
- color: #fff;
330
- &+.button {
331
- margin-top: 10px !important;
332
- }
333
- &:hover {
334
- color: #fff !important;
335
- background: #ac76c5 !important;
336
- border: 1px solid #ac76c5 !important;
337
- }
338
- }
339
-
340
- .tooltip-container{
341
- &::after, &::before {
342
- content: '';
343
- display: block;
344
- position: absolute;
345
- width: 0;
346
- height: 0;
347
- border-style: solid;
348
- flex-shrink: 0;
349
- }
350
- .tooltip {
351
- &::after {
352
- display: none;
353
- }
354
- &::before {
355
- display: none;
356
- }
357
- }
358
- }
359
-
360
- .maplibregl-popup-anchor-bottom {
361
- .tooltip-container {
362
- &::after, &::before {
363
- top: 100%;
364
- border-width: 12px;
365
- }
366
- &::after {
367
- margin-top:-1px;
368
- border-color: rgb(255, 255, 255) transparent transparent transparent ;
369
- }
370
- &::before {
371
- margin: 0 auto;
372
- border-color: $app-primary-color transparent transparent transparent ;
373
- }
374
- }
375
- }
376
-
377
- .maplibregl-popup-anchor-top {
378
- .tooltip-container {
379
- &::after, &::before {
380
- top: -24px;
381
- border-width: 12px;
382
- }
383
- &::after {
384
- margin-top: 1px;
385
- border-color: transparent transparent rgb(255, 255, 255) transparent ;
386
- }
387
- &::before {
388
- margin: 0 auto;
389
- border-color: transparent transparent $app-primary-color transparent ;
390
- }
391
- }
392
- }
393
-
394
- .content-container {
395
- overflow-y: scroll;
396
- scrollbar-width: thin !important;
397
- max-height: 240px;
398
- }
399
-
400
- .scrollbar::-webkit-scrollbar-track {
401
- border-radius: 10px;
402
- background-color: #f5f5f5;
403
- }
404
-
405
- .scrollbar::-webkit-scrollbar {
406
- width: 12px;
407
- right: -12px;
408
- background-color: #f5f5f5;
409
- }
410
-
411
- .scrollbar::-webkit-scrollbar-thumb {
412
- border-radius: 4px;
413
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
414
- background-color: #979797;
415
- }
416
-
417
-
418
- /* Fix for chrome bug where under triangle pops up above one on top of it */
419
- .selector:not(*:root), .tooltip-container::after{
420
- top: 99.4%;
421
- }
422
- </style>
1
+ <template>
2
+ <el-main v-if="entry" class="main" v-loading="loading">
3
+ <div class="block" v-if="entry.title">
4
+ <span class="title">{{capitalise(entry.title)}}</span>
5
+ <div v-if="entry.provenanceTaxonomyLabel && entry.provenanceTaxonomyLabel.length > 0" class="subtitle">
6
+ {{provSpeciesDescription}}
7
+ </div>
8
+ </div>
9
+ <div class="block" v-else>
10
+ <span class="title">{{entry.featureId}}</span>
11
+ </div>
12
+ <div v-show="showDetails" class="hide" @click="showDetails = false">
13
+ Hide path information
14
+ <i class="el-icon-arrow-up"></i>
15
+ </div>
16
+ <div v-show="!showDetails" class="hide" @click="showDetails = true">
17
+ Show path information
18
+ <i class="el-icon-arrow-down"></i>
19
+ </div>
20
+ <transition name="slide-fade">
21
+ <div v-show="showDetails" class="content-container scrollbar">
22
+ {{entry.paths}}
23
+ <div v-if="entry.origins && entry.origins.length > 0" class="block">
24
+ <div>
25
+ <span class="attribute-title">Origin</span>
26
+ <el-popover
27
+ width="250"
28
+ trigger="hover"
29
+ :append-to-body=false
30
+ popper-class="popover-origin-help"
31
+ >
32
+ <i slot="reference" class="el-icon-warning-outline info"/>
33
+ <span style="word-break: keep-all;">
34
+ <i>Origin</i> {{originDescription}}
35
+ </span>
36
+ </el-popover>
37
+ </div>
38
+ <div v-for="(origin, i) in entry.origins" class="attribute-content" :key="origin">
39
+ {{ capitalise(origin) }}
40
+ <div v-if="i != entry.origins.length - 1" class="seperator"></div>
41
+ </div>
42
+ <el-button v-show="entry.originsWithDatasets && entry.originsWithDatasets.length > 0" class="button" @click="openDendrites">
43
+ Explore origin data
44
+ </el-button>
45
+ </div>
46
+ <div v-if="entry.components && entry.components.length > 0" class="block">
47
+ <div class="attribute-title">Components</div>
48
+ <div v-for="(component, i) in entry.components" class="attribute-content" :key="component">
49
+ {{ capitalise(component) }}
50
+ <div v-if="i != entry.components.length - 1" class="seperator"></div>
51
+ </div>
52
+ </div>
53
+ <div v-if="entry.destinations && entry.destinations.length > 0" class="block">
54
+ <div>
55
+ <span class="attribute-title">Destination</span>
56
+ <el-popover
57
+ width="250"
58
+ trigger="hover"
59
+ :append-to-body=false
60
+ popper-class="popover-origin-help"
61
+ >
62
+ <i slot="reference" class="el-icon-warning-outline info"/>
63
+ <span style="word-break: keep-all;">
64
+ <i>Destination</i> is where the axons terminate
65
+ </span>
66
+ </el-popover>
67
+ </div>
68
+ <div v-for="(destination, i) in entry.destinations" class="attribute-content" :key="destination">
69
+ {{ capitalise(destination) }}
70
+ <div v-if="i != entry.destinations.length - 1" class="seperator"></div>
71
+ </div>
72
+ <el-button v-show="entry.destinationsWithDatasets && entry.destinationsWithDatasets.length > 0" class="button" @click="openAxons">
73
+ Explore destination data
74
+ </el-button>
75
+ </div>
76
+
77
+ <el-button v-show="entry.componentsWithDatasets && entry.componentsWithDatasets.length > 0" class="button" @click="openAll">
78
+ Search for data on components
79
+ </el-button>
80
+
81
+ <external-resource-card :resources="resources"></external-resource-card>
82
+
83
+ </div>
84
+ </transition>
85
+ </el-main>
86
+ </template>
87
+
88
+
89
+ <script>
90
+ /* eslint-disable no-alert, no-console */
91
+ import Vue from "vue";
92
+ import {
93
+ Button,
94
+ Container,
95
+ Icon,
96
+ Main
97
+ } from "element-ui";
98
+ import lang from "element-ui/lib/locale/lang/en";
99
+ import locale from "element-ui/lib/locale";
100
+ locale.use(lang);
101
+ Vue.use(Button);
102
+ Vue.use(Container);
103
+ Vue.use(Icon);
104
+ Vue.use(Main);
105
+
106
+ import EventBus from './EventBus'
107
+ import ExternalResourceCard from './ExternalResourceCard.vue';
108
+
109
+ const titleCase = (str) => {
110
+ return str.replace(/\w\S*/g, (t) => { return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase() });
111
+ }
112
+
113
+ const capitalise = function(str){
114
+ if (str)
115
+ return str.charAt(0).toUpperCase() + str.slice(1)
116
+ return ""
117
+ }
118
+
119
+ export default {
120
+ components: { ExternalResourceCard },
121
+ name: "ProvenancePopup",
122
+ props: {
123
+ entry: {
124
+ type: Object,
125
+ default: () => ({
126
+ destinations: [],
127
+ origins: [],
128
+ components: [],
129
+ destinationsWithDatasets: [],
130
+ originsWithDatasets: [],
131
+ componentsWithDatasets: [],
132
+ resource: undefined
133
+ })
134
+ },
135
+ },
136
+ data: function() {
137
+ return {
138
+ controller: undefined,
139
+ activeSpecies: undefined,
140
+ appendToBody: false,
141
+ pubmedSearchUrl: '',
142
+ loading: false,
143
+ showToolip: false,
144
+ showDetails: false,
145
+ originDescriptions: {
146
+ 'motor': 'is the location of the initial cell body of the circuit',
147
+ 'sensory': 'is the location of the initial cell body in the PNS circuit'
148
+ },
149
+ componentsWithDatasets: [],
150
+ uberons: [{id: undefined, name: undefined}]
151
+ };
152
+ },
153
+ computed: {
154
+ resources: function(){
155
+ let resources = []
156
+ if(this.entry && this.entry.hyperlinks){
157
+ resources = this.entry.hyperlinks
158
+ }
159
+ return resources
160
+ },
161
+ originDescription: function(){
162
+ if(this.entry && this.entry.title && this.entry.title.toLowerCase().includes('motor')){
163
+ return this.originDescriptions.motor
164
+ } else {
165
+ return this.originDescriptions.sensory
166
+ }
167
+ },
168
+ provSpeciesDescription: function(){
169
+ let text = "Observed in"
170
+ this.entry.provenanceTaxonomyLabel.forEach(label => {
171
+ text += ` ${label},`
172
+ });
173
+ text = text.slice(0,-1) // remove last comma
174
+ text += " species"
175
+ return text
176
+ }
177
+ },
178
+ methods: {
179
+ titleCase: function(title){
180
+ return titleCase(title)
181
+ },
182
+ capitalise: function(text){
183
+ return capitalise(text)
184
+ },
185
+ openUrl: function(url){
186
+ window.open(url, '_blank')
187
+ },
188
+ openAll: function(){
189
+ EventBus.$emit('onActionClick', {type:'Facets', labels: this.entry.componentsWithDatasets.map(a=>a.name)})
190
+ },
191
+ openAxons: function(){
192
+ EventBus.$emit('onActionClick', {type:'Facets', labels: this.entry.destinationsWithDatasets.map(a=>a.name)})
193
+ },
194
+ openDendrites: function(){
195
+ EventBus.$emit('onActionClick', {type:'Facets', labels: this.entry.originsWithDatasets.map(a=>a.name)})
196
+ },
197
+ pubmedSearchUrlUpdate: function (val){
198
+ this.pubmedSearchUrl = val
199
+ },
200
+ }
201
+ };
202
+ </script>
203
+
204
+ <style scoped lang="scss">
205
+ @import "~element-ui/packages/theme-chalk/src/button";
206
+ @import "~element-ui/packages/theme-chalk/src/container";
207
+ @import "~element-ui/packages/theme-chalk/src/header";
208
+ @import "~element-ui/packages/theme-chalk/src/main";
209
+
210
+ .display {
211
+ width: 44px;
212
+ word-break: normal;
213
+ }
214
+
215
+ .title {
216
+ text-align: left;
217
+ width: 16em;
218
+ line-height: 1.5em !important;
219
+ font-size: 1em;
220
+ font-family: Helvetica;
221
+ font-weight: 500;
222
+ /* font-weight: bold; */
223
+ padding-bottom: 8px;
224
+ }
225
+
226
+ .block {
227
+ margin-bottom: 0.5em;
228
+ }
229
+
230
+ .pub {
231
+ width: 16rem;
232
+ }
233
+
234
+ .icon {
235
+ right: 0px;
236
+ position: absolute;
237
+ top: 10px;
238
+ }
239
+
240
+ .icon:hover {
241
+ cursor: pointer;
242
+ }
243
+
244
+ .popover-origin-help {
245
+ text-transform: none !important; // need to overide the tooltip text transform
246
+ }
247
+
248
+ .info{
249
+ transform: rotate(180deg);
250
+ color: #8300bf;
251
+ margin-left: 8px;
252
+ }
253
+
254
+ .seperator {
255
+ width:90%;
256
+ height:1px;
257
+ background-color:#bfbec2;
258
+ }
259
+
260
+ .hide{
261
+ color: $app-primary-color;
262
+ cursor: pointer;
263
+ margin-right: 6px;
264
+ margin-top: 3px;
265
+ }
266
+
267
+ .slide-fade-enter-active {
268
+ transition: opacity 0.5s, transform 0.5s;
269
+ }
270
+ .slide-fade-leave-active {
271
+ transition: opacity 0.2s, transform 0.2s;
272
+ }
273
+ .slide-fade-enter, .slide-fade-leave-to /* .slide-fade-leave-active in <2.1.8 */ {
274
+ opacity: 0;
275
+ transform: translateY(-8px);
276
+ }
277
+
278
+ .main {
279
+ font-size: 14px;
280
+ text-align: left;
281
+ line-height: 1.5em;
282
+ font-family: Asap, sans-serif,Helvetica;
283
+ font-weight: 400;
284
+ /* outline: thin red solid; */
285
+ padding: 1em !important;
286
+ overflow: hidden;
287
+ min-width: 16rem;
288
+ }
289
+
290
+ .title{
291
+ font-size: 18px;
292
+ font-weight: 500;
293
+ font-weight: bold;
294
+ padding-bottom: 8px;
295
+ color: rgb(131, 0, 191);
296
+ }
297
+
298
+ .attribute-title{
299
+ font-size: 16px;
300
+ font-weight: 600;
301
+ /* font-weight: bold; */
302
+ text-transform: uppercase;
303
+ }
304
+
305
+ .attribute-content{
306
+ font-size: 14px;
307
+ font-weight: 500;
308
+ }
309
+
310
+ .popover-container {
311
+ height: 100%;
312
+ width: 100%;
313
+ }
314
+
315
+ .main {
316
+ .el-button.is-round{
317
+ border-radius: 4px;
318
+ padding: 9px 20px 10px 20px;
319
+ display: flex;
320
+ height: 36px;
321
+ }
322
+ }
323
+
324
+ .button {
325
+ margin-left: 0px !important;
326
+ margin-top: 0px !important;
327
+ font-size: 14px !important;
328
+ background-color: $app-primary-color;
329
+ color: #fff;
330
+ &+.button {
331
+ margin-top: 10px !important;
332
+ }
333
+ &:hover {
334
+ color: #fff !important;
335
+ background: #ac76c5 !important;
336
+ border: 1px solid #ac76c5 !important;
337
+ }
338
+ }
339
+
340
+ .tooltip-container{
341
+ &::after, &::before {
342
+ content: '';
343
+ display: block;
344
+ position: absolute;
345
+ width: 0;
346
+ height: 0;
347
+ border-style: solid;
348
+ flex-shrink: 0;
349
+ }
350
+ .tooltip {
351
+ &::after {
352
+ display: none;
353
+ }
354
+ &::before {
355
+ display: none;
356
+ }
357
+ }
358
+ }
359
+
360
+ .maplibregl-popup-anchor-bottom {
361
+ .tooltip-container {
362
+ &::after, &::before {
363
+ top: 100%;
364
+ border-width: 12px;
365
+ }
366
+ &::after {
367
+ margin-top:-1px;
368
+ border-color: rgb(255, 255, 255) transparent transparent transparent ;
369
+ }
370
+ &::before {
371
+ margin: 0 auto;
372
+ border-color: $app-primary-color transparent transparent transparent ;
373
+ }
374
+ }
375
+ }
376
+
377
+ .maplibregl-popup-anchor-top {
378
+ .tooltip-container {
379
+ &::after, &::before {
380
+ top: -24px;
381
+ border-width: 12px;
382
+ }
383
+ &::after {
384
+ margin-top: 1px;
385
+ border-color: transparent transparent rgb(255, 255, 255) transparent ;
386
+ }
387
+ &::before {
388
+ margin: 0 auto;
389
+ border-color: transparent transparent $app-primary-color transparent ;
390
+ }
391
+ }
392
+ }
393
+
394
+ .content-container {
395
+ overflow-y: scroll;
396
+ scrollbar-width: thin !important;
397
+ max-height: 240px;
398
+ }
399
+
400
+ .scrollbar::-webkit-scrollbar-track {
401
+ border-radius: 10px;
402
+ background-color: #f5f5f5;
403
+ }
404
+
405
+ .scrollbar::-webkit-scrollbar {
406
+ width: 12px;
407
+ right: -12px;
408
+ background-color: #f5f5f5;
409
+ }
410
+
411
+ .scrollbar::-webkit-scrollbar-thumb {
412
+ border-radius: 4px;
413
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
414
+ background-color: #979797;
415
+ }
416
+
417
+
418
+ /* Fix for chrome bug where under triangle pops up above one on top of it */
419
+ .selector:not(*:root), .tooltip-container::after{
420
+ top: 99.4%;
421
+ }
422
+ </style>