Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-inputs

Package Overview
Dependencies
Maintainers
3
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-inputs - npm Package Compare versions

Comparing version 22.1.39 to 22.2.5

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### Signature
#### New Features
- `#F183395` - Provide the support to draw text in specific places in draw public method of the signature component.
## 22.1.38 (2023-07-11)

@@ -7,0 +13,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 22.1.39
* version : 22.2.5
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-inputs@*",
"_id": "@syncfusion/ej2-inputs@22.1.38",
"_id": "@syncfusion/ej2-inputs@22.1.39",
"_inBundle": false,
"_integrity": "sha512-4baJA8Seg3ZBD8LHkc9C14+JHsRpVAok3824wYR52xp/QD9Lr6+9ueUsPMIVHYB3bPx/ElAKbElkiB2yGYfVWA==",
"_integrity": "sha512-Ktw+lY6NdO0Nlc92tQ+HO2fDPo5Uz86+rE7w9tAyBBehxxwAx6xqnM342AEKfqNajEdd9ln3+GqSlwykBlpHbw==",
"_location": "/@syncfusion/ej2-inputs",

@@ -42,4 +42,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-22.1.38.tgz",
"_shasum": "af9599bc4fb8fd9a70efbb1bb6e8427f92e99498",
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-22.1.39.tgz",
"_shasum": "bc3c93fe2b2c1aff8d5a05f2ea96cbf62f9b052d",
"_spec": "@syncfusion/ej2-inputs@*",

@@ -52,6 +52,6 @@ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~22.1.38",
"@syncfusion/ej2-buttons": "~22.1.39",
"@syncfusion/ej2-popups": "~22.1.38",
"@syncfusion/ej2-splitbuttons": "~22.1.37"
"@syncfusion/ej2-base": "~22.2.5",
"@syncfusion/ej2-buttons": "~22.2.5",
"@syncfusion/ej2-popups": "~22.2.5",
"@syncfusion/ej2-splitbuttons": "~22.2.5"
},

@@ -124,5 +124,5 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "22.1.39",
"version": "22.2.5",
"sideEffects": false,
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
}

@@ -179,6 +179,8 @@ import { BlazorDotnetObject, Component } from '@syncfusion/ej2-base';

* @param {number} fontSize - specify font size of a signature.
* @param {number} x- Specifies the x-coordinate to start the text of a signature. Default to the center point of the image if it not specified.
* @param {number} y - Specifies the y-coordinate to start the text of a signature. Default to the center point of the image if it not specified.
*
* @returns {void}.
*/
draw(text: string, fontFamily?: string, fontSize?: number): void;
draw(text: string, fontFamily?: string, fontSize?: number, x?: number, y?: number): void;
/**

@@ -185,0 +187,0 @@ * To load the signature with the given base 64 string, height and width.

@@ -653,6 +653,8 @@ var __extends = (this && this.__extends) || (function () {

* @param {number} fontSize - specify font size of a signature.
* @param {number} x- Specifies the x-coordinate to start the text of a signature. Default to the center point of the image if it not specified.
* @param {number} y - Specifies the y-coordinate to start the text of a signature. Default to the center point of the image if it not specified.
*
* @returns {void}.
*/
SignatureBase.prototype.draw = function (text, fontFamily, fontSize) {
SignatureBase.prototype.draw = function (text, fontFamily, fontSize, x, y) {
var args = { actionName: 'draw-text' };

@@ -663,5 +665,13 @@ this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height);

this.canvasContext.font = fontSize + 'px ' + fontFamily;
this.canvasContext.textAlign = 'center';
this.canvasContext.textBaseline = 'middle';
this.canvasContext.fillText(text, this.element.width / 2, this.element.height / 2);
var startX = this.element.width / 2;
var startY = this.element.height / 2;
if (isNullOrUndefined(x) && isNullOrUndefined(y)) {
this.canvasContext.textAlign = 'center';
this.canvasContext.textBaseline = 'middle';
}
else {
startX = isNullOrUndefined(x) ? startX : x;
startY = isNullOrUndefined(y) ? startY + fontSize / 2 : (y + fontSize / 2);
}
this.canvasContext.fillText(text, startX, startY);
this.updateSnapCollection();

@@ -668,0 +678,0 @@ this.isSignatureEmpty = false;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc