diff --git a/public/assets/svg/pen.svg b/public/assets/svg/pen.svg new file mode 100644 index 0000000..f5a336b --- /dev/null +++ b/public/assets/svg/pen.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/pages/tracing/index.astro b/src/pages/tracing/index.astro index 0ec3ccd..90b1d78 100644 --- a/src/pages/tracing/index.astro +++ b/src/pages/tracing/index.astro @@ -1,89 +1,129 @@ --- -import Layout from '../../layouts/Layout.astro'; +import Layout from "../../layouts/Layout.astro"; --- - +
+
- -
+
- + this.input.on('pointermove', function (pointer) { + if (isDragging) { + graphics.lineTo(pointer.x, pointer.y); + graphics.strokePath(); + } + }, this); + this.input.on('pointerup', function () { + isDragging = false; + graphics.closePath(); + }, this); + } + + function update() {} + + \ No newline at end of file diff --git a/src/pages/tracing/temp.astro b/src/pages/tracing/temp.astro index e69de29..7f60552 100644 --- a/src/pages/tracing/temp.astro +++ b/src/pages/tracing/temp.astro @@ -0,0 +1,77 @@ +--- +import Layout from "../../layouts/Layout.astro"; +--- + +
+
+ +
+ +
+
+ + \ No newline at end of file