New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

konva

Package Overview
Dependencies
Maintainers
1
Versions
214
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 7.2.1 to 7.2.2

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## 7.2.2
* Fix wrong size calculations for `Konva.Line` with tension
* Fix `shape.intersects()` behavior when a node is dragged
* Fix ellipsis rendering for `Konva.Text`
## 7.2.1

@@ -8,0 +14,0 @@

2

lib/Global.js

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

_global: exports.glob,
version: '7.2.1',
version: '7.2.2',
isBrowser: detectBrowser(),

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

@@ -490,3 +490,4 @@ "use strict";

};
Node.prototype.shouldDrawHit = function (top) {
Node.prototype.shouldDrawHit = function (top, skipDragCheck) {
if (skipDragCheck === void 0) { skipDragCheck = false; }
if (top) {

@@ -508,3 +509,3 @@ return this._isVisible(top) && this._isListening(top);

});
var dragSkip = !Global_1.Konva.hitOnDragEnabled && layerUnderDrag;
var dragSkip = !skipDragCheck && !Global_1.Konva.hitOnDragEnabled && layerUnderDrag;
return this.isListening() && this.isVisible() && !dragSkip;

@@ -511,0 +512,0 @@ };

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

bufferHitCanvas.getContext().clear();
this.drawHit(bufferHitCanvas);
this.drawHit(bufferHitCanvas, null, true);
p = bufferHitCanvas.context.getImageData(Math.round(point.x), Math.round(point.y), 1, 1).data;

@@ -359,4 +359,5 @@ return p[3] > 0;

};
Shape.prototype.drawHit = function (can, top) {
if (!this.shouldDrawHit(top)) {
Shape.prototype.drawHit = function (can, top, skipDragCheck) {
if (skipDragCheck === void 0) { skipDragCheck = false; }
if (!this.shouldDrawHit(top, skipDragCheck)) {
return this;

@@ -363,0 +364,0 @@ }

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

low = mid + 1;
match = substr + (shouldAddEllipsis ? ELLIPSIS : '');
match = substr;
matchWidth = substrWidth;

@@ -272,0 +272,0 @@ }

@@ -698,2 +698,5 @@ "use strict";

cp = exports.Util._getControlPoints(p[n - 2], p[n - 1], p[n], p[n + 1], p[n + 2], p[n + 3], tension);
if (isNaN(cp[0])) {
continue;
}
allPoints.push(cp[0]);

@@ -700,0 +703,0 @@ allPoints.push(cp[1]);

{
"name": "konva",
"version": "7.2.1",
"version": "7.2.2",
"author": "Anton Lavrenov",

@@ -30,2 +30,16 @@ "files": [

},
"funding": [
{
"type": "patreon",
"url": "https://www.patreon.com/lavrton"
},
{
"type": "opencollective",
"url": "https://opencollective.com/konva"
},
{
"type": "github",
"url": "https://github.com/sponsors/lavrton"
}
],
"size-limit": [

@@ -32,0 +46,0 @@ {

@@ -138,3 +138,3 @@ import { Collection, Transform } from './Util';

_isVisible(relativeTo: any): any;
shouldDrawHit(top?: Node): any;
shouldDrawHit(top?: Node, skipDragCheck?: boolean): any;
show(): this;

@@ -141,0 +141,0 @@ hide(): this;

@@ -117,3 +117,3 @@ import { Node, NodeConfig } from './Node';

drawScene(can?: SceneCanvas, top?: Node): this;
drawHit(can?: HitCanvas, top?: Node): this;
drawHit(can?: HitCanvas, top?: Node, skipDragCheck?: boolean): this;
drawHitFromCache(alphaThreshold?: number): this;

@@ -120,0 +120,0 @@ hasPointerCapture(pointerId: number): boolean;

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