MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / resizeFromArray

Method resizeFromArray

code/main/RenderArea.ts:522–532  ·  view source on GitHub ↗
(array: string[], xAdd: number = 0, yAdd: number = 0)

Source from the content-addressed store, hash-verified

520 }
521
522 public resizeFromArray(array: string[], xAdd: number = 0, yAdd: number = 0): void{
523 var width: number = 0;
524 var height: number = array.length;
525
526 for(var i = 0; i < array.length; i++){
527 if(width < array[i].length)
528 width = array[i].length;
529 }
530
531 this.resize(width + xAdd, height + yAdd);
532 }
533
534 public runLinks(): void{
535 for(var i = 0; i < this.links.length; i++){

Callers 15

constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls 1

resizeMethod · 0.95

Tested by

no test coverage detected