-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
64 additions
and
104 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
<template> | ||
<canvas></canvas> | ||
<video-demo></video-demo> | ||
<text-demo></text-demo> | ||
<div style="display: flex; justify-content: space-between; margin-top: 10px;"> | ||
<image-demo></image-demo> | ||
<video-demo></video-demo> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { createTextImage } from '@sunny-117/text-image'; | ||
import TextDemo from './TextDemo.vue' | ||
import ImageDemo from './ImageDemo.vue' | ||
import VideoDemo from './VideoDemo.vue' | ||
import {onMounted} from 'vue'; | ||
onMounted(() => { | ||
createTextImage({ | ||
canvas: document.querySelector('canvas'), | ||
source: { | ||
text: 'Text Image', | ||
}, | ||
}); | ||
}) | ||
</script> | ||
|
||
<style scoped> | ||
.titleBox { | ||
background-color: blueviolet; | ||
} | ||
</style> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<canvas id="canvas2"></canvas> | ||
</template> | ||
|
||
<script setup> | ||
import { createTextImage } from "@sunny-117/text-image"; | ||
import { onMounted } from "vue"; | ||
onMounted(() => { | ||
const canvas = document.querySelector("#canvas2"); | ||
console.log(canvas) | ||
createTextImage({ | ||
canvas, | ||
raduis: 7, | ||
isGray: true, | ||
source: { | ||
img: "../public/1.png", | ||
width: 800, | ||
height: 700, | ||
}, | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<canvas id="canvas1" style="width: 1000px;margin: 0 auto;"></canvas> | ||
</template> | ||
|
||
<script setup> | ||
import { createTextImage } from "@sunny-117/text-image"; | ||
import { onMounted } from "vue"; | ||
onMounted(() => { | ||
createTextImage({ | ||
canvas: document.querySelector("#canvas1"), | ||
source: { | ||
text: "Text Image", | ||
width: 500, | ||
height: 300, | ||
}, | ||
}); | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
.titleBox { | ||
background-color: blueviolet; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
overflow: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import { createApp } from 'vue' | ||
import './style.css' | ||
import App from './App.vue' | ||
|
||
import './index.css' | ||
createApp(App).mount('#app') |
This file was deleted.
Oops, something went wrong.