types.ts 304 B

1234567891011
  1. import { newElement } from "./newElement";
  2. export type ExcalidrawElement = ReturnType<typeof newElement>;
  3. export type ExcalidrawTextElement = ExcalidrawElement & {
  4. type: "text";
  5. font: string;
  6. text: string;
  7. // for backward compatibility
  8. actualBoundingBoxAscent?: number;
  9. baseline: number;
  10. };