useZoomFactor 
リアクティブな WebFrame ズーム係数。 @vueuse/electron アドオンで使用可能です。
使用方法 
ts
import { useZoomFactor } from '@vueuse/electron'
// enable nodeIntegration if you don't provide webFrame explicitly
// @see: https://electron.dokyumento.jp/docs/api/webview-tag#nodeintegration
// Ref result will return
const factor = useZoomFactor()
console.log(factor.value) // print current zoom factor
factor.value = 2 // change current zoom factor初期ズーム係数をすぐに設定する
js
import { useZoomFactor } from '@vueuse/electron'
const factor = useZoomFactor(2)ref を渡すと、ソース ref が変更されたときに係数が更新されます
js
import { useZoomFactor } from '@vueuse/electron'
const factor = ref(1)
useZoomFactor(factor) // zoom factor will match with the ref
factor.value = 2 // zoom factor will change型宣言 
typescript
export declare function useZoomFactor(factor: MaybeRef<number>): Ref<number>
export declare function useZoomFactor(
  webFrame: WebFrame,
  factor: MaybeRef<number>,
): Ref<number>
export declare function useZoomFactor(webFrame: WebFrame): Ref<number>
export declare function useZoomFactor(): Ref<number>ソース 
貢献者 
変更履歴 
v12.0.0-beta.1 2024/11/21v10.7.0 2023/12/5v10.0.0-beta.5 2023/4/13cb644 - refactor!: isFunction と isString ユーティリティの削除