mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
ellipse and arc refactors
This commit is contained in:
parent
3efa8735ef
commit
392dd5b0b8
9 changed files with 125 additions and 94 deletions
|
@ -126,7 +126,8 @@ export type Curve<Point extends GlobalPoint | LocalPoint | ViewportPoint> = [
|
|||
* Angles are in radians and centered on 0, 0. Zero radians on a 1 radius circle
|
||||
* corresponds to (1, 0) cartesian coordinates (point), i.e. to the "right"
|
||||
*/
|
||||
export type SymmetricArc = {
|
||||
export type SymmetricArc<Point extends GenericPoint> = {
|
||||
center: Point;
|
||||
radius: number;
|
||||
startAngle: Radians;
|
||||
endAngle: Radians;
|
||||
|
@ -152,4 +153,6 @@ export type Ellipse<Point extends GenericPoint> = {
|
|||
angle: Radians;
|
||||
halfWidth: number;
|
||||
halfHeight: number;
|
||||
} & {
|
||||
_brand: "excalimath_ellipse";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue