mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: introduce frames (#6123)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
4d7d96eb7b
commit
81ebf82979
78 changed files with 4563 additions and 480 deletions
|
@ -206,7 +206,7 @@ export const isPointInPolygon = (
|
|||
|
||||
// Returns whether `q` lies inside the segment/rectangle defined by `p` and `r`.
|
||||
// This is an approximation to "does `q` lie on a segment `pr`" check.
|
||||
const isPointWithinBounds = (p: Point, q: Point, r: Point) => {
|
||||
export const isPointWithinBounds = (p: Point, q: Point, r: Point) => {
|
||||
return (
|
||||
q[0] <= Math.max(p[0], r[0]) &&
|
||||
q[0] >= Math.min(p[0], r[0]) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue