MCPcopy Create free account
hub / github.com/bengmathew/tpaw / paddingCSSStyle

Function paddingCSSStyle

packages/web/src/Utils/Geometry.ts:184–190  ·  view source on GitHub ↗
(
  padding: Padding,
  { scale }: { scale?: number } = {},
)

Source from the content-addressed store, hash-verified

182 paddingRight: `${right * scale}px`,
183})
184export const paddingCSSStyle = (
185 padding: Padding,
186 { scale }: { scale?: number } = {},
187) => ({
188 ...paddingCSSStyleHorz(padding, { scale }),
189 ...paddingCSSStyleVert(padding, { scale }),
190})
191
192export type Size = { width: number; height: number }
193export type XY = { x: number; y: number }

Calls 2

paddingCSSStyleHorzFunction · 0.85
paddingCSSStyleVertFunction · 0.85

Tested by

no test coverage detected