Skip to content

ElectronParameters

Unofficial

Parameters for device emulation.

Import:

import type { ElectronParameters } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronParameters

Properties

Property Type Description
deviceScaleFactor number The device scale factor. If zero, defaults to the original device scale factor.
scale number Scale of the emulated view inside the available space (not in fit-to-view mode).
screenPosition 'desktop' | 'mobile' The screen type to emulate.
screenSize ElectronSize The emulated screen size, used when screenPosition is mobile.
viewPosition ElectronPoint The position of the view on the screen, used when screenPosition is mobile.
viewSize ElectronSize The emulated view size. An empty value means no override.