From 9f54d0ea55947a25c952a5c26d2126644d4d873f Mon Sep 17 00:00:00 2001 From: miso-devel Date: Sat, 4 Nov 2023 16:37:26 +0900 Subject: [PATCH] remove deletes --- .../src/app/draw/components/KonvasEditor.tsx | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/client/src/app/draw/components/KonvasEditor.tsx b/client/src/app/draw/components/KonvasEditor.tsx index 1d49dd5..fb48bcb 100644 --- a/client/src/app/draw/components/KonvasEditor.tsx +++ b/client/src/app/draw/components/KonvasEditor.tsx @@ -1,16 +1,15 @@ "use client"; -import { TActionState, TPicture, TPoints } from "@/types/app"; +import { TActionState, TPoints } from "@/types/app"; import Konva from "konva"; import { FC, useRef, useState } from "react"; import { Layer, Line, Path, Stage, type KonvaNodeEvents } from "react-konva"; type TPointer = { x: number; y: number }; type TKonvasEditorProps = { - pictureState: TActionState; pointsState: TActionState; }; -const KonvasEditor: FC = ({ pictureState, pointsState }) => { +const KonvasEditor: FC = ({ pointsState }) => { Konva.hitOnDragEnabled = true; const stageRef = useRef(null); const layerRef = useRef(null); @@ -106,21 +105,6 @@ const KonvasEditor: FC = ({ pictureState, pointsState }) => return ( - {/* 既に出来上がっている絵を描画する */} - {pictureState.state.map((points, i) => { - return ( - - ); - })} - {/* 今書いている線を描画する */}