UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

13 lines (12 loc) 591 B
import type { CSSProperties } from 'react'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { AnchorRectCache } from './utils/anchor-utils'; export declare const calculatePosition: ({ rootAnchorName, anchorName, view, getPos, rootNodeType, macroInteractionUpdates, anchorRectCache, }: { anchorName: string; anchorRectCache: AnchorRectCache | undefined; getPos: () => number | undefined; macroInteractionUpdates: boolean | undefined; rootAnchorName: string | undefined; rootNodeType: string; view: EditorView; }) => CSSProperties;