refactor: separate elements logic into a standalone package (#9285)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import oc from "open-color";
|
||||
import React, { useLayoutEffect, useRef, useState } from "react";
|
||||
|
||||
import type { ChartType } from "@excalidraw/element/types";
|
||||
|
||||
import { trackEvent } from "../analytics";
|
||||
import { renderSpreadsheet } from "../charts";
|
||||
import { t } from "../i18n";
|
||||
@@ -12,7 +14,6 @@ import { Dialog } from "./Dialog";
|
||||
import "./PasteChartDialog.scss";
|
||||
|
||||
import type { ChartElements, Spreadsheet } from "../charts";
|
||||
import type { ChartType } from "../element/types";
|
||||
import type { UIAppState } from "../types";
|
||||
|
||||
type OnInsertChart = (chartType: ChartType, elements: ChartElements) => void;
|
||||
|
||||
Reference in New Issue
Block a user