finishDrawing({ mode }) {
        self.drawingRegion = null;
        if (mode === "edit") {
          self.annotation.history.recordNow();
        }
      }
Finish drawing a region and save its final state to the store if it was edited
@param {Object} options
@param {string} options.mode "new" if we are creating a new region, "edit" if we are editing an existing one