Steve Ruiz 3 роки тому
джерело
коміт
2f1816404b
Аккаунт користувача з таким Email не знайдено

+ 4
- 0
packages/tldraw/src/state/shapes/EllipseUtil/EllipseUtil.tsx Переглянути файл

@@ -262,6 +262,10 @@ export class EllipseUtil extends TDShapeUtil<T, E> {
262 262
           ).points.sort((a, b) => Vec.dist(a, point) - Vec.dist(b, point))[0]
263 263
         }
264 264
 
265
+        if (!intersection) {
266
+          return undefined
267
+        }
268
+
265 269
         // The anchor is a point between the handle and the intersection
266 270
         const anchor = Vec.med(point, intersection)
267 271
 

Завантаження…
Відмінити
Зберегти