refactor: Change object Point type to GenericPoint

Replaced instances of object literal Point types with the `GenericPoint` type.
This commit is contained in:
sunub 2025-04-17 20:03:44 +09:00
parent f881b202da
commit b2d6d9d7ff

View file

@ -6213,13 +6213,12 @@ class App extends React.Component<AppProps, AppState> {
private handleEraser = <Point extends GenericPoint>(
event: PointerEvent,
pointerDownState: PointerDownState,
scenePointer: Point,
scenePointer: { x: number; y: number },
) => {
const [scenePointerX, scenePointerY] = scenePointer;
const elementsToErase = this.eraserTrail.addPointToPath(
scenePointer.x,
scenePointer.y,
scenePointerX,
scenePointerY,
event.altKey,
);