Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

feat: export `changeProperty()` and `getFormValue()`. (#6957)

DanielJGeiger4a9adc703ab7
diff --git a/src/actions/actionProperties.tsx b/src/actions/actionProperties.tsx
index e0d61a2714..1a05bc7cbf 100644
--- a/src/actions/actionProperties.tsx
+++ b/src/actions/actionProperties.tsx
@@ -95,7 +95,7 @@ import { register } from "./register";
const FONT_SIZE_RELATIVE_INCREASE_STEP = 0.1;
-const changeProperty = (
+export const changeProperty = (
elements: readonly ExcalidrawElement[],
appState: AppState,
callback: (element: ExcalidrawElement) => ExcalidrawElement,
@@ -118,7 +118,7 @@ const changeProperty = (
});
};
-const getFormValue = function <T>(
+export const getFormValue = function <T>(
elements: readonly ExcalidrawElement[],
appState: AppState,
getAttribute: (element: ExcalidrawElement) => T,