* Add more Pts to this Range and recalculate its min and max values. * @param pts a Group or an Iterable to append to this Range * @param update Optional. Set the parameter to `false` if you want to append without immediately updating this Range's min and max values. Default is `true`.
( pts:PtLikeIterable, update:boolean=true )
| 963 | * @param update Optional. Set the parameter to `false` if you want to append without immediately updating this Range's min and max values. Default is `true`. |
| 964 | */ |
| 965 | append( pts:PtLikeIterable, update:boolean=true ):this { |
| 966 | let _pts = Util.iterToArray( pts ); |
| 967 | if (_pts[0].length !== this._dims) throw new Error(`Dimensions don't match. ${this._dims} dimensions in Range and ${_pts[0].length} provided in parameter. `); |
| 968 | this._source = this._source.concat( _pts ) as Group; |
| 969 | if (update) this.calc(); |
| 970 | return this; |
| 971 | } |
| 972 | |
| 973 | |
| 974 | /** |
no test coverage detected