Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.4.2 · function

paperSizeToPixels

ソース

APIの説明は英語のcanonical sourceを表示しています。

Convert paper size to pixels at given DPI

paperSizeToPixels(size: PaperSize, orientation?: PaperOrientation, dpi?: number): { height: number; width: number }

パラメーター

名前 型 説明 既定値
size PaperSize 追加説明はありません。 —
orientation PaperOrientation 追加説明はありません。 'portrait'
dpi number 追加説明はありません。 96

戻り値

{ height: number; width: number }

libs/@shumoku/core/src/libs/@shumoku/core/src/models/types.ts:1325