Further revert refactor

This commit is contained in:
Mark Tolmacs 2025-05-02 14:22:15 +02:00
parent 9ab7e55377
commit 1f97420475
No known key found for this signature in database
7 changed files with 13 additions and 7 deletions

View file

@ -11,9 +11,10 @@ import type Scene from "@excalidraw/element/Scene";
import { angleIcon } from "../icons";
import DragInput, { type DragInputCallbackType } from "./DragInput";
import DragInput from "./DragInput";
import { getStepSizedValue, isPropertyEditable, updateBindings } from "./utils";
import type { DragInputCallbackType } from "./DragInput";
import type { AppState } from "../../types";
interface AngleProps {

View file

@ -12,9 +12,10 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
import type Scene from "@excalidraw/element/Scene";
import DragInput, { type DragInputCallbackType } from "./DragInput";
import DragInput from "./DragInput";
import { getStepSizedValue, isPropertyEditable } from "./utils";
import type { DragInputCallbackType } from "./DragInput";
import type { AppState } from "../../types";
interface DimensionDragInputProps {

View file

@ -16,9 +16,10 @@ import type Scene from "@excalidraw/element/Scene";
import { fontSizeIcon } from "../icons";
import StatsDragInput, { type DragInputCallbackType } from "./DragInput";
import StatsDragInput from "./DragInput";
import { getStepSizedValue } from "./utils";
import type { DragInputCallbackType } from "./DragInput";
import type { AppState } from "../../types";
interface FontSizeProps {

View file

@ -13,9 +13,10 @@ import type Scene from "@excalidraw/element/Scene";
import { angleIcon } from "../icons";
import DragInput, { type DragInputCallbackType } from "./DragInput";
import DragInput from "./DragInput";
import { getStepSizedValue, isPropertyEditable } from "./utils";
import type { DragInputCallbackType } from "./DragInput";
import type { AppState } from "../../types";
interface MultiAngleProps {

View file

@ -24,10 +24,11 @@ import type {
import type Scene from "@excalidraw/element/Scene";
import DragInput, { type DragInputCallbackType } from "./DragInput";
import DragInput from "./DragInput";
import { getAtomicUnits, getStepSizedValue, isPropertyEditable } from "./utils";
import { getElementsInAtomicUnit } from "./utils";
import type { DragInputCallbackType } from "./DragInput";
import type { AtomicUnit } from "./utils";
import type { AppState } from "../../types";

View file

@ -19,9 +19,10 @@ import type Scene from "@excalidraw/element/Scene";
import { fontSizeIcon } from "../icons";
import StatsDragInput, { type DragInputCallbackType } from "./DragInput";
import StatsDragInput from "./DragInput";
import { getStepSizedValue } from "./utils";
import type { DragInputCallbackType } from "./DragInput";
import type { AppState } from "../../types";
interface MultiFontSizeProps {

View file

@ -10,8 +10,8 @@ import type Scene from "@excalidraw/element/Scene";
import StatsDragInput from "./DragInput";
import { handlePositionChange } from "./utils";
import type { AppState } from "../../types";
import type { AtomicUnit } from "./utils";
import type { AppState } from "../../types";
interface MultiPositionProps {
property: "x" | "y";