resize(ctx) {
    const values = this.getFormattingValues();
    this.shape.resize(ctx, this.selected, this.hover, values);
  }
Recalculate the size of this node in the given canvas
The 2d context of a HTML canvas can be retrieved by canvas.getContext("2d");
@param {CanvasRenderingContext2D}   ctx