UNPKG

viewport-playground

Version:

```ts import {ViewportPlayground, enterPlayground} from 'viewport-playground'

17 lines (16 loc) 406 B
export const enterPlayground = () => { if (self !== top) return; viewportState.isActive = true; }; export const exitPlayground = () => { console.log('exit'); viewportState.isActive = false; }; export const viewportState = $state({ isActive: false, orientation: 'l', // p => portrait || l => landscape deviceId: 'ipad-mini', wrapper: 'iframe', iframeUrl: '/' });