@syncfusion/ej2-image-editor 22.2.11 → 23.1.38
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/CHANGELOG.md +19 -0
- package/dist/ej2-image-editor.umd.min.js +3 -3
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +4446 -678
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +4409 -632
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +3 -3
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +12 -12
- package/src/image-editor/action/crop.js +47 -30
- package/src/image-editor/action/draw.d.ts +16 -0
- package/src/image-editor/action/draw.js +827 -81
- package/src/image-editor/action/export.d.ts +3 -0
- package/src/image-editor/action/export.js +84 -20
- package/src/image-editor/action/filter.d.ts +0 -1
- package/src/image-editor/action/filter.js +28 -41
- package/src/image-editor/action/freehand-draw.d.ts +1 -0
- package/src/image-editor/action/freehand-draw.js +92 -56
- package/src/image-editor/action/selection.d.ts +6 -0
- package/src/image-editor/action/selection.js +417 -68
- package/src/image-editor/action/shape.d.ts +8 -0
- package/src/image-editor/action/shape.js +303 -91
- package/src/image-editor/action/transform.d.ts +9 -0
- package/src/image-editor/action/transform.js +402 -52
- package/src/image-editor/action/undo-redo.d.ts +1 -0
- package/src/image-editor/action/undo-redo.js +138 -10
- package/src/image-editor/base/enum.d.ts +38 -1
- package/src/image-editor/base/enum.js +39 -0
- package/src/image-editor/base/image-editor-model.d.ts +16 -2
- package/src/image-editor/base/image-editor.d.ts +142 -7
- package/src/image-editor/base/image-editor.js +719 -70
- package/src/image-editor/base/interface.d.ts +233 -2
- package/src/image-editor/renderer/toolbar.d.ts +25 -0
- package/src/image-editor/renderer/toolbar.js +1274 -72
- package/styles/bootstrap-dark.css +73 -1
- package/styles/bootstrap.css +73 -1
- package/styles/bootstrap4.css +73 -1
- package/styles/bootstrap5-dark.css +73 -1
- package/styles/bootstrap5.css +73 -1
- package/styles/fabric-dark.css +73 -1
- package/styles/fabric.css +73 -1
- package/styles/fluent-dark.css +73 -1
- package/styles/fluent.css +73 -1
- package/styles/highcontrast-light.css +75 -3
- package/styles/highcontrast.css +74 -7
- package/styles/image-editor/_bootstrap-dark-definition.scss +1 -0
- package/styles/image-editor/_bootstrap-definition.scss +1 -0
- package/styles/image-editor/_bootstrap4-definition.scss +1 -0
- package/styles/image-editor/_bootstrap5-definition.scss +1 -0
- package/styles/image-editor/_fabric-dark-definition.scss +1 -0
- package/styles/image-editor/_fabric-definition.scss +1 -0
- package/styles/image-editor/_fluent-definition.scss +1 -0
- package/styles/image-editor/_fusionnew-definition.scss +1 -0
- package/styles/image-editor/_highcontrast-definition.scss +2 -1
- package/styles/image-editor/_highcontrast-light-definition.scss +2 -1
- package/styles/image-editor/_layout.scss +98 -0
- package/styles/image-editor/_material-dark-definition.scss +1 -0
- package/styles/image-editor/_material-definition.scss +1 -0
- package/styles/image-editor/_material3-definition.scss +2 -1
- package/styles/image-editor/_tailwind-definition.scss +1 -0
- package/styles/image-editor/_theme.scss +4 -2
- package/styles/image-editor/bootstrap-dark.css +73 -1
- package/styles/image-editor/bootstrap-dark.scss +1 -1
- package/styles/image-editor/bootstrap.css +73 -1
- package/styles/image-editor/bootstrap.scss +1 -1
- package/styles/image-editor/bootstrap4.css +73 -1
- package/styles/image-editor/bootstrap4.scss +1 -1
- package/styles/image-editor/bootstrap5-dark.css +73 -1
- package/styles/image-editor/bootstrap5-dark.scss +1 -1
- package/styles/image-editor/bootstrap5.css +73 -1
- package/styles/image-editor/bootstrap5.scss +1 -1
- package/styles/image-editor/fabric-dark.css +73 -1
- package/styles/image-editor/fabric-dark.scss +1 -1
- package/styles/image-editor/fabric.css +73 -1
- package/styles/image-editor/fabric.scss +1 -1
- package/styles/image-editor/fluent-dark.css +73 -1
- package/styles/image-editor/fluent-dark.scss +1 -1
- package/styles/image-editor/fluent.css +73 -1
- package/styles/image-editor/fluent.scss +1 -1
- package/styles/image-editor/highcontrast-light.css +75 -3
- package/styles/image-editor/highcontrast-light.scss +1 -1
- package/styles/image-editor/highcontrast.css +74 -7
- package/styles/image-editor/highcontrast.scss +1 -1
- package/styles/image-editor/icons/_bootstrap-dark.scss +1 -0
- package/styles/image-editor/icons/_bootstrap.scss +1 -0
- package/styles/image-editor/icons/_bootstrap4.scss +1 -0
- package/styles/image-editor/icons/_bootstrap5.scss +1 -0
- package/styles/image-editor/icons/_fabric-dark.scss +1 -0
- package/styles/image-editor/icons/_fabric.scss +1 -0
- package/styles/image-editor/icons/_fluent.scss +1 -0
- package/styles/image-editor/icons/_fusionnew.scss +1 -0
- package/styles/image-editor/icons/_highcontrast-light.scss +1 -0
- package/styles/image-editor/icons/_highcontrast.scss +1 -0
- package/styles/image-editor/icons/_material-dark.scss +1 -0
- package/styles/image-editor/icons/_material.scss +1 -0
- package/styles/image-editor/icons/_material3.scss +1 -0
- package/styles/image-editor/icons/_tailwind.scss +1 -0
- package/styles/image-editor/material-dark.css +73 -2
- package/styles/image-editor/material-dark.scss +1 -1
- package/styles/image-editor/material.css +73 -2
- package/styles/image-editor/material.scss +1 -1
- package/styles/image-editor/material3-dark.css +78 -4
- package/styles/image-editor/material3-dark.scss +1 -1
- package/styles/image-editor/material3.css +78 -4
- package/styles/image-editor/material3.scss +1 -1
- package/styles/image-editor/tailwind-dark.css +73 -2
- package/styles/image-editor/tailwind-dark.scss +1 -1
- package/styles/image-editor/tailwind.css +73 -2
- package/styles/image-editor/tailwind.scss +1 -1
- package/styles/material-dark.css +73 -2
- package/styles/material.css +73 -2
- package/styles/material3-dark.css +78 -4
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +78 -4
- package/styles/material3.scss +1 -1
- package/styles/tailwind-dark.css +73 -2
- package/styles/tailwind.css +73 -2
|
@@ -14,6 +14,9 @@ export declare class Export {
|
|
|
14
14
|
private toSVGImg;
|
|
15
15
|
private toBlobFn;
|
|
16
16
|
private exportToCanvas;
|
|
17
|
+
private drawAnnotation;
|
|
18
|
+
private downScaleImgCanvas;
|
|
19
|
+
private updateFrame;
|
|
17
20
|
private downloadImg;
|
|
18
21
|
private exportTransformedImage;
|
|
19
22
|
private exportRotate;
|
|
@@ -39,6 +39,9 @@ var Export = /** @class */ (function () {
|
|
|
39
39
|
case 'exportToCanvas':
|
|
40
40
|
this.exportToCanvas(args.value['object']);
|
|
41
41
|
break;
|
|
42
|
+
case 'drawAnnotation':
|
|
43
|
+
this.drawAnnotation(args.value['context'], args.value['ratio']);
|
|
44
|
+
break;
|
|
42
45
|
}
|
|
43
46
|
};
|
|
44
47
|
Export.prototype.getModuleName = function () {
|
|
@@ -165,13 +168,31 @@ var Export = /** @class */ (function () {
|
|
|
165
168
|
var parent = this.parent;
|
|
166
169
|
var width;
|
|
167
170
|
var height;
|
|
168
|
-
if (parent.
|
|
171
|
+
if (this.parent.aspectWidth) {
|
|
172
|
+
if (!isBlazor()) {
|
|
173
|
+
parent.notify('toolbar', { prop: 'resizeClick', value: { bool: false } });
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
parent.performResizeClick();
|
|
177
|
+
}
|
|
178
|
+
parent.currentToolbar = 'resize-toolbar';
|
|
179
|
+
parent.okBtn();
|
|
180
|
+
if (parent.transform.degree % 90 === 0 && parent.transform.degree % 180 !== 0) {
|
|
181
|
+
width = this.parent.aspectHeight;
|
|
182
|
+
height = this.parent.aspectWidth;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
width = this.parent.aspectWidth;
|
|
186
|
+
height = this.parent.aspectHeight;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
else if (parent.currSelectionPoint) {
|
|
169
190
|
width = parent.img.srcWidth;
|
|
170
191
|
height = parent.img.srcHeight;
|
|
171
192
|
}
|
|
172
193
|
else {
|
|
173
|
-
width = parent.
|
|
174
|
-
height = parent.
|
|
194
|
+
width = parent.baseImgCanvas.width;
|
|
195
|
+
height = parent.baseImgCanvas.height;
|
|
175
196
|
}
|
|
176
197
|
var obj = { width: 0, height: 0 };
|
|
177
198
|
parent.notify('crop', { prop: 'calcRatio', onPropertyChange: false,
|
|
@@ -199,16 +220,31 @@ var Export = /** @class */ (function () {
|
|
|
199
220
|
tempCanvas.style.maxWidth = maxDimension.width + 'px';
|
|
200
221
|
tempCanvas.style.maxHeight = maxDimension.height + 'px';
|
|
201
222
|
var temp = this.lowerContext.filter;
|
|
202
|
-
parent.notify('filter', { prop: 'updateBrightFilter', onPropertyChange: false });
|
|
203
223
|
tempContext.filter = this.lowerContext.filter;
|
|
204
|
-
|
|
224
|
+
this.downScaleImgCanvas(tempContext, width, height);
|
|
225
|
+
this.updateFrame(tempContext);
|
|
205
226
|
this.lowerContext.filter = temp;
|
|
206
227
|
if (parent.transform.degree !== 0 || parent.transform.currFlipState !== '') {
|
|
207
228
|
this.updateSaveContext(tempContext);
|
|
208
229
|
this.exportTransformedImage(tempContext);
|
|
209
230
|
}
|
|
231
|
+
this.drawAnnotation(tempContext, ratio);
|
|
232
|
+
if (parent.isCircleCrop) {
|
|
233
|
+
parent.notify('crop', { prop: 'cropCircle', onPropertyChange: false,
|
|
234
|
+
value: { context: tempContext, isSave: true, isFlip: null } });
|
|
235
|
+
}
|
|
236
|
+
this.updateFrame(tempContext, true);
|
|
237
|
+
this.lowerContext.filter = tempContextFilter;
|
|
238
|
+
parent.canvasFilter = tempContextFilter;
|
|
239
|
+
if (object) {
|
|
240
|
+
object['canvas'] = tempCanvas;
|
|
241
|
+
}
|
|
242
|
+
return tempCanvas;
|
|
243
|
+
};
|
|
244
|
+
Export.prototype.drawAnnotation = function (tempContext, ratio) {
|
|
245
|
+
var parent = this.parent;
|
|
210
246
|
if (parent.objColl.length > 0) {
|
|
211
|
-
var
|
|
247
|
+
var temp = tempContext.filter;
|
|
212
248
|
tempContext.filter = 'none';
|
|
213
249
|
var tempObjColl = extend([], parent.objColl, [], true);
|
|
214
250
|
for (var i = 0, len = parent.objColl.length; i < len; i++) {
|
|
@@ -239,10 +275,15 @@ var Export = /** @class */ (function () {
|
|
|
239
275
|
(parent.objColl[i].pointColl[l].y - parent.img.destTop) * ratio.height;
|
|
240
276
|
}
|
|
241
277
|
}
|
|
278
|
+
else if (parent.objColl[i].shape === 'image') {
|
|
279
|
+
parent.activeObj = extend({}, parent.objColl[i], {}, true);
|
|
280
|
+
parent.notify('selection', { prop: 'upgradeImageQuality', onPropertyChange: false });
|
|
281
|
+
parent.objColl[i] = extend({}, parent.activeObj, {}, true);
|
|
282
|
+
}
|
|
242
283
|
parent.notify('draw', { prop: 'drawObject', onPropertyChange: false, value: { canvas: 'saveContext', obj: parent.objColl[i], isCropRatio: null,
|
|
243
284
|
points: null, isPreventDrag: true, saveContext: tempContext, isPreventSelection: null } });
|
|
244
285
|
}
|
|
245
|
-
tempContext.filter =
|
|
286
|
+
tempContext.filter = temp;
|
|
246
287
|
parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
|
|
247
288
|
parent.objColl = tempObjColl;
|
|
248
289
|
}
|
|
@@ -263,16 +304,35 @@ var Export = /** @class */ (function () {
|
|
|
263
304
|
value: { context: tempContext, points: null } });
|
|
264
305
|
parent.pointColl = tempPointColl;
|
|
265
306
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
307
|
+
};
|
|
308
|
+
Export.prototype.downScaleImgCanvas = function (ctx, width, height) {
|
|
309
|
+
var parent = this.parent;
|
|
310
|
+
var canvas = parent.baseImgCanvas;
|
|
311
|
+
var img = parent.baseImg;
|
|
312
|
+
var obj = { width: 0, height: 0 };
|
|
313
|
+
parent.notify('transform', { prop: 'calcMaxDimension', onPropertyChange: false,
|
|
314
|
+
value: { width: img.width, height: img.height, obj: obj, isImgShape: null } });
|
|
315
|
+
if (obj['width'] > width && obj['height'] > height) {
|
|
316
|
+
var tempCanvas = parent.createElement('canvas', {
|
|
317
|
+
id: parent.element.id + '_downScaleCanvas', attrs: { name: 'canvasImage' }
|
|
318
|
+
});
|
|
319
|
+
tempCanvas.width = this.parent.img.srcWidth;
|
|
320
|
+
tempCanvas.height = this.parent.img.srcHeight;
|
|
321
|
+
tempCanvas.getContext('2d').drawImage(canvas, parent.img.srcLeft, parent.img.srcTop, parent.img.srcWidth, parent.img.srcHeight, 0, 0, tempCanvas.width, tempCanvas.height);
|
|
322
|
+
parent.notify('draw', { prop: 'downScale', value: { canvas: tempCanvas, width: width, height: height } });
|
|
323
|
+
ctx.drawImage(tempCanvas, 0, 0);
|
|
269
324
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
325
|
+
else {
|
|
326
|
+
ctx.drawImage(parent.baseImgCanvas, parent.img.srcLeft, parent.img.srcTop, parent.img.srcWidth, parent.img.srcHeight, 0, 0, width, height);
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
Export.prototype.updateFrame = function (tempContext, isAnnotation) {
|
|
330
|
+
if (this.parent.frameObj.type !== 'none') {
|
|
331
|
+
var temp = tempContext.filter;
|
|
332
|
+
tempContext.filter = 'none';
|
|
333
|
+
this.parent.notify('draw', { prop: 'applyFrame', value: { ctx: tempContext, frame: this.parent.frameObj.type, preventImg: isAnnotation } });
|
|
334
|
+
tempContext.filter = temp;
|
|
274
335
|
}
|
|
275
|
-
return tempCanvas;
|
|
276
336
|
};
|
|
277
337
|
Export.prototype.downloadImg = function (blob, fileName) {
|
|
278
338
|
var a = document.createElement('a');
|
|
@@ -333,18 +393,22 @@ var Export = /** @class */ (function () {
|
|
|
333
393
|
var newWidth;
|
|
334
394
|
var newHeight;
|
|
335
395
|
if (degree % 90 === 0 && degree % 180 !== 0) {
|
|
336
|
-
newWidth = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.
|
|
337
|
-
newHeight = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.
|
|
396
|
+
newWidth = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.baseImgCanvas.height : this.parent.img.srcHeight;
|
|
397
|
+
newHeight = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.baseImgCanvas.width : this.parent.img.srcWidth;
|
|
338
398
|
}
|
|
339
399
|
else if (degree % 180 === 0 || degree === 0) {
|
|
340
|
-
newWidth = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.
|
|
341
|
-
newHeight = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.
|
|
400
|
+
newWidth = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.baseImgCanvas.width : this.parent.img.srcWidth;
|
|
401
|
+
newHeight = isNullOrUndefined(this.parent.currSelectionPoint) ? this.parent.baseImgCanvas.height : this.parent.img.srcHeight;
|
|
402
|
+
}
|
|
403
|
+
if (!isNullOrUndefined(this.parent.aspectWidth)) {
|
|
404
|
+
newWidth = this.parent.aspectWidth;
|
|
405
|
+
newHeight = this.parent.aspectHeight;
|
|
342
406
|
}
|
|
343
407
|
tempCanvas.width = newWidth;
|
|
344
408
|
tempCanvas.height = newHeight;
|
|
345
409
|
var obj = { width: 0, height: 0 };
|
|
346
410
|
this.parent.notify('transform', { prop: 'calcMaxDimension', onPropertyChange: false,
|
|
347
|
-
value: { width: newWidth, height: newHeight, obj: obj } });
|
|
411
|
+
value: { width: newWidth, height: newHeight, obj: obj, isImgShape: null } });
|
|
348
412
|
var maxDimension = obj;
|
|
349
413
|
tempCanvas.style.maxWidth = maxDimension.width + 'px';
|
|
350
414
|
tempCanvas.style.maxHeight = maxDimension.height + 'px';
|
|
@@ -2,9 +2,9 @@ import { isNullOrUndefined, extend } from '@syncfusion/ej2-base';
|
|
|
2
2
|
var Filter = /** @class */ (function () {
|
|
3
3
|
function Filter(parent) {
|
|
4
4
|
this.adjustmentLevel = { brightness: 0, contrast: 0, hue: 0, opacity: 100, saturation: 0, blur: 0,
|
|
5
|
-
exposure: 0, sharpen: false, bw: false }; // for toolbar slider value
|
|
5
|
+
exposure: 0, transparency: 100, sharpen: false, bw: false }; // for toolbar slider value
|
|
6
6
|
this.tempAdjustmentLevel = { brightness: 0, contrast: 0, hue: 0, opacity: 100, saturation: 0, blur: 0,
|
|
7
|
-
exposure: 0, sharpen: false, bw: false }; // for temp toolbar slider value
|
|
7
|
+
exposure: 0, transparency: 100, sharpen: false, bw: false }; // for temp toolbar slider value
|
|
8
8
|
this.adjustmentValue = ''; // for internal slider value
|
|
9
9
|
this.isBrightnessAdjusted = false;
|
|
10
10
|
this.appliedFilter = '';
|
|
@@ -37,9 +37,6 @@ var Filter = /** @class */ (function () {
|
|
|
37
37
|
case 'update-finetunes':
|
|
38
38
|
this.updateFinetunes();
|
|
39
39
|
break;
|
|
40
|
-
case 'updateBrightFilter':
|
|
41
|
-
this.updateBrightFilter();
|
|
42
|
-
break;
|
|
43
40
|
case 'set-adjustment':
|
|
44
41
|
this.setAdjustment(args.value['operation']);
|
|
45
42
|
break;
|
|
@@ -59,6 +56,12 @@ var Filter = /** @class */ (function () {
|
|
|
59
56
|
this.getCurrentObj(args.value['object']);
|
|
60
57
|
break;
|
|
61
58
|
case 'getAdjustmentLevel':
|
|
59
|
+
if (isNullOrUndefined(this.parent.activeObj.imageTransparency)) {
|
|
60
|
+
this.adjustmentLevel.transparency = 100;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
this.adjustmentLevel.transparency = this.parent.activeObj.imageTransparency * 100;
|
|
64
|
+
}
|
|
62
65
|
args.value['obj']['adjustmentLevel'] = this.adjustmentLevel;
|
|
63
66
|
break;
|
|
64
67
|
case 'setAdjustmentLevel':
|
|
@@ -96,19 +99,11 @@ var Filter = /** @class */ (function () {
|
|
|
96
99
|
Filter.prototype.getModuleName = function () {
|
|
97
100
|
return 'filter';
|
|
98
101
|
};
|
|
99
|
-
Filter.prototype.updateBrightFilter = function () {
|
|
100
|
-
var splitWords = this.lowerContext.filter.split(' ');
|
|
101
|
-
if (this.isBrightnessAdjusted && splitWords.length > 0 && !isNullOrUndefined(splitWords[4])) {
|
|
102
|
-
var opacityValue = parseFloat(splitWords[4].split('(')[1]);
|
|
103
|
-
splitWords[4] = 'opacity(' + (opacityValue - 0.3) + ')';
|
|
104
|
-
this.lowerContext.filter = splitWords.join(' ');
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
102
|
Filter.prototype.reset = function () {
|
|
108
103
|
this.adjustmentLevel = { brightness: 0, contrast: 0, hue: 0, opacity: 100, saturation: 0,
|
|
109
|
-
blur: 0, exposure: 0, sharpen: false, bw: false };
|
|
104
|
+
blur: 0, exposure: 0, transparency: 100, sharpen: false, bw: false };
|
|
110
105
|
this.tempAdjustmentLevel = { brightness: 0, contrast: 0, hue: 0, opacity: 100, saturation: 0,
|
|
111
|
-
blur: 0, exposure: 0, sharpen: false, bw: false };
|
|
106
|
+
blur: 0, exposure: 0, transparency: 100, sharpen: false, bw: false };
|
|
112
107
|
this.adjustmentValue = this.parent.getDefaultFilter();
|
|
113
108
|
this.isBrightnessAdjusted = false;
|
|
114
109
|
this.appliedFilter = '';
|
|
@@ -171,7 +166,6 @@ var Filter = /** @class */ (function () {
|
|
|
171
166
|
brightnessValue = parseFloat(splitWords[0].split('(')[1]);
|
|
172
167
|
}
|
|
173
168
|
var brightness = this.getFilterValue(this.adjustmentLevel.brightness);
|
|
174
|
-
var saturation = this.getFilterValue(this.adjustmentLevel.saturation);
|
|
175
169
|
var excludedTypes = ['brightness', 'contrast', 'hue', 'saturation', 'exposure', 'opacity', 'blur'];
|
|
176
170
|
if (excludedTypes.indexOf(type) === -1) {
|
|
177
171
|
if (isNullOrUndefined(isPreview) && (this.adjustmentLevel.sharpen || this.adjustmentLevel.bw)) {
|
|
@@ -185,9 +179,6 @@ var Filter = /** @class */ (function () {
|
|
|
185
179
|
parent.isUndoRedo = false;
|
|
186
180
|
}
|
|
187
181
|
}
|
|
188
|
-
if (brightness !== 1) {
|
|
189
|
-
splitWords[4] = 'opacity(' + (opacityValue - 0.3) + ')';
|
|
190
|
-
}
|
|
191
182
|
var saturate;
|
|
192
183
|
var bright;
|
|
193
184
|
var saturatePercent;
|
|
@@ -195,10 +186,16 @@ var Filter = /** @class */ (function () {
|
|
|
195
186
|
var saturatePercentage;
|
|
196
187
|
switch (type) {
|
|
197
188
|
case 'brightness':
|
|
198
|
-
|
|
199
|
-
value += 0.1;
|
|
200
|
-
}
|
|
189
|
+
value = this.getFilterValue(this.adjustmentLevel.exposure) + (value * 0.005);
|
|
201
190
|
splitWords[0] = 'brightness(' + value + ')';
|
|
191
|
+
if (this.adjustmentLevel.brightness !== 0) {
|
|
192
|
+
value = (this.adjustmentLevel.opacity / 100) - (this.adjustmentLevel.opacity * 0.3) / 100;
|
|
193
|
+
splitWords[4] = 'opacity(' + value + ')';
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
value = this.adjustmentLevel.opacity / 100;
|
|
197
|
+
splitWords[4] = 'opacity(' + value + ')';
|
|
198
|
+
}
|
|
202
199
|
this.adjustmentValue = splitWords.join(' ');
|
|
203
200
|
break;
|
|
204
201
|
case 'contrast':
|
|
@@ -211,9 +208,6 @@ var Filter = /** @class */ (function () {
|
|
|
211
208
|
break;
|
|
212
209
|
case 'saturation':
|
|
213
210
|
splitWords[3] = 'saturate(' + value + '%)';
|
|
214
|
-
if (saturation !== 1) {
|
|
215
|
-
splitWords[0] = 'brightness(' + (brightnessValue + 0.09) + ')';
|
|
216
|
-
}
|
|
217
211
|
this.adjustmentValue = splitWords.join(' ');
|
|
218
212
|
break;
|
|
219
213
|
case 'opacity':
|
|
@@ -221,6 +215,7 @@ var Filter = /** @class */ (function () {
|
|
|
221
215
|
value -= 0.2;
|
|
222
216
|
}
|
|
223
217
|
splitWords[4] = 'opacity(' + value + ')';
|
|
218
|
+
opacityValue = value;
|
|
224
219
|
this.adjustmentValue = splitWords.join(' ');
|
|
225
220
|
break;
|
|
226
221
|
case 'blur':
|
|
@@ -228,9 +223,6 @@ var Filter = /** @class */ (function () {
|
|
|
228
223
|
this.adjustmentValue = splitWords.join(' ');
|
|
229
224
|
break;
|
|
230
225
|
case 'exposure':
|
|
231
|
-
if (brightness !== 1) {
|
|
232
|
-
splitWords[4] = 'opacity(' + (opacityValue - 0.3) + ')';
|
|
233
|
-
}
|
|
234
226
|
if (value > 1) {
|
|
235
227
|
value -= 1;
|
|
236
228
|
value += brightness;
|
|
@@ -346,19 +338,10 @@ var Filter = /** @class */ (function () {
|
|
|
346
338
|
parent.notify('draw', { prop: 'updateCurrTransState', onPropertyChange: false,
|
|
347
339
|
value: { type: 'initial', isPreventDestination: null, isRotatePan: null } });
|
|
348
340
|
this.appliedFilter = this.lowerContext.filter;
|
|
349
|
-
|
|
341
|
+
parent.notify('draw', { prop: 'drawImage', onPropertyChange: false });
|
|
350
342
|
parent.notify('draw', { prop: 'updateCurrTransState', onPropertyChange: false,
|
|
351
343
|
value: { type: 'reverse', isPreventDestination: null, isRotatePan: null } });
|
|
352
344
|
parent.notify('draw', { prop: 'setRotateZoom', onPropertyChange: false, value: { isRotateZoom: false } });
|
|
353
|
-
if (brightness !== 1) {
|
|
354
|
-
splitWords[4] = 'opacity(' + opacityValue + ')';
|
|
355
|
-
}
|
|
356
|
-
else if (saturation !== 1) {
|
|
357
|
-
splitWords[0] = 'brightness(' + brightnessValue + ')';
|
|
358
|
-
}
|
|
359
|
-
if ((type === 'exposure' && brightness !== 1) || (type === 'saturation' && saturation !== 1)) {
|
|
360
|
-
splitWords[0] = 'brightness(' + brightnessValue + ')';
|
|
361
|
-
}
|
|
362
345
|
splitWords = this.setTempFilterValue(brightness, isPreview, splitWords, type);
|
|
363
346
|
if (isNullOrUndefined(isPreview)) {
|
|
364
347
|
this.lowerContext.filter = splitWords.join(' ');
|
|
@@ -422,7 +405,6 @@ var Filter = /** @class */ (function () {
|
|
|
422
405
|
parent.notify('freehand-draw', { prop: 'apply-pen-draw', onPropertyChange: false });
|
|
423
406
|
this.adjustmentLevel["" + type] = value;
|
|
424
407
|
switch (type) {
|
|
425
|
-
case 'brightness':
|
|
426
408
|
case 'contrast':
|
|
427
409
|
case 'exposure':
|
|
428
410
|
value = this.getFilterValue(value);
|
|
@@ -663,8 +645,9 @@ var Filter = /** @class */ (function () {
|
|
|
663
645
|
var obj = { cropZoom: 0, defaultZoom: 0, totalPannedPoint: { x: 0, y: 0 }, totalPannedClientPoint: { x: 0, y: 0 },
|
|
664
646
|
totalPannedInternalPoint: { x: 0, y: 0 }, tempFlipPanPoint: { x: 0, y: 0 }, activeObj: {},
|
|
665
647
|
rotateFlipColl: [], degree: 0, currFlipState: '', zoomFactor: 0, previousZoomValue: 0,
|
|
666
|
-
destPoints: { startX: 0, startY: 0, width: 0, height: 0 },
|
|
667
|
-
srcPoints: { startX: 0, startY: 0, width: 0, height: 0 }, filter: '', isBrightAdjust: this.isBrightnessAdjusted
|
|
648
|
+
destPoints: { startX: 0, startY: 0, width: 0, height: 0 }, frame: 'none',
|
|
649
|
+
srcPoints: { startX: 0, startY: 0, width: 0, height: 0 }, filter: '', isBrightAdjust: this.isBrightnessAdjusted,
|
|
650
|
+
aspectWidth: null, aspectHeight: null };
|
|
668
651
|
obj.cropZoom = parent.transform.cropZoomFactor;
|
|
669
652
|
obj.defaultZoom = parent.transform.defaultZoomFactor;
|
|
670
653
|
obj.zoomFactor = parent.zoomSettings.zoomFactor;
|
|
@@ -682,6 +665,10 @@ var Filter = /** @class */ (function () {
|
|
|
682
665
|
obj.srcPoints = { startX: parent.img.srcLeft, startY: parent.img.srcTop, endX: 0, endY: 0,
|
|
683
666
|
width: parent.img.srcWidth, height: parent.img.srcHeight };
|
|
684
667
|
obj.filter = this.lowerContext.filter;
|
|
668
|
+
obj.aspectWidth = parent.aspectWidth;
|
|
669
|
+
obj.aspectHeight = parent.aspectHeight;
|
|
670
|
+
obj.frame = parent.frameObj.type;
|
|
671
|
+
obj.frameObj = extend({}, parent.frameObj);
|
|
685
672
|
if (dummyObj) {
|
|
686
673
|
dummyObj['currObj'] = obj;
|
|
687
674
|
}
|
|
@@ -251,6 +251,13 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
251
251
|
}
|
|
252
252
|
this.isFreehandPointMoved = false;
|
|
253
253
|
EventHandler.add(canvas, 'mousemove touchmove', this.freehandMoveHandler, this);
|
|
254
|
+
var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
|
|
255
|
+
startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
|
|
256
|
+
strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.parent.activeObj.strokeSettings.strokeWidth,
|
|
257
|
+
points: null };
|
|
258
|
+
var shapeChangingArgs = { action: 'draw-start', previousShapeSettings: shapeSettings,
|
|
259
|
+
currentShapeSettings: shapeSettings };
|
|
260
|
+
this.triggerShapeChanging(shapeChangingArgs);
|
|
254
261
|
};
|
|
255
262
|
FreehandDrawing.prototype.freehandUpHandler = function (e, canvas, context) {
|
|
256
263
|
var rect = canvas.getBoundingClientRect();
|
|
@@ -295,13 +302,20 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
295
302
|
this.selPoints = [];
|
|
296
303
|
this.pointCounter = 0;
|
|
297
304
|
parent.freehandCounter++;
|
|
298
|
-
this.currFHDIdx++;
|
|
299
305
|
this.isFreehandDrawing = false;
|
|
300
306
|
parent.notify('undo-redo', { prop: 'updateUndoRedoColl', onPropertyChange: false,
|
|
301
307
|
value: { operation: 'freehand-draw', previousObj: prevObj, previousObjColl: prevObj.objColl,
|
|
302
308
|
previousPointColl: prevObj.pointColl, previousSelPointColl: prevObj.selPointColl,
|
|
303
309
|
previousCropObj: prevCropObj, previousText: null,
|
|
304
310
|
currentText: null, previousFilter: null, isCircleCrop: null } });
|
|
311
|
+
var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
|
|
312
|
+
startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
|
|
313
|
+
strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.parent.activeObj.strokeSettings.strokeWidth,
|
|
314
|
+
points: this.parent.pointColl[this.currFHDIdx].points };
|
|
315
|
+
var shapeChangingArgs = { action: 'draw-end', previousShapeSettings: shapeSettings,
|
|
316
|
+
currentShapeSettings: shapeSettings };
|
|
317
|
+
this.triggerShapeChanging(shapeChangingArgs);
|
|
318
|
+
this.currFHDIdx++;
|
|
305
319
|
};
|
|
306
320
|
FreehandDrawing.prototype.freehandMoveHandler = function (e) {
|
|
307
321
|
this.isFreehandPointMoved = true;
|
|
@@ -508,39 +522,45 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
508
522
|
parent.pointColl[parent.freehandCounter].flipState = parent.transform.currFlipState;
|
|
509
523
|
parent.freehandCounter++;
|
|
510
524
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
for (var l = 0; l < len - 3; l++) {
|
|
530
|
-
if (parent.points[l + 1] && parent.points[l + 2] && parent.points[l + 2]) {
|
|
531
|
-
controlPoint1 = (this.calcCurveCP(parent.points[l + 0], parent.points[l + 1], parent.points[l + 2])).controlPoint2;
|
|
532
|
-
controlPoint2 = (this.calcCurveCP(parent.points[l + 1], parent.points[l + 2], parent.points[l + 3])).controlPoint1;
|
|
533
|
-
if (l === 0) {
|
|
534
|
-
startPoint = parent.points[l];
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
startPoint = parent.points[l + 1];
|
|
538
|
-
}
|
|
539
|
-
endPoint = parent.points[l + 2];
|
|
525
|
+
if (parent.freehandCounter > 0) {
|
|
526
|
+
for (var n = 0; n < parent.freehandCounter; n++) {
|
|
527
|
+
parent.points = extend([], parent.pointColl[n].points);
|
|
528
|
+
this.pointCounter = 0;
|
|
529
|
+
var len = parent.points.length;
|
|
530
|
+
var controlPoint1 = void 0;
|
|
531
|
+
var controlPoint2 = void 0;
|
|
532
|
+
var startPoint = void 0;
|
|
533
|
+
var endPoint = void 0;
|
|
534
|
+
var minStrokeWidth = void 0;
|
|
535
|
+
var maxStrokeWidth = void 0;
|
|
536
|
+
if (len > 0) {
|
|
537
|
+
context.fillStyle = parent.pointColl[n].strokeColor;
|
|
538
|
+
minStrokeWidth = maxStrokeWidth = this.penStrokeWidth = parent.pointColl[n].strokeWidth;
|
|
539
|
+
}
|
|
540
|
+
if (len === 1) {
|
|
541
|
+
controlPoint1 = controlPoint2 = startPoint = endPoint = parent.points[0];
|
|
540
542
|
this.startDraw(context, controlPoint1, controlPoint2, startPoint, endPoint, minStrokeWidth, maxStrokeWidth);
|
|
541
543
|
}
|
|
544
|
+
for (var l = 0; l < len - 3; l++) {
|
|
545
|
+
if (parent.points[l + 1] && parent.points[l + 2] && parent.points[l + 2]) {
|
|
546
|
+
controlPoint1 = (this.calcCurveCP(parent.points[l + 0], parent.points[l + 1], parent.points[l + 2])).controlPoint2;
|
|
547
|
+
controlPoint2 = (this.calcCurveCP(parent.points[l + 1], parent.points[l + 2], parent.points[l + 3])).controlPoint1;
|
|
548
|
+
if (l === 0) {
|
|
549
|
+
startPoint = parent.points[l];
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
startPoint = parent.points[l + 1];
|
|
553
|
+
}
|
|
554
|
+
endPoint = parent.points[l + 2];
|
|
555
|
+
this.startDraw(context, controlPoint1, controlPoint2, startPoint, endPoint, minStrokeWidth, maxStrokeWidth);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
context.closePath();
|
|
559
|
+
}
|
|
560
|
+
if (context !== this.upperContext) {
|
|
561
|
+
parent.notify('draw', { prop: 'applyFrame', value: { ctx: this.lowerContext, frame: parent.frameObj.type, preventImg: true } });
|
|
562
|
+
this.upperContext.clearRect(0, 0, parent.upperCanvas.width, parent.upperCanvas.height);
|
|
542
563
|
}
|
|
543
|
-
context.closePath();
|
|
544
564
|
}
|
|
545
565
|
context.filter = temp;
|
|
546
566
|
};
|
|
@@ -626,9 +646,11 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
626
646
|
if (!isBlazor()) {
|
|
627
647
|
parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
|
|
628
648
|
}
|
|
649
|
+
else {
|
|
650
|
+
parent.updateToolbar(parent.element, 'imageLoaded');
|
|
651
|
+
}
|
|
629
652
|
};
|
|
630
653
|
FreehandDrawing.prototype.selectFhd = function (index) {
|
|
631
|
-
var _this = this;
|
|
632
654
|
var parent = this.parent;
|
|
633
655
|
parent.notify('selection', { prop: 'setFreehandDrawEditing', onPropertyChange: false, value: { bool: true } });
|
|
634
656
|
if (index || index === 0) {
|
|
@@ -659,29 +681,7 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
659
681
|
points: parent.pointColl[this.fhdSelIdx].points };
|
|
660
682
|
var shapeChangingArgs = { action: 'select', previousShapeSettings: shapeSettings,
|
|
661
683
|
currentShapeSettings: shapeSettings };
|
|
662
|
-
|
|
663
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
664
|
-
parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
|
|
665
|
-
parent.activeObj.strokeSettings.strokeColor = parent.pointColl[_this.fhdSelIdx].strokeColor =
|
|
666
|
-
shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
667
|
-
parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[_this.fhdSelIdx].strokeWidth =
|
|
668
|
-
shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
669
|
-
parent.pointColl[_this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
670
|
-
_this.freehandRedraw(_this.upperContext);
|
|
671
|
-
parent.updateToolbar(parent.element, 'colorToolbar');
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
else {
|
|
675
|
-
parent.trigger('shapeChanging', shapeChangingArgs);
|
|
676
|
-
parent.activeObj.strokeSettings.strokeColor = parent.pointColl[this.fhdSelIdx].strokeColor =
|
|
677
|
-
shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
678
|
-
parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[this.fhdSelIdx].strokeWidth =
|
|
679
|
-
shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
680
|
-
parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
681
|
-
this.freehandRedraw(this.upperContext);
|
|
682
|
-
parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
|
|
683
|
-
isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
|
|
684
|
-
}
|
|
684
|
+
this.triggerShapeChanging(shapeChangingArgs);
|
|
685
685
|
}
|
|
686
686
|
else {
|
|
687
687
|
parent.okBtn();
|
|
@@ -719,7 +719,7 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
719
719
|
parent.freehandCounter -= 1;
|
|
720
720
|
this.fhdHovIdx = this.fhdSelIdx = null;
|
|
721
721
|
parent.notify('selection', { prop: 'resetFreehandDrawVariables' });
|
|
722
|
-
parent.notify('draw', { prop: 'render-image', value: { isMouseWheel:
|
|
722
|
+
parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null } });
|
|
723
723
|
if (!isBlazor()) {
|
|
724
724
|
parent.notify('toolbar', { prop: 'refresh-main-toolbar', onPropertyChange: false });
|
|
725
725
|
}
|
|
@@ -1061,6 +1061,42 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
|
+
FreehandDrawing.prototype.triggerShapeChanging = function (shapeChangingArgs) {
|
|
1065
|
+
var _this = this;
|
|
1066
|
+
var parent = this.parent;
|
|
1067
|
+
if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
|
|
1068
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
1069
|
+
parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
|
|
1070
|
+
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
1071
|
+
parent.activeObj.strokeSettings.strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
1072
|
+
if (_this.fhdSelID) {
|
|
1073
|
+
parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
1074
|
+
parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
1075
|
+
parent.pointColl[_this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
1076
|
+
}
|
|
1077
|
+
if (shapeChangingArgs.action === 'select') {
|
|
1078
|
+
_this.freehandRedraw(_this.upperContext);
|
|
1079
|
+
parent.updateToolbar(parent.element, 'imageLoaded');
|
|
1080
|
+
parent.updateToolbar(parent.element, 'pen');
|
|
1081
|
+
}
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
else {
|
|
1085
|
+
parent.trigger('shapeChanging', shapeChangingArgs);
|
|
1086
|
+
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
1087
|
+
parent.activeObj.strokeSettings.strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
1088
|
+
if (this.fhdSelID) {
|
|
1089
|
+
parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
1090
|
+
parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
1091
|
+
parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
1092
|
+
}
|
|
1093
|
+
if (shapeChangingArgs.action === 'select') {
|
|
1094
|
+
this.freehandRedraw(this.upperContext);
|
|
1095
|
+
parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
|
|
1096
|
+
isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
};
|
|
1064
1100
|
return FreehandDrawing;
|
|
1065
1101
|
}());
|
|
1066
1102
|
export { FreehandDrawing };
|
|
@@ -40,6 +40,7 @@ export declare class Selection {
|
|
|
40
40
|
private shapeResizingArgs;
|
|
41
41
|
private shapeMovingArgs;
|
|
42
42
|
private selectionResizingArgs;
|
|
43
|
+
private isImageClarity;
|
|
43
44
|
constructor(parent: ImageEditor);
|
|
44
45
|
destroy(): void;
|
|
45
46
|
private addEventListener;
|
|
@@ -69,6 +70,7 @@ export declare class Selection {
|
|
|
69
70
|
private preventTextDraggingInvertly;
|
|
70
71
|
private preventInverseResize;
|
|
71
72
|
private getScaleRatio;
|
|
73
|
+
private findImageRatio;
|
|
72
74
|
private updateNWPoints;
|
|
73
75
|
private updateNPoints;
|
|
74
76
|
private updateNEPoints;
|
|
@@ -77,6 +79,7 @@ export declare class Selection {
|
|
|
77
79
|
private updateSWPoints;
|
|
78
80
|
private updateSPoints;
|
|
79
81
|
private updateSEPoints;
|
|
82
|
+
private resizeImg;
|
|
80
83
|
private adjustNWPoints;
|
|
81
84
|
private adjustNEPoints;
|
|
82
85
|
private adjustSWPoints;
|
|
@@ -111,6 +114,7 @@ export declare class Selection {
|
|
|
111
114
|
private touchStartHandler;
|
|
112
115
|
private unwireEvent;
|
|
113
116
|
private keyDownEventHandler;
|
|
117
|
+
private performEnterAction;
|
|
114
118
|
private isKeyBoardCrop;
|
|
115
119
|
private beforeSaveEvent;
|
|
116
120
|
private handleScroll;
|
|
@@ -122,6 +126,7 @@ export declare class Selection {
|
|
|
122
126
|
private findTarget;
|
|
123
127
|
private findTargetObj;
|
|
124
128
|
private shapeEvent;
|
|
129
|
+
private upgradeImageQuality;
|
|
125
130
|
private targetTouches;
|
|
126
131
|
private calculateScale;
|
|
127
132
|
private getDistance;
|
|
@@ -137,4 +142,5 @@ export declare class Selection {
|
|
|
137
142
|
private updatePrevShapeSettings;
|
|
138
143
|
private getRectanglePoints;
|
|
139
144
|
private getTransRotationPoint;
|
|
145
|
+
private getNumTextValue;
|
|
140
146
|
}
|