MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / widthToMax

Method widthToMax

front_end/models/geometry/GeometryImpl.ts:348–350  ·  view source on GitHub ↗
(size: number|Size)

Source from the content-addressed store, hash-verified

346 }
347
348 widthToMax(size: number|Size): Size {
349 return new Size(Math.max(this.width, (typeof size === 'number' ? size : size.width)), this.height);
350 }
351
352 addWidth(size: number|Size): Size {
353 return new Size(this.width + (typeof size === 'number' ? size : size.width), this.height);

Callers 5

updateForChildMethod · 0.45
calculateConstraintsMethod · 0.45
calculateConstraintsMethod · 0.45
widthToMaxMethod · 0.45
Geometry.test.tsFile · 0.45

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected