0.2.1 • Published 1 year ago

@rbxts/ui-scaler v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

📐 UI Scaler

This library will allow you to scalable ui

☄️ Installation

NPM(https://www.npmjs.com/package/@rbxts/ui-scaler)

npm i @rbxts/ui-scaler

📚 Documentation

Scaler

You need to create a scaler

const BASE_RESOLUTION = new Vector2(1920, 1080);
const scaleApi = useScaler(BASE_RESOLUTION);

Scale calculator

You can now use the scale-aware counting functions

scaleApi.px(100);
scaleApi.unscale(100);

Hooks

You can also use hooks that will re-render your component, after changing the scale

scaleApi.usePx();
scaleApi.useUnscale();

❤️ Credits

SUMER (Discord: sumer_real)\ Tesmi (Discord: tesmi)

0.2.1

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago