Skip to content

Commit

Permalink
fix: pass attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Nov 17, 2023
1 parent 3cecb18 commit a504e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ElementTemplateIconRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ElementTemplateIconRenderer.prototype._getIcon = function(element) {
return getModelerTemplateIcon(element, this._iconProperty);
};

ElementTemplateIconRenderer.prototype.drawShape = function(parentGfx, element) {
ElementTemplateIconRenderer.prototype.drawShape = function(parentGfx, element, attrs = {}) {

var renderer = this._bpmnRenderer.handlers[
[
Expand All @@ -68,7 +68,7 @@ ElementTemplateIconRenderer.prototype.drawShape = function(parentGfx, element) {
].find(t => is(element, t))
];

var gfx = renderer(parentGfx, element, { renderIcon: false });
var gfx = renderer(parentGfx, element, { ...attrs, renderIcon: false });

var icon = this._getIcon(element);

Expand Down

0 comments on commit a504e90

Please sign in to comment.