Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Template/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<template>
<div>
<iv-visualisation :title="projectName">
<div class="iv-welcome-message">
<!-- <img src='./assets/ImpVis-logo.png' alt="ImpVisLogo" height="50"/> -->
<h1> Welcome to Imperial Visualisations!</h1>
<p> Your project, {{projectName}} has succesfully been set up using the NodeJS template!</p>
<iv-hover-text></iv-hover-text>
</div>


<template #hotspots>
<iv-pane position='left' format='overlay' opacity=1></iv-pane>

<iv-toggle-hotspot position='top' title='Toggle Hotspot' glass=true>
I am in a toggle hotspot
</iv-toggle-hotspot>

<iv-fixed-hotspot position='topright'>
I am in a fixed hotspot
</iv-fixed-hotspot>
</template>
</iv-visualisation>


</div>
</template>
<script>
import {name} from '../package.json';
export default {
name:"App",
data(){
return {
projectName: name
}
}
}
</script>
<style>
.iv-welcome-message{
display:flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
}
</style>
8 changes: 8 additions & 0 deletions Template/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Vue from "vue";
import ImpVisLib from "../src/main.js";
import App from "./App.vue";
Vue.use(ImpVisLib);
Vue.config.productionTip= false;
new Vue({
render:h=>h(App)
}).$mount('#app');
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"examples:tabs": "vue-cli-service serve ./Examples/Examples_Tabs.js",
"examples:dragdrop": "vue-cli-service serve ./Examples/SVGDragAndDrop.js"
"examples:dragdrop": "vue-cli-service serve ./Examples/SVGDragAndDrop.js",
"template": "vue-cli-service serve ./Template/main.js"
},
"dependencies": {
"compare-versions": "^3.6.0",
Expand Down