1.0.10 • Published 4 years ago

@superherocheesecake/size-utils v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
4 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

4 years ago

1.0.9

4 years ago

1.0.8-canary.4

4 years ago

1.0.8-canary.3

4 years ago

1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago