ketcher-react 2.17.0-rc.2 → 2.18.0-rc.1

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.
@@ -75,8 +75,8 @@ declare class Editor implements KetcherEditor {
75
75
  setOrigin(): void;
76
76
  tool(name?: any, opts?: any): Tool | null;
77
77
  clear(): void;
78
- renderAndRecoordinateStruct(struct: Struct): Struct;
79
- struct(value?: Struct): Struct;
78
+ renderAndRecoordinateStruct(struct: Struct, needToCenterStruct?: boolean): Struct;
79
+ struct(value?: Struct, needToCenterStruct?: boolean): Struct;
80
80
  structToAddFragment(value: Struct): Struct;
81
81
  setOptions(opts: string): false | import("ketcher-core/dist/application/render/render.types").RenderOptions;
82
82
  options(value?: any): import("ketcher-core/dist/application/render/render.types").RenderOptions;
@@ -84,7 +84,10 @@ declare class Editor implements KetcherEditor {
84
84
  centerStruct(): void;
85
85
  zoomAccordingContent(struct: Struct): void;
86
86
  selection(ci?: any): Selection | null;
87
- hover(ci: any, newTool?: any, event?: PointerEvent): void;
87
+ hover(ci: {
88
+ id: number;
89
+ map: string;
90
+ } | null, newTool?: any, event?: PointerEvent): void;
88
91
  update(action: Action | true, ignoreHistory?: boolean): void;
89
92
  historySize(): {
90
93
  undo: any;
@@ -0,0 +1,5 @@
1
+ import { Editor } from '../../Editor';
2
+ declare const isMacroMolecule: (editor: Editor, id: number) => boolean;
3
+ declare const isMergingToMacroMolecule: (editor: Editor, dragCtx: any) => boolean;
4
+ declare const isBondingWithMacroMolecule: (editor: Editor, event: MouseEvent) => boolean | undefined;
5
+ export { isBondingWithMacroMolecule, isMacroMolecule, isMergingToMacroMolecule, };
@@ -26,7 +26,7 @@ declare class SelectTool implements Tool {
26
26
  readonly isMoving = false;
27
27
  constructor(editor: Editor, mode: SelectMode);
28
28
  isSelectionRunning(): boolean;
29
- mousedown(event: any): boolean;
29
+ mousedown(event: any): true | undefined;
30
30
  mousemove(event: any): boolean;
31
31
  mouseup(event: any): void;
32
32
  dblclick(event: any): true | undefined;
@@ -33,7 +33,6 @@ declare class TemplatePreview {
33
33
  private getPreviewTarget;
34
34
  movePreview(event: PointerEvent): void;
35
35
  private moveFloatingPreview;
36
- private hoverFusedItems;
37
36
  private showFloatingPreview;
38
37
  private hideFloatingPreview;
39
38
  private hideConnectedPreview;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "2.17.0-rc.2",
3
+ "version": "2.18.0-rc.1",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",
@@ -1,7 +0,0 @@
1
- export function isControlKey(event: any): any;
2
- export default keyNorm;
3
- declare function keyNorm(obj: any, ...args: any[]): any;
4
- declare namespace keyNorm {
5
- export { lookup };
6
- }
7
- declare function lookup(map: any, event: any): any;