@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
9 lines (8 loc) • 548 B
TypeScript
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { GuidelineConfig, RelativeGuides } from './types';
export declare const getRelativeGuideSnaps: (relativeGuides: RelativeGuides, aspectRatio: number) => number[];
export declare const getRelativeGuidelines: (relativeGuides: RelativeGuides, nodeWithPos: NodeWithPos, view: EditorView, editorWidth: number, topOffset: number, size: {
width: number;
height: number;
}) => GuidelineConfig[];