docs: public void closePath() {
  		if (this.numTypes<=0 ||
  				(this.types[this.numTypes-1]!=PathElementType.CLOSE
  				&&this.types[this.numTypes-1]!=PathElementType.MOVE_TO)) {
  			ensureSlots(true, 0);
  			this.types[this.numTypes++] = PathElementType.CLOSE;
  		}
  	}