From 203cfd08706f55cb364e5c1ca2579b33c528cf87 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Mon, 22 Jul 2024 15:12:32 -0400 Subject: [PATCH] Revert "Makes a contribution" --- .github/workflows/pr-annotations.yaml | 3 --- .gitignore | 2 -- src/components/RedSquareWithResize.tsx | 9 ++++----- .../docs/4-advanced-drawing-and-events/clipping.md | 3 +-- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr-annotations.yaml b/.github/workflows/pr-annotations.yaml index 0fe56bf..dc3d58d 100644 --- a/.github/workflows/pr-annotations.yaml +++ b/.github/workflows/pr-annotations.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 342a315..6240da8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,3 @@ pnpm-debug.log* # macOS-specific files .DS_Store - -package-lock.json \ No newline at end of file diff --git a/src/components/RedSquareWithResize.tsx b/src/components/RedSquareWithResize.tsx index 50f5e7f..ef49583 100644 --- a/src/components/RedSquareWithResize.tsx +++ b/src/components/RedSquareWithResize.tsx @@ -6,8 +6,8 @@ const RedSquareWithResize: React.FC = () => { const canvasRef = useRef(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; @@ -29,7 +29,6 @@ const RedSquareWithResize: React.FC = () => { return (
-

The box is positioned at {{x}}, {{y}} with size {{w}} by {{h}}.

@@ -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)); }} @@ -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)); }} diff --git a/src/content/docs/4-advanced-drawing-and-events/clipping.md b/src/content/docs/4-advanced-drawing-and-events/clipping.md index d9ec1c6..72f3cc7 100644 --- a/src/content/docs/4-advanced-drawing-and-events/clipping.md +++ b/src/content/docs/4-advanced-drawing-and-events/clipping.md @@ -1,6 +1,5 @@ --- title: placeholder description: placeholder - prev: true - +prev: true ---