chore: fix spelling errors

This commit is contained in:
Raymond Hear 2025-03-28 14:33:53 -04:00
parent 0cd5a259ae
commit e3bdb9f5cd
40 changed files with 75 additions and 75 deletions

View file

@ -92,7 +92,7 @@ export const hitElementItself = <Point extends GlobalPoint | LocalPoint>({
frameNameBound = null,
}: HitTestArgs<Point>) => {
let hit = shouldTestInside(element)
? // Since `inShape` tests STRICTLY againt the insides of a shape
? // Since `inShape` tests STRICTLY against the insides of a shape
// we would need `onShape` as well to include the "borders"
isPointInShape(pointFrom(x, y), shape) ||
isPointOnShape(pointFrom(x, y), shape, threshold)

View file

@ -47,7 +47,7 @@ export const distanceToBindableElement = (
*
* @param element The rectanguloid element
* @param p The point to consider
* @returns The eucledian distance to the outline of the rectanguloid element
* @returns The euclidean distance to the outline of the rectanguloid element
*/
const distanceToRectanguloidElement = (
element: ExcalidrawRectanguloidElement,
@ -78,7 +78,7 @@ const distanceToRectanguloidElement = (
*
* @param element The diamond element
* @param p The point to consider
* @returns The eucledian distance to the outline of the diamond
* @returns The euclidean distance to the outline of the diamond
*/
const distanceToDiamondElement = (
element: ExcalidrawDiamondElement,
@ -109,7 +109,7 @@ const distanceToDiamondElement = (
*
* @param element The ellipse element
* @param p The point to consider
* @returns The eucledian distance to the outline of the ellipse
* @returns The euclidean distance to the outline of the ellipse
*/
const distanceToEllipseElement = (
element: ExcalidrawEllipseElement,

View file

@ -56,7 +56,7 @@ const COMMON = {
/**
* Generally do not break, unless closed symbol is followed by an opening symbol.
*
* Also, western punctation is often used in modern Korean and expects to be treated
* Also, western punctuation is often used in modern Korean and expects to be treated
* similarly to the CJK opening and closing symbols.
*
* Hello() ["Hello", "(한", "글)"]