Skip to content

Commit

Permalink
fix(label-editing): add transparent background for post it elements
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
Niklas Kiefer committed May 21, 2020
1 parent 0b6afe1 commit ed90d2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/draw/TextRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { assign } from 'min-dash';

import TextUtil from 'diagram-js/lib/util/Text';

var DEFAULT_FONT_SIZE = 12;
var DEFAULT_FONT_SIZE = 16;
var LINE_HEIGHT_RATIO = 1.2;


Expand Down
7 changes: 7 additions & 0 deletions lib/features/label-editing/LabelEditingProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,13 @@ LabelEditingProvider.prototype.getEditingBBox = function(element) {
}


// transparent edit box
if (isAny(element, [ 'postit:Postit' ])) {
assign(style, {
backgroundColor: 'transparent'
});
}

return { bounds: bounds, style: style };
};

Expand Down

0 comments on commit ed90d2f

Please sign in to comment.