mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor(app.tsx): move Portal to new file and some refactoring (#1398)
This commit is contained in:
parent
6abcb2d87f
commit
227ff60909
12 changed files with 78 additions and 61 deletions
|
@ -8,6 +8,7 @@ import {
|
|||
} from "./element/types";
|
||||
import { SHAPES } from "./shapes";
|
||||
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
||||
import { SocketUpdateDataSource } from "./data";
|
||||
|
||||
export type FlooredNumber = number & { _brand: "FlooredNumber" };
|
||||
export type Point = Readonly<RoughPoint>;
|
||||
|
@ -82,3 +83,7 @@ export declare class GestureEvent extends UIEvent {
|
|||
readonly rotation: number;
|
||||
readonly scale: number;
|
||||
}
|
||||
|
||||
export type SocketUpdateData = SocketUpdateDataSource[keyof SocketUpdateDataSource] & {
|
||||
_brand: "socketUpdateData";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue