@syncfusion/ej2-image-editor 20.4.51 → 21.1.36
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +55 -5
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +20032 -11350
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +20027 -11313
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/image-editor/action/crop.d.ts +36 -0
- package/src/image-editor/action/crop.js +829 -0
- package/src/image-editor/action/draw.d.ts +125 -0
- package/src/image-editor/action/draw.js +3263 -0
- package/src/image-editor/action/export.d.ts +23 -0
- package/src/image-editor/action/export.js +364 -0
- package/src/image-editor/action/filter.d.ts +35 -0
- package/src/image-editor/action/filter.js +699 -0
- package/src/image-editor/action/freehand-draw.d.ts +61 -0
- package/src/image-editor/action/freehand-draw.js +1015 -0
- package/src/image-editor/action/index.d.ts +9 -0
- package/src/image-editor/action/index.js +9 -0
- package/src/image-editor/action/selection.d.ts +139 -0
- package/src/image-editor/action/selection.js +4518 -0
- package/src/image-editor/action/shape.d.ts +94 -0
- package/src/image-editor/action/shape.js +2745 -0
- package/src/image-editor/action/transform.d.ts +67 -0
- package/src/image-editor/action/transform.js +1859 -0
- package/src/image-editor/action/undo-redo.d.ts +43 -0
- package/src/image-editor/action/undo-redo.js +800 -0
- package/src/image-editor/base/enum.d.ts +189 -0
- package/src/image-editor/base/enum.js +198 -0
- package/src/image-editor/base/image-editor-model.d.ts +626 -0
- package/src/image-editor/base/image-editor.d.ts +1300 -0
- package/src/image-editor/base/image-editor.js +2270 -0
- package/src/image-editor/base/index.d.ts +4 -0
- package/src/image-editor/base/index.js +2 -0
- package/src/image-editor/base/interface.d.ts +1128 -0
- package/src/image-editor/base/interface.js +1 -0
- package/src/image-editor/index.d.ts +3 -5
- package/src/image-editor/index.js +3 -4
- package/src/image-editor/renderer/index.d.ts +1 -0
- package/src/image-editor/renderer/index.js +1 -0
- package/src/image-editor/renderer/toolbar.d.ts +105 -0
- package/src/image-editor/renderer/toolbar.js +3018 -0
- package/styles/bootstrap-dark.css +79 -8
- package/styles/bootstrap.css +79 -8
- package/styles/bootstrap4.css +79 -8
- package/styles/bootstrap5-dark.css +81 -11
- package/styles/bootstrap5.css +81 -11
- package/styles/fabric-dark.css +79 -8
- package/styles/fabric.css +79 -8
- package/styles/fluent-dark.css +79 -8
- package/styles/fluent.css +79 -8
- package/styles/highcontrast-light.css +81 -10
- package/styles/highcontrast.css +82 -10
- package/styles/image-editor/_highcontrast-definition.scss +1 -1
- package/styles/image-editor/_highcontrast-light-definition.scss +1 -1
- package/styles/image-editor/_layout.scss +28 -18
- package/styles/image-editor/_material3-dark-definition.scss +1 -0
- package/styles/image-editor/_material3-definition.scss +10 -10
- package/styles/image-editor/_theme.scss +11 -6
- package/styles/image-editor/bootstrap-dark.css +79 -8
- package/styles/image-editor/bootstrap.css +79 -8
- package/styles/image-editor/bootstrap4.css +79 -8
- package/styles/image-editor/bootstrap5-dark.css +81 -11
- package/styles/image-editor/bootstrap5.css +81 -11
- package/styles/image-editor/fabric-dark.css +79 -8
- package/styles/image-editor/fabric.css +79 -8
- package/styles/image-editor/fluent-dark.css +79 -8
- package/styles/image-editor/fluent.css +79 -8
- package/styles/image-editor/highcontrast-light.css +81 -10
- package/styles/image-editor/highcontrast.css +82 -10
- package/styles/image-editor/icons/_bootstrap-dark.scss +132 -0
- package/styles/image-editor/icons/_bootstrap.scss +132 -0
- package/styles/image-editor/icons/_bootstrap4.scss +132 -0
- package/styles/image-editor/icons/_bootstrap5.scss +132 -0
- package/styles/image-editor/icons/_fabric-dark.scss +132 -0
- package/styles/image-editor/icons/_fabric.scss +132 -0
- package/styles/image-editor/icons/_fluent.scss +132 -0
- package/styles/image-editor/icons/_fusionnew.scss +132 -0
- package/styles/image-editor/icons/_highcontrast-light.scss +132 -0
- package/styles/image-editor/icons/_highcontrast.scss +132 -0
- package/styles/image-editor/icons/_material-dark.scss +132 -0
- package/styles/image-editor/icons/_material.scss +132 -0
- package/styles/image-editor/icons/_material3-dark.scss +1 -0
- package/styles/image-editor/icons/_material3.scss +133 -1
- package/styles/image-editor/icons/_tailwind.scss +132 -0
- package/styles/image-editor/material-dark.css +79 -16
- package/styles/image-editor/material.css +79 -11
- package/styles/image-editor/material3-dark.css +453 -0
- package/styles/image-editor/material3-dark.scss +14 -0
- package/styles/image-editor/material3.css +509 -0
- package/styles/image-editor/material3.scss +14 -0
- package/styles/image-editor/tailwind-dark.css +79 -8
- package/styles/image-editor/tailwind.css +79 -8
- package/styles/material-dark.css +79 -16
- package/styles/material.css +79 -11
- package/styles/material3-dark.css +453 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +509 -0
- package/styles/material3.scss +3 -0
- package/styles/tailwind-dark.css +79 -8
- package/styles/tailwind.css +79 -8
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/src/image-editor/image-editor-model.d.ts +0 -331
- package/src/image-editor/image-editor.d.ts +0 -1428
- package/src/image-editor/image-editor.js +0 -12849
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { ImageEditor } from '../index';
|
|
2
|
+
export declare class Selection {
|
|
3
|
+
private parent;
|
|
4
|
+
private lowerContext;
|
|
5
|
+
private upperContext;
|
|
6
|
+
private diffPoint;
|
|
7
|
+
private oldPoint;
|
|
8
|
+
private isTouch;
|
|
9
|
+
private isObjSelected;
|
|
10
|
+
private isFhdPoint;
|
|
11
|
+
private dragPoint;
|
|
12
|
+
private isShapeInserted;
|
|
13
|
+
private tempActiveObj;
|
|
14
|
+
private isFirstMove;
|
|
15
|
+
private startTouches;
|
|
16
|
+
private tempTouches;
|
|
17
|
+
private currMousePoint;
|
|
18
|
+
private cursorTargetId;
|
|
19
|
+
private isPreventDragging;
|
|
20
|
+
private timer;
|
|
21
|
+
private tempObjColl;
|
|
22
|
+
private dragElement;
|
|
23
|
+
private textRow;
|
|
24
|
+
private mouseDownPoint;
|
|
25
|
+
private previousPoint;
|
|
26
|
+
private zoomType;
|
|
27
|
+
private isInitialTextEdited;
|
|
28
|
+
private dragCanvas;
|
|
29
|
+
private isFhdCustomized;
|
|
30
|
+
private touchEndPoint;
|
|
31
|
+
private panDown;
|
|
32
|
+
private isFhdEditing;
|
|
33
|
+
private currentDrawingShape;
|
|
34
|
+
private initialPrevObj;
|
|
35
|
+
private isCropSelection;
|
|
36
|
+
private isPan;
|
|
37
|
+
private pathAdjustedIndex;
|
|
38
|
+
private touchTime;
|
|
39
|
+
private resizedElement;
|
|
40
|
+
private shapeResizingArgs;
|
|
41
|
+
private shapeMovingArgs;
|
|
42
|
+
private selectionResizingArgs;
|
|
43
|
+
constructor(parent: ImageEditor);
|
|
44
|
+
destroy(): void;
|
|
45
|
+
private addEventListener;
|
|
46
|
+
private removeEventListener;
|
|
47
|
+
private selection;
|
|
48
|
+
getModuleName(): string;
|
|
49
|
+
private updatePrivateVariables;
|
|
50
|
+
private reset;
|
|
51
|
+
private performTabAction;
|
|
52
|
+
private selMouseUpEvent;
|
|
53
|
+
private getMouseCursor;
|
|
54
|
+
private setCursor;
|
|
55
|
+
private setCursorForPath;
|
|
56
|
+
private setCursorForLineArrow;
|
|
57
|
+
private setCursorForRotatedObject;
|
|
58
|
+
private adjustCursorStylesForRotatedState;
|
|
59
|
+
private getResizeElement;
|
|
60
|
+
private setCursorForFreehandDrawing;
|
|
61
|
+
private setCursorFromObj;
|
|
62
|
+
private isInside;
|
|
63
|
+
private updateActivePoint;
|
|
64
|
+
private triggerShapeChange;
|
|
65
|
+
private setDragWidth;
|
|
66
|
+
private setDragHeight;
|
|
67
|
+
private limitDrag;
|
|
68
|
+
private preventDraggingInvertly;
|
|
69
|
+
private preventTextDraggingInvertly;
|
|
70
|
+
private preventInverseResize;
|
|
71
|
+
private getScaleRatio;
|
|
72
|
+
private updateNWPoints;
|
|
73
|
+
private updateNPoints;
|
|
74
|
+
private updateNEPoints;
|
|
75
|
+
private updateWPoints;
|
|
76
|
+
private updateEPoints;
|
|
77
|
+
private updateSWPoints;
|
|
78
|
+
private updateSPoints;
|
|
79
|
+
private updateSEPoints;
|
|
80
|
+
private adjustNWPoints;
|
|
81
|
+
private adjustNEPoints;
|
|
82
|
+
private adjustSWPoints;
|
|
83
|
+
private adjustSEPoints;
|
|
84
|
+
private adjustRotationPoints;
|
|
85
|
+
private rotatePoints;
|
|
86
|
+
private setResizedValue;
|
|
87
|
+
private getResizeDirection;
|
|
88
|
+
private getResizedElement;
|
|
89
|
+
private updateCursorStyles;
|
|
90
|
+
private updateCursorStylesForLineArrow;
|
|
91
|
+
private updateCursorStylesForPath;
|
|
92
|
+
private setTextSelection;
|
|
93
|
+
private setActivePoint;
|
|
94
|
+
private mouseDownEventHandler;
|
|
95
|
+
private getImagePoints;
|
|
96
|
+
private clickEvent;
|
|
97
|
+
private mouseMoveEventHandler;
|
|
98
|
+
private mouseUpEventHandler;
|
|
99
|
+
private adjustActObjForLineArrow;
|
|
100
|
+
private updPtCollForShpRot;
|
|
101
|
+
private setXYPoints;
|
|
102
|
+
private getCurrentIndex;
|
|
103
|
+
private isShapeClick;
|
|
104
|
+
private isShapeTouch;
|
|
105
|
+
private isFreehandDrawTouch;
|
|
106
|
+
private applyObj;
|
|
107
|
+
private applyCurrShape;
|
|
108
|
+
private canvasMouseDownHandler;
|
|
109
|
+
private canvasMouseMoveHandler;
|
|
110
|
+
private canvasMouseUpHandler;
|
|
111
|
+
private touchStartHandler;
|
|
112
|
+
private keyDownEventHandler;
|
|
113
|
+
private isKeyBoardCrop;
|
|
114
|
+
private beforeSaveEvent;
|
|
115
|
+
private handleScroll;
|
|
116
|
+
private textKeyDown;
|
|
117
|
+
private clearSelection;
|
|
118
|
+
private setDragDirection;
|
|
119
|
+
private calcShapeRatio;
|
|
120
|
+
private getScale;
|
|
121
|
+
private findTarget;
|
|
122
|
+
private findTargetObj;
|
|
123
|
+
private shapeEvent;
|
|
124
|
+
private targetTouches;
|
|
125
|
+
private calculateScale;
|
|
126
|
+
private getDistance;
|
|
127
|
+
private redrawShape;
|
|
128
|
+
private setTimer;
|
|
129
|
+
private applyCurrActObj;
|
|
130
|
+
private getCurrentFlipState;
|
|
131
|
+
private setTextBoxStylesToActObj;
|
|
132
|
+
private rgbToHex;
|
|
133
|
+
private componentToHex;
|
|
134
|
+
private deleteItem;
|
|
135
|
+
private updateFreehandDrawColorChange;
|
|
136
|
+
private updatePrevShapeSettings;
|
|
137
|
+
private getRectanglePoints;
|
|
138
|
+
private getTransRotationPoint;
|
|
139
|
+
}
|