Remove node edge resize (#1066)

This commit is contained in:
filtered
2025-05-27 08:10:41 +10:00
committed by GitHub
parent e971667264
commit b86f2b58e6
6 changed files with 10 additions and 68 deletions

View File

@@ -1,4 +1,4 @@
import type { CompassDirection, Point, ReadOnlyPoint, ReadOnlyRect, ReadOnlySize, ReadOnlyTypedArray, Size } from "@/interfaces"
import type { CompassCorners, Point, ReadOnlyPoint, ReadOnlyRect, ReadOnlySize, ReadOnlyTypedArray, Size } from "@/interfaces"
import { isInRectangle } from "@/measure"
@@ -213,7 +213,7 @@ export class Rectangle extends Float64Array {
* @param cornerSize Each corner is treated as an inset square with this width and height.
* @returns The compass direction of the corner that contains the point, or `undefined` if the point is not in any corner.
*/
findContainingCorner(x: number, y: number, cornerSize: number): CompassDirection | undefined {
findContainingCorner(x: number, y: number, cornerSize: number): CompassCorners | undefined {
if (this.isInTopLeftCorner(x, y, cornerSize)) return "NW"
if (this.isInTopRightCorner(x, y, cornerSize)) return "NE"
if (this.isInBottomLeftCorner(x, y, cornerSize)) return "SW"