MCPcopy Create free account
hub / github.com/angular/components / getTileSize

Function getTileSize

src/material/grid-list/tile-styler.ts:88–90  ·  view source on GitHub ↗

* Gets the actual size of a tile, e.g., width or height, taking rowspan or colspan into account. * @param baseSize Base size of a 1x1 tile (as computed in getBaseTileSize). * @param span The tile's rowspan or colspan. * @return Size of the tile as a CSS calc() expression.

(baseSize: string, span: number)

Source from the content-addressed store, hash-verified

86 * @return Size of the tile as a CSS calc() expression.
87 */
88 getTileSize(baseSize: string, span: number): string {
89 return `(${baseSize} * ${span}) + (${span - 1} * ${this._gutterSize})`;
90 }
91
92 /**
93 * Sets the style properties to be applied to a tile for the given row and column index.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected