@syncfusion/ej2-image-editor 25.1.39 → 25.1.42
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 +16 -0
- 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 +6 -5
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +6 -5
- 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 +8 -8
- package/src/image-editor/base/image-editor.js +2 -2
- package/src/image-editor/renderer/toolbar.js +4 -3
|
@@ -19934,7 +19934,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
|
|
|
19934
19934
|
let content = '';
|
|
19935
19935
|
this.element.querySelector('#' + this.element.id + '_dialog').style.display = 'block';
|
|
19936
19936
|
let headerObj;
|
|
19937
|
-
const okObj = { key: '
|
|
19937
|
+
const okObj = { key: 'DlgOK' };
|
|
19938
19938
|
this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: okObj } });
|
|
19939
19939
|
if (type === 'multi-select-image') {
|
|
19940
19940
|
headerObj = { key: 'ImageErrorDialogHeader' };
|
|
@@ -19963,7 +19963,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
|
|
|
19963
19963
|
close: this.dlgCloseBtnClick.bind(this),
|
|
19964
19964
|
buttons: [
|
|
19965
19965
|
{ click: this.dlgCloseBtnClick.bind(this),
|
|
19966
|
-
buttonModel: { content: okObj['value']
|
|
19966
|
+
buttonModel: { content: okObj['value'] }
|
|
19967
19967
|
}
|
|
19968
19968
|
]
|
|
19969
19969
|
});
|
|
@@ -23230,13 +23230,14 @@ class ToolbarModule {
|
|
|
23230
23230
|
ConfirmDialogHeader: 'Confirm Save Changes',
|
|
23231
23231
|
ConfirmDialogContent: 'Do you want to save the changes you made to the image?',
|
|
23232
23232
|
AlertDialogHeader: 'Unsupported file',
|
|
23233
|
-
AlertDialogContent: 'The
|
|
23233
|
+
AlertDialogContent: 'The selected file is unsupported.',
|
|
23234
23234
|
Yes: 'Yes',
|
|
23235
23235
|
No: 'No',
|
|
23236
23236
|
ImageErrorDialogHeader: 'Image Selection Error',
|
|
23237
23237
|
ImageErrorDialogContent: 'Please select only one image to open.',
|
|
23238
23238
|
Straighten: 'Straighten',
|
|
23239
23239
|
NoOutline: 'No outline',
|
|
23240
|
+
DlgOK: 'OK'
|
|
23240
23241
|
};
|
|
23241
23242
|
this.l10n = new L10n('image-editor', this.defaultLocale, this.parent.locale);
|
|
23242
23243
|
}
|
|
@@ -24190,7 +24191,7 @@ class ToolbarModule {
|
|
|
24190
24191
|
let isCustomized = false;
|
|
24191
24192
|
const items = [];
|
|
24192
24193
|
const id = parent.element.id;
|
|
24193
|
-
const defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text'];
|
|
24194
|
+
const defItems = ['Ellipse', 'Arrow', 'Line', 'Rectangle', 'Pen', 'Path', 'Text', 'Image'];
|
|
24194
24195
|
if (parent.toolbar) {
|
|
24195
24196
|
for (let i = 0; i < defItems.length; i++) {
|
|
24196
24197
|
if (parent.toolbar.indexOf(defItems[i]) !== -1) {
|
|
@@ -24220,7 +24221,7 @@ class ToolbarModule {
|
|
|
24220
24221
|
if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Text') > -1)) {
|
|
24221
24222
|
items.push({ text: this.l10n.getConstant('Text'), id: 'text', iconCss: 'e-icons e-add-text' });
|
|
24222
24223
|
}
|
|
24223
|
-
if (isNullOrUndefined(parent.toolbar) ||
|
|
24224
|
+
if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Image') > -1)) {
|
|
24224
24225
|
items.push({ text: this.l10n.getConstant('Image'), id: 'image', iconCss: 'e-icons e-image' });
|
|
24225
24226
|
}
|
|
24226
24227
|
const obj = { freehandDrawSelectedId: null };
|