Browse Source

Adding placeholder color as an optional value

pull/2662/head
Juan 7 years ago
parent
commit
6aa00b286b
  1. 2
      dist/css/grapes.min.css
  2. 3
      src/utils/Sorter.js

2
dist/css/grapes.min.css

File diff suppressed because one or more lines are too long

3
src/utils/Sorter.js

@ -67,6 +67,7 @@ export default Backbone.View.extend({
this.selectOnEnd = !o.avoidSelectOnEnd;
this.scale = o.scale;
this.activeTextModel = null;
this.plhColor = o.plhColor || '#62c462';
if (this.em && this.em.on) {
this.em.on('change:canvasOffset', this.updateOffset);
@ -966,7 +967,7 @@ export default Backbone.View.extend({
h = 0,
un = 'px',
margI = 5,
brdCol = '#62c462',
brdCol = this.plhColor,
brd = 3,
method = pos.method;
var elDim = dims[pos.index];

Loading…
Cancel
Save