Skip to content

Commit

Permalink
Merge pull request #4 from gewenyu99/revert-3-changes-1
Browse files Browse the repository at this point in the history
Revert "Makes a contribution"
  • Loading branch information
gewenyu99 authored Jul 22, 2024
2 parents 2a456ff + 203cfd0 commit 84f1316
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/pr-annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ permissions:

jobs:
Lint:
name: Trunk Check Annotate
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store

package-lock.json
9 changes: 4 additions & 5 deletions src/components/RedSquareWithResize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const RedSquareWithResize: React.FC = () => {
const canvasRef = useRef<HTMLCanvasElement>(null);
const [x, setX] = useState(0);
const [y, setY] = useState(0);
const [w, setW] = useState(50);
const [h, setH] = useState(50);
const [w, setW] = useState(50);
const [h, setH] = useState(50);

const draw = (ctx: {
fillStyle: string;
Expand All @@ -29,7 +29,6 @@ const RedSquareWithResize: React.FC = () => {
return (
<div>
<canvas ref={canvasRef} height={200} width={200} />
<p>The box is positioned at {{x}}, {{y}} with size {{w}} by {{h}}.<p/>
<div
style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: "10px" }}
>
Expand All @@ -39,7 +38,7 @@ const RedSquareWithResize: React.FC = () => {
max={100}
step={1}
value={x}
label='X-Position'
label="X"
handleChange={(event) => {
setX(parseInt(event.target.value));
}}
Expand All @@ -51,7 +50,7 @@ const RedSquareWithResize: React.FC = () => {
max={100}
step={1}
value={y}
label='Y-Position'
label="Y"
handleChange={(event) => {
setY(parseInt(event.target.value));
}}
Expand Down
3 changes: 1 addition & 2 deletions src/content/docs/4-advanced-drawing-and-events/clipping.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: placeholder
description: placeholder
prev: true

prev: true
---

0 comments on commit 84f1316

Please sign in to comment.