ketcher-react 2.2.0 → 2.3.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.
Files changed (200) hide show
  1. package/LICENSE +1 -1
  2. package/dist/Editor.d.ts +3 -0
  3. package/dist/contexts/appContext.d.ts +6 -0
  4. package/dist/contexts/index.d.ts +3 -2
  5. package/dist/hooks/index.d.ts +1 -0
  6. package/dist/hooks/useAppContext.d.ts +1 -0
  7. package/dist/hooks/useResizeObserver.d.ts +1 -1
  8. package/dist/hooks/useSettingsContext.d.ts +1 -1
  9. package/dist/index.css +3 -2
  10. package/dist/index.css.map +1 -1
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +16256 -21706
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.js +16169 -21618
  15. package/dist/index.modern.js.map +1 -1
  16. package/dist/script/api.d.ts +2 -2
  17. package/dist/script/builders/ketcher/KetcherBuilder.d.ts +1 -1
  18. package/dist/script/editor/Editor.d.ts +11 -4
  19. package/dist/script/editor/actions/bond.d.ts +24 -24
  20. package/dist/script/editor/actions/reaction.d.ts +1 -1
  21. package/dist/script/editor/actions/text.d.ts +6 -0
  22. package/dist/script/editor/actions/utils.d.ts +1 -2
  23. package/dist/script/editor/operations/CanvasLoad.d.ts +1 -1
  24. package/dist/script/editor/operations/EnhancedFlagMove.d.ts +1 -1
  25. package/dist/script/editor/operations/FragmentStereoFlag.d.ts +3 -5
  26. package/dist/script/editor/operations/LoopMove.d.ts +1 -1
  27. package/dist/script/editor/operations/OperationType.d.ts +5 -0
  28. package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +41 -0
  29. package/dist/script/{chem/struct/simpleObject.d.ts → editor/operations/Text/TextMove.d.ts} +12 -15
  30. package/dist/script/{util/pool.d.ts → editor/operations/Text/TextUpdate.d.ts} +14 -10
  31. package/dist/script/editor/operations/Text/index.d.ts +3 -0
  32. package/dist/script/editor/operations/atom/AtomAttr.d.ts +1 -1
  33. package/dist/script/editor/operations/atom/AtomMove.d.ts +1 -1
  34. package/dist/script/editor/operations/base.d.ts +2 -2
  35. package/dist/script/editor/operations/bond/BondAttr.d.ts +1 -1
  36. package/dist/script/editor/operations/bond/BondMove.d.ts +1 -1
  37. package/dist/script/editor/operations/bond/index.d.ts +15 -0
  38. package/dist/script/{util/pile.d.ts → editor/operations/calcimplicitH.d.ts} +8 -10
  39. package/dist/script/editor/operations/fragment.d.ts +1 -1
  40. package/dist/script/editor/operations/fragmentStereoAtom.d.ts +1 -1
  41. package/dist/script/editor/operations/index.d.ts +2 -0
  42. package/dist/script/editor/operations/rxn/index.d.ts +18 -1
  43. package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +1 -1
  44. package/dist/script/editor/operations/sgroup/index.d.ts +1 -1
  45. package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -2
  46. package/dist/script/editor/operations/simpleObject.d.ts +9 -11
  47. package/dist/script/editor/shared/action.d.ts +2 -2
  48. package/dist/script/editor/shared/utils.d.ts +2 -2
  49. package/dist/script/editor/tool/attach.d.ts +4 -1
  50. package/dist/script/editor/tool/enhanced-stereo.d.ts +2 -1
  51. package/dist/script/editor/tool/helper/lasso.d.ts +3 -0
  52. package/dist/script/editor/tool/helper/locate.d.ts +2 -0
  53. package/dist/script/editor/tool/index.d.ts +2 -0
  54. package/dist/script/editor/tool/reactionarrow.d.ts +4 -4
  55. package/dist/script/editor/tool/rotate.d.ts +1 -1
  56. package/dist/script/editor/tool/text.d.ts +27 -0
  57. package/dist/script/editor/utils/elementOffset.d.ts +1 -1
  58. package/dist/script/index.d.ts +1 -1
  59. package/dist/script/ketcher.d.ts +1 -2
  60. package/dist/script/render/draw.d.ts +13 -7
  61. package/dist/script/render/index.d.ts +5 -5
  62. package/dist/script/render/restruct/GeneralEnumTypes.d.ts +35 -0
  63. package/dist/script/render/restruct/ReEnhancedFlag.d.ts +28 -0
  64. package/dist/script/render/restruct/ReObject.d.ts +32 -0
  65. package/dist/script/render/restruct/ReSimpleObject.d.ts +40 -0
  66. package/dist/script/render/restruct/ReStruct.d.ts +110 -0
  67. package/dist/script/render/restruct/ReText.d.ts +38 -0
  68. package/dist/script/render/restruct/index.d.ts +5 -84
  69. package/dist/script/render/restruct/reatom.d.ts +41 -17
  70. package/dist/script/render/restruct/rebond.d.ts +36 -26
  71. package/dist/script/render/restruct/redatasgroupdata.d.ts +3 -7
  72. package/dist/script/render/restruct/refrag.d.ts +3 -7
  73. package/dist/script/render/restruct/reloop.d.ts +4 -8
  74. package/dist/script/render/restruct/rergroup.d.ts +4 -7
  75. package/dist/script/render/restruct/rerxnarrow.d.ts +3 -7
  76. package/dist/script/render/restruct/rerxnplus.d.ts +3 -7
  77. package/dist/script/render/restruct/resgroup.d.ts +3 -6
  78. package/dist/script/render/restruct/visel.d.ts +1 -2
  79. package/dist/script/render/util.d.ts +1 -1
  80. package/dist/script/ui/action/action.types.d.ts +1 -1
  81. package/dist/script/ui/action/atoms.d.ts +1 -1
  82. package/dist/script/ui/action/debug.d.ts +2 -2
  83. package/dist/script/ui/action/index.d.ts +392 -2
  84. package/dist/script/ui/action/templates.d.ts +10 -1
  85. package/dist/script/ui/action/tools.d.ts +16 -1
  86. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +12 -0
  87. package/dist/script/{chem/molfile/molfile.test.d.ts → ui/component/form/colorPicker/ColorPicker.test.d.ts} +0 -0
  88. package/dist/script/ui/component/view/savebutton.d.ts +1 -5
  89. package/dist/script/ui/data/convert/structConverter.d.ts +3 -3
  90. package/dist/script/ui/data/convert/structconv.d.ts +6 -4
  91. package/dist/script/ui/data/schema/options-schema.d.ts +25 -167
  92. package/dist/script/ui/data/schema/struct-schema.d.ts +20 -2
  93. package/dist/script/ui/data/templates.d.ts +1 -1
  94. package/dist/script/ui/dialog/index.d.ts +43 -7
  95. package/dist/script/ui/dialog/template/TemplateLib.d.ts +1 -1
  96. package/dist/script/ui/dialog/template/TemplateTable.d.ts +1 -1
  97. package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +2 -0
  98. package/dist/script/ui/state/constants.d.ts +7 -0
  99. package/dist/script/ui/state/editor/index.d.ts +1 -2
  100. package/dist/script/ui/state/modal/form.d.ts +10 -2
  101. package/dist/script/ui/state/options/index.d.ts +4 -3
  102. package/dist/script/ui/state/shared.d.ts +1 -1
  103. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +6 -8
  104. package/dist/script/ui/views/components/Dialog/index.d.ts +1 -1
  105. package/dist/script/ui/views/components/index.d.ts +1 -2
  106. package/dist/script/ui/views/modal/Modal.d.ts +4 -7
  107. package/dist/script/{format/chemGraph/toGraph/simpleObjectToGraph.d.ts → ui/views/modal/components/Text/Text.d.ts} +4 -5
  108. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +14 -0
  109. package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +1 -0
  110. package/dist/script/{util/scale.d.ts → ui/views/modal/components/Text/index.d.ts} +2 -8
  111. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +18 -0
  112. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +24 -2
  113. package/dist/script/ui/views/modal/components/document/Open/index.d.ts +1 -1
  114. package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +4 -0
  115. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +16 -1
  116. package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +35 -13
  117. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +20 -0
  118. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +36 -0
  119. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +6 -0
  120. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
  121. package/dist/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
  122. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +20 -0
  123. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +24 -0
  124. package/dist/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
  125. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +20 -0
  126. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +32 -0
  127. package/dist/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
  128. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +20 -0
  129. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +10 -0
  130. package/dist/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
  131. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +20 -0
  132. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +28 -0
  133. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +19 -0
  134. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
  135. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
  136. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
  137. package/dist/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
  138. package/dist/script/ui/views/modal/modal.types.d.ts +28 -0
  139. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +2 -1
  140. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +1 -1
  141. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +15 -1
  142. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +15 -0
  143. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +15 -0
  144. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -1
  145. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
  146. package/package.json +7 -3
  147. package/dist/script/chem/element-color.d.ts +0 -2
  148. package/dist/script/chem/element.d.ts +0 -57
  149. package/dist/script/chem/generics.d.ts +0 -5
  150. package/dist/script/chem/molfile/common.d.ts +0 -34
  151. package/dist/script/chem/molfile/index.d.ts +0 -10
  152. package/dist/script/chem/molfile/molfile.d.ts +0 -47
  153. package/dist/script/chem/molfile/molfileFormat.d.ts +0 -1
  154. package/dist/script/chem/molfile/parseSGroup.d.ts +0 -42
  155. package/dist/script/chem/molfile/utils.d.ts +0 -66
  156. package/dist/script/chem/molfile/v2000.d.ts +0 -10
  157. package/dist/script/chem/molfile/v3000.d.ts +0 -10
  158. package/dist/script/chem/sdf.d.ts +0 -10
  159. package/dist/script/chem/smiles/cis_trans.d.ts +0 -25
  160. package/dist/script/chem/smiles/dfs.d.ts +0 -53
  161. package/dist/script/chem/smiles/index.d.ts +0 -5
  162. package/dist/script/chem/smiles/stereocenters.d.ts +0 -26
  163. package/dist/script/chem/struct/atom.d.ts +0 -66
  164. package/dist/script/chem/struct/atomlist.d.ts +0 -10
  165. package/dist/script/chem/struct/bond.d.ts +0 -72
  166. package/dist/script/chem/struct/fragment.d.ts +0 -50
  167. package/dist/script/chem/struct/index.d.ts +0 -137
  168. package/dist/script/chem/struct/rgroup.d.ts +0 -19
  169. package/dist/script/chem/struct/sgforest.d.ts +0 -42
  170. package/dist/script/chem/struct/sgroup.d.ts +0 -68
  171. package/dist/script/format/chemGraph/convertStruct.d.ts +0 -2
  172. package/dist/script/format/chemGraph/fromGraph/moleculeToStruct.d.ts +0 -10
  173. package/dist/script/format/chemGraph/fromGraph/rgroupToStruct.d.ts +0 -3
  174. package/dist/script/format/chemGraph/fromGraph/rxnToStruct.d.ts +0 -1
  175. package/dist/script/format/chemGraph/fromGraph/simpleObjectToStruct.d.ts +0 -1
  176. package/dist/script/format/chemGraph/index.d.ts +0 -13
  177. package/dist/script/format/chemGraph/toGraph/headerToGraph.d.ts +0 -1
  178. package/dist/script/format/chemGraph/toGraph/moleculeToGraph.d.ts +0 -4
  179. package/dist/script/format/chemGraph/toGraph/prepare.d.ts +0 -14
  180. package/dist/script/format/chemGraph/toGraph/rgroupToGraph.d.ts +0 -5
  181. package/dist/script/format/chemGraph/toGraph/rxnToGraph.d.ts +0 -10
  182. package/dist/script/format/graphValidator.d.ts +0 -1
  183. package/dist/script/format/schemes/moleculeSchema.d.ts +0 -596
  184. package/dist/script/format/schemes/rgroupSchema.d.ts +0 -60
  185. package/dist/script/format/schemes/rootSchema.d.ts +0 -102
  186. package/dist/script/format/schemes/rxnSchemas.d.ts +0 -58
  187. package/dist/script/format/schemes/simpleObjectSchema.d.ts +0 -45
  188. package/dist/script/format/utils.d.ts +0 -1
  189. package/dist/script/render/restruct/reenhancedflag.d.ts +0 -15
  190. package/dist/script/render/restruct/reobject.d.ts +0 -15
  191. package/dist/script/render/restruct/resimpleobject.d.ts +0 -23
  192. package/dist/script/ui/dialog/toolbox/atom.d.ts +0 -2
  193. package/dist/script/ui/dialog/toolbox/attach.d.ts +0 -2
  194. package/dist/script/ui/dialog/toolbox/automap.d.ts +0 -18
  195. package/dist/script/ui/dialog/toolbox/bond.d.ts +0 -2
  196. package/dist/script/ui/dialog/toolbox/enhanced-stereo.d.ts +0 -2
  197. package/dist/script/ui/dialog/toolbox/rgroup-logic.d.ts +0 -2
  198. package/dist/script/util/banner.d.ts +0 -0
  199. package/dist/script/util/box2abs.d.ts +0 -23
  200. package/dist/script/util/vec2.d.ts +0 -75
@@ -1,22 +1,46 @@
1
- export default ReAtom;
2
- /** @param {import('../../chem/struct/atom').default} atom */
3
- declare function ReAtom(atom: import('../../chem/struct/atom').default): void;
4
- declare class ReAtom {
5
- /** @param {import('../../chem/struct/atom').default} atom */
6
- constructor(atom: import('../../chem/struct/atom').default);
7
- visel: any;
8
- /** @type {import('../../chem/struct/atom').default} */
9
- a: import('../../chem/struct/atom').default;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { Atom, Box2Abs } from 'ketcher-core';
17
+ import ReObject from './ReObject';
18
+ import ReStruct from './ReStruct';
19
+ import Render from '..';
20
+ interface ElemAttr {
21
+ text: string;
22
+ path: any;
23
+ rbb: {
24
+ x: number;
25
+ y: number;
26
+ width: number;
27
+ height: number;
28
+ };
29
+ }
30
+ declare class ReAtom extends ReObject {
31
+ a: Atom;
10
32
  showLabel: boolean;
11
33
  hydrogenOnTheLeft: boolean;
12
34
  color: string;
13
35
  component: number;
14
- getVBoxObj(render: any): any;
15
- drawHighlight(render: any): any;
16
- makeHighlightPlate(render: any): any;
17
- makeSelectionPlate(restruct: any, paper: any, styles: any): any;
18
- show(restruct: any, aid: any, options: any): void;
19
- }
20
- declare namespace ReAtom {
21
- function isSelectable(): boolean;
36
+ label?: ElemAttr;
37
+ constructor(atom: Atom);
38
+ static isSelectable(): true;
39
+ getVBoxObj(render: Render): Box2Abs | null;
40
+ drawHighlight(render: Render): any;
41
+ makeHighlightPlate(render: Render): any;
42
+ makeSelectionPlate(restruct: ReStruct, paper: any, styles: any): any;
43
+ show(restruct: ReStruct, aid: number, options: any): void;
22
44
  }
45
+ export declare function getColorFromStereoLabel(options: any, stereoLabel: any): any;
46
+ export default ReAtom;
@@ -1,30 +1,40 @@
1
- export default ReBond;
2
- /**
3
- * @param bond { Bond }
4
- * @constructor
5
- */
6
- declare function ReBond(bond: Bond): void;
7
- declare class ReBond {
8
- /**
9
- * @param bond { Bond }
10
- * @constructor
11
- */
12
- constructor(bond: Bond);
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import { Bond } from 'ketcher-core';
17
+ import ReObject from './ReObject';
18
+ import ReStruct from './ReStruct';
19
+ import Render from '..';
20
+ declare class ReBond extends ReObject {
13
21
  b: Bond;
14
22
  doubleBondShift: number;
15
- drawHighlight(render: any): any;
16
- makeHighlightPlate(render: any): any;
17
- makeSelectionPlate(restruct: any, paper: any, options: any): any;
18
- show(restruct: any, bid: number, options: object): void;
19
23
  path: any;
20
- rbb: {
21
- x: any;
22
- y: any;
23
- width: any;
24
- height: any;
25
- } | undefined;
26
- }
27
- declare namespace ReBond {
28
- function isSelectable(): boolean;
24
+ neihbid1: number;
25
+ neihbid2: number;
26
+ boldStereo?: boolean;
27
+ rbb?: {
28
+ x: number;
29
+ y: number;
30
+ width: number;
31
+ height: number;
32
+ };
33
+ constructor(bond: Bond);
34
+ static isSelectable(): boolean;
35
+ drawHighlight(render: Render): any;
36
+ makeHighlightPlate(render: Render): any;
37
+ makeSelectionPlate(restruct: ReStruct, paper: any, options: any): any;
38
+ show(restruct: ReStruct, bid: number, options: any): void;
29
39
  }
30
- import { Bond } from "../../chem/struct";
40
+ export default ReBond;
@@ -1,12 +1,8 @@
1
1
  export default ReDataSGroupData;
2
- declare function ReDataSGroupData(sgroup: any): void;
3
- declare class ReDataSGroupData {
2
+ declare class ReDataSGroupData extends ReObject {
3
+ static isSelectable(): boolean;
4
4
  constructor(sgroup: any);
5
5
  sgroup: any;
6
6
  highlightPath(render: any): any;
7
- drawHighlight(render: any): any;
8
- makeSelectionPlate(restruct: any, paper: any, styles: any): any;
9
- }
10
- declare namespace ReDataSGroupData {
11
- function isSelectable(): boolean;
12
7
  }
8
+ import ReObject from "./ReObject";
@@ -1,6 +1,6 @@
1
1
  export default ReFrag;
2
- declare function ReFrag(frag: any): void;
3
- declare class ReFrag {
2
+ declare class ReFrag extends ReObject {
3
+ static isSelectable(): boolean;
4
4
  constructor(frag: any);
5
5
  item: any;
6
6
  fragGetAtoms(restruct: any, fid: any): any[];
@@ -8,9 +8,5 @@ declare class ReFrag {
8
8
  calcBBox(restruct: any, fid: any, render: any): undefined;
9
9
  _draw(render: any, fid: any, attrs: any): any;
10
10
  draw(render: any): null;
11
- drawHighlight(render: any): void;
12
- setHighlight(highLight: any, render: any): void;
13
- }
14
- declare namespace ReFrag {
15
- function isSelectable(): boolean;
16
11
  }
12
+ import ReObject from "./ReObject";
@@ -1,16 +1,12 @@
1
1
  export default ReLoop;
2
- declare function ReLoop(loop: any): void;
3
- declare class ReLoop {
2
+ declare class ReLoop extends ReObject {
3
+ static isSelectable(): boolean;
4
4
  constructor(loop: any);
5
5
  loop: any;
6
- visel: Visel;
7
6
  centre: Vec2;
8
7
  radius: Vec2;
9
8
  show(restruct: any, rlid: any, options: any): void;
10
9
  isValid(struct: any, rlid: any): any;
11
10
  }
12
- declare namespace ReLoop {
13
- function isSelectable(): boolean;
14
- }
15
- import Visel from "./visel";
16
- import Vec2 from "../../util/vec2";
11
+ import ReObject from "./ReObject";
12
+ import { Vec2 } from "ketcher-core/dist/domain/entities/Vec2";
@@ -1,6 +1,6 @@
1
1
  export default ReRGroup;
2
- declare function ReRGroup(rgroup: any): void;
3
- declare class ReRGroup {
2
+ declare class ReRGroup extends ReObject {
3
+ static isSelectable(): boolean;
4
4
  constructor(rgroup: any);
5
5
  labelBox: Box2Abs | null;
6
6
  item: any;
@@ -9,10 +9,7 @@ declare class ReRGroup {
9
9
  calcBBox(render: any): any;
10
10
  draw(render: any, options: any): {};
11
11
  _draw(render: any, rgid: any, attrs: any): any;
12
- drawHighlight(render: any): any;
13
12
  show(restruct: any, id: any, options: any): void;
14
13
  }
15
- declare namespace ReRGroup {
16
- function isSelectable(): boolean;
17
- }
18
- import Box2Abs from "../../util/box2abs";
14
+ import ReObject from "./ReObject";
15
+ import { Box2Abs } from "ketcher-core/dist/domain/entities/Box2Abs";
@@ -1,13 +1,9 @@
1
1
  export default ReRxnArrow;
2
- declare function ReRxnArrow(arrow: any): void;
3
- declare class ReRxnArrow {
2
+ declare class ReRxnArrow extends ReObject {
3
+ static isSelectable(): boolean;
4
4
  constructor(arrow: any);
5
5
  item: any;
6
6
  highlightPath(render: any): any;
7
- drawHighlight(render: any): any;
8
- makeSelectionPlate(restruct: any, paper: any, styles: any): any;
9
7
  show(restruct: any, id: any, options: any): void;
10
8
  }
11
- declare namespace ReRxnArrow {
12
- function isSelectable(): boolean;
13
- }
9
+ import ReObject from "./ReObject";
@@ -1,13 +1,9 @@
1
1
  export default ReRxnPlus;
2
- declare function ReRxnPlus(plus: any): void;
3
- declare class ReRxnPlus {
2
+ declare class ReRxnPlus extends ReObject {
3
+ static isSelectable(): boolean;
4
4
  constructor(plus: any);
5
5
  item: any;
6
6
  highlightPath(render: any): any;
7
- drawHighlight(render: any): any;
8
- makeSelectionPlate(restruct: any, paper: any, styles: any): any;
9
7
  show(restruct: any, id: any, options: any): void;
10
8
  }
11
- declare namespace ReRxnPlus {
12
- function isSelectable(): boolean;
13
- }
9
+ import ReObject from "./ReObject";
@@ -1,12 +1,9 @@
1
1
  export default ReSGroup;
2
- declare function ReSGroup(sgroup: any): void;
3
- declare class ReSGroup {
2
+ declare class ReSGroup extends ReObject {
3
+ static isSelectable(): boolean;
4
4
  constructor(sgroup: any);
5
5
  item: any;
6
6
  draw(remol: any, sgroup: any): any;
7
- drawHighlight(render: any): void;
8
7
  show(restruct: any): void;
9
8
  }
10
- declare namespace ReSGroup {
11
- function isSelectable(): boolean;
12
- }
9
+ import ReObject from "./ReObject";
@@ -1,13 +1,12 @@
1
1
  export default Visel;
2
- declare function Visel(type: any): void;
3
2
  declare class Visel {
4
3
  constructor(type: any);
5
4
  type: any;
6
5
  paths: any[];
7
6
  boxes: any[];
8
7
  boundingBox: any;
8
+ exts: any[];
9
9
  add(path: any, bb: any, ext: any): void;
10
10
  clear(): void;
11
- exts: any[] | undefined;
12
11
  translate(x: any, y: any, ...args: any[]): void;
13
12
  }
@@ -19,4 +19,4 @@ declare function relBox(box: any): {
19
19
  * @param bb { Box2Abs }
20
20
  */
21
21
  declare function shiftRayBox(p: Vec2, d: Vec2, bb: any): number;
22
- import Vec2 from "../util/vec2";
22
+ import { Vec2 } from "ketcher-core/dist/domain/entities/Vec2";
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { Dispatch } from 'redux';
17
- declare type ToolVariant = 'about' | 'analyse' | 'arom' | 'bond-any' | 'bond-aromatic' | 'bond-crossed' | 'bond-double' | 'bond-doublearomatic' | 'bond-down' | 'bond-single' | 'bond-singlearomatic' | 'bond-singledouble' | 'bond-triple' | 'bond-up' | 'bond-updown' | 'chain' | 'charge-minus' | 'charge-plus' | 'check' | 'chiral-flag' | 'cip' | 'clean' | 'copy' | 'cut' | 'dearom' | 'dropdown' | 'enhanced-stereo' | 'erase' | 'generic-groups' | 'help' | 'layout' | 'logo' | 'miew' | 'new' | 'open' | 'paste' | 'period-table' | 'reaction-arrow' | 'reaction-automap' | 'reaction-map' | 'reaction-plus' | 'reaction-unmap' | 'recognize' | 'redo' | 'rgroup-attpoints' | 'rgroup-fragment' | 'rgroup-label' | 'save' | 'select-fragment' | 'select-lasso' | 'select-rectangle' | 'settings' | 'sgroup' | 'sgroup-data' | 'template-0' | 'template-1' | 'template-2' | 'template-3' | 'template-4' | 'template-5' | 'template-6' | 'template-7' | 'template-lib' | 'transform-flip-h' | 'transform-flip-v' | 'transform-rotate' | 'zoom-in' | 'zoom-out' | 'shape-circle' | 'shape-rectangle' | 'shape-polyline' | 'shape-line' | 'undo';
17
+ declare type ToolVariant = 'about' | 'analyse' | 'arom' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-crossed' | 'bond-dative' | 'bond-double' | 'bond-doublearomatic' | 'bond-down' | 'bond-single' | 'bond-singlearomatic' | 'bond-singledouble' | 'bond-triple' | 'bond-up' | 'bond-updown' | 'chain' | 'charge-minus' | 'charge-plus' | 'check' | 'chiral-flag' | 'cip' | 'clean' | 'copy' | 'cut' | 'dearom' | 'dropdown' | 'enhanced-stereo' | 'erase' | 'generic-groups' | 'help' | 'layout' | 'logo' | 'miew' | 'new' | 'open' | 'paste' | 'period-table' | 'reaction-arrow' | 'reaction-automap' | 'reaction-map' | 'reaction-plus' | 'reaction-unmap' | 'recognize' | 'redo' | 'rgroup-attpoints' | 'rgroup-fragment' | 'rgroup-label' | 'save' | 'select-fragment' | 'select-lasso' | 'select-rectangle' | 'settings' | 'sgroup' | 'sgroup-data' | 'template-0' | 'template-1' | 'template-2' | 'template-3' | 'template-4' | 'template-5' | 'template-6' | 'template-7' | 'template-lib' | 'text' | 'transform-flip-h' | 'transform-flip-v' | 'transform-rotate' | 'zoom-in' | 'zoom-out' | 'shape-circle' | 'shape-rectangle' | 'shape-polyline' | 'shape-line' | 'undo';
18
18
  declare type Editor = any;
19
19
  declare type Server = any;
20
20
  declare type Options = any;
@@ -1,5 +1,5 @@
1
1
  /****************************************************************************
2
- * Copyright 2020 EPAM Systems
2
+ * Copyright 2021 EPAM Systems
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,4 +1,5 @@
1
- declare var _default: {
1
+ export default debugObj;
2
+ declare const debugObj: {
2
3
  'force-update': {
3
4
  shortcut: string;
4
5
  action: (editor: any) => void;
@@ -8,4 +9,3 @@ declare var _default: {
8
9
  action: (editor: any) => void;
9
10
  };
10
11
  };
11
- export default _default;