@syncfusion/ej2-inputs 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 +18 -8
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +8 -5
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +8 -5
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/common/signature-base.d.ts +6 -4
- package/src/common/signature-base.js +7 -4
- package/src/uploader/uploader.js +1 -1
- package/styles/color-picker/_tailwind3-definition.scss +4 -4
- package/styles/color-picker/tailwind3.css +6 -6
- package/styles/input/_bigger.scss +0 -3
- package/styles/input/_layout.scss +2 -2
- package/styles/input/_tailwind3-definition.scss +1 -1
- package/styles/input/tailwind3.css +6 -5
- package/styles/maskedtextbox/tailwind3.css +1 -1
- package/styles/signature/_layout.scss +1 -2
- package/styles/signature/tailwind3.css +2 -3
- package/styles/slider/tailwind3.css +2 -2
- package/styles/tailwind3-lite.css +15 -15
- package/styles/tailwind3.css +19 -20
- package/styles/uploader/_layout.scss +0 -1
- package/styles/uploader/tailwind3.css +2 -3
|
@@ -8955,7 +8955,7 @@ let Uploader = class Uploader extends Component {
|
|
|
8955
8955
|
}
|
|
8956
8956
|
for (let file = 0; file < item.length; file++) {
|
|
8957
8957
|
const pasteFile = [].slice.call(item)[file];
|
|
8958
|
-
if ((pasteFile.kind === 'file') || pasteFile.type.match('^image/')) {
|
|
8958
|
+
if (!isNullOrUndefined(pasteFile.getAsFile()) && ((pasteFile.kind === 'file') || pasteFile.type.match('^image/'))) {
|
|
8959
8959
|
this.renderSelectedFiles(event, [pasteFile.getAsFile()], false, true);
|
|
8960
8960
|
}
|
|
8961
8961
|
}
|
|
@@ -15600,6 +15600,7 @@ class SignatureBase extends Component {
|
|
|
15600
15600
|
this.canvasContext.canvas.width = this.element.offsetWidth;
|
|
15601
15601
|
this.canvasContext.canvas.height = this.element.offsetHeight;
|
|
15602
15602
|
this.canvasContext.scale(1, 1);
|
|
15603
|
+
this.canvasContext.fillStyle = this.strokeColor;
|
|
15603
15604
|
const pointSize = (this.minStrokeWidth + this.maxStrokeWidth) / 2;
|
|
15604
15605
|
for (let i = 0; i < this.signRatioPointsColl.length; i++) {
|
|
15605
15606
|
this.arcDraw((this.signRatioPointsColl[i].x * this.canvasContext.canvas.width), (this.signRatioPointsColl[i].y * this.canvasContext.canvas.height), pointSize);
|
|
@@ -16286,11 +16287,13 @@ class SignatureBase extends Component {
|
|
|
16286
16287
|
return this.getBlob(this.canvasContext.canvas.toDataURL('image/png'));
|
|
16287
16288
|
}
|
|
16288
16289
|
/**
|
|
16289
|
-
*
|
|
16290
|
+
* Gets the signature as a Base 64 string.
|
|
16290
16291
|
*
|
|
16291
|
-
*
|
|
16292
|
-
*
|
|
16293
|
-
* @
|
|
16292
|
+
* This method is used to retrieve the current signature on the canvas as a Base 64-encoded string, in the specified image format.
|
|
16293
|
+
*
|
|
16294
|
+
* @param {SignatureFileType} [type] - Specifies the type of the image format.
|
|
16295
|
+
* Can be one of 'Png', 'Jpeg', or 'Svg'. If not specified, the default is 'Png'.
|
|
16296
|
+
* @returns {string} - Returns the Base 64 string of the signature in the specified format.
|
|
16294
16297
|
*/
|
|
16295
16298
|
getSignature(type) {
|
|
16296
16299
|
if (this.saveWithBackground && this.backgroundColor && !this.backgroundImage) {
|