@ue-too/board-vue-adapter 0.12.0 → 0.12.2

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ue-too/board-vue-adapter",
3
3
  "type": "module",
4
- "version": "0.12.0",
4
+ "version": "0.12.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,25 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref, onMounted } from "vue";
3
- import { useAnimationFrameWithBoard, useBoard } from "./useBoard";
4
-
5
- const canvas = ref<HTMLCanvasElement | null>(null);
6
- const board = useBoard();
7
-
8
- onMounted(() => {
9
- if (canvas.value) {
10
- board.attach(canvas.value);
11
- } else {
12
- board.tearDown();
13
- }
14
- });
15
-
16
- useAnimationFrameWithBoard((timestamp, ctx) => {
17
- board.step(timestamp);
18
- ctx.fillStyle = "red";
19
- ctx.fillRect(0, 0, 100, 100);
20
- });
21
- </script>
22
-
23
- <template>
24
- <canvas ref="canvas"> Your browser does not support the canvas tag. </canvas>
25
- </template>