@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.
@@ -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
- * To get the signature as Base 64.
16290
+ * Gets the signature as a Base 64 string.
16290
16291
  *
16291
- * @private
16292
- * @param {SignatureFileType} type - Specifies the type of the image format.
16293
- * @returns {string}.
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) {