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

Type declaration

  • OptionalonActionsChanged?: (state: DocumentAction[]) => void

    use events.onActionsChanged instead

  • OptionalonAsyncError?: (asyncError: AsyncError) => void

    use events.onAsyncError instead

  • OptionalonAuthExpired?: (authRefreshRequest: AuthRefreshRequest) => Promise<AuthCredentials | null>

    use events.onAuthExpired instead

  • OptionalonBarcodeValidationChanged?: (validationResults: BarcodeFrameValidationResult[]) => void

    use events.onBarcodeValidationChanged instead

  • OptionalonCharacterStylesChanged?: (characterStyles: CharacterStyle[]) => void

    use events.onCharacterStylesChanged instead

  • OptionalonColorsChanged?: (colors: DocumentColor[]) => void

    use events.onColorsChanged instead

  • OptionalonConnectorEvent?: (event: ConnectorEvent) => void

    use events.onConnectorEvent instead

  • OptionalonConnectorsChanged?: (connectors: ConnectorInstance[]) => void

    use events.onConnectorsChanged instead

  • OptionalonCropActiveFrameIdChanged?: (id?: Id) => void

    use events.onCropActiveFrameIdChanged instead

  • OptionalonCustomUndoDataChanged?: (customData: Record<string, string>) => void

    use events.onCustomUndoDataChanged instead

  • OptionalonDataSourceIdChanged?: (connectorId?: Id) => void

    use events.onDataSourceIdChanged instead

  • OptionalonDocumentIssueListChanged?: (documentIssues: DocumentIssue[]) => void

    use events.onDocumentIssueListChanged instead

  • OptionalonDocumentLoaded?: () => void

    use events.onDocumentLoaded instead

  • OptionalonEngineEditModeChanged?: (engineEditMode: EngineEditMode) => void

    use events.onEngineEditModeChanged instead

  • OptionalonFontFamiliesChanged?: (fontFamilies: DocumentFontFamily[]) => void

    use events.onFontFamiliesChanged instead

  • OptionalonFrameAnimationsChanged?: (animationState: FrameAnimationType[]) => void

    use events.onFrameAnimationsChanged instead

  • OptionalonFramesLayoutChanged?: (states: FrameLayoutType[]) => void

    use events.onFramesLayoutChanged instead

  • OptionalonLayoutsChanged?: (layouts: LayoutListItemType[]) => void

    use events.onLayoutsChanged instead

  • OptionalonPagesChanged?: (pages: Page[]) => void

    use events.onPagesChanged instead

  • OptionalonPageSelectionChanged?: (id: Id) => void

    use events.onPageSelectionChanged instead

  • OptionalonPageSizeChanged?: (pageSize: PageSize) => void

    use events.onPageSizeChanged instead

  • OptionalonPageSnapshotInvalidated?: (page: Id) => void

    use events.onPageSnapshotInvalidated instead

  • OptionalonParagraphStylesChanged?: (paragraphStyles: ParagraphStyle[]) => void

    use events.onParagraphStylesChanged instead

  • OptionalonScrubberPositionChanged?: (state: AnimationPlaybackType) => void

    use events.onScrubberPositionChanged instead

  • OptionalonSelectedFrameContentChanged?: (state: Frame | null) => void

    use onSelectedFramesContentChanged instead

  • OptionalonSelectedFrameLayoutChanged?: (state: FrameLayoutType) => void

    use onSelectedFramesLayoutChanged instead

  • OptionalonSelectedFramesContentChanged?: (state: Frame[]) => void

    use events.onSelectedFramesContentChanged instead

  • OptionalonSelectedFramesLayoutChanged?: (states: FrameLayoutType[]) => void

    use events.onSelectedFramesLayoutChanged instead

  • OptionalonSelectedLayoutFramesChanged?: (frames: SelectedLayoutFrame[]) => void

    use events.onSelectedLayoutFramesChanged instead

  • OptionalonSelectedLayoutIdChanged?: (layoutId: string) => void

    use events.onSelectedLayoutIdChanged instead

  • OptionalonSelectedLayoutPropertiesChanged?: (state: LayoutPropertiesType) => void

    use events.onSelectedLayoutPropertiesChanged instead

  • OptionalonSelectedLayoutUnitChanged?: (unit: MeasurementUnit) => void

    use events.onSelectedLayoutUnitChanged instead

  • OptionalonSelectedPageIdChanged?: (pageId: Id) => void

    use events.onSelectedPageIdChanged instead

  • OptionalonSelectedTextStyleChanged?: (styles: SelectedTextStyle) => void

    use events.onSelectedTextStyleChanged instead

  • OptionalonSelectedToolChanged?: (tool: ToolType) => void

    use events.onSelectedToolChanged instead

  • OptionalonShapeCornerRadiusChanged?: (cornerRadius: CornerRadiusUpdateModel) => void

    use events.onShapeCornerRadiusChanged instead

  • OptionalonStateChanged?: () => void

    use events.onStateChanged instead

  • OptionalonUndoStackStateChanged?: (undoStackState: UndoState) => void

    use events.onUndoStackStateChanged instead

  • OptionalonVariableListChanged?: (variableList: Variable[]) => void

    use events.onVariableListChanged instead

  • OptionalonViewModeChanged?: (tool: ViewMode) => void

    use events.onViewModeChanged instead

  • OptionalonViewportRequested?: () => Viewport | null

    use events.onViewportRequested instead

  • OptionalonZoomChanged?: (scaleFactor: number) => void

    use events.onZoomChanged instead