Scale Modes
Global scaling is provided by createFitScale, which uses ResizeObserver internally to calculate the scale value.
height: Scales by height, ratio iscontainer height / design heightwidth: Scales by width, ratio iscontainer width / design widthauto: Automatically chooses to scale by width or height to maintain the design aspect ratio
Example:
ts
app.use(createFitScale({
target: '#app',
designHeight: 1080,
designWidth: 1920,
scaleMode: 'auto'
}))