Type Alias ManagedCallbacksConfigType
ManagedCallbacksConfigType: { events: { onActionsChanged: EngineEvent< (state: DocumentAction[]) => MaybePromise<void>, >; onAsyncError: EngineEvent<(asyncError: AsyncError) => MaybePromise<void>>; onBarcodeValidationChanged: EngineEvent< ( validationResults: BarcodeFrameValidationResult[], ) => MaybePromise<void>, >; onCharacterStylesChanged: EngineEvent< (characterStyles: CharacterStyle[]) => MaybePromise<void>, >; onColorsChanged: EngineEvent< (colors: DocumentColor[]) => MaybePromise<void>, >; onConnectorEvent: EngineEvent< (event: ConnectorEvent) => MaybePromise<void>, >; onConnectorsChanged: EngineEvent< (connectors: ConnectorInstance[]) => MaybePromise<void>, >; onCropActiveFrameIdChanged: EngineEvent<(id?: Id) => MaybePromise<void>>; onCustomUndoDataChanged: EngineEvent< (customData: Record<string, string>) => MaybePromise<void>, >; onDataSourceIdChanged: EngineEvent< (connectorId?: Id) => MaybePromise<void>, >; onDocumentIssueListChanged: EngineEvent< (documentIssues: DocumentIssue[]) => MaybePromise<void>, >; onDocumentLoaded: EngineEvent<() => MaybePromise<void>>; onEngineEditModeChanged: EngineEvent< (engineEditMode: EngineEditMode) => MaybePromise<void>, >; onFontFamiliesChanged: EngineEvent< (fontFamilies: DocumentFontFamily[]) => MaybePromise<void>, >; onFrameAnimationsChanged: EngineEvent< (animationState: FrameAnimationType[]) => MaybePromise<void>, >; onFramesLayoutChanged: EngineEvent< (states: FrameLayoutType[]) => MaybePromise<void>, >; onLayoutsChanged: EngineEvent< (layouts: LayoutListItemType[]) => MaybePromise<void>, >; onPagesChanged: EngineEvent<(pages: Page[]) => MaybePromise<void>>; onPageSelectionChanged: EngineEvent<(id: Id) => MaybePromise<void>>; onPageSizeChanged: EngineEvent<(pageSize: PageSize) => MaybePromise<void>>; onPageSnapshotInvalidated: EngineEvent<(pageId: Id) => MaybePromise<void>>; onParagraphStylesChanged: EngineEvent< (paragraphStyles: ParagraphStyle[]) => MaybePromise<void>, >; onScrubberPositionChanged: EngineEvent< (state: AnimationPlaybackType) => MaybePromise<void>, >; onSelectedFramesContentChanged: EngineEvent< (state: Frame[]) => MaybePromise<void>, >; onSelectedFramesLayoutChanged: EngineEvent< (states: FrameLayoutType[]) => MaybePromise<void>, >; onSelectedLayoutFramesChanged: EngineEvent< (frames: SelectedLayoutFrame[]) => MaybePromise<void>, >; onSelectedLayoutIdChanged: EngineEvent< (layoutId: string) => MaybePromise<void>, >; onSelectedLayoutPropertiesChanged: EngineEvent< (state: LayoutPropertiesType) => MaybePromise<void>, >; onSelectedLayoutUnitChanged: EngineEvent< (unit: MeasurementUnit) => MaybePromise<void>, >; onSelectedPageIdChanged: EngineEvent<(pageId: Id) => MaybePromise<void>>; onSelectedTextStyleChanged: EngineEvent< (styles: SelectedTextStyle) => MaybePromise<void>, >; onSelectedToolChanged: EngineEvent<(tool: ToolType) => MaybePromise<void>>; onShapeCornerRadiusChanged: EngineEvent< (cornerRadius: CornerRadiusUpdateModel) => MaybePromise<void>, >; onStateChanged: EngineEvent<() => MaybePromise<void>>; onUndoStackStateChanged: EngineEvent< (undoStackState: UndoState) => MaybePromise<void>, >; onVariableListChanged: EngineEvent< (variableList: Variable[]) => MaybePromise<void>, >; onViewModeChanged: EngineEvent<(tool: ViewMode) => MaybePromise<void>>; onZoomChanged: EngineEvent<(scaleFactor: number) => MaybePromise<void>>; }; handlers: { onAuthExpired: EngineCallbackHandler< ( authRefreshRequest: AuthRefreshRequest, ) => Promise<AuthCredentials | null>, >; onViewportRequested: EngineCallbackHandler<() => Viewport | null>; };} Type declaration
events: {
onActionsChanged: EngineEvent<
(state: DocumentAction[]) => MaybePromise<void>,
>;
onAsyncError: EngineEvent<(asyncError: AsyncError) => MaybePromise<void>>;
onBarcodeValidationChanged: EngineEvent<
(
validationResults: BarcodeFrameValidationResult[],
) => MaybePromise<void>,
>;
onCharacterStylesChanged: EngineEvent<
(characterStyles: CharacterStyle[]) => MaybePromise<void>,
>;
onColorsChanged: EngineEvent<
(colors: DocumentColor[]) => MaybePromise<void>,
>;
onConnectorEvent: EngineEvent<
(event: ConnectorEvent) => MaybePromise<void>,
>;
onConnectorsChanged: EngineEvent<
(connectors: ConnectorInstance[]) => MaybePromise<void>,
>;
onCropActiveFrameIdChanged: EngineEvent<(id?: Id) => MaybePromise<void>>;
onCustomUndoDataChanged: EngineEvent<
(customData: Record<string, string>) => MaybePromise<void>,
>;
onDataSourceIdChanged: EngineEvent<
(connectorId?: Id) => MaybePromise<void>,
>;
onDocumentIssueListChanged: EngineEvent<
(documentIssues: DocumentIssue[]) => MaybePromise<void>,
>;
onDocumentLoaded: EngineEvent<() => MaybePromise<void>>;
onEngineEditModeChanged: EngineEvent<
(engineEditMode: EngineEditMode) => MaybePromise<void>,
>;
onFontFamiliesChanged: EngineEvent<
(fontFamilies: DocumentFontFamily[]) => MaybePromise<void>,
>;
onFrameAnimationsChanged: EngineEvent<
(animationState: FrameAnimationType[]) => MaybePromise<void>,
>;
onFramesLayoutChanged: EngineEvent<
(states: FrameLayoutType[]) => MaybePromise<void>,
>;
onLayoutsChanged: EngineEvent<
(layouts: LayoutListItemType[]) => MaybePromise<void>,
>;
onPagesChanged: EngineEvent<(pages: Page[]) => MaybePromise<void>>;
onPageSelectionChanged: EngineEvent<(id: Id) => MaybePromise<void>>;
onPageSizeChanged: EngineEvent<(pageSize: PageSize) => MaybePromise<void>>;
onPageSnapshotInvalidated: EngineEvent<(pageId: Id) => MaybePromise<void>>;
onParagraphStylesChanged: EngineEvent<
(paragraphStyles: ParagraphStyle[]) => MaybePromise<void>,
>;
onScrubberPositionChanged: EngineEvent<
(state: AnimationPlaybackType) => MaybePromise<void>,
>;
onSelectedFramesContentChanged: EngineEvent<
(state: Frame[]) => MaybePromise<void>,
>;
onSelectedFramesLayoutChanged: EngineEvent<
(states: FrameLayoutType[]) => MaybePromise<void>,
>;
onSelectedLayoutFramesChanged: EngineEvent<
(frames: SelectedLayoutFrame[]) => MaybePromise<void>,
>;
onSelectedLayoutIdChanged: EngineEvent<
(layoutId: string) => MaybePromise<void>,
>;
onSelectedLayoutPropertiesChanged: EngineEvent<
(state: LayoutPropertiesType) => MaybePromise<void>,
>;
onSelectedLayoutUnitChanged: EngineEvent<
(unit: MeasurementUnit) => MaybePromise<void>,
>;
onSelectedPageIdChanged: EngineEvent<(pageId: Id) => MaybePromise<void>>;
onSelectedTextStyleChanged: EngineEvent<
(styles: SelectedTextStyle) => MaybePromise<void>,
>;
onSelectedToolChanged: EngineEvent<(tool: ToolType) => MaybePromise<void>>;
onShapeCornerRadiusChanged: EngineEvent<
(cornerRadius: CornerRadiusUpdateModel) => MaybePromise<void>,
>;
onStateChanged: EngineEvent<() => MaybePromise<void>>;
onUndoStackStateChanged: EngineEvent<
(undoStackState: UndoState) => MaybePromise<void>,
>;
onVariableListChanged: EngineEvent<
(variableList: Variable[]) => MaybePromise<void>,
>;
onViewModeChanged: EngineEvent<(tool: ViewMode) => MaybePromise<void>>;
onZoomChanged: EngineEvent<(scaleFactor: number) => MaybePromise<void>>;
}
handlers: {
onAuthExpired: EngineCallbackHandler<
(
authRefreshRequest: AuthRefreshRequest,
) => Promise<AuthCredentials | null>,
>;
onViewportRequested: EngineCallbackHandler<() => Viewport | null>;
}