Interface: View<Params>
ghostly-engine.View
A view of the model that the template should render.
Type parameters
Name | Type |
---|---|
Params | unknown |
Properties
contentType
• contentType: string
The view's type (for instance, text/html
or application/pdf
).
Defined in
ghostly-runtime/build/src/types.d.ts:62
dpi
• Optional
dpi: number
The resolution be used when rendering the view. Used for viewport size calculations.
Defined in
ghostly-runtime/build/src/types.d.ts:66
htmlTransforms
• Optional
htmlTransforms: HTMLTransform
[]
An array of transformations to apply when producing HTML results. Defaults to [ 'inline', 'noscript',
'minimize' ]
.
Defined in
ghostly-runtime/build/src/types.d.ts:74
paperSize
• Optional
paperSize: PaperSize
The paper size to be used when rendering documents.
Defined in
ghostly-runtime/build/src/types.d.ts:68
params
• Optional
params: Params
Optional view params.
Defined in
ghostly-runtime/build/src/types.d.ts:64
viewportSize
• Optional
viewportSize: ViewportSize
The size of the viewport to use, in pixels. Will be calculated from dpi
and paperSize
, if not provided.
Defined in
ghostly-runtime/build/src/types.d.ts:70