ketcher-react 2.4.2 → 2.5.0
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.
- package/README.md +14 -8
- package/dist/Editor.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +11335 -6836
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11327 -6838
- package/dist/index.modern.js.map +1 -1
- package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
- package/dist/script/editor/Editor.d.ts +2 -1
- package/dist/script/editor/shared/closest.d.ts +1 -1
- package/dist/script/editor/tool/apoint.d.ts +18 -7
- package/dist/script/editor/tool/atom.d.ts +23 -18
- package/dist/script/editor/tool/attach.d.ts +19 -11
- package/dist/script/editor/tool/bond.d.ts +22 -15
- package/dist/script/editor/tool/chain.d.ts +21 -13
- package/dist/script/editor/tool/charge.d.ts +19 -8
- package/dist/script/editor/tool/enhanced-stereo.d.ts +7 -1
- package/dist/script/editor/tool/eraser.d.ts +24 -12
- package/dist/script/editor/tool/helper/lasso.d.ts +45 -30
- package/dist/script/editor/tool/helper/locate.d.ts +36 -21
- package/dist/script/editor/tool/index.d.ts +2 -2
- package/dist/script/editor/tool/paste.d.ts +23 -13
- package/dist/script/editor/tool/reactionarrow.d.ts +21 -8
- package/dist/script/editor/tool/reactionmap.d.ts +21 -9
- package/dist/script/editor/tool/reactionplus.d.ts +19 -6
- package/dist/script/editor/tool/reactionunmap.d.ts +18 -3
- package/dist/script/editor/tool/rgroupatom.d.ts +18 -6
- package/dist/script/editor/tool/rgroupfragment.d.ts +18 -7
- package/dist/script/editor/tool/rotate.d.ts +22 -10
- package/dist/script/editor/tool/sgroup.d.ts +23 -11
- package/dist/script/editor/tool/simpleobject.d.ts +20 -7
- package/dist/script/editor/tool/template.d.ts +24 -19
- package/dist/script/editor/tool/text.d.ts +1 -2
- package/dist/script/ui/App/App.container.d.ts +1 -0
- package/dist/script/ui/App/App.d.ts +1 -0
- package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +1 -0
- package/dist/script/ui/App/AppHidden/AppHidden.d.ts +1 -0
- package/dist/script/ui/Portal/Portal.d.ts +1 -1
- package/dist/script/ui/action/action.types.d.ts +1 -1
- package/dist/script/ui/action/fullscreen.d.ts +23 -0
- package/dist/script/ui/action/functionalGroups.d.ts +3 -0
- package/dist/script/ui/action/help.d.ts +8 -0
- package/dist/script/ui/action/index.d.ts +66 -5
- package/dist/script/ui/action/isHidden.d.ts +1 -3
- package/dist/script/ui/action/server.d.ts +1 -3
- package/dist/script/ui/action/tools.d.ts +33 -0
- package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +1 -0
- package/dist/script/ui/component/cliparea/cliparea.d.ts +4 -0
- package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +8 -0
- package/dist/script/ui/component/form/Select/Select.d.ts +30 -0
- package/dist/script/ui/component/form/Select/Select.test.d.ts +1 -0
- package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/components → component/form/Select}/index.d.ts +2 -1
- package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +1 -0
- package/dist/script/ui/component/form/combobox/combobox.d.ts +4 -0
- package/dist/script/ui/component/form/form/form.d.ts +9 -4
- package/dist/script/ui/component/form/input.d.ts +19 -1
- package/dist/script/ui/component/form/{select.d.ts → select-list.d.ts} +0 -0
- package/dist/script/ui/component/structrender.d.ts +28 -4
- package/dist/script/ui/component/view/Atom/Atom.d.ts +2 -2
- package/dist/script/ui/component/view/Tabs/Tabs.d.ts +3 -0
- package/dist/script/ui/component/view/openbutton.d.ts +2 -0
- package/dist/script/ui/data/schema/options-schema.d.ts +2 -2
- package/dist/script/ui/data/schema/sdata-schema.d.ts +11 -9
- package/dist/script/ui/data/schema/struct-schema.d.ts +30 -28
- package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +1 -0
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +7 -1
- package/dist/script/ui/dialog/template/TemplateTable.d.ts +10 -7
- package/dist/script/ui/dialog/template/template-attach.d.ts +27 -1
- package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +3 -1
- package/dist/script/ui/state/editor/index.d.ts +1 -0
- package/dist/script/ui/state/request/index.d.ts +2 -0
- package/dist/script/ui/state/request/request.types.d.ts +3 -1
- package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/index.d.ts → utils/fileOpener.d.ts} +1 -1
- package/dist/script/ui/utils/index.d.ts +3 -0
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +17 -9
- package/dist/script/ui/views/{modal/components/PeriodTable/components/GenericGroups/index.d.ts → components/Spinner/LoadingCircles.d.ts} +2 -1
- package/dist/script/ui/views/components/Spinner/index.d.ts +1 -1
- package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +5 -0
- package/dist/script/ui/views/components/index.d.ts +2 -2
- package/dist/script/ui/views/modal/Modal.d.ts +1 -0
- package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +7 -0
- package/dist/script/ui/views/modal/components/Confirm/index.d.ts +1 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +2 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +18 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +24 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +26 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +22 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts +27 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/helpers.d.ts +1 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/index.d.ts +1 -0
- package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +9 -4
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +2 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +3 -2
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +3 -2
- package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +1 -1
- package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +1 -0
- package/dist/script/ui/views/{components/FunctionalGroups/FunctionalGroups.d.ts → modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts} +7 -8
- package/dist/script/ui/views/{components/Spinner/Spinner.d.ts → modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts} +5 -3
- package/dist/script/ui/views/modal/components/Text/Text.d.ts +1 -0
- package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +1 -0
- package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +7 -1
- package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +6 -1
- package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +20 -0
- package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +25 -0
- package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +26 -0
- package/dist/script/ui/views/modal/components/document/Open/components/OpenOptions.d.ts +24 -0
- package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +21 -0
- package/dist/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +31 -0
- package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +16 -6
- package/dist/script/ui/views/modal/components/meta/About/About.d.ts +1 -1
- package/dist/script/ui/views/modal/components/meta/Settings/Accordion/Accordion.d.ts +22 -0
- package/dist/script/ui/views/modal/components/meta/Settings/{components/Accordion → Accordion}/index.d.ts +0 -0
- package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -0
- package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +41 -0
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +3 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +2 -1
- package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +30 -9
- package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +1 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +3 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +1 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +2 -2
- package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +1 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +3 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +2 -2
- package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +2 -2
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +2 -2
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +3 -4
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +3 -4
- package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +31 -0
- package/dist/script/ui/views/{components/FunctionalGroups/index.d.ts → toolbars/TopToolbar/Divider.d.ts} +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +23 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +36 -0
- package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +26 -0
- package/dist/script/ui/views/toolbars/TopToolbar/IconButton.d.ts +26 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ScaleTransformer.d.ts +24 -0
- package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +28 -0
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -2
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +40 -9
- package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +27 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +29 -0
- package/dist/script/ui/views/toolbars/TopToolbar/{ZoomList/ZoomList.d.ts → ZoomInput.d.ts} +9 -13
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +23 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +22 -0
- package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -2
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
- package/package.json +47 -58
- package/LICENSE +0 -201
- package/dist/script/ui/component/form/measure-input.d.ts +0 -8
- package/dist/script/ui/component/view/spin.d.ts +0 -4
- package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/GenericGroups.d.ts +0 -7
- package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/GenGroup.d.ts +0 -8
- package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/components/GenSet.d.ts +0 -8
- package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +0 -4
- package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +0 -36
- package/dist/script/ui/views/toolbars/TopToolbar/HelpLink/HelpLink.d.ts +0 -19
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomList/index.d.ts +0 -16
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
export declare type ButtonName = 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about' | 'sgroup' | 'sgroup-data' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | 'enhanced-stereo';
|
|
16
|
+
export declare type ButtonName = 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about' | 'fullscreen' | 'sgroup' | 'sgroup-data' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-arrow-elliptical-arc-arrow-filled-bow' | 'reaction-arrow-elliptical-arc-arrow-filled-triangle' | 'reaction-arrow-elliptical-arc-arrow-open-angle' | 'reaction-arrow-elliptical-arc-arrow-open-half-angle' | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | 'enhanced-stereo';
|
|
@@ -47,6 +47,7 @@ declare class Editor implements KetcherEditor {
|
|
|
47
47
|
aromatizeStruct: PipelineSubscription;
|
|
48
48
|
dearomatizeStruct: PipelineSubscription;
|
|
49
49
|
enhancedStereoEdit: PipelineSubscription;
|
|
50
|
+
confirm: PipelineSubscription;
|
|
50
51
|
};
|
|
51
52
|
lastEvent: any;
|
|
52
53
|
constructor(clientArea: any, options: any);
|
|
@@ -70,7 +71,7 @@ declare class Editor implements KetcherEditor {
|
|
|
70
71
|
handler: any;
|
|
71
72
|
};
|
|
72
73
|
unsubscribe(eventName: any, subscriber: any): void;
|
|
73
|
-
findItem(event: any, maps: any, skip
|
|
74
|
+
findItem(event: any, maps: any, skip?: any): any;
|
|
74
75
|
findMerge(srcItems: any, maps: any): {
|
|
75
76
|
atoms: Map<number, number>;
|
|
76
77
|
bonds: Map<number, number> | null;
|
|
@@ -19,7 +19,7 @@ declare function findClosestItem(restruct: any, pos: any, maps: any, skip: any,
|
|
|
19
19
|
* bonds: Map<number, number>?
|
|
20
20
|
* }}
|
|
21
21
|
*/
|
|
22
|
-
declare function findCloseMerge(restruct:
|
|
22
|
+
declare function findCloseMerge(restruct: ReStruct, selected: object, maps: string[] | undefined, scale: number): {
|
|
23
23
|
atoms: Map<number, number>;
|
|
24
24
|
bonds: Map<number, number> | null;
|
|
25
25
|
};
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class APointTool {
|
|
18
|
+
editor: Editor;
|
|
4
19
|
constructor(editor: any);
|
|
5
|
-
editor: any;
|
|
6
|
-
sgroups: any;
|
|
7
|
-
struct: any;
|
|
8
|
-
molecule: any;
|
|
9
|
-
functionalGroups: any;
|
|
10
20
|
mousemove(event: any): void;
|
|
11
21
|
click(event: any): true | undefined;
|
|
12
22
|
}
|
|
23
|
+
export default APointTool;
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 Editor from '../Editor';
|
|
4
17
|
declare class AtomTool {
|
|
5
|
-
|
|
6
|
-
editor:
|
|
18
|
+
#private;
|
|
19
|
+
editor: Editor;
|
|
7
20
|
atomProps: any;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
stereo: number;
|
|
12
|
-
} | undefined;
|
|
13
|
-
sgroups: any;
|
|
14
|
-
molecule: any;
|
|
15
|
-
functionalGroups: any;
|
|
21
|
+
dragCtx: any;
|
|
22
|
+
isNotActiveTool: boolean | undefined;
|
|
23
|
+
constructor(editor: any, atomProps: any);
|
|
16
24
|
mousedown(event: any): void;
|
|
17
|
-
dragCtx: {
|
|
18
|
-
item?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
item: any;
|
|
21
|
-
} | undefined;
|
|
22
25
|
mousemove(event: any): void;
|
|
23
26
|
mouseup(event: any): void;
|
|
24
27
|
}
|
|
28
|
+
export declare function atomLongtapEvent(tool: any, render: any): void;
|
|
29
|
+
export default AtomTool;
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class AttachTool {
|
|
18
|
+
attach: any;
|
|
19
|
+
editor: Editor;
|
|
4
20
|
constructor(editor: any, attachPoints: any);
|
|
5
|
-
attach: {
|
|
6
|
-
atomid: any;
|
|
7
|
-
bondid: any;
|
|
8
|
-
} | undefined;
|
|
9
|
-
editor: any;
|
|
10
|
-
struct: any;
|
|
11
|
-
sgroups: any;
|
|
12
|
-
molecule: any;
|
|
13
|
-
functionalGroups: any;
|
|
14
21
|
mousemove(event: any): boolean;
|
|
15
22
|
click(event: any): true | undefined;
|
|
16
23
|
}
|
|
24
|
+
export default AttachTool;
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class BondTool {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
atomProps: {
|
|
7
|
-
label: string;
|
|
8
|
-
} | undefined;
|
|
18
|
+
editor: Editor;
|
|
19
|
+
atomProps: any;
|
|
9
20
|
bondProps: any;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
functionalGroups: any;
|
|
21
|
+
dragCtx: any;
|
|
22
|
+
isNotActiveTool: boolean | undefined;
|
|
23
|
+
constructor(editor: any, bondProps: any);
|
|
14
24
|
mousedown(event: any): true | undefined;
|
|
15
|
-
dragCtx: {
|
|
16
|
-
xy0: any;
|
|
17
|
-
item: any;
|
|
18
|
-
} | undefined;
|
|
19
25
|
mousemove(event: any): true | undefined;
|
|
20
26
|
mouseup(event: any): boolean;
|
|
21
27
|
}
|
|
28
|
+
export default BondTool;
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class ChainTool {
|
|
18
|
+
editor: Editor;
|
|
19
|
+
dragCtx: any;
|
|
4
20
|
constructor(editor: any);
|
|
5
|
-
editor: any;
|
|
6
|
-
struct: any;
|
|
7
|
-
sgroups: any;
|
|
8
|
-
molecule: any;
|
|
9
|
-
functionalGroups: any;
|
|
10
21
|
mousedown(event: any): true | undefined;
|
|
11
|
-
dragCtx: {
|
|
12
|
-
xy0: any;
|
|
13
|
-
item: any;
|
|
14
|
-
} | undefined;
|
|
15
22
|
mousemove(event: any): boolean;
|
|
16
23
|
mouseup(): true | undefined;
|
|
17
|
-
cancel:
|
|
18
|
-
mouseleave:
|
|
24
|
+
cancel(): void;
|
|
25
|
+
mouseleave(): void;
|
|
19
26
|
}
|
|
27
|
+
export default ChainTool;
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class ChargeTool {
|
|
4
|
-
|
|
5
|
-
editor: any;
|
|
18
|
+
editor: Editor;
|
|
6
19
|
charge: any;
|
|
7
|
-
|
|
8
|
-
sgroups: any;
|
|
9
|
-
molecule: any;
|
|
10
|
-
functionalGroups: any;
|
|
20
|
+
constructor(editor: any, charge: any);
|
|
11
21
|
mousemove(event: any): boolean;
|
|
12
22
|
click(event: any): true | undefined;
|
|
13
23
|
}
|
|
24
|
+
export default ChargeTool;
|
|
@@ -14,5 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import Editor from '../Editor';
|
|
17
|
-
declare
|
|
17
|
+
declare class EnhancedStereoTool {
|
|
18
|
+
editor: Editor;
|
|
19
|
+
stereoAtoms: Array<number>;
|
|
20
|
+
isNotActiveTool: true;
|
|
21
|
+
constructor(editor: any);
|
|
22
|
+
changeAtomsStereoAction(): any;
|
|
23
|
+
}
|
|
18
24
|
export default EnhancedStereoTool;
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 LassoHelper from './helper/lasso';
|
|
17
|
+
import Editor from '../Editor';
|
|
3
18
|
declare class EraserTool {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
maps: Array<string>;
|
|
21
|
+
lassoHelper: LassoHelper;
|
|
22
|
+
isNotActiveTool: boolean | undefined;
|
|
4
23
|
constructor(editor: any, mode: any);
|
|
5
|
-
editor: any;
|
|
6
|
-
sgroups: any;
|
|
7
|
-
struct: any;
|
|
8
|
-
molecule: any;
|
|
9
|
-
functionalGroups: any;
|
|
10
|
-
maps: string[] | undefined;
|
|
11
|
-
lassoHelper: LassoHelper | undefined;
|
|
12
24
|
mousedown(event: any): void;
|
|
13
25
|
mousemove(event: any): void;
|
|
14
|
-
mouseup(
|
|
26
|
+
mouseup(): void;
|
|
15
27
|
click(event: any): void;
|
|
16
|
-
mouseleave:
|
|
28
|
+
mouseleave(): void;
|
|
17
29
|
cancel(): void;
|
|
18
30
|
}
|
|
19
|
-
|
|
31
|
+
export default EraserTool;
|
|
@@ -1,44 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../../Editor';
|
|
3
17
|
declare class LassoHelper {
|
|
4
|
-
constructor(mode: any, editor: any, fragment: any);
|
|
5
18
|
mode: any;
|
|
19
|
+
editor: Editor;
|
|
6
20
|
fragment: any;
|
|
7
|
-
|
|
21
|
+
points: any;
|
|
22
|
+
selection: any;
|
|
23
|
+
constructor(mode: any, editor: any, fragment: any);
|
|
8
24
|
getSelection(): {
|
|
9
|
-
atoms:
|
|
10
|
-
bonds:
|
|
11
|
-
rxnArrows:
|
|
12
|
-
rxnPluses:
|
|
13
|
-
enhancedFlags:
|
|
14
|
-
sgroupData:
|
|
15
|
-
simpleObjects:
|
|
16
|
-
texts:
|
|
25
|
+
atoms: number[];
|
|
26
|
+
bonds: number[];
|
|
27
|
+
rxnArrows: number[];
|
|
28
|
+
rxnPluses: number[];
|
|
29
|
+
enhancedFlags: number[];
|
|
30
|
+
sgroupData: number[];
|
|
31
|
+
simpleObjects: number[];
|
|
32
|
+
texts: number[];
|
|
17
33
|
};
|
|
18
34
|
begin(event: any): void;
|
|
19
|
-
points: any;
|
|
20
35
|
running(): boolean;
|
|
21
36
|
addPoint(event: any): {
|
|
22
|
-
atoms:
|
|
23
|
-
bonds:
|
|
24
|
-
rxnArrows:
|
|
25
|
-
rxnPluses:
|
|
26
|
-
enhancedFlags:
|
|
27
|
-
sgroupData:
|
|
28
|
-
simpleObjects:
|
|
29
|
-
texts:
|
|
37
|
+
atoms: number[];
|
|
38
|
+
bonds: number[];
|
|
39
|
+
rxnArrows: number[];
|
|
40
|
+
rxnPluses: number[];
|
|
41
|
+
enhancedFlags: number[];
|
|
42
|
+
sgroupData: number[];
|
|
43
|
+
simpleObjects: number[];
|
|
44
|
+
texts: number[];
|
|
30
45
|
} | null;
|
|
31
46
|
update(): void;
|
|
32
|
-
selection: any;
|
|
33
47
|
end(): {
|
|
34
|
-
atoms:
|
|
35
|
-
bonds:
|
|
36
|
-
rxnArrows:
|
|
37
|
-
rxnPluses:
|
|
38
|
-
enhancedFlags:
|
|
39
|
-
sgroupData:
|
|
40
|
-
simpleObjects:
|
|
41
|
-
texts:
|
|
48
|
+
atoms: number[];
|
|
49
|
+
bonds: number[];
|
|
50
|
+
rxnArrows: number[];
|
|
51
|
+
rxnPluses: number[];
|
|
52
|
+
enhancedFlags: number[];
|
|
53
|
+
sgroupData: number[];
|
|
54
|
+
simpleObjects: number[];
|
|
55
|
+
texts: number[];
|
|
42
56
|
};
|
|
43
57
|
cancel(): void;
|
|
44
58
|
}
|
|
59
|
+
export default LassoHelper;
|
|
@@ -1,25 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
***************************************************************************/
|
|
6
16
|
declare function getElementsInRectangle(restruct: any, p0: any, p1: any): {
|
|
7
|
-
atoms:
|
|
8
|
-
bonds:
|
|
9
|
-
rxnArrows:
|
|
10
|
-
rxnPluses:
|
|
11
|
-
enhancedFlags:
|
|
12
|
-
sgroupData:
|
|
13
|
-
simpleObjects:
|
|
14
|
-
texts:
|
|
17
|
+
atoms: number[];
|
|
18
|
+
bonds: number[];
|
|
19
|
+
rxnArrows: number[];
|
|
20
|
+
rxnPluses: number[];
|
|
21
|
+
enhancedFlags: number[];
|
|
22
|
+
sgroupData: number[];
|
|
23
|
+
simpleObjects: number[];
|
|
24
|
+
texts: number[];
|
|
15
25
|
};
|
|
16
26
|
declare function getElementsInPolygon(restruct: any, rr: any): {
|
|
17
|
-
atoms:
|
|
18
|
-
bonds:
|
|
19
|
-
rxnArrows:
|
|
20
|
-
rxnPluses:
|
|
21
|
-
enhancedFlags:
|
|
22
|
-
sgroupData:
|
|
23
|
-
simpleObjects:
|
|
24
|
-
texts:
|
|
27
|
+
atoms: number[];
|
|
28
|
+
bonds: number[];
|
|
29
|
+
rxnArrows: number[];
|
|
30
|
+
rxnPluses: number[];
|
|
31
|
+
enhancedFlags: number[];
|
|
32
|
+
sgroupData: number[];
|
|
33
|
+
simpleObjects: number[];
|
|
34
|
+
texts: number[];
|
|
35
|
+
};
|
|
36
|
+
declare const _default: {
|
|
37
|
+
inRectangle: typeof getElementsInRectangle;
|
|
38
|
+
inPolygon: typeof getElementsInPolygon;
|
|
25
39
|
};
|
|
40
|
+
export default _default;
|
|
@@ -20,7 +20,7 @@ declare namespace tools {
|
|
|
20
20
|
export { RotateTool as rotate };
|
|
21
21
|
export { EnhancedStereoTool as enhancedStereo };
|
|
22
22
|
export { SimpleObjectTool as simpleobject };
|
|
23
|
-
export {
|
|
23
|
+
export { TextTool as text };
|
|
24
24
|
}
|
|
25
25
|
import RGroupAtomTool from "./rgroupatom";
|
|
26
26
|
import SelectTool from "./select";
|
|
@@ -42,4 +42,4 @@ import PasteTool from "./paste";
|
|
|
42
42
|
import RotateTool from "./rotate";
|
|
43
43
|
import EnhancedStereoTool from "./enhanced-stereo";
|
|
44
44
|
import SimpleObjectTool from "./simpleobject";
|
|
45
|
-
import
|
|
45
|
+
import TextTool from "./text";
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Struct } from 'ketcher-core';
|
|
17
|
+
import Editor from '../Editor';
|
|
3
18
|
declare class PasteTool {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
struct: any;
|
|
7
|
-
sgroups: any;
|
|
8
|
-
molecule: any;
|
|
9
|
-
functionalGroups: any;
|
|
19
|
+
editor: Editor;
|
|
20
|
+
struct: Struct;
|
|
10
21
|
action: any;
|
|
11
|
-
mergeItems:
|
|
12
|
-
|
|
13
|
-
bonds: Map<unknown, unknown>;
|
|
14
|
-
} | null | undefined;
|
|
22
|
+
mergeItems: any;
|
|
23
|
+
constructor(editor: any, struct: any);
|
|
15
24
|
mousemove(event: any): void;
|
|
16
25
|
mouseup(): void;
|
|
17
26
|
cancel(): void;
|
|
18
|
-
mouseleave:
|
|
27
|
+
mouseleave(): void;
|
|
19
28
|
}
|
|
29
|
+
export default PasteTool;
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class ReactionArrowTool {
|
|
4
|
-
constructor(editor: any, mode: any);
|
|
5
18
|
mode: any;
|
|
6
|
-
editor:
|
|
19
|
+
editor: Editor;
|
|
20
|
+
dragCtx: any;
|
|
21
|
+
constructor(editor: any, mode: any);
|
|
7
22
|
mousedown(event: any): void;
|
|
8
|
-
dragCtx: {
|
|
9
|
-
p0: any;
|
|
10
|
-
} | undefined;
|
|
11
23
|
mousemove(event: any): void;
|
|
12
|
-
mouseup(
|
|
24
|
+
mouseup(): boolean;
|
|
13
25
|
click(event: any): void;
|
|
14
26
|
}
|
|
27
|
+
export default ReactionArrowTool;
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class ReactionMapTool {
|
|
18
|
+
editor: Editor;
|
|
19
|
+
rcs: any;
|
|
20
|
+
dragCtx: any;
|
|
21
|
+
line: any;
|
|
4
22
|
constructor(editor: any);
|
|
5
|
-
editor: any;
|
|
6
23
|
mousedown(event: any): void;
|
|
7
|
-
rcs: any;
|
|
8
|
-
dragCtx: {
|
|
9
|
-
item: any;
|
|
10
|
-
xy0: any;
|
|
11
|
-
} | undefined;
|
|
12
24
|
mousemove(event: any): void;
|
|
13
25
|
updateLine(p1: any, p2: any): void;
|
|
14
|
-
line: any;
|
|
15
26
|
mouseup(event: any): void;
|
|
16
27
|
}
|
|
28
|
+
export default ReactionMapTool;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Editor from '../Editor';
|
|
3
17
|
declare class ReactionPlusTool {
|
|
18
|
+
editor: Editor;
|
|
19
|
+
dragCtx: any;
|
|
4
20
|
constructor(editor: any);
|
|
5
|
-
editor: any;
|
|
6
21
|
mousedown(event: any): void;
|
|
7
|
-
dragCtx: {
|
|
8
|
-
xy0: any;
|
|
9
|
-
} | undefined;
|
|
10
22
|
mousemove(event: any): void;
|
|
11
23
|
mouseup(): boolean;
|
|
12
24
|
click(event: any): void;
|
|
13
25
|
}
|
|
26
|
+
export default ReactionPlusTool;
|