Step-Scale
Scale your vertical and horizontal pixel sizes on different screens' dimensions, .. And More !
- Scale pixel sizes on different screens' dimensions
- Generate common styles' shapes in one line
- Easily Get screen width and height.
Instalation
npm i step-scale
- OR - yarn add step-scale
Then.. Your Are Done !
Usage
Basic Scalers
/*Basic Scalers: hScale: Horizontal Scaler.vScale: Vertical Scaler.fScale: FontSize Scaler. */
Constants
/*Constants: sWidth: Screen Width value.sHeight: Screen Height value. */
Extras
/*Extras: Shapes GeneratorrcScale: generates scaled Rectangle.sqScale: generates scaled Square.crScale: generates scaled Circle. Extra Size Scaler:tScale: Total Size Scaler. */