Lines Matching refs:shellStr
301 …private singleLineToMultiLine(shellStr: string, foundationWidth: number, maxWidth: number): string…
303 while (shellStr.length * foundationWidth > maxWidth) {
304 let bfb = maxWidth / (shellStr.length * foundationWidth);
305 let cutIndex = Math.floor(shellStr.length * bfb);
306 let ss = shellStr.substring(0, cutIndex);
308 shellStr = shellStr.substring(cutIndex);
310 if (shellStr.length > 0) {
311 result.push(shellStr);
322 let shellStr = resultStrArr[index]; variable
323 let strWidth = this.shellCanvasCtx!.measureText(shellStr).width;
325 …let lines = this.singleLineToMultiLine(shellStr, foundationWidth, maxWidth - SpWebHdcShell.LEFT_OF…
328 this.finalArr.push(shellStr);
339 let shellStr: string = this.finalArr[index]; variable
341 this.shellCanvasCtx!.fillText(shellStr, SpWebHdcShell.LEFT_OFFSET, this.textY);