Right now i have to assign props like stroke and linewidth on new lines like this:
const borderRect = new Two.Rectangle(x, y, w - borderWidth, h - borderWidth)
.noFill();
borderRect.stroke = '#E3E7EA';
borderRect.linewidth = borderWidth;
I would like them to be chainable, just like how we chain .noFill():
const borderRect = new Two.Rectangle(x, y, w - borderWidth, h - borderWidth)
.noFill()
.stroke('#E3E7EA')
.linewidth(borderWidth);
I wonder if it was not implemented due to some technical restriction, and if not i think it would be a very nice sugar for this library ^^
Right now i have to assign props like
strokeandlinewidthon new lines like this:I would like them to be chainable, just like how we chain
.noFill():I wonder if it was not implemented due to some technical restriction, and if not i think it would be a very nice sugar for this library ^^