@@ -19,14 +19,14 @@ import { ConfirmDialog } from "@/components/ui/ConfirmDialog";
1919
2020type CellType = "damage" | "ban" | "rain" ;
2121
22- // 登録済みセルをcellId形式に変換(表示用)
22+ /** 登録済みセルをcellId形式に変換(表示用) */
2323function groupsToCellIds ( groups : CellGroup [ ] , holeNumber : number ) : string [ ] {
2424 return groups
2525 . filter ( ( g ) => g . hole_number === holeNumber )
2626 . flatMap ( ( g ) => g . cells . map ( ( c ) => `cell_${ c . x } _${ c . y } ` ) ) ;
2727}
2828
29- // 全ホールの登録済みセルマップ(GreenCardGrid用)
29+ /** 全ホールの登録済みセルマップ(GreenCardGrid用) */
3030function groupsToCellsMap ( groups : CellGroup [ ] ) : Record < number , string [ ] > {
3131 const map : Record < number , string [ ] > = { } ;
3232 groups . forEach ( ( g ) => {
@@ -38,6 +38,7 @@ function groupsToCellsMap(groups: CellGroup[]): Record<number, string[]> {
3838 return map ;
3939}
4040
41+ /** セル設定ページ(左: 9ホール一覧、右: セル編集キャンバス) */
4142export default function CellsEditPage ( ) {
4243 const [ course , setCourse ] = useState < "out" | "in" > ( "out" ) ;
4344 const [ selectedHole , setSelectedHole ] = useState < number > ( 1 ) ;
@@ -397,7 +398,6 @@ export default function CellsEditPage() {
397398 rainCells = { cellMode === "rain" ? displayCells : [ ] }
398399 onCellClick = { handleCellClick }
399400 enablePaintMode = { true }
400- activeCells = { displayCells }
401401 showExit = { false }
402402 showExitRoute = { false }
403403 showBoundaryBuffer = { false }
0 commit comments