@ones-editor/editor 0.0.3-beta.166 → 0.0.3-beta.168

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.
@@ -9,7 +9,9 @@ export declare class EditorSelectionHandler implements OnesEditorSelectionHandle
9
9
  constructor(editor: OnesEditor);
10
10
  isSelecting(): boolean;
11
11
  stopSelection(): void;
12
- handleMouseDown: (event: MouseEvent) => void;
12
+ handleMouseDown: (event: MouseEvent, options: {
13
+ autoScroll: boolean;
14
+ }) => void;
13
15
  handleMouseMove: (event: MouseEvent) => void;
14
16
  handleMouseUp: (event: MouseEvent) => void;
15
17
  handleDblClick(event: MouseEvent): void;
@@ -582,7 +582,9 @@ export interface OnesEditorInput {
582
582
  export interface OnesEditorSelectionHandler {
583
583
  isSelecting: () => boolean;
584
584
  stopSelection: () => void;
585
- handleMouseDown: (event: MouseEvent) => void;
585
+ handleMouseDown: (event: MouseEvent, options: {
586
+ autoScroll: boolean;
587
+ }) => void;
586
588
  handleMouseMove: (event: MouseEvent) => void;
587
589
  handleMouseUp: (event: MouseEvent) => void;
588
590
  handleDblClick: (event: MouseEvent) => void;
@@ -1,5 +1,5 @@
1
1
  import type { OnesEditor, BlockElement } from '../../../../@ones-editor/core';
2
- import { type EmbedElement, DrawIoData, GraphDataType, XmlData, XmlSvgData, SrcData, DrawIoOptions } from '../../types';
2
+ import { DrawIoData, GraphDataType, XmlData, XmlSvgData, SrcData, DrawIoOptions } from '../../types';
3
3
  import '../../types/window.d';
4
4
  export declare function getDrawioOptions(editor: OnesEditor): DrawIoOptions;
5
5
  export declare function getDrawioLang(editor: OnesEditor): string;
@@ -14,9 +14,14 @@ export declare function initializeDrawioIframe(editor: OnesEditor): Promise<{
14
14
  export declare function contactWithIframe(editor: OnesEditor, block: BlockElement, drawIoData: DrawIoData, iframe: HTMLIFrameElement, loaded: () => void, exit: () => void, isInitializationCompleted: boolean): void;
15
15
  export declare function editGraph(editor: OnesEditor, block: BlockElement, data: DrawIoData, isInitializationCompleted: boolean): Promise<void>;
16
16
  export declare function initDrawIo(editor: OnesEditor): Promise<void>;
17
- export declare function removeDrawioEmptyStatus(el: HTMLElement): void;
18
- export declare function addDrawioEmptyStatus(el: HTMLElement): void;
19
- export declare function setGraph(embed: EmbedElement, data: GraphDataType): void;
20
- export declare function updateGraphBySrc(src: SrcData['src'], embed: EmbedElement, editor: OnesEditor): void;
21
- export declare function updateGraphByXml(mxFile: XmlData['xml'], embed: EmbedElement, editor: OnesEditor): void;
22
- export declare function updateGraphByXmlSvg(xmlSvg: XmlSvgData['xmlSvg'], embed: EmbedElement): void;
17
+ export declare function removeDrawioEmptyStatus(embed: HTMLElement): void;
18
+ export declare function addDrawioEmptyStatus(embed: HTMLElement): void;
19
+ export declare function setGraph(embed: HTMLElement, data: GraphDataType): void;
20
+ export declare function getPreGraphData(embed: HTMLElement): {
21
+ src: string;
22
+ xmlSvg: string;
23
+ xml: string;
24
+ };
25
+ export declare function updateGraphBySrc(src: SrcData['src'], embed: HTMLElement, editor: OnesEditor): void;
26
+ export declare function updateGraphByXml(mxFile: XmlData['xml'], embed: HTMLElement, editor: OnesEditor): void;
27
+ export declare function updateGraphByXmlSvg(xmlSvg: XmlSvgData['xmlSvg'], embed: HTMLElement): void;