diagram-js-direct-editing
Advanced tools
Comparing version 1.6.4 to 1.7.0
@@ -9,2 +9,6 @@ # Changelog | ||
## 1.7.0 | ||
* `FEAT`: allow to query for active element ([#25](https://github.com/bpmn-io/diagram-js-direct-editing/pull/25)) | ||
## 1.6.4 | ||
@@ -11,0 +15,0 @@ |
@@ -47,6 +47,8 @@ import { | ||
* | ||
* @return {Boolean} | ||
* @param {djs.model.Base} [element] | ||
* | ||
* @return {boolean} | ||
*/ | ||
DirectEditing.prototype.isActive = function() { | ||
return !!this._active; | ||
DirectEditing.prototype.isActive = function(element) { | ||
return !!(this._active && (!element || this._active.element === element)); | ||
}; | ||
@@ -53,0 +55,0 @@ |
{ | ||
"name": "diagram-js-direct-editing", | ||
"version": "1.6.4", | ||
"version": "1.7.0", | ||
"description": "Direct editing support for diagram-js", | ||
@@ -23,3 +23,3 @@ "scripts": { | ||
"chai": "^2.3.0", | ||
"diagram-js": "^8.0.0", | ||
"diagram-js": "^8.4.0", | ||
"eslint": "^4.12.0", | ||
@@ -26,0 +26,0 @@ "eslint-plugin-bpmn-io": "^0.5.2", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20124
511
0