diagram-js
Advanced tools
Comparing version 14.0.0 to 14.1.0
@@ -278,4 +278,3 @@ import { | ||
translate(gfx, element.x, element.y); | ||
} else | ||
if (type === 'connection') { | ||
} else if (type === 'connection') { | ||
this.drawConnection(visual, element); | ||
@@ -282,0 +281,0 @@ } else { |
@@ -42,4 +42,3 @@ import { filterRedundantWaypoints } from '../../layout/LayoutUtil'; | ||
type = RECONNECT_START; | ||
} else | ||
if (!insert && bendpointIndex === waypoints.length - 1) { | ||
} else if (!insert && bendpointIndex === waypoints.length - 1) { | ||
type = RECONNECT_END; | ||
@@ -46,0 +45,0 @@ } else { |
@@ -231,5 +231,3 @@ import { | ||
newParent = target.parent; | ||
} else | ||
if (attach === false) { | ||
} else if (attach === false) { | ||
newHost = null; | ||
@@ -236,0 +234,0 @@ } |
@@ -245,4 +245,3 @@ import { | ||
} | ||
} else | ||
if (search.type) { | ||
} else if (search.type) { | ||
return filter(this._overlays, matchPattern({ type: search.type })); | ||
@@ -249,0 +248,0 @@ } else { |
@@ -25,2 +25,7 @@ /** | ||
/** | ||
* Refresh the popup menu entries without changing the target or position. | ||
*/ | ||
refresh(): void; | ||
close(): void; | ||
@@ -27,0 +32,0 @@ reset(): void; |
@@ -88,3 +88,3 @@ import { | ||
if (event.element === element) { | ||
this._render(); | ||
this.refresh(); | ||
} | ||
@@ -105,3 +105,3 @@ }); | ||
position: _position, | ||
className, | ||
providerId: className, | ||
entries, | ||
@@ -184,3 +184,3 @@ headerEntries, | ||
position, | ||
className: providerId, | ||
providerId, | ||
target, | ||
@@ -201,3 +201,34 @@ entries, | ||
/** | ||
* Refresh the popup menu entries without changing the target or position. | ||
*/ | ||
PopupMenu.prototype.refresh = function() { | ||
if (!this.isOpen()) { | ||
return; | ||
} | ||
const { | ||
target, | ||
providerId | ||
} = this._current; | ||
const { | ||
entries, | ||
headerEntries, | ||
emptyPlaceholder | ||
} = this._getContext(target, providerId); | ||
this._current = { | ||
...this._current, | ||
entries, | ||
headerEntries, | ||
emptyPlaceholder | ||
}; | ||
this._emit('refresh'); | ||
this._render(); | ||
}; | ||
PopupMenu.prototype._getContext = function(target, provider) { | ||
@@ -204,0 +235,0 @@ |
{ | ||
"name": "diagram-js", | ||
"version": "14.0.0", | ||
"version": "14.1.0", | ||
"description": "A toolbox for displaying and modifying diagrams on the web", | ||
@@ -55,16 +55,16 @@ "main": "lib/Diagram.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.20.2", | ||
"@babel/core": "^7.23.9", | ||
"@testing-library/preact": "^3.2.3", | ||
"babel-loader": "^9.1.0", | ||
"babel-loader": "^9.1.3", | ||
"babel-plugin-istanbul": "^6.1.1", | ||
"bio-dts": "^0.8.1", | ||
"chai": "^4.3.6", | ||
"chai": "^4.4.1", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.24.0", | ||
"eslint": "^8.56.0", | ||
"eslint-plugin-bpmn-io": "^1.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"jquery": "^3.5.1", | ||
"karma": "^6.4.0", | ||
"karma-chrome-launcher": "^3.1.1", | ||
"karma-coverage": "^2.2.0", | ||
"karma": "^6.4.2", | ||
"karma-chrome-launcher": "^3.2.0", | ||
"karma-coverage": "^2.2.1", | ||
"karma-firefox-launcher": "^2.1.2", | ||
@@ -74,15 +74,15 @@ "karma-mocha": "^2.0.1", | ||
"karma-sinon-chai": "^2.0.2", | ||
"karma-webpack": "^5.0.0", | ||
"mocha": "^10.1.0", | ||
"karma-webpack": "^5.0.1", | ||
"mocha": "^10.3.0", | ||
"mocha-test-container-support": "^0.2.0", | ||
"npm-run-all2": "^6.0.0", | ||
"puppeteer": "^21.0.0", | ||
"sinon": "^17.0.0", | ||
"puppeteer": "^22.1.0", | ||
"sinon": "^17.0.1", | ||
"sinon-chai": "^3.7.0", | ||
"typescript": "^5.0.0", | ||
"webpack": "^5.74.0" | ||
"webpack": "^5.90.3" | ||
}, | ||
"dependencies": { | ||
"@bpmn-io/diagram-js-ui": "^0.2.2", | ||
"clsx": "^2.0.0", | ||
"clsx": "^2.1.0", | ||
"didi": "^10.0.1", | ||
@@ -89,0 +89,0 @@ "inherits-browser": "^0.1.0", |
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
951362
33290
Updatedclsx@^2.1.0