Add onElementClick and export sceneCoordsToViewportCoords
This commit is contained in:
@@ -263,6 +263,10 @@ export interface ExcalidrawProps {
|
||||
) => void;
|
||||
renderCustomElementWidget?: (appState: AppState) => void;
|
||||
customElementsConfig?: CustomElementConfig[];
|
||||
onElementClick: (
|
||||
element: NonDeleted<ExcalidrawElement>,
|
||||
event: React.PointerEvent<HTMLCanvasElement>,
|
||||
) => void;
|
||||
}
|
||||
|
||||
export type SceneData = {
|
||||
|
||||
Reference in New Issue
Block a user