@atlaskit/editor-plugin-selection-toolbar
Version:
@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core
15 lines (14 loc) • 647 B
TypeScript
/**
* These functions are currently not used. They were added to provide more control
* of the toolbar in different products, i.e confluence comments and annotations.
* Work to add the toolbar to more products has been paused at the time of writing.
*/
import type { PopupPosition as Position } from '@atlaskit/editor-common/ui';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
export declare const calculateToolbarPositionTrackHead: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
export type CoordsAtPos = {
bottom: number;
left: number;
right: number;
top: number;
};