exportPageOf function
PageComponent?
exportPageOf(
- DraftDocument document
The page document's root carries, or null when it has none (spec 13
D8: the flow then returns without effect). Read from the document, never
from the screen: the export plots the page, at its scale.
Implementation
PageComponent? exportPageOf(DraftDocument document) =>
document.components.isRegistered<PageComponent>()
? document.components.get<PageComponent>(document.rootHandle)
: null;