diagram-js
Advanced tools
Comparing version 14.5.1 to 14.5.2
@@ -397,6 +397,2 @@ import { | ||
ContextPad.prototype._createHtml = function(target) { | ||
if (this.isOpen()) { | ||
return this._current.pad; | ||
} | ||
var self = this; | ||
@@ -447,3 +443,3 @@ | ||
if (this.isOpen() && this._current.target === target) { | ||
if (this.isOpen() && targetsEqual(this._current.target, target)) { | ||
html = this._current.html; | ||
@@ -680,2 +676,18 @@ } else { | ||
return connection.waypoints[connection.waypoints.length - 1]; | ||
} | ||
/** | ||
* @param {ContextPadTarget} target | ||
* @param {ContextPadTarget} otherTarget | ||
* | ||
* @return {boolean} | ||
*/ | ||
function targetsEqual(target, otherTarget) { | ||
target = isArray(target) ? target : [ target ]; | ||
otherTarget = isArray(otherTarget) ? otherTarget : [ otherTarget ]; | ||
return target.length === otherTarget.length | ||
&& every(target, function(element) { | ||
return otherTarget.includes(element); | ||
}); | ||
} |
{ | ||
"name": "diagram-js", | ||
"version": "14.5.1", | ||
"version": "14.5.2", | ||
"description": "A toolbox for displaying and modifying diagrams on the web", | ||
@@ -5,0 +5,0 @@ "main": "lib/Diagram.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1003088
33726