setType (newType, pts) {
    replacePathSegMethod(newType, this.index, pts)
    this.type = newType
    const path = svgCanvas.getPathObj()
    this.item = path.elem.pathSegList.getItem(this.index)
    this.showCtrlPts(newType === 6)
    this.ctrlpts = getControlPointsMethod(this)
    this.update(true)
  }
@param {Integer} newType Possible values set during {@link module:path.init}
@param {ArgumentsArray} pts
@returns {void}