1.0.10 • Published 3 years ago

@superherocheesecake/size-utils v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

SizeUtils

A collecion of reusable methods used when calculating sizes

Cover

import { sizeUtils } from '@superherocheesecake/size-utils';

const s = sizeUtils.cover(containerWidth, containerHeight, elementWidth, elementHeight);

Contain

import { sizeUtils } from '@superherocheesecake/size-utils';

const s = sizeUtils.contain(containerWidth, containerHeight, elementWidth, elementHeight);

Alternative

Unpreferred implementation

import { sizeUtils, SIZE_UTILS_COVER } from '@superherocheesecake/size-utils';

const s = sizeUtils.getSize(containerWidth, containerHeight, elementWidth, elementHeight, SIZE_UTILS_COVER);
1.0.10

3 years ago

1.0.9

3 years ago

1.0.8-canary.4

3 years ago

1.0.8-canary.3

3 years ago

1.0.8

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago