MCPcopy
hub / github.com/williamngan/pts / append

Method append

src/Num.ts:965–971  ·  view source on GitHub ↗

* 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 )

Source from the content-addressed store, hash-verified

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 /**

Callers 15

searchableFunction · 0.80
parse_modulesFunction · 0.80
parse_classesFunction · 0.80
parse_class_childrenFunction · 0.80
save_tocFunction · 0.80
get_typeFunction · 0.80
Num.spec.tsFile · 0.80
DFunction · 0.80
hFunction · 0.80
CFunction · 0.80
beFunction · 0.80
laFunction · 0.80

Calls 2

calcMethod · 0.95
iterToArrayMethod · 0.80

Tested by

no test coverage detected