DrawerJs icon indicating copy to clipboard operation
DrawerJs copied to clipboard

Shapes Border and Fill default Color

Open LDSmj opened this issue 1 year ago • 0 comments

I want to set the default border color for shapes to black. Currently, even though the default color on the color picker is black, I still need to select black to apply it as the border color.

I'm not sure if this is its code: /**

  • Sets this.currentColor same as object stroke color,
  • or TRASPARENT if object has no stroke
  • @param {fabric.Object} object */ ShapeBorder.prototype.updateColorFromObject = function (object) { var color = null; color = object.get('stroke'); if (color) { this.currentColor = color; } else { this.currentColor = pluginsNamespace.ColorpickerControl.TRANSPARENT; } };

i tried changing the code to this

" this.currentColor = '#000000'; "

but still not fixing the problem.

I also want to change the default color for the fill to transparent.

LDSmj avatar Feb 28 '24 02:02 LDSmj