Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

konva

Package Overview
Dependencies
Maintainers
1
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

konva - npm Package Compare versions

Comparing version 9.3.8 to 9.3.9

2

lib/Global.js

@@ -19,3 +19,3 @@ "use strict";

_global: exports.glob,
version: '9.3.8',
version: '9.3.9',
isBrowser: detectBrowser(),

@@ -22,0 +22,0 @@ isUnminified: /param/.test(function (param) { }.toString()),

@@ -124,3 +124,8 @@ "use strict";

context.beginPath();
context.moveTo(lineTranslateX, translateY + lineTranslateY + Math.round(fontSize / 2));
let yOffset = Global_1.Konva._fixTextRendering
? Math.round(fontSize / 4)
: Math.round(fontSize / 2);
const x = lineTranslateX;
const y = translateY + lineTranslateY + yOffset;
context.moveTo(x, y);
spacesNumber = text.split(' ').length - 1;

@@ -130,3 +135,3 @@ oneWord = spacesNumber === 0;

align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
context.lineTo(lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY + Math.round(fontSize / 2));
context.lineTo(x + Math.round(lineWidth), y);
context.lineWidth = fontSize / 15;

@@ -141,3 +146,4 @@ const gradient = this._getLinearGradient();

context.beginPath();
context.moveTo(lineTranslateX, translateY + lineTranslateY);
let yOffset = Global_1.Konva._fixTextRendering ? -Math.round(fontSize / 4) : 0;
context.moveTo(lineTranslateX, translateY + lineTranslateY + yOffset);
spacesNumber = text.split(' ').length - 1;

@@ -149,3 +155,3 @@ oneWord = spacesNumber === 0;

: width;
context.lineTo(lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY);
context.lineTo(lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY + yOffset);
context.lineWidth = fontSize / 15;

@@ -152,0 +158,0 @@ const gradient = this._getLinearGradient();

{
"name": "konva",
"version": "9.3.8",
"version": "9.3.9",
"author": "Anton Lavrenov",

@@ -5,0 +5,0 @@ "files": [

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

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