ketcher-react 2.3.3 → 2.4.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/LICENSE +201 -0
- package/dist/Editor.d.ts +2 -2
- package/dist/contexts/appContext.d.ts +17 -1
- package/dist/{script/editor/operations/FragmentStereoFlag.d.ts → contexts/errorsContext.d.ts} +5 -7
- package/dist/contexts/formContext.d.ts +15 -0
- package/dist/contexts/index.d.ts +19 -3
- package/dist/contexts/settingsContext.d.ts +15 -0
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/useAppContext.d.ts +15 -0
- package/dist/hooks/useFormContext.d.ts +15 -0
- package/dist/{script/ui/dialog/template/TemplateLib.d.ts → hooks/useInterval.d.ts} +1 -8
- package/dist/hooks/useSettingsContext.d.ts +15 -0
- package/dist/icons/index.d.ts +15 -0
- package/dist/index.css +1 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +15840 -19663
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15723 -19563
- package/dist/index.modern.js.map +1 -1
- package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
- package/dist/script/builders/ketcher/KetcherBuilder.d.ts +2 -5
- package/dist/script/editor/Editor.d.ts +7 -4
- package/dist/script/editor/index.d.ts +15 -0
- package/dist/script/editor/shared/utils.d.ts +2 -4
- package/dist/script/editor/tool/apoint.d.ts +5 -1
- package/dist/script/editor/tool/atom.d.ts +4 -0
- package/dist/script/editor/tool/attach.d.ts +5 -1
- package/dist/script/editor/tool/bond.d.ts +6 -2
- package/dist/script/editor/tool/chain.d.ts +6 -2
- package/dist/script/editor/tool/charge.d.ts +5 -1
- package/dist/script/editor/tool/enhanced-stereo.d.ts +15 -0
- package/dist/script/editor/tool/eraser.d.ts +4 -0
- package/dist/script/editor/tool/helper/lasso.d.ts +1 -0
- package/dist/script/editor/tool/paste.d.ts +7 -7
- package/dist/script/editor/tool/reactionarrow.d.ts +3 -4
- package/dist/script/editor/tool/rgroupatom.d.ts +4 -1
- package/dist/script/editor/tool/rgroupfragment.d.ts +5 -1
- package/dist/script/editor/tool/rotate.d.ts +1 -1
- package/dist/script/editor/tool/select.d.ts +23 -12
- package/dist/script/editor/tool/sgroup.d.ts +4 -0
- package/dist/script/editor/tool/template.d.ts +6 -1
- package/dist/script/editor/utils/customOnChangeHandler.d.ts +15 -0
- package/dist/script/index.d.ts +3 -2
- package/dist/script/ui/App/App.container.d.ts +17 -1
- package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +17 -1
- package/dist/script/ui/App/AppHidden/AppHidden.d.ts +15 -0
- package/dist/script/ui/App/initApp.d.ts +1 -5
- 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/copyAs.d.ts +1 -0
- package/dist/script/ui/action/copyImageToClipboard.d.ts +2 -0
- package/dist/script/ui/action/debug.d.ts +2 -0
- package/dist/script/{editor/operations/rxn/RxnArrowMove.d.ts → ui/action/functionalGroups.d.ts} +12 -11
- package/dist/script/ui/action/index.d.ts +196 -10
- package/dist/script/ui/action/isHidden.d.ts +18 -0
- package/dist/script/ui/action/templates.d.ts +2 -0
- package/dist/script/ui/action/tools.d.ts +134 -4
- package/dist/script/ui/action/zoom.d.ts +6 -0
- package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/script/ui/component/{cliparea.d.ts → cliparea/cliparea.d.ts} +3 -3
- package/dist/script/ui/component/form/buttonlist.d.ts +2 -1
- package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +15 -0
- package/dist/script/ui/component/form/{combobox.d.ts → combobox/combobox.d.ts} +2 -2
- package/dist/script/ui/component/form/form/form.d.ts +20 -0
- package/dist/script/ui/component/form/input.d.ts +2 -2
- package/dist/script/ui/component/form/measure-input.d.ts +2 -2
- package/dist/script/ui/component/form/select.d.ts +17 -1
- package/dist/script/ui/component/structrender.d.ts +3 -3
- package/dist/script/ui/component/view/Tabs/Tabs.d.ts +2 -2
- package/dist/script/ui/component/view/openbutton.d.ts +2 -2
- package/dist/script/ui/data/schema/struct-schema.d.ts +22 -0
- package/dist/script/ui/dialog/index.d.ts +1 -61
- package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +19 -0
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +43 -0
- package/dist/script/ui/dialog/template/TemplateTable.d.ts +6 -7
- package/dist/script/ui/dialog/template/template-attach.d.ts +1 -1
- package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +42 -0
- package/dist/script/ui/dialog/toolbox/labeledit.d.ts +2 -1
- package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +15 -0
- package/dist/script/ui/dialog/toolbox/sdata.d.ts +18 -1
- package/dist/script/ui/dialog/toolbox/sgroup.d.ts +8 -1
- package/dist/script/ui/state/action/index.d.ts +4 -2
- package/dist/script/ui/state/editor/index.d.ts +1 -0
- package/dist/script/{editor/operations/bond/BondMove.d.ts → ui/state/functionalGroups/index.d.ts} +7 -10
- package/dist/script/ui/state/functionalGroups/selectors/index.d.ts +17 -0
- package/dist/script/ui/state/hotkeys.d.ts +0 -2
- package/dist/script/ui/state/modal/form.d.ts +8 -0
- package/dist/script/ui/state/modal/index.d.ts +1 -1
- package/dist/script/ui/state/options/index.d.ts +1 -0
- package/dist/script/ui/state/templates/index.d.ts +2 -0
- package/dist/script/ui/state/templates/init-lib.d.ts +2 -1
- package/dist/script/ui/utils/index.d.ts +3 -0
- package/dist/script/ui/views/AppClipArea.d.ts +2 -1
- package/dist/script/ui/views/Editor.d.ts +2 -1
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +2 -2
- package/dist/script/ui/views/components/FunctionalGroups/FunctionalGroups.d.ts +23 -0
- package/dist/script/{editor/operations/rgroup → ui/views/components/FunctionalGroups}/index.d.ts +1 -2
- package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +4 -4
- package/dist/script/ui/views/components/index.d.ts +1 -1
- package/dist/script/ui/views/modal/Modal.container.d.ts +3 -1
- package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +31 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +2 -2
- package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +2 -2
- package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +21 -0
- package/dist/script/ui/views/modal/components/{meta/Help → Text/FontControl}/index.d.ts +1 -1
- package/dist/script/ui/views/modal/components/Text/Text.d.ts +8 -1
- package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +15 -0
- package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +15 -0
- package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +4 -2
- package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +1 -1
- package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +33 -1
- package/dist/script/ui/views/modal/components/meta/About/About.d.ts +2 -1
- package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +21 -1
- package/dist/script/ui/views/modal/components/meta/index.d.ts +1 -2
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +6 -1
- package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +15 -0
- package/dist/script/ui/views/modal/components/process/Check/Check.d.ts +2 -1
- package/dist/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +15 -0
- package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +9 -1
- package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +2 -4
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +15 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -4
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -1
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +2 -4
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -1
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -4
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +16 -1
- package/dist/script/{editor/operations/calcimplicitH.d.ts → ui/views/modal/components/toolbox/FG/RemoveFG.d.ts} +7 -7
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -4
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -1
- package/dist/script/ui/views/modal/components/toolbox/index.d.ts +1 -1
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +23 -0
- package/dist/script/ui/views/toolbars/ArrowScroll/index.d.ts +2 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.container.d.ts +1 -1
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +15 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +15 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +15 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +2 -4
- package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +15 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/leftToolbarOptions.d.ts +9 -0
- package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +17 -2
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.container.d.ts +1 -1
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +15 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +15 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/index.d.ts +15 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +16 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +19 -3
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalOpening.d.ts +15 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +15 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +15 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/chooseMultiTool.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/HelpLink/HelpLink.d.ts +19 -0
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -4
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +15 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomList/ZoomList.d.ts +15 -0
- package/dist/script/ui/views/toolbars/shortcutStr.d.ts +15 -0
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
- package/package.json +32 -25
- package/dist/index.test.d.ts +0 -1
- package/dist/overlay.svg +0 -1
- package/dist/script/editor/actions/aromatic-fusing.d.ts +0 -15
- package/dist/script/editor/actions/atom.d.ts +0 -20
- package/dist/script/editor/actions/basic.d.ts +0 -3
- package/dist/script/editor/actions/bond.d.ts +0 -24
- package/dist/script/editor/actions/chain.d.ts +0 -5
- package/dist/script/editor/actions/closely-fusing.d.ts +0 -14
- package/dist/script/editor/actions/erase.d.ts +0 -4
- package/dist/script/editor/actions/fragment.d.ts +0 -10
- package/dist/script/editor/actions/paste.d.ts +0 -5
- package/dist/script/editor/actions/reaction.d.ts +0 -5
- package/dist/script/editor/actions/rgroup.d.ts +0 -4
- package/dist/script/editor/actions/rotate.d.ts +0 -4
- package/dist/script/editor/actions/sgroup.d.ts +0 -9
- package/dist/script/editor/actions/simpleobject.d.ts +0 -4
- package/dist/script/editor/actions/template.d.ts +0 -13
- package/dist/script/editor/actions/text.d.ts +0 -6
- package/dist/script/editor/actions/utils.d.ts +0 -15
- package/dist/script/editor/operations/CanvasLoad.d.ts +0 -26
- package/dist/script/editor/operations/EnhancedFlagMove.d.ts +0 -11
- package/dist/script/editor/operations/LoopMove.d.ts +0 -26
- package/dist/script/editor/operations/OperationType.d.ts +0 -62
- package/dist/script/editor/operations/Text/TextCreateDelete.d.ts +0 -41
- package/dist/script/editor/operations/Text/TextMove.d.ts +0 -29
- package/dist/script/editor/operations/Text/TextUpdate.d.ts +0 -29
- package/dist/script/editor/operations/Text/index.d.ts +0 -3
- package/dist/script/editor/operations/atom/AtomAttr.d.ts +0 -31
- package/dist/script/editor/operations/atom/AtomMove.d.ts +0 -28
- package/dist/script/editor/operations/atom/index.d.ts +0 -22
- package/dist/script/editor/operations/base.d.ts +0 -36
- package/dist/script/editor/operations/bond/BondAttr.d.ts +0 -31
- package/dist/script/editor/operations/bond/index.d.ts +0 -38
- package/dist/script/editor/operations/descriptors.d.ts +0 -15
- package/dist/script/editor/operations/fragment.d.ts +0 -15
- package/dist/script/editor/operations/fragmentStereoAtom.d.ts +0 -34
- package/dist/script/editor/operations/ifThen.d.ts +0 -35
- package/dist/script/editor/operations/index.d.ts +0 -32
- package/dist/script/editor/operations/rgroup/RGroupAttr.d.ts +0 -31
- package/dist/script/editor/operations/rgroup/RGroupFragment.d.ts +0 -29
- package/dist/script/editor/operations/rxn/index.d.ts +0 -38
- package/dist/script/editor/operations/rxn/plus/RxnPlusMove.d.ts +0 -27
- package/dist/script/editor/operations/rxn/plus/index.d.ts +0 -20
- package/dist/script/editor/operations/sgroup/SGroupAttr.d.ts +0 -27
- package/dist/script/editor/operations/sgroup/SGroupDataMove.d.ts +0 -26
- package/dist/script/editor/operations/sgroup/index.d.ts +0 -39
- package/dist/script/editor/operations/sgroup/sgroupAtom.d.ts +0 -34
- package/dist/script/editor/operations/sgroup/sgroupHierarchy.d.ts +0 -35
- package/dist/script/editor/operations/simpleObject.d.ts +0 -69
- package/dist/script/editor/shared/action.d.ts +0 -26
- package/dist/script/editor/shared/constants.d.ts +0 -7
- package/dist/script/ketcher.d.ts +0 -44
- package/dist/script/raphael-ext.d.ts +0 -1
- package/dist/script/render/draw.d.ts +0 -63
- package/dist/script/render/index.d.ts +0 -28
- package/dist/script/render/options.d.ts +0 -2
- package/dist/script/render/restruct/GeneralEnumTypes.d.ts +0 -35
- package/dist/script/render/restruct/ReEnhancedFlag.d.ts +0 -28
- package/dist/script/render/restruct/ReObject.d.ts +0 -32
- package/dist/script/render/restruct/ReSimpleObject.d.ts +0 -40
- package/dist/script/render/restruct/ReStruct.d.ts +0 -110
- package/dist/script/render/restruct/ReText.d.ts +0 -38
- package/dist/script/render/restruct/index.d.ts +0 -13
- package/dist/script/render/restruct/reatom.d.ts +0 -46
- package/dist/script/render/restruct/rebond.d.ts +0 -40
- package/dist/script/render/restruct/redatasgroupdata.d.ts +0 -8
- package/dist/script/render/restruct/refrag.d.ts +0 -12
- package/dist/script/render/restruct/reloop.d.ts +0 -12
- package/dist/script/render/restruct/rergroup.d.ts +0 -15
- package/dist/script/render/restruct/rerxnarrow.d.ts +0 -9
- package/dist/script/render/restruct/rerxnplus.d.ts +0 -9
- package/dist/script/render/restruct/resgroup.d.ts +0 -9
- package/dist/script/render/restruct/visel.d.ts +0 -12
- package/dist/script/render/util.d.ts +0 -22
- package/dist/script/ui/component/form/form.d.ts +0 -4
- package/dist/script/ui/dialog/toolbox/enhancedStereo.d.ts +0 -2
- package/dist/script/ui/dialog/toolbox/rgroup.d.ts +0 -2
- package/dist/script/ui/views/modal/components/meta/Help/Help.d.ts +0 -2
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
***************************************************************************/
|
|
1
16
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../ToolbarGroupItem';
|
|
2
17
|
interface TopToolbarProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
3
18
|
className?: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
***************************************************************************/
|
|
1
16
|
import { UiActionAction } from '../../../../action';
|
|
2
17
|
interface ZoomListProps {
|
|
3
18
|
status: {
|
|
@@ -1 +1,16 @@
|
|
|
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
|
+
***************************************************************************/
|
|
1
16
|
export declare function shortcutStr(shortcut?: string | string[]): string;
|
|
@@ -18,9 +18,9 @@ declare type LeftGroup = 'select' | 'bond' | 'charge' | 'transform' | 'sgroup' |
|
|
|
18
18
|
declare type BottomGroup = 'template-common' | 'template-lib';
|
|
19
19
|
declare type RightGroup = 'atom' | 'period-table';
|
|
20
20
|
declare type ToolbarGroupVariant = TopGroup | LeftGroup | BottomGroup | RightGroup;
|
|
21
|
-
declare type TopToolbarItemVariant = '
|
|
22
|
-
declare type LeftToolbarItemVariant = 'select' | 'select-lasso' | 'select-rectangle' | 'select-fragment' | 'erase' | 'bond-common' | 'bond-single' | 'bond-double' | 'bond-triple' | 'bond-dative' | 'bond-stereo' | 'bond-up' | 'bond-down' | 'bond-updown' | 'bond-crossed' | 'bond-query' | 'bond-special' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-singledouble' | 'bond-singlearomatic' | 'bond-doublearomatic' | 'chain' | 'charge-plus' | 'charge-minus' | 'transform-rotate' | 'transform-flip-h' | 'transform-flip-v' | 'sgroup' | 'sgroup-data' | 'reaction' | 'reaction-arrow' | 'reaction-arrow-equilibrium' | 'reaction-
|
|
23
|
-
declare type BottomToolbarItemVariant = 'template-common' | 'template-lib' | 'enhanced-stereo';
|
|
21
|
+
declare type TopToolbarItemVariant = 'clear' | 'open' | 'save' | 'undo' | 'redo' | 'cut' | 'copies' | 'copy' | 'copy-image' | 'copy-mol' | 'copy-ket' | 'paste' | 'zoom-in' | 'zoom-out' | 'zoom-list' | 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about';
|
|
22
|
+
declare type LeftToolbarItemVariant = 'select' | 'select-lasso' | 'select-rectangle' | 'select-fragment' | 'erase' | 'bonds' | 'bond-common' | 'bond-single' | 'bond-double' | 'bond-triple' | 'bond-dative' | 'bond-stereo' | 'bond-up' | 'bond-down' | 'bond-updown' | 'bond-crossed' | 'bond-query' | 'bond-special' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-singledouble' | 'bond-singlearomatic' | 'bond-doublearomatic' | 'chain' | 'charge-plus' | 'charge-minus' | 'transforms' | 'transform-rotate' | 'transform-flip-h' | 'transform-flip-v' | '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' | 'shapes' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text';
|
|
23
|
+
declare type BottomToolbarItemVariant = 'template-common' | 'template-lib' | 'enhanced-stereo' | 'functional-groups';
|
|
24
24
|
declare type RightToolbarItemVariant = 'atom' | 'freq-atoms' | 'period-table';
|
|
25
25
|
declare type ToolbarItemVariant = TopToolbarItemVariant | LeftToolbarItemVariant | BottomToolbarItemVariant | RightToolbarItemVariant;
|
|
26
26
|
interface ToolbarItem {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://lifescience.opensource.epam.com/ketcher",
|
|
@@ -23,43 +23,44 @@
|
|
|
23
23
|
},
|
|
24
24
|
"main": "dist/index.js",
|
|
25
25
|
"module": "dist/index.modern.js",
|
|
26
|
+
"types": "dist/index.d.ts",
|
|
26
27
|
"source": "src/index.tsx",
|
|
27
28
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
29
|
+
"node": ">=14"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
|
-
"build": "cross-env NODE_ENV=production rollup -c -m true
|
|
32
|
+
"build": "cross-env NODE_ENV=production rollup -c -m true",
|
|
32
33
|
"start": "cross-env NODE_ENV=development rollup -c -m true -w",
|
|
33
|
-
"test": "run-s
|
|
34
|
-
"test:build": "run-s build",
|
|
34
|
+
"test": "run-s prettier stylelint test:lint test:unit",
|
|
35
35
|
"test:lint": "eslint src --ext .ts,.tsx,.js,.jsx",
|
|
36
|
-
"test:unit": "
|
|
37
|
-
"test:watch": "react-scripts test --env=jsdom",
|
|
36
|
+
"test:unit": "react-scripts test --env=jsdom --passWithNoTests",
|
|
38
37
|
"prettier": "prettier --check \"src/**/*.{js,jsx,json,ts,tsx}\"",
|
|
39
38
|
"prettier:write": "prettier --write \"src/**/*.{js,jsx,json,ts,tsx}\"",
|
|
40
39
|
"stylelint": "stylelint \"src/**/*.{css,less,scss}\" --formatter verbose",
|
|
41
40
|
"stylelint:fix": "stylelint \"src/**/*.{css,less,scss}\" --formatter verbose --fix"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
|
-
"react": "^
|
|
45
|
-
"react-dom": "^
|
|
43
|
+
"react": "^17.0.2",
|
|
44
|
+
"react-dom": "^17.0.2"
|
|
46
45
|
},
|
|
47
46
|
"dependencies": {
|
|
48
47
|
"@babel/runtime": "^7.12.5",
|
|
49
48
|
"clsx": "^1.1.1",
|
|
50
49
|
"draft-js": "^0.11.7",
|
|
50
|
+
"draft-js-custom-styles": "^2.1.1",
|
|
51
51
|
"element-closest-polyfill": "^1.0.2",
|
|
52
52
|
"file-saver": "^2.0.2",
|
|
53
53
|
"font-face-observer": "^1.0.0",
|
|
54
54
|
"hoist-non-react-statics": "^3.3.2",
|
|
55
|
+
"html-to-react": "^1.4.5",
|
|
56
|
+
"intersection-observer": "^0.12.0",
|
|
55
57
|
"jsonschema": "^1.4.0",
|
|
56
|
-
"ketcher-core": "
|
|
57
|
-
"lodash": "^4.17.
|
|
58
|
+
"ketcher-core": "workspace:*",
|
|
59
|
+
"lodash": "^4.17.21",
|
|
58
60
|
"normalize.css": "^8.0.1",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"react-
|
|
62
|
-
"react-markdown": "^5.0.2",
|
|
61
|
+
"react-colorful": "^5.4.0",
|
|
62
|
+
"react-contextmenu": "^2.14.0",
|
|
63
|
+
"react-intersection-observer": "^8.32.1",
|
|
63
64
|
"react-redux": "^7.2.1",
|
|
64
65
|
"react-virtualized": "^9.22.3",
|
|
65
66
|
"redux": "^4.0.5",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"replace": "^1.2.0",
|
|
72
73
|
"reselect": "^4.0.0",
|
|
73
74
|
"subscription": "^3.0.0",
|
|
74
|
-
"url-search-params-polyfill": "^8.1.
|
|
75
|
+
"url-search-params-polyfill": "^8.1.1",
|
|
75
76
|
"use-resize-observer": "^7.0.0",
|
|
76
77
|
"w3c-keyname": "^2.2.4",
|
|
77
78
|
"whatwg-fetch": "^3.4.1"
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
"@testing-library/react": "^9.5.0",
|
|
96
97
|
"@testing-library/user-event": "^7.2.1",
|
|
97
98
|
"@types/draft-js": "^0.11.3",
|
|
98
|
-
"@types/jest": "^
|
|
99
|
+
"@types/jest": "^26.0.24",
|
|
99
100
|
"@types/lodash": "^4.14.170",
|
|
100
101
|
"@types/node": "^12.12.38",
|
|
101
102
|
"@types/react": "^16.9.27",
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
"autoprefixer": "^10.2.5",
|
|
106
107
|
"babel-eslint": "^10.0.0",
|
|
107
108
|
"cross-env": "^7.0.2",
|
|
109
|
+
"current-git-branch": "^1.1.0",
|
|
108
110
|
"eslint": "^6.8.0",
|
|
109
111
|
"eslint-config-react-app": "^6.0.0",
|
|
110
112
|
"eslint-plugin-import": "^2.22.0",
|
|
@@ -115,9 +117,9 @@
|
|
|
115
117
|
"eslint-plugin-testing-library": "^3.9.0",
|
|
116
118
|
"less": "^3.12.2",
|
|
117
119
|
"npm-run-all": "^4.1.5",
|
|
118
|
-
"postcss": "^8.2.
|
|
120
|
+
"postcss": "^8.2.10",
|
|
119
121
|
"prettier": "^2.0.4",
|
|
120
|
-
"react-scripts": "^
|
|
122
|
+
"react-scripts": "^4.0.3",
|
|
121
123
|
"rollup": "^2.33.1",
|
|
122
124
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
123
125
|
"rollup-plugin-copy": "^3.3.0",
|
|
@@ -126,13 +128,18 @@
|
|
|
126
128
|
"rollup-plugin-postcss": "^4.0.0",
|
|
127
129
|
"rollup-plugin-typescript2": "^0.29.0",
|
|
128
130
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
129
|
-
"stylelint": "^13.
|
|
131
|
+
"stylelint": "^13.13.1",
|
|
130
132
|
"stylelint-config-prettier": "^8.0.2",
|
|
131
|
-
"stylelint-config-recommended-scss": "^4.
|
|
132
|
-
"stylelint-config-standard": "^
|
|
133
|
-
"stylelint-prettier": "^1.
|
|
134
|
-
"stylelint-scss": "^3.
|
|
135
|
-
"typescript": "^4.3
|
|
133
|
+
"stylelint-config-recommended-scss": "^4.3.0",
|
|
134
|
+
"stylelint-config-standard": "^22.0.0",
|
|
135
|
+
"stylelint-prettier": "^1.2.0",
|
|
136
|
+
"stylelint-scss": "^3.20.1",
|
|
137
|
+
"typescript": "^4.4.3"
|
|
138
|
+
},
|
|
139
|
+
"jest": {
|
|
140
|
+
"moduleNameMapper": {
|
|
141
|
+
"\\.(css|less)$": "identity-obj-proxy"
|
|
142
|
+
}
|
|
136
143
|
},
|
|
137
144
|
"files": [
|
|
138
145
|
"dist"
|
package/dist/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/overlay.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><path d="M0 10L10 0zm12-2l-4 4zM-2 2l4-4z" stroke="#555" stroke-width="2" stroke-opacity=".02"/></svg>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param restruct { ReStruct }
|
|
3
|
-
* @param events { Array<PipelineSubscription> }
|
|
4
|
-
* @param bid { number }
|
|
5
|
-
* @param template {{
|
|
6
|
-
* molecule: Struct,
|
|
7
|
-
* bid: number
|
|
8
|
-
* }}
|
|
9
|
-
* @param simpleFusing { Function }
|
|
10
|
-
* @returns { Promise }
|
|
11
|
-
*/
|
|
12
|
-
export function fromAromaticTemplateOnBond(restruct: any, template: {
|
|
13
|
-
molecule: any;
|
|
14
|
-
bid: number;
|
|
15
|
-
}, bid: number, events: Array<any>, simpleFusing: Function): Promise<any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export function fromAtomAddition(restruct: any, pos: any, atom: any): Action;
|
|
2
|
-
/**
|
|
3
|
-
* @param restruct { ReStruct }
|
|
4
|
-
* @param ids { Array<number>|number }
|
|
5
|
-
* @param attrs { object }
|
|
6
|
-
* @param reset { boolean? }
|
|
7
|
-
*/
|
|
8
|
-
export function fromAtomsAttrs(restruct: any, ids: Array<number> | number, attrs: object, reset: boolean | null): Action;
|
|
9
|
-
export function fromStereoAtomAttrs(restruct: any, aid: any, attrs: any, withReverse: any): Action;
|
|
10
|
-
export function fromAtomsFragmentAttr(restruct: any, aids: any, newfrid: any): Action;
|
|
11
|
-
/**
|
|
12
|
-
* @param restruct { ReStruct }
|
|
13
|
-
* @param srcId { number }
|
|
14
|
-
* @param dstId { number }
|
|
15
|
-
* @return { Action }
|
|
16
|
-
*/
|
|
17
|
-
export function fromAtomMerge(restruct: any, srcId: number, dstId: number): Action;
|
|
18
|
-
export function mergeFragmentsIfNeeded(action: any, restruct: any, srcId: any, dstId: any): void;
|
|
19
|
-
export function mergeSgroups(action: any, restruct: any, srcAtoms: any, dstAtom: any): void;
|
|
20
|
-
import Action from "../shared/action";
|
|
@@ -1,24 +0,0 @@
|
|
|
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, Vec2, Struct } from 'ketcher-core';
|
|
17
|
-
import Action from '../shared/action';
|
|
18
|
-
import ReStruct from '../../render/restruct';
|
|
19
|
-
export declare function fromBondAddition(restruct: ReStruct, bond: Bond, begin: any, end: any, pos?: Vec2, pos2?: Vec2): [Action, number, number, number];
|
|
20
|
-
export declare function fromBondsAttrs(restruct: ReStruct, ids: Array<number> | number, attrs: Bond, reset?: boolean): Action;
|
|
21
|
-
export declare function fromBondsMerge(restruct: ReStruct, mergeMap: Map<number, number>): Action;
|
|
22
|
-
export declare function fromBondStereoUpdate(restruct: ReStruct, bond: Bond, withReverse?: boolean): Action;
|
|
23
|
-
export declare function getStereoAtomsMap(struct: Struct, bonds: Array<Bond>, bond?: Bond): Map<any, any>;
|
|
24
|
-
export declare function bondChangingAction(restruct: ReStruct, itemID: number, bond: Bond, bondProps: any): Action;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function fromItemsFuse(restruct: any, items: any): Action;
|
|
2
|
-
export function getItemsToFuse(editor: any, items: any): {
|
|
3
|
-
atoms: Map<number, number>;
|
|
4
|
-
bonds: Map<number, number>;
|
|
5
|
-
};
|
|
6
|
-
export function getHoverToFuse(items: any): {
|
|
7
|
-
map: string;
|
|
8
|
-
id: number;
|
|
9
|
-
items: {
|
|
10
|
-
atoms: any[];
|
|
11
|
-
bonds: any[];
|
|
12
|
-
};
|
|
13
|
-
} | null;
|
|
14
|
-
import Action from "../shared/action";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function fromMultipleMove(restruct: any, lists: any, d: any): Action;
|
|
2
|
-
export function fromStereoFlagUpdate(restruct: any, frid: any, flag: any): Action;
|
|
3
|
-
/**
|
|
4
|
-
* @param restruct { ReStruct }
|
|
5
|
-
* @param frid { number }
|
|
6
|
-
* @param rgForRemove
|
|
7
|
-
* @return { Action }
|
|
8
|
-
*/
|
|
9
|
-
export function fromFragmentSplit(restruct: any, frid: number, rgForRemove?: any[]): Action;
|
|
10
|
-
import Action from "../shared/action";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export function fromArrowAddition(restruct: any, pos: any, mode: any): Action;
|
|
2
|
-
export function fromArrowDeletion(restruct: any, id: any): Action;
|
|
3
|
-
export function fromPlusAddition(restruct: any, pos: any): Action;
|
|
4
|
-
export function fromPlusDeletion(restruct: any, id: any): Action;
|
|
5
|
-
import Action from "../shared/action";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function fromRGroupAttrs(restruct: any, id: any, attrs: any): Action;
|
|
2
|
-
export function fromRGroupFragment(restruct: any, rgidNew: any, frid: any): Action;
|
|
3
|
-
export function fromUpdateIfThen(restruct: any, rgidNew: any, rgidOld: any, skipRgids: any): Action;
|
|
4
|
-
import Action from "../shared/action";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function fromFlip(restruct: any, selection: any, dir: any, center: any): Action;
|
|
2
|
-
export function fromRotate(restruct: any, selection: any, center: any, angle: any): Action;
|
|
3
|
-
export function fromBondAlign(restruct: any, bid: any, dir: any): Action;
|
|
4
|
-
import Action from "../shared/action";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function fromSeveralSgroupAddition(restruct: any, type: any, atoms: any, attrs: any): any;
|
|
2
|
-
export function fromSgroupAttrs(restruct: any, id: any, attrs: any): Action;
|
|
3
|
-
export function sGroupAttributeAction(id: any, attrs: any): Action;
|
|
4
|
-
export function fromSgroupDeletion(restruct: any, id: any): Action;
|
|
5
|
-
export function fromSgroupAddition(restruct: any, type: any, atoms: any, attrs: any, sgid: any, pp: any): Action;
|
|
6
|
-
export function fromSgroupAction(context: any, restruct: any, newSg: any, sourceAtoms: any, selection: any): any;
|
|
7
|
-
export function removeAtomFromSgroupIfNeeded(action: any, restruct: any, id: any): boolean;
|
|
8
|
-
export function removeSgroupIfNeeded(action: any, restruct: any, atoms: any): void;
|
|
9
|
-
import Action from "../shared/action";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import Action from '../shared/action';
|
|
2
|
-
export declare function fromSimpleObjectDeletion(restruct: any, id: any): Action;
|
|
3
|
-
export declare function fromSimpleObjectAddition(restruct: any, pos: any, mode: any, toCircle: any): Action;
|
|
4
|
-
export declare function fromSimpleObjectResizing(restruct: any, id: any, d: any, current: any, anchor: any, toCircle: any): Action;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function fromTemplateOnCanvas(restruct: any, template: any, pos: any, angle: any): (Action | {
|
|
2
|
-
atoms: never[];
|
|
3
|
-
bonds: never[];
|
|
4
|
-
})[];
|
|
5
|
-
export function fromTemplateOnAtom(restruct: any, template: any, aid: any, angle: any, extraBond: any): (Action | {
|
|
6
|
-
atoms: never[];
|
|
7
|
-
bonds: never[];
|
|
8
|
-
})[];
|
|
9
|
-
export function fromTemplateOnBondAction(restruct: any, template: any, bid: any, events: any, flip: any, force: any): Promise<any> | (Action | {
|
|
10
|
-
atoms: never[];
|
|
11
|
-
bonds: never[];
|
|
12
|
-
})[];
|
|
13
|
-
import Action from "../shared/action";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import Action from '../shared/action';
|
|
2
|
-
import Restruct from '../../render/restruct';
|
|
3
|
-
import { Vec2 } from 'ketcher-core';
|
|
4
|
-
export declare function fromTextCreation(restruct: Restruct, content: string, position: Vec2): Action;
|
|
5
|
-
export declare function fromTextUpdating(restruct: Restruct, id: number, content: string): Action;
|
|
6
|
-
export declare function fromTextDeletion(restruct: Restruct, id: number): Action;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export function atomGetAttr(restruct: any, aid: any, name: any): any;
|
|
2
|
-
export function atomGetDegree(restruct: any, aid: any): any;
|
|
3
|
-
export function atomGetSGroups(restruct: any, aid: any): any[];
|
|
4
|
-
export function atomGetPos(restruct: any, id: any): any;
|
|
5
|
-
export function findStereoAtoms(struct: any, aids: any): any;
|
|
6
|
-
export function structSelection(struct: any): {};
|
|
7
|
-
export function atomForNewBond(restruct: any, id: any): {
|
|
8
|
-
atom: {
|
|
9
|
-
id: never;
|
|
10
|
-
dist: any;
|
|
11
|
-
} | null;
|
|
12
|
-
pos: Vec2;
|
|
13
|
-
};
|
|
14
|
-
export function getRelSgroupsBySelection(restruct: any, selectedAtoms: any): any;
|
|
15
|
-
import { Vec2 } from "ketcher-core/dist/domain/entities/Vec2";
|
|
@@ -1,26 +0,0 @@
|
|
|
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 Restruct from '../../render/restruct';
|
|
17
|
-
import { Struct } from 'ketcher-core';
|
|
18
|
-
import { BaseOperation } from './base';
|
|
19
|
-
export declare class CanvasLoad extends BaseOperation {
|
|
20
|
-
data: {
|
|
21
|
-
struct?: Struct;
|
|
22
|
-
};
|
|
23
|
-
constructor(struct?: Struct);
|
|
24
|
-
execute(restruct: Restruct): void;
|
|
25
|
-
invert(): CanvasLoad;
|
|
26
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseOperation } from './base';
|
|
2
|
-
import Restruct from '../../render/restruct';
|
|
3
|
-
export declare class EnhancedFlagMove extends BaseOperation {
|
|
4
|
-
data: {
|
|
5
|
-
frid: any;
|
|
6
|
-
p: any;
|
|
7
|
-
};
|
|
8
|
-
constructor(fragmentId?: any, p?: any);
|
|
9
|
-
execute(restruct: Restruct): void;
|
|
10
|
-
invert(): EnhancedFlagMove;
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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 { BaseOperation } from './base';
|
|
17
|
-
import Restruct from '../../render/restruct';
|
|
18
|
-
export declare class LoopMove extends BaseOperation {
|
|
19
|
-
data: {
|
|
20
|
-
id: any;
|
|
21
|
-
d: any;
|
|
22
|
-
};
|
|
23
|
-
constructor(id?: any, d?: any);
|
|
24
|
-
execute(restruct: Restruct): void;
|
|
25
|
-
invert(): LoopMove;
|
|
26
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
export declare const OperationType: Readonly<{
|
|
17
|
-
ATOM_ADD: string;
|
|
18
|
-
ATOM_DELETE: string;
|
|
19
|
-
ATOM_ATTR: string;
|
|
20
|
-
ATOM_MOVE: string;
|
|
21
|
-
CALC_IMPLICIT_H: string;
|
|
22
|
-
BOND_ADD: string;
|
|
23
|
-
BOND_DELETE: string;
|
|
24
|
-
BOND_ATTR: string;
|
|
25
|
-
BOND_MOVE: string;
|
|
26
|
-
LOOP_MOVE: string;
|
|
27
|
-
S_GROUP_ATOM_ADD: string;
|
|
28
|
-
S_GROUP_ATOM_REMOVE: string;
|
|
29
|
-
S_GROUP_ATTR: string;
|
|
30
|
-
S_GROUP_CREATE: string;
|
|
31
|
-
S_GROUP_DELETE: string;
|
|
32
|
-
S_GROUP_ADD_TO_HIERACHY: string;
|
|
33
|
-
S_GROUP_REMOVE_FROM_HIERACHY: string;
|
|
34
|
-
R_GROUP_ATTR: string;
|
|
35
|
-
R_GROUP_FRAGMENT: string;
|
|
36
|
-
UPDATE_IF_THEN: string;
|
|
37
|
-
RESTORE_IF_THEN: string;
|
|
38
|
-
RXN_ARROW_ADD: string;
|
|
39
|
-
RXN_ARROW_DELETE: string;
|
|
40
|
-
RXN_ARROW_MOVE: string;
|
|
41
|
-
RXN_PLUS_ADD: string;
|
|
42
|
-
RXN_PLUS_DELETE: string;
|
|
43
|
-
RXN_PLUS_MOVE: string;
|
|
44
|
-
S_GROUP_DATA_MOVE: string;
|
|
45
|
-
CANVAS_LOAD: string;
|
|
46
|
-
ALIGN_DESCRIPTORS: string;
|
|
47
|
-
SIMPLE_OBJECT_ADD: string;
|
|
48
|
-
SIMPLE_OBJECT_DELETE: string;
|
|
49
|
-
SIMPLE_OBJECT_MOVE: string;
|
|
50
|
-
SIMPLE_OBJECT_RESIZE: string;
|
|
51
|
-
RESTORE_DESCRIPTORS_POSITION: string;
|
|
52
|
-
FRAGMENT_ADD: string;
|
|
53
|
-
FRAGMENT_DELETE: string;
|
|
54
|
-
FRAGMENT_STEREO_FLAG: string;
|
|
55
|
-
FRAGMENT_ADD_STEREO_ATOM: string;
|
|
56
|
-
FRAGMENT_DELETE_STEREO_ATOM: string;
|
|
57
|
-
ENHANCED_FLAG_MOVE: string;
|
|
58
|
-
TEXT_CREATE: string;
|
|
59
|
-
TEXT_UPDATE: string;
|
|
60
|
-
TEXT_DELETE: string;
|
|
61
|
-
TEXT_MOVE: string;
|
|
62
|
-
}>;
|
|
@@ -1,41 +0,0 @@
|
|
|
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 Restruct from '../../../render/restruct';
|
|
17
|
-
import { Vec2 } from 'ketcher-core';
|
|
18
|
-
import { BaseOperation } from '../base';
|
|
19
|
-
interface TextCreateData {
|
|
20
|
-
id?: number;
|
|
21
|
-
content: string;
|
|
22
|
-
position: Vec2;
|
|
23
|
-
}
|
|
24
|
-
export declare class TextCreate extends BaseOperation {
|
|
25
|
-
data: TextCreateData;
|
|
26
|
-
constructor(content: string, position: Vec2, id?: number);
|
|
27
|
-
execute(restruct: Restruct): void;
|
|
28
|
-
invert(): BaseOperation;
|
|
29
|
-
}
|
|
30
|
-
interface TextDeleteData {
|
|
31
|
-
id: number;
|
|
32
|
-
content?: string;
|
|
33
|
-
position?: Vec2;
|
|
34
|
-
}
|
|
35
|
-
export declare class TextDelete extends BaseOperation {
|
|
36
|
-
data: TextDeleteData;
|
|
37
|
-
constructor(id: number);
|
|
38
|
-
execute(restruct: Restruct): void;
|
|
39
|
-
invert(): BaseOperation;
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
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 { BaseOperation } from '../base';
|
|
17
|
-
import Restruct from '../../../render/restruct';
|
|
18
|
-
interface TextMoveData {
|
|
19
|
-
id: any;
|
|
20
|
-
d: any;
|
|
21
|
-
noinvalidate: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare class TextMove extends BaseOperation {
|
|
24
|
-
data: TextMoveData;
|
|
25
|
-
constructor(id: any, d: any, noinvalidate: boolean);
|
|
26
|
-
execute(restruct: Restruct): void;
|
|
27
|
-
invert(): BaseOperation;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
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 { BaseOperation } from '../base';
|
|
17
|
-
import Restruct from '../../../render/restruct';
|
|
18
|
-
interface TextUpdateData {
|
|
19
|
-
id: number;
|
|
20
|
-
content: string;
|
|
21
|
-
previousContent?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare class TextUpdate extends BaseOperation {
|
|
24
|
-
data: TextUpdateData;
|
|
25
|
-
constructor(id: number, content: string);
|
|
26
|
-
execute(restruct: Restruct): void;
|
|
27
|
-
invert(): TextUpdate;
|
|
28
|
-
}
|
|
29
|
-
export {};
|