Function
screen
(
viewport: Pick<
MatchMediaContext,
'viewportWidth' | 'viewportHeight' | 'viewportZoom'
>,
primaryPointingDevice: 'touchscreen' | 'mouse' | undefined = 'touchscreen',
secondaryPointingDevice?: 'touchscreen' | 'mouse'
)
Source from the content-addressed store, hash-verified
| 482 | } as const); |
| 483 | |
| 484 | const screen = ( |
| 485 | viewport: Pick< |
| 486 | MatchMediaContext, |
| 487 | 'viewportWidth' | 'viewportHeight' | 'viewportZoom' |
| 488 | >, |
| 489 | primaryPointingDevice: 'touchscreen' | 'mouse' | undefined = 'touchscreen', |
| 490 | secondaryPointingDevice?: 'touchscreen' | 'mouse' |
| 491 | ) => |
| 492 | ({ |
| 493 | mediaType: 'screen', |
| 494 | ...viewport, |
| 495 | rootFontSizePx: defaultRootFontSizePx, |
| 496 | primaryPointingDevice, |
| 497 | secondaryPointingDevice, |
| 498 | } as const); |
| 499 | |
| 500 | const screenSized = ( |
| 501 | viewportWidth: number, |
Tested by
no test coverage detected