ketcher-react 2.4.0 → 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 +11166 -6573
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11158 -6575
- 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 +4 -2
- package/dist/script/editor/highlighter.d.ts +32 -0
- 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 +48 -59
- 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
|
@@ -3,5 +3,8 @@ declare const Analyse: import("react-redux").ConnectedComponent<typeof AnalyseDi
|
|
|
3
3
|
declare class AnalyseDialog extends Component<any, any, any> {
|
|
4
4
|
static contextType: import("react").Context<import("../../../../../../../contexts").IErrorsContext>;
|
|
5
5
|
constructor(props: any);
|
|
6
|
+
constructor(props: any, context: any);
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
render(): JSX.Element;
|
|
6
9
|
}
|
|
7
10
|
import { Component } from "react";
|
|
@@ -1,10 +1,31 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
import { Struct, StructService } from 'ketcher-core';
|
|
18
|
+
declare type MiewDialogProps = {
|
|
19
|
+
miewOpts: any;
|
|
20
|
+
server: StructService;
|
|
21
|
+
struct: Struct;
|
|
22
|
+
onCancel: () => void;
|
|
23
|
+
onOk: (result: any) => void;
|
|
24
|
+
miewTheme: 'dark' | 'light';
|
|
25
|
+
};
|
|
26
|
+
declare type MiewDialogCallProps = {
|
|
27
|
+
onExportCML: (cmlStruct: string) => void;
|
|
28
|
+
};
|
|
29
|
+
declare type Props = MiewDialogProps & MiewDialogCallProps;
|
|
30
|
+
declare const Miew: import("react-redux").ConnectedComponent<({ miewOpts, server, struct, onExportCML, miewTheme, ...prop }: Props) => JSX.Element, import("react-redux").Omit<MiewDialogProps & MiewDialogCallProps, "miewOpts" | "server" | "struct" | "onExportCML" | "miewTheme">>;
|
|
1
31
|
export default Miew;
|
|
2
|
-
declare const Miew: import("react-redux").ConnectedComponent<typeof MiewDialog, import("react-redux").Omit<any, "struct" | "server" | "miewOpts" | "onExportCML">>;
|
|
3
|
-
declare class MiewDialog extends Component<any, any, any> {
|
|
4
|
-
constructor(props: any);
|
|
5
|
-
constructor(props: any, context: any);
|
|
6
|
-
viewer: any;
|
|
7
|
-
exportCML(): void;
|
|
8
|
-
miewContainer: HTMLDivElement | null | undefined;
|
|
9
|
-
}
|
|
10
|
-
import { Component } from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export default Recognize;
|
|
2
|
-
declare const Recognize: import("react-redux").ConnectedComponent<typeof RecognizeDialog, import("react-redux").Omit<any, "fragment" | "file" | "
|
|
2
|
+
declare const Recognize: import("react-redux").ConnectedComponent<typeof RecognizeDialog, import("react-redux").Omit<any, "fragment" | "file" | "onOk" | "structStr" | "version" | "onImage" | "imagoVersions" | "onRecognize" | "isFragment" | "onChangeImago">>;
|
|
3
3
|
declare function RecognizeDialog(prop: any): JSX.Element;
|
|
@@ -14,5 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
/// <reference types="react" />
|
|
17
|
-
declare const AtomContainer: import("react-redux").ConnectedComponent<import("react").FC<import("./Atom").AtomProps & import("../../../modal.types").BaseCallProps>, import("react-redux").Omit<import("./Atom").AtomProps & import("../../../modal.types").BaseCallProps
|
|
17
|
+
declare const AtomContainer: import("react-redux").ConnectedComponent<import("react").FC<import("./Atom").AtomProps & import("../../../modal.types").BaseCallProps>, import("react-redux").Omit<import("./Atom").AtomProps & import("../../../modal.types").BaseCallProps & {
|
|
18
|
+
children?: import("react").ReactNode;
|
|
19
|
+
}, "formState">>;
|
|
18
20
|
export default AtomContainer;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
interface ElementNumberProps {
|
|
17
18
|
label: string;
|
|
18
19
|
}
|
|
@@ -13,5 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
declare const AttachPointsContainer: import("react-redux").ConnectedComponent<(props: import("./Attach").AttachPointsProps & import("../../../modal.types").BaseCallProps) => JSX.Element, import("react-redux").Omit<import("./Attach").AttachPointsProps & import("../../../modal.types").BaseCallProps, "formState">>;
|
|
17
18
|
export default AttachPointsContainer;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { BaseCallProps, BaseProps } from '../../../modal.types';
|
|
17
18
|
interface AttachPointsProps extends BaseProps {
|
|
18
19
|
primary: boolean;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { BaseCallProps, BaseProps } from '../../../modal.types';
|
|
17
18
|
declare const AutomapContainer: import("react-redux").ConnectedComponent<(props: BaseProps & BaseCallProps) => JSX.Element, any>;
|
|
18
19
|
export default AutomapContainer;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { BaseCallProps, BaseProps } from '../../../modal.types';
|
|
17
18
|
declare type Props = BaseProps & BaseCallProps;
|
|
18
19
|
export declare const automapSchema: {
|
|
@@ -13,5 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
declare const BondContainer: import("react-redux").ConnectedComponent<(props: import("./Bond").BondProps & import("../../../modal.types").BaseCallProps) => JSX.Element, import("react-redux").Omit<import("./Bond").BondProps & import("../../../modal.types").BaseCallProps, "formState">>;
|
|
17
18
|
export default BondContainer;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { BaseCallProps, BaseProps } from '../../../modal.types';
|
|
17
18
|
interface BondProps extends BaseProps {
|
|
18
19
|
center: number;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { BaseCallProps, BaseProps } from '../../../modal.types';
|
|
17
18
|
interface RemoveFGProps extends BaseProps {
|
|
18
19
|
fgIds: any;
|
package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts
CHANGED
|
@@ -13,5 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
declare const RgroupLogicContainer: import("react-redux").ConnectedComponent<(props: import("./RgroupLogic").RgroupLogicProps & import("../../../modal.types").BaseCallProps) => JSX.Element, import("react-redux").Omit<import("./RgroupLogic").RgroupLogicProps & import("../../../modal.types").BaseCallProps, "formState">>;
|
|
17
18
|
export default RgroupLogicContainer;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { RgroupLogicProps } from '../../RgroupLogic';
|
|
17
18
|
declare type Props = Pick<RgroupLogicProps, 'label' | 'rgroupLabels' | 'name'>;
|
|
18
19
|
declare const IfThenSelect: (props: Props) => JSX.Element;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
interface ArrowScrollProps {
|
|
17
18
|
startInView: boolean;
|
|
18
19
|
endInView: boolean;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../ToolbarGroupItem';
|
|
17
18
|
interface BottomToolbarProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
18
19
|
className?: string;
|
|
@@ -21,8 +22,7 @@ interface BottomToolbarProps extends Omit<ToolbarGroupItemProps, 'id' | 'options
|
|
|
21
22
|
tool: string;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
}
|
|
25
|
+
declare type BottomToolbarCallProps = ToolbarGroupItemCallProps;
|
|
26
26
|
declare type Props = BottomToolbarProps & BottomToolbarCallProps;
|
|
27
27
|
declare const BottomToolbar: (props: Props) => JSX.Element;
|
|
28
28
|
export type { BottomToolbarProps, BottomToolbarCallProps };
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { UiActionAction } from '../../../../action';
|
|
17
18
|
interface TemplatesListProps {
|
|
18
19
|
active?: {
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../../ToolbarGroupItem';
|
|
17
18
|
interface BondProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
18
19
|
height?: number;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
}
|
|
21
|
+
declare type BondCallProps = ToolbarGroupItemCallProps;
|
|
22
22
|
declare type Props = BondProps & BondCallProps;
|
|
23
23
|
declare const Bond: (props: Props) => JSX.Element;
|
|
24
24
|
export type { BondProps, BondCallProps };
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
/// <reference types="react" />
|
|
17
|
+
import { LeftToolbarProps } from './LeftToolbar';
|
|
18
|
+
declare const LeftToolbarContainer: import("react-redux").ConnectedComponent<(props: LeftToolbarProps & import("../ToolbarGroupItem/ToolbarGroupItem").ToolbarGroupItemCallProps) => JSX.Element, import("react-redux").Omit<LeftToolbarProps & import("../ToolbarGroupItem/ToolbarGroupItem").ToolbarGroupItemCallProps, "status" | "opened" | "disableableButtons" | "indigoVerification" | "vertical" | "onAction" | "onOpen">>;
|
|
18
19
|
export { LeftToolbarContainer };
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../ToolbarGroupItem';
|
|
17
18
|
interface LeftToolbarProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
18
19
|
className?: string;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
}
|
|
21
|
+
declare type LeftToolbarCallProps = ToolbarGroupItemCallProps;
|
|
22
22
|
declare type Props = LeftToolbarProps & LeftToolbarCallProps;
|
|
23
23
|
declare const LeftToolbar: (props: Props) => JSX.Element;
|
|
24
24
|
export type { LeftToolbarProps, LeftToolbarCallProps };
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../../ToolbarGroupItem';
|
|
17
18
|
interface RGroupProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
18
19
|
height?: number;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
}
|
|
21
|
+
declare type RGroupCallProps = ToolbarGroupItemCallProps;
|
|
22
22
|
declare type Props = RGroupProps & RGroupCallProps;
|
|
23
23
|
declare const RGroup: (props: Props) => JSX.Element;
|
|
24
24
|
export type { RGroupProps, RGroupCallProps };
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../../ToolbarGroupItem';
|
|
17
18
|
interface ShapeProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
18
19
|
height?: number;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
}
|
|
21
|
+
declare type ShapeCallProps = ToolbarGroupItemCallProps;
|
|
22
22
|
declare type Props = ShapeProps & ShapeCallProps;
|
|
23
23
|
declare const Shape: (props: Props) => JSX.Element;
|
|
24
24
|
export type { ShapeProps, ShapeCallProps };
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../../ToolbarGroupItem';
|
|
17
18
|
interface TransformProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
18
19
|
height?: number;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
}
|
|
21
|
+
declare type TransformCallProps = ToolbarGroupItemCallProps;
|
|
22
22
|
declare type Props = TransformProps & TransformCallProps;
|
|
23
23
|
declare const Transform: (props: Props) => JSX.Element;
|
|
24
24
|
export type { TransformProps, TransformCallProps };
|
|
@@ -20,13 +20,13 @@ interface AtomsListProps {
|
|
|
20
20
|
active?: {
|
|
21
21
|
tool?: string;
|
|
22
22
|
opts: {
|
|
23
|
-
label:
|
|
23
|
+
label: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
interface AtomsListCallProps {
|
|
28
28
|
onAction: (action: UiActionAction) => void;
|
|
29
29
|
}
|
|
30
|
-
declare const AtomsList: import("react").ForwardRefExoticComponent<AtomsListProps & AtomsListCallProps & import("react").RefAttributes<
|
|
30
|
+
declare const AtomsList: import("react").ForwardRefExoticComponent<AtomsListProps & AtomsListCallProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
31
|
export type { AtomsListProps, AtomsListCallProps };
|
|
32
32
|
export { AtomsList };
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { ToolbarGroupItemCallProps, ToolbarGroupItemProps } from '../ToolbarGroupItem';
|
|
17
18
|
interface RightToolbarProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'> {
|
|
18
19
|
className?: string;
|
|
@@ -22,8 +23,7 @@ interface RightToolbarProps extends Omit<ToolbarGroupItemProps, 'id' | 'options'
|
|
|
22
23
|
};
|
|
23
24
|
freqAtoms: any[];
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
}
|
|
26
|
+
declare type RightToolbarCallProps = ToolbarGroupItemCallProps;
|
|
27
27
|
declare type Props = RightToolbarProps & RightToolbarCallProps;
|
|
28
28
|
declare const RightToolbar: (props: Props) => JSX.Element;
|
|
29
29
|
export type { RightToolbarProps, RightToolbarCallProps };
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { UiAction, UiActionAction } from '../../../../action';
|
|
17
18
|
interface ActionButtonProps {
|
|
18
19
|
name: string;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { UiAction, UiActionAction } from '../../../action';
|
|
17
18
|
import { ToolbarItem } from '../toolbar.types';
|
|
18
19
|
interface ToolbarGroupItemProps extends ToolbarItem {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { GroupDescriptor, MultiToolVariant } from './variants/variants.types';
|
|
17
18
|
import { ToolbarItem, ToolbarItemVariant } from '../../toolbar.types';
|
|
18
19
|
import { UiAction, UiActionAction } from '../../../../action';
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { MultiToolCallProps, MultiToolProps } from '../variants.types';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
interface DefaultMultiToolCallProps extends MultiToolCallProps {
|
|
20
|
-
}
|
|
18
|
+
declare type DefaultMultiToolProps = MultiToolProps;
|
|
19
|
+
declare type DefaultMultiToolCallProps = MultiToolCallProps;
|
|
21
20
|
declare type Props = DefaultMultiToolProps & DefaultMultiToolCallProps;
|
|
22
21
|
declare const DefaultMultiTool: (props: Props) => JSX.Element;
|
|
23
22
|
export type { DefaultMultiToolProps, DefaultMultiToolCallProps };
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { MultiToolCallProps, MultiToolProps } from '../variants.types';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
interface GroupedMultiToolCallProps extends MultiToolCallProps {
|
|
20
|
-
}
|
|
18
|
+
declare type GroupedMultiToolProps = MultiToolProps;
|
|
19
|
+
declare type GroupedMultiToolCallProps = MultiToolCallProps;
|
|
21
20
|
declare type Props = GroupedMultiToolProps & GroupedMultiToolCallProps;
|
|
22
21
|
declare const GroupedMultiTool: (props: Props) => JSX.Element | null;
|
|
23
22
|
export type { GroupedMultiToolProps, GroupedMultiToolCallProps };
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
interface ClipboardControlsProps {
|
|
18
|
+
onCopy: () => void;
|
|
19
|
+
onCopyMol: () => void;
|
|
20
|
+
onCopyKet: () => void;
|
|
21
|
+
onCopyImage: () => void;
|
|
22
|
+
onPaste: () => void;
|
|
23
|
+
onCut: () => void;
|
|
24
|
+
disabledButtons: string[];
|
|
25
|
+
hiddenButtons: string[];
|
|
26
|
+
shortcuts: {
|
|
27
|
+
[key in string]: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export declare const ClipboardControls: ({ onCopy, onCopyMol, onCopyKet, onCopyImage, onPaste, onCut, shortcuts, disabledButtons, hiddenButtons }: ClipboardControlsProps) => JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -13,4 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
16
|
+
/// <reference types="react" />
|
|
17
|
+
export declare const Divider: () => JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
interface ElementWithDropdownProps {
|
|
18
|
+
topElement?: JSX.Element;
|
|
19
|
+
dropDownElements: JSX.Element[];
|
|
20
|
+
onToolOpen: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const ElementWithDropdown: import("react-redux").ConnectedComponent<({ topElement, dropDownElements, onToolOpen }: ElementWithDropdownProps) => JSX.Element, import("react-redux").Omit<ElementWithDropdownProps, "onToolOpen">>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
interface ExternalFuncProps {
|
|
18
|
+
isCollapsed: boolean;
|
|
19
|
+
onLayout: () => void;
|
|
20
|
+
onClean: () => void;
|
|
21
|
+
onAromatize: () => void;
|
|
22
|
+
onDearomatize: () => void;
|
|
23
|
+
onCalculate: () => void;
|
|
24
|
+
onCheck: () => void;
|
|
25
|
+
onAnalyse: () => void;
|
|
26
|
+
onStereo: () => void;
|
|
27
|
+
onMiew: () => void;
|
|
28
|
+
disabledButtons: string[];
|
|
29
|
+
hiddenButtons: string[];
|
|
30
|
+
indigoVerification: boolean;
|
|
31
|
+
shortcuts: {
|
|
32
|
+
[key in string]: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare const ExternalFuncControls: ({ isCollapsed, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onStereo, onMiew, disabledButtons, indigoVerification, hiddenButtons, shortcuts }: ExternalFuncProps) => JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
interface FileControlsProps {
|
|
18
|
+
onFileOpen: () => void;
|
|
19
|
+
onSave: () => void;
|
|
20
|
+
shortcuts: {
|
|
21
|
+
[key in string]: string;
|
|
22
|
+
};
|
|
23
|
+
hiddenButtons: string[];
|
|
24
|
+
}
|
|
25
|
+
export declare const FileControls: ({ onFileOpen, onSave, shortcuts, hiddenButtons }: FileControlsProps) => JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
interface ButtonProps {
|
|
18
|
+
iconName: string;
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
title: string;
|
|
21
|
+
isHidden?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
shortcut?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const IconButton: ({ onClick, iconName, title, shortcut, isHidden, disabled }: ButtonProps) => JSX.Element | null;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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 class ScaleTransformer {
|
|
17
|
+
a: number;
|
|
18
|
+
b: number;
|
|
19
|
+
zoomList: number[];
|
|
20
|
+
constructor(inputMax: number);
|
|
21
|
+
getSliderValue(zoom: number): number;
|
|
22
|
+
getZoomValue(sliderValue: number): any;
|
|
23
|
+
private pickNearestFromList;
|
|
24
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
17
|
+
interface SystemControlsProps {
|
|
18
|
+
disabledButtons: string[];
|
|
19
|
+
hiddenButtons: string[];
|
|
20
|
+
className?: string;
|
|
21
|
+
onSettingsOpen: () => void;
|
|
22
|
+
onAboutOpen: () => void;
|
|
23
|
+
onHistoryClick: () => void;
|
|
24
|
+
onFullscreen: () => void;
|
|
25
|
+
onHelp: () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const SystemControls: ({ disabledButtons, hiddenButtons, onSettingsOpen, onFullscreen, onHelp, onAboutOpen, className }: SystemControlsProps) => JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
17
|
-
declare const TopToolbarContainer: import("react-redux").ConnectedComponent<(
|
|
16
|
+
/// <reference types="react" />
|
|
17
|
+
declare const TopToolbarContainer: import("react-redux").ConnectedComponent<({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onStereo, onMiew, onFullscreen, onAbout, onHelp }: import("./TopToolbar").PanelProps) => JSX.Element, import("react-redux").Omit<import("./TopToolbar").PanelProps, "disabledButtons" | "indigoVerification" | "hiddenButtons" | "shortcuts" | "onClear" | "onFileOpen" | "onSave" | "onUndo" | "onRedo" | "onCopy" | "onCopyMol" | "onCopyKet" | "onCopyImage" | "onCut" | "onPaste" | "currentZoom" | "onZoom" | "onZoomIn" | "onZoomOut" | "onSettingsOpen" | "onLayout" | "onClean" | "onAromatize" | "onDearomatize" | "onCalculate" | "onCheck" | "onAnalyse" | "onStereo" | "onMiew" | "onFullscreen" | "onAbout" | "onHelp">>;
|
|
18
18
|
export { TopToolbarContainer };
|