docs: absoluteDims
This commit is contained in:
parent
c74aa1b930
commit
40d2c7fe04
1 changed files with 1 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
/** Create CSS rule string for centered and give it this width and height */
|
||||||
export const absoluteDims = (w: number, h = w) => `
|
export const absoluteDims = (w: number, h = w) => `
|
||||||
left: ${w * -0.5}px;
|
left: ${w * -0.5}px;
|
||||||
top: ${h * -0.5}px;
|
top: ${h * -0.5}px;
|
||||||
|
|
Loading…
Reference in a new issue