@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.
@@ -9131,7 +9131,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9131
9131
  }
9132
9132
  for (var file = 0; file < item.length; file++) {
9133
9133
  var pasteFile = [].slice.call(item)[file];
9134
- if ((pasteFile.kind === 'file') || pasteFile.type.match('^image/')) {
9134
+ if (!isNullOrUndefined(pasteFile.getAsFile()) && ((pasteFile.kind === 'file') || pasteFile.type.match('^image/'))) {
9135
9135
  this.renderSelectedFiles(event, [pasteFile.getAsFile()], false, true);
9136
9136
  }
9137
9137
  }
@@ -16004,6 +16004,7 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
16004
16004
  this.canvasContext.canvas.width = this.element.offsetWidth;
16005
16005
  this.canvasContext.canvas.height = this.element.offsetHeight;
16006
16006
  this.canvasContext.scale(1, 1);
16007
+ this.canvasContext.fillStyle = this.strokeColor;
16007
16008
  var pointSize = (this.minStrokeWidth + this.maxStrokeWidth) / 2;
16008
16009
  for (var i = 0; i < this.signRatioPointsColl.length; i++) {
16009
16010
  this.arcDraw((this.signRatioPointsColl[i].x * this.canvasContext.canvas.width), (this.signRatioPointsColl[i].y * this.canvasContext.canvas.height), pointSize);
@@ -16691,11 +16692,13 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
16691
16692
  return this.getBlob(this.canvasContext.canvas.toDataURL('image/png'));
16692
16693
  };
16693
16694
  /**
16694
- * To get the signature as Base 64.
16695
+ * Gets the signature as a Base 64 string.
16695
16696
  *
16696
- * @private
16697
- * @param {SignatureFileType} type - Specifies the type of the image format.
16698
- * @returns {string}.
16697
+ * This method is used to retrieve the current signature on the canvas as a Base 64-encoded string, in the specified image format.
16698
+ *
16699
+ * @param {SignatureFileType} [type] - Specifies the type of the image format.
16700
+ * Can be one of 'Png', 'Jpeg', or 'Svg'. If not specified, the default is 'Png'.
16701
+ * @returns {string} - Returns the Base 64 string of the signature in the specified format.
16699
16702
  */
16700
16703
  SignatureBase.prototype.getSignature = function (type) {
16701
16704
  if (this.saveWithBackground && this.backgroundColor && !this.backgroundImage) {