Update to latest Action changes.

This commit is contained in:
Daniel J. Geiger 2023-01-07 15:47:19 -06:00
parent 45faf7d58f
commit ace031e992
6 changed files with 51 additions and 72 deletions

View file

@ -147,10 +147,6 @@ export type PanelComponentProps = {
export interface Action {
name: string;
PanelComponent?: React.FC<PanelComponentProps>;
panelComponentPredicate?: (
elements: readonly ExcalidrawElement[],
appState: AppState,
) => boolean;
perform: ActionFn;
keyPriority?: number;
keyTest?: (
@ -158,11 +154,6 @@ export interface Action {
appState: AppState,
elements: readonly ExcalidrawElement[],
) => boolean;
shapeConfigPredicate?: (
elements: readonly ExcalidrawElement[],
appState: AppState,
data?: Record<string, any>,
) => boolean;
contextItemLabel?:
| string
| ((