@syncfusion/ej2-image-editor 30.2.5 → 31.1.17
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/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 +7 -39
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +7 -39
- 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/dist/ts/image-editor/action/crop.d.ts +44 -0
- package/dist/ts/image-editor/action/crop.ts +867 -0
- package/dist/ts/image-editor/action/draw.d.ts +187 -0
- package/dist/ts/image-editor/action/draw.ts +4924 -0
- package/dist/ts/image-editor/action/export.d.ts +29 -0
- package/dist/ts/image-editor/action/export.ts +509 -0
- package/dist/ts/image-editor/action/filter.d.ts +48 -0
- package/dist/ts/image-editor/action/filter.ts +872 -0
- package/dist/ts/image-editor/action/freehand-draw.d.ts +68 -0
- package/dist/ts/image-editor/action/freehand-draw.ts +1135 -0
- package/dist/ts/image-editor/action/index.d.ts +9 -0
- package/dist/ts/image-editor/action/index.ts +9 -0
- package/dist/ts/image-editor/action/selection.d.ts +178 -0
- package/dist/ts/image-editor/action/selection.ts +5241 -0
- package/dist/ts/image-editor/action/shape.d.ts +130 -0
- package/dist/ts/image-editor/action/shape.ts +3917 -0
- package/dist/ts/image-editor/action/transform.d.ts +77 -0
- package/dist/ts/image-editor/action/transform.ts +2008 -0
- package/dist/ts/image-editor/action/undo-redo.d.ts +52 -0
- package/dist/ts/image-editor/action/undo-redo.ts +1169 -0
- package/dist/ts/image-editor/base/enum.d.ts +277 -0
- package/dist/ts/image-editor/base/enum.ts +288 -0
- package/dist/ts/image-editor/base/image-editor-model.d.ts +770 -0
- package/dist/ts/image-editor/base/image-editor.d.ts +1928 -0
- package/dist/ts/image-editor/base/image-editor.ts +5496 -0
- package/dist/ts/image-editor/base/index.d.ts +4 -0
- package/dist/ts/image-editor/base/index.ts +4 -0
- package/dist/ts/image-editor/base/interface.d.ts +1637 -0
- package/dist/ts/image-editor/base/interface.ts +1709 -0
- package/dist/ts/image-editor/index.d.ts +3 -0
- package/dist/ts/image-editor/index.ts +3 -0
- package/dist/ts/image-editor/renderer/index.d.ts +1 -0
- package/dist/ts/image-editor/renderer/index.ts +1 -0
- package/dist/ts/image-editor/renderer/toolbar.d.ts +171 -0
- package/dist/ts/image-editor/renderer/toolbar.ts +6356 -0
- package/dist/ts/index.d.ts +4 -0
- package/dist/ts/index.ts +4 -0
- package/package.json +47 -15
- package/src/image-editor/action/export.js +1 -1
- package/src/image-editor/action/freehand-draw.d.ts +0 -1
- package/src/image-editor/action/freehand-draw.js +3 -25
- package/src/image-editor/action/undo-redo.js +3 -13
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ImageEditor } from '../index';
|
|
2
|
+
export declare class Shape {
|
|
3
|
+
private parent;
|
|
4
|
+
private lowerContext;
|
|
5
|
+
private upperContext;
|
|
6
|
+
private textSettings;
|
|
7
|
+
private strokeSettings;
|
|
8
|
+
private keyHistory;
|
|
9
|
+
private prevObj;
|
|
10
|
+
private shapeImg;
|
|
11
|
+
private preventFrameAnnotation;
|
|
12
|
+
private redactType;
|
|
13
|
+
constructor(parent: ImageEditor);
|
|
14
|
+
destroy(): void;
|
|
15
|
+
private addEventListener;
|
|
16
|
+
private removeEventListener;
|
|
17
|
+
private shape;
|
|
18
|
+
getModuleName(): string;
|
|
19
|
+
private initShapePvtProps;
|
|
20
|
+
private reset;
|
|
21
|
+
private drawEllipse;
|
|
22
|
+
private drawLine;
|
|
23
|
+
private drawPath;
|
|
24
|
+
private drawArrow;
|
|
25
|
+
private drawRectangle;
|
|
26
|
+
private drawRedact;
|
|
27
|
+
private drawText;
|
|
28
|
+
private initializeShape;
|
|
29
|
+
private updateWidthHeight;
|
|
30
|
+
private setDimension;
|
|
31
|
+
private getArrowType;
|
|
32
|
+
private drawShape;
|
|
33
|
+
private initShapeProps;
|
|
34
|
+
private setPointCollForLineAndArrow;
|
|
35
|
+
private prevObjColl;
|
|
36
|
+
private drawShapeText;
|
|
37
|
+
private drawShapeImageEvent;
|
|
38
|
+
private setTransformColl;
|
|
39
|
+
private drawShapeTextEvent;
|
|
40
|
+
private initializeTextShape;
|
|
41
|
+
private drawImage;
|
|
42
|
+
private redrawActObj;
|
|
43
|
+
private apply;
|
|
44
|
+
private setCenterPoints;
|
|
45
|
+
private updSelChangeEventArgs;
|
|
46
|
+
private updateShapeChangeEventArgs;
|
|
47
|
+
private addLetter;
|
|
48
|
+
private redrawText;
|
|
49
|
+
private updateTextFromTextArea;
|
|
50
|
+
private iterateObjColl;
|
|
51
|
+
private getSmallestIndex;
|
|
52
|
+
private isIndexInObjColl;
|
|
53
|
+
private updImgRatioForActObj;
|
|
54
|
+
private zoomObjColl;
|
|
55
|
+
private straightenPath;
|
|
56
|
+
private straightenFHD;
|
|
57
|
+
private straightenPoints;
|
|
58
|
+
private straightenShapes;
|
|
59
|
+
private straightenShapePoints;
|
|
60
|
+
private redrawObj;
|
|
61
|
+
private updateCurrentActiveObjPoint;
|
|
62
|
+
private rotateObjColl;
|
|
63
|
+
private rotateLineArrowObj;
|
|
64
|
+
private flipLineArrowObj;
|
|
65
|
+
private lineArrowHorizontalFlip;
|
|
66
|
+
private lineArrowVerticalFlip;
|
|
67
|
+
private getRotDegOfShape;
|
|
68
|
+
private renderTextArea;
|
|
69
|
+
private setTextBoxWidth;
|
|
70
|
+
private setTextBoxHeight;
|
|
71
|
+
private updatePathRatio;
|
|
72
|
+
private stopPathDrawing;
|
|
73
|
+
private findTextTarget;
|
|
74
|
+
private getTextBoxPosition;
|
|
75
|
+
private setFlipState;
|
|
76
|
+
private fileChanged;
|
|
77
|
+
private onLoadImgShape;
|
|
78
|
+
private updateImgCanvas;
|
|
79
|
+
private updateObj;
|
|
80
|
+
private resizeImage;
|
|
81
|
+
private setTextBoxPos;
|
|
82
|
+
private setTextBoxPoints;
|
|
83
|
+
private selectedText;
|
|
84
|
+
private panObjColl;
|
|
85
|
+
private updateFontStyles;
|
|
86
|
+
private applyFontStyle;
|
|
87
|
+
private getFontStyleArray;
|
|
88
|
+
private updateFontStyle;
|
|
89
|
+
private updateArrowRatio;
|
|
90
|
+
private updateArrowSize;
|
|
91
|
+
private updateFontRatio;
|
|
92
|
+
private updateFontSize;
|
|
93
|
+
private updateObjColl;
|
|
94
|
+
private pushActItemIntoObj;
|
|
95
|
+
private clearActObj;
|
|
96
|
+
private refreshActiveObj;
|
|
97
|
+
private applyActObj;
|
|
98
|
+
private getNewShapeId;
|
|
99
|
+
private getNewOrder;
|
|
100
|
+
private getHighestOrder;
|
|
101
|
+
private getLowestOrder;
|
|
102
|
+
private alignTextAreaIntoCanvas;
|
|
103
|
+
private transformTextArea;
|
|
104
|
+
private getTextAreaWidth;
|
|
105
|
+
private getRedactObjDetails;
|
|
106
|
+
private getObjDetails;
|
|
107
|
+
private getFreehandDrawDetails;
|
|
108
|
+
private getShapeSetting;
|
|
109
|
+
private getShapeSettings;
|
|
110
|
+
private getRedactSettings;
|
|
111
|
+
private isPointsInRange;
|
|
112
|
+
private alignRotateFlipColl;
|
|
113
|
+
private popForDefaultTransformedState;
|
|
114
|
+
private popForDefaultFlipState;
|
|
115
|
+
private popForDefaultRotateState;
|
|
116
|
+
private selectShape;
|
|
117
|
+
private deleteShape;
|
|
118
|
+
private getMaxText;
|
|
119
|
+
private getLinePoints;
|
|
120
|
+
private getSlope;
|
|
121
|
+
private getIntercept;
|
|
122
|
+
private setPointCollForShapeRotation;
|
|
123
|
+
private getSquarePointForRotatedShape;
|
|
124
|
+
private updateZOrder;
|
|
125
|
+
private reArrangeObjColl;
|
|
126
|
+
private reorderRedact;
|
|
127
|
+
private updateShapeColl;
|
|
128
|
+
private reUpdateShapeColl;
|
|
129
|
+
private drawAnnotations;
|
|
130
|
+
}
|