ketcher-react 2.13.0-rc.3 → 2.13.0-rc.3-dev.1
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/dist/index.js +10728 -10418
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10729 -10419
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/Editor.d.ts +1 -0
- package/dist/script/editor/shared/closest.d.ts +1 -0
- package/dist/script/editor/tool/apoint.utils.d.ts +2 -0
- package/dist/script/editor/tool/helper/lasso.d.ts +3 -0
- package/dist/script/editor/tool/helper/locate.d.ts +2 -0
- package/dist/script/editor/tool/select.d.ts +1 -0
- package/dist/script/editor/utils/handleMovingPosibilityCursor.d.ts +1 -0
- package/dist/script/editor/utils/handleMovingPosibilityCursor.test.d.ts +1 -0
- package/dist/script/editor/utils/index.d.ts +1 -0
- package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +3 -1
- package/dist/script/ui/views/components/ContextMenu/hooks/useRGroupAttachmentPointEdit.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useRGroupAttachmentPointRemove.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/menuItems/RGroupAttachmentPointMenuItems.d.ts +4 -0
- package/dist/script/ui/views/modal/components/document/Save/Save.test.d.ts +1 -0
- package/dist/script/ui/views/modal/components/document/Save/Save.test.utils.d.ts +2 -0
- package/package.json +1 -1
- /package/dist/script/ui/views/modal/components/InfoModal/{mockStore.d.ts → InfoModal.test.utils.d.ts} +0 -0
|
@@ -30,6 +30,7 @@ declare class LassoHelper {
|
|
|
30
30
|
sgroupData: number[];
|
|
31
31
|
simpleObjects: number[];
|
|
32
32
|
texts: number[];
|
|
33
|
+
rgroupAttachmentPoints: number[];
|
|
33
34
|
};
|
|
34
35
|
begin(event: any): void;
|
|
35
36
|
running(): boolean;
|
|
@@ -42,6 +43,7 @@ declare class LassoHelper {
|
|
|
42
43
|
sgroupData: number[];
|
|
43
44
|
simpleObjects: number[];
|
|
44
45
|
texts: number[];
|
|
46
|
+
rgroupAttachmentPoints: number[];
|
|
45
47
|
} | null;
|
|
46
48
|
update(): void;
|
|
47
49
|
end(): {
|
|
@@ -53,6 +55,7 @@ declare class LassoHelper {
|
|
|
53
55
|
sgroupData: number[];
|
|
54
56
|
simpleObjects: number[];
|
|
55
57
|
texts: number[];
|
|
58
|
+
rgroupAttachmentPoints: number[];
|
|
56
59
|
};
|
|
57
60
|
cancel(): void;
|
|
58
61
|
}
|
|
@@ -22,6 +22,7 @@ declare function getElementsInRectangle(restruct: any, p0: any, p1: any): {
|
|
|
22
22
|
sgroupData: number[];
|
|
23
23
|
simpleObjects: number[];
|
|
24
24
|
texts: number[];
|
|
25
|
+
rgroupAttachmentPoints: number[];
|
|
25
26
|
};
|
|
26
27
|
declare function getElementsInPolygon(restruct: any, rr: any): {
|
|
27
28
|
atoms: number[];
|
|
@@ -32,6 +33,7 @@ declare function getElementsInPolygon(restruct: any, rr: any): {
|
|
|
32
33
|
sgroupData: number[];
|
|
33
34
|
simpleObjects: number[];
|
|
34
35
|
texts: number[];
|
|
36
|
+
rgroupAttachmentPoints: number[];
|
|
35
37
|
};
|
|
36
38
|
declare const _default: {
|
|
37
39
|
inRectangle: typeof getElementsInRectangle;
|
|
@@ -22,6 +22,7 @@ declare class SelectTool implements Tool {
|
|
|
22
22
|
private readonly editor;
|
|
23
23
|
private dragCtx;
|
|
24
24
|
isMousedDown: boolean;
|
|
25
|
+
readonly isMoving = false;
|
|
25
26
|
constructor(editor: Editor, mode: SelectMode);
|
|
26
27
|
isSelectionRunning(): boolean;
|
|
27
28
|
mousedown(event: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handleMovingPosibilityCursor: (item: unknown, canvas: SVGElement, cursor: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,8 @@ export declare enum CONTEXT_MENU_ID {
|
|
|
5
5
|
FOR_BONDS = "context-menu-for-bonds",
|
|
6
6
|
FOR_ATOMS = "context-menu-for-atoms",
|
|
7
7
|
FOR_SELECTION = "context-menu-for-selection",
|
|
8
|
-
FOR_FUNCTIONAL_GROUPS = "context-menu-for-functional-groups"
|
|
8
|
+
FOR_FUNCTIONAL_GROUPS = "context-menu-for-functional-groups",
|
|
9
|
+
FOR_R_GROUP_ATTACHMENT_POINT = "context-menu-for-rgroup-attachment-point"
|
|
9
10
|
}
|
|
10
11
|
export declare type ItemData = unknown;
|
|
11
12
|
export declare type ContextMenuShowProps = {
|
|
@@ -14,6 +15,7 @@ export declare type ContextMenuShowProps = {
|
|
|
14
15
|
bondIds?: number[];
|
|
15
16
|
atomIds?: number[];
|
|
16
17
|
extraItemsSelected?: boolean;
|
|
18
|
+
rgroupAttachmentPoints?: number[];
|
|
17
19
|
} | null;
|
|
18
20
|
export interface MenuItemsProps {
|
|
19
21
|
triggerEvent?: TriggerEvent;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ItemEventParams } from '../contextMenu.types';
|
|
2
|
+
declare const useRGroupAttachmentPointEdit: () => readonly [({ props }: ItemEventParams) => void, ({ props }: ItemEventParams) => boolean, ({ props }: ItemEventParams) => boolean];
|
|
3
|
+
export default useRGroupAttachmentPointEdit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
File without changes
|