Skip to content

Commit 5b2a193

Browse files
authored
Merge pull request #62 from Imperial-visualizations/dev
Version 1.0.4
2 parents c2757f8 + d02ee8f commit 5b2a193

File tree

5 files changed

+146
-44
lines changed

5 files changed

+146
-44
lines changed

Template/App.vue

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<template>
2+
<div>
3+
<iv-visualisation :title="projectName">
4+
<div class="iv-welcome-message">
5+
<!-- <img src='./assets/ImpVis-logo.png' alt="ImpVisLogo" height="50"/> -->
6+
<h1> Welcome to Imperial Visualisations!</h1>
7+
<p> Your project, {{projectName}} has succesfully been set up using the NodeJS template!</p>
8+
<iv-hover-text></iv-hover-text>
9+
</div>
10+
11+
12+
<template #hotspots>
13+
<iv-pane position='left' format='overlay' opacity=1></iv-pane>
14+
15+
<iv-toggle-hotspot position='top' title='Toggle Hotspot' glass=true>
16+
I am in a toggle hotspot
17+
</iv-toggle-hotspot>
18+
19+
<iv-fixed-hotspot position='topright'>
20+
I am in a fixed hotspot
21+
</iv-fixed-hotspot>
22+
</template>
23+
</iv-visualisation>
24+
25+
26+
</div>
27+
</template>
28+
<script>
29+
import {name} from '../package.json';
30+
export default {
31+
name:"App",
32+
data(){
33+
return {
34+
projectName: name
35+
}
36+
}
37+
}
38+
</script>
39+
<style>
40+
.iv-welcome-message{
41+
display:flex;
42+
flex-direction: column;
43+
align-items: center;
44+
margin-top: 50px;
45+
}
46+
</style>

Template/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Vue from "vue";
2+
import ImpVisLib from "../src/main.js";
3+
import App from "./App.vue";
4+
Vue.use(ImpVisLib);
5+
Vue.config.productionTip= false;
6+
new Vue({
7+
render:h=>h(App)
8+
}).$mount('#app');

package-lock.json

Lines changed: 85 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@impvis/components",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"license": "BSD-3-Clause",
55
"main": "./dist/impvis-components.js",
66
"unpkg": "./dist/impvis-components.umd.js",
@@ -12,7 +12,8 @@
1212
"docs:dev": "vuepress dev docs",
1313
"docs:build": "vuepress build docs",
1414
"examples:tabs": "vue-cli-service serve ./Examples/Examples_Tabs.js",
15-
"examples:dragdrop": "vue-cli-service serve ./Examples/SVGDragAndDrop.js"
15+
"examples:dragdrop": "vue-cli-service serve ./Examples/SVGDragAndDrop.js",
16+
"template": "vue-cli-service serve ./Template/main.js"
1617
},
1718
"dependencies": {
1819
"compare-versions": "^3.6.0",

src/layouts/Visualisation/Visualisation.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ export default {
3333
type:Array,
3434
default: () => ['left','right','top','bottom']
3535
},
36-
hotspotColumnWidth:{
36+
hotspotColumnSize:{
3737
type:String,
3838
default:"250px"
3939
},
40-
hotspotColumnHeight:{
40+
hotspotRowSize:{
4141
type:String,
4242
default:"250px"
4343
},
@@ -72,8 +72,8 @@ export default {
7272
computed:{
7373
gridStyle(){
7474
return {
75-
'grid-template-columns': `${this.hotspotColumnWidth} 1fr ${this.hotspotColumnWidth}`,
76-
'grid-template-rows': `${this.hotspotColumnHeight} 1fr ${this.hotspotColumnHeight}`
75+
'grid-template-columns': `${this.hotspotColumnSize} 1fr ${this.hotspotColumnSize}`,
76+
'grid-template-rows': `${this.hotspotRowSize} 1fr ${this.hotspotRowSize}`
7777
}
7878
},
7979
showSpots(){

0 commit comments

Comments
 (0)