MCPcopy
hub / github.com/midrender/revideo / calculateMaxWidth

Method calculateMaxWidth

packages/2d/src/lib/code/CodeCursor.ts:381–383  ·  view source on GitHub ↗
(metrics: CodeMetrics, x = this.cursor.x)

Source from the content-addressed store, hash-verified

379 }
380
381 private calculateMaxWidth(metrics: CodeMetrics, x = this.cursor.x): number {
382 return Math.max(this.maxWidth, metrics.maxWidth, x + metrics.firstWidth);
383 }
384
385 private currentProgress() {
386 if (this.globalProgress.length === 0) {

Callers 1

measureSizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected