Sharkey/src/client/components/page/page.canvas.vue

35 lines
515 B
Vue
Raw Normal View History

2020-04-15 18:39:21 +03:00
<template>
2020-04-18 12:33:45 +03:00
<div class="ysrxegms">
<canvas ref="canvas" :width="value.width" :height="value.height"/>
2020-04-15 18:39:21 +03:00
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: {
value: {
required: true
},
script: {
required: true
}
},
mounted() {
this.script.aoiScript.registerCanvas(this.value.name, this.$refs.canvas);
}
});
</script>
<style lang="scss" scoped>
.ysrxegms {
2020-04-18 12:33:45 +03:00
display: inline-block;
vertical-align: bottom;
> canvas {
display: block;
}
2020-04-15 18:39:21 +03:00
}
</style>