ketcher-react 3.0.0-rc.7 → 3.1.0-rc.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.
@@ -35,8 +35,8 @@ declare class Editor implements KetcherEditor {
35
35
  render: Render;
36
36
  _selection: Selection | null;
37
37
  _tool: Tool | null;
38
- historyStack: any;
39
- historyPtr: any;
38
+ historyStack: Action[];
39
+ historyPtr: number;
40
40
  errorHandler: ((message: string) => void) | null;
41
41
  highlights: Highlighter;
42
42
  hoverIcon: HoverIcon;
@@ -78,9 +78,11 @@ declare class Editor implements KetcherEditor {
78
78
  tool(name?: any, opts?: any): Tool | null;
79
79
  clear(): void;
80
80
  renderAndRecoordinateStruct(struct: Struct, needToCenterStruct?: boolean): Struct;
81
+ /** Apply {@link value}: {@link Struct} if provided to {@link render} and */
81
82
  struct(value?: Struct, needToCenterStruct?: boolean): Struct;
82
83
  structToAddFragment(value: Struct): Struct;
83
84
  setOptions(opts: string): false | import("ketcher-core").RenderOptions;
85
+ /** Apply options from {@link value} */
84
86
  options(value?: any): import("ketcher-core").RenderOptions;
85
87
  setServerSettings(serverSettings: any): void;
86
88
  private updateToolAfterOptionsChange;
@@ -94,8 +96,8 @@ declare class Editor implements KetcherEditor {
94
96
  } | null, newTool?: any, event?: PointerEvent): void;
95
97
  update(action: Action | true, ignoreHistory?: boolean): void;
96
98
  historySize(): {
97
- undo: any;
98
- redo: number;
99
+ readonly undo: number;
100
+ readonly redo: number;
99
101
  };
100
102
  undo(): void;
101
103
  redo(): void;