@ones-editor/editor 2.2.11 → 2.2.12-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ export default class BlockMenuButtonDragHandler {
6
6
  private button;
7
7
  dragPreview: DragPreviewImage;
8
8
  autoScroll: AutoScroll | undefined;
9
- oldPos: {
9
+ startPos: {
10
10
  x: number;
11
11
  y: number;
12
12
  };
@@ -1,3 +1,2 @@
1
- import { BlockElement, OnesEditor, SelectedBlock } from '../../../../@ones-editor/core';
2
- export declare function getCommentAbstract(editor: OnesEditor, blocks: BlockElement[]): string;
1
+ import { OnesEditor, SelectedBlock } from '../../../../@ones-editor/core';
3
2
  export declare function getCommentAbstractFromSelectedBlocks(editor: OnesEditor, blocks: SelectedBlock[]): string;
@@ -5,13 +5,11 @@ export declare class EditorSelectionHandler implements OnesEditorSelectionHandle
5
5
  startPos: BlockPosition | null;
6
6
  lastCaretRect: DOMRect;
7
7
  mouseDownEvent: TouchEvent | MouseEvent | null;
8
- autoScroll: AutoScroll | null;
8
+ autoScroll: AutoScroll;
9
9
  constructor(editor: OnesEditor);
10
10
  isSelecting(): boolean;
11
11
  stopSelection(): void;
12
- handleMouseDown: (event: MouseEvent | TouchEvent, options: {
13
- autoScroll: boolean;
14
- }) => void;
12
+ handleMouseDown: (event: MouseEvent | TouchEvent) => void;
15
13
  handleMouseMove: (event: MouseEvent) => void;
16
14
  handleMouseUp: (event: MouseEvent | TouchEvent) => void;
17
15
  handleDblClick(event: MouseEvent): void;
@@ -664,9 +664,7 @@ export interface OnesEditorInput {
664
664
  export interface OnesEditorSelectionHandler {
665
665
  isSelecting: () => boolean;
666
666
  stopSelection: () => void;
667
- handleMouseDown: (event: MouseEvent | TouchEvent, options: {
668
- autoScroll: boolean;
669
- }) => void;
667
+ handleMouseDown: (event: MouseEvent | TouchEvent) => void;
670
668
  handleMouseMove: (event: MouseEvent) => void;
671
669
  handleMouseUp: (event: MouseEvent | TouchEvent) => void;
672
670
  handleDblClick: (event: MouseEvent) => void;