@syncfusion/ej2-image-editor 28.1.33 → 28.1.41
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/README.md +1 -1
- 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 +9 -4
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +9 -4
- 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 +11 -11
- package/src/image-editor/action/draw.js +4 -2
- package/src/image-editor/base/image-editor.js +1 -1
- package/src/image-editor/renderer/toolbar.js +4 -1
- package/styles/bds-lite.css +4 -0
- package/styles/bds.css +4 -0
- package/styles/bootstrap-dark-lite.css +4 -0
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap-lite.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4-lite.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark-lite.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5-lite.css +4 -0
- package/styles/bootstrap5.3-lite.css +4 -0
- package/styles/bootstrap5.3.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark-lite.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric-lite.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/fluent-dark-lite.css +4 -0
- package/styles/fluent-dark.css +4 -0
- package/styles/fluent-lite.css +4 -0
- package/styles/fluent.css +4 -0
- package/styles/fluent2-lite.css +4 -0
- package/styles/fluent2.css +4 -0
- package/styles/highcontrast-light-lite.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast-lite.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/image-editor/_layout.scss +5 -1
- package/styles/image-editor/_tailwind3-definition.scss +5 -5
- package/styles/image-editor/bds.css +4 -0
- package/styles/image-editor/bootstrap-dark.css +4 -0
- package/styles/image-editor/bootstrap.css +4 -0
- package/styles/image-editor/bootstrap4.css +4 -0
- package/styles/image-editor/bootstrap5-dark.css +4 -0
- package/styles/image-editor/bootstrap5.3.css +4 -0
- package/styles/image-editor/bootstrap5.css +4 -0
- package/styles/image-editor/fabric-dark.css +4 -0
- package/styles/image-editor/fabric.css +4 -0
- package/styles/image-editor/fluent-dark.css +4 -0
- package/styles/image-editor/fluent.css +4 -0
- package/styles/image-editor/fluent2.css +4 -0
- package/styles/image-editor/highcontrast-light.css +4 -0
- package/styles/image-editor/highcontrast.css +4 -0
- package/styles/image-editor/material-dark.css +4 -0
- package/styles/image-editor/material.css +4 -0
- package/styles/image-editor/material3-dark.css +4 -0
- package/styles/image-editor/material3.css +4 -0
- package/styles/image-editor/tailwind-dark.css +4 -0
- package/styles/image-editor/tailwind.css +4 -0
- package/styles/image-editor/tailwind3.css +12 -8
- package/styles/material-dark-lite.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material-lite.css +4 -0
- package/styles/material.css +4 -0
- package/styles/material3-dark-lite.css +4 -0
- package/styles/material3-dark.css +4 -0
- package/styles/material3-lite.css +4 -0
- package/styles/material3.css +4 -0
- package/styles/tailwind-dark-lite.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind-lite.css +4 -0
- package/styles/tailwind.css +4 -0
- package/styles/tailwind3-lite.css +8 -4
- package/styles/tailwind3.css +12 -8
|
@@ -4962,14 +4962,16 @@ var Draw = /** @__PURE__ @class */ (function () {
|
|
|
4962
4962
|
this.openImageData(dropArea);
|
|
4963
4963
|
return;
|
|
4964
4964
|
}
|
|
4965
|
-
var fileType = this.getFileExtensionFromURL(this.openURL)
|
|
4965
|
+
var fileType = this.getFileExtensionFromURL(this.openURL);
|
|
4966
4966
|
if (fileType) {
|
|
4967
|
+
fileType = fileType.toLowerCase();
|
|
4967
4968
|
fileType = (fileType === 'jpg' || fileType === 'jpeg') ? 'jpeg' : fileType;
|
|
4968
4969
|
}
|
|
4969
4970
|
var isAllowedFileType = (fileType ? (extension.indexOf(fileType) > -1 ||
|
|
4970
4971
|
(fileType === 'jpeg' && (parent.uploadSettings.allowedExtensions.indexOf('jpg') > -1 ||
|
|
4971
4972
|
parent.uploadSettings.allowedExtensions.indexOf('jpeg') > -1))) : false) || this.isNullExtension;
|
|
4972
|
-
if (this.openURL.indexOf('data:image/') > -1 && this.openURL.indexOf('base64') > -1)
|
|
4973
|
+
if ((this.openURL.indexOf('data:image/') > -1 && this.openURL.indexOf('base64') > -1) ||
|
|
4974
|
+
this.openURL.indexOf('blob') > -1) {
|
|
4973
4975
|
this.openImageData(dropArea, true);
|
|
4974
4976
|
}
|
|
4975
4977
|
else if (parent.uploadSettings.minFileSize || parent.uploadSettings.maxFileSize) {
|
|
@@ -22451,7 +22453,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
22451
22453
|
this.notify('toolbar', { prop: 'create-contextual-toolbar', onPropertyChange: false });
|
|
22452
22454
|
}
|
|
22453
22455
|
if (!this.uploadSettings.allowedExtensions) {
|
|
22454
|
-
this.uploadSettings
|
|
22456
|
+
this.setProperties({ uploadSettings: { allowedExtensions: '.jpg, .jpeg, .png, .svg, .webp' } }, true);
|
|
22455
22457
|
}
|
|
22456
22458
|
else {
|
|
22457
22459
|
this.notify('draw', { prop: 'setNullExtension', value: { extension: false } });
|
|
@@ -28065,9 +28067,12 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
28065
28067
|
this.parent.notify('draw', { prop: 'fileSelect', value: { inputElement: inputElement, args: args } });
|
|
28066
28068
|
}
|
|
28067
28069
|
else {
|
|
28068
|
-
if (!this.parent.isImageLoaded
|
|
28070
|
+
if (!this.parent.isImageLoaded) {
|
|
28069
28071
|
this.destroyTopToolbar();
|
|
28070
28072
|
this.createToolbar();
|
|
28073
|
+
if (Browser.isDevice) {
|
|
28074
|
+
this.destroyBottomToolbar();
|
|
28075
|
+
}
|
|
28071
28076
|
}
|
|
28072
28077
|
this.parent.showDialogPopup('unsupported', !((filesTypes.indexOf(type) > -1 || isJPG || (type.indexOf('svg') > -1 && filesTypes.indexOf('svg') > -1))));
|
|
28073
28078
|
}
|