Перейти к содержимому
FastOffice

window.fastdocShell · document

Работа с текущим документом: открытие, экспорт изображений, сравнение, печать. Методов: 20.

clearCompareDocx(): Promise<{ cleared: boolean }>

web_to_host_request_response · invoke · fastdoc-shell:clear-compare-docx · capability=document · preload.ts:1044

copyCurrentImageWorkflowImage(request?: ShellExportCurrentImageWorkflowImagesRequest): Promise<ShellCopyCurrentImageWorkflowImageResult>

web_to_host_request_response · invoke · fastdoc-shell:copy-current-image-workflow-image · capability=document · preload.ts:1158

copyShareText(text: string): Promise<ShellShareClipboardResult>

web_to_host_request_response · invoke · fastdoc-shell:copy-share-text · capability=document · preload.ts:1047

exportCurrentDocumentImages(request: ShellExportCurrentDocumentImagesRequest & { renderedCanvas: ShellSaveRenderedCanvasImagesRequest; }): Promise<ShellSaveRenderedCanvasImagesResult>
exportCurrentDocumentImages(request?: ShellExportCurrentDocumentImagesRequest): Promise<ShellExportCurrentDocumentImagesResult>

web_to_host_request_response · invoke · fastdoc-shell:export-current-document-images · capability=document · preload.ts:1258

exportCurrentImageWorkflowImages(request?: ShellExportCurrentImageWorkflowImagesRequest): Promise<ShellExportCurrentDocumentImagesResult>

web_to_host_request_response · invoke · fastdoc-shell:export-current-image-workflow-images · capability=document · preload.ts:1147

getCurrentDocumentTruth(): Promise<CurrentDocumentTruthViewerData>

web_to_host_request_response · invoke · fastdoc-shell:get-current-document-truth · capability=document · preload.ts:483

getCurrentDrawingMlWorkflow(): Promise<Record<string, unknown>>

web_to_host_request_response · invoke · fastdoc-shell:get-current-drawingml-workflow · capability=document · preload.ts:1139

getCurrentImageWorkflow(): Promise<Record<string, unknown>>

web_to_host_request_response · invoke · fastdoc-shell:get-current-image-workflow · capability=document · preload.ts:1136

getCurrentImageWorkflowExportPlan(request?: ShellCurrentImageWorkflowExportPlanRequest): Promise<ShellCurrentImageWorkflowExportPlan>

web_to_host_request_response · invoke · fastdoc-shell:get-current-image-workflow-export-plan · capability=document · preload.ts:1142

notifyDocumentRendered(renderedPath: string | null): void

web_to_host_event · send · fastdoc-shell:document-rendered · capability=document · preload.ts:2352

openCompareDocxPath(path: string): Promise<{ opened: boolean; path: string }>

web_to_host_request_response · invoke · fastdoc-shell:open-compare-docx-path · capability=document · preload.ts:567

openDocxPath(path: string, source?: "file-menu" | "drop" | "recent" | "outline-history"): Promise<{ opened: boolean; canceled: boolean; path: string | null; reentryReceipt?: import("../file-session-reentry.js").FileSessionReentryReceipt; }>

web_to_host_request_response · invoke · fastdoc-shell:open-docx-path · capability=document · preload.ts:544

openEditorV0UserCopyDialog(request?: { path?: string | null; }): Promise<{ canceled: boolean; path: string | null; text: string | null }>

web_to_host_request_response · invoke · fastdoc-shell:open-editor-v0-user-copy-dialog · capability=document · preload.ts:2253

pathExists(path: string): Promise<{ path: string; exists: boolean }>

web_to_host_request_response · invoke · fastdoc-shell:path-exists · capability=document · preload.ts:570

prepareEditorV0QuickPrintPlan(request?: EditorV0QuickPrintPlanRequest): Promise<EditorV0QuickPrintPlanResult>

web_to_host_request_response · invoke · fastdoc-shell:prepare-editor-v0-quick-print-plan · capability=document · preload.ts:2258

reopenEditorV0TextContinueCopy(request?: { outputKind?: | "editor-v0-text-continue-commands" | "editor-v0-undo" | "editor-v0-redo" | "editor-v0-save-as-dialog" | "editor-v0-save-state" | "editor-v0-nonblocking-typing" | "editor-v0-double-space-period-autocorrect" | "editor-v0-selection-replace" | "editor-v0-selection-edit-2" | "editor-v0-selection-edit-3" | "editor-v0-selection-edit-4" | "editor-v0-save-open-loop" | "editor-v0-autosave-toggle-action" | "editor-v0-open-saved-copy-ui" | "editor-v0-multistep-undo" | "editor-v0-save-copy-shortcuts" | "editor-v0-save-copy-destination-polish" | "editor-v0-save-copy-as-user-path" | "editor-v0-quick-save-copy-action" | "editor-v0-quick-open-copy-action" | "editor-v0-quick-open-docx-action" | "editor-v0-open-user-copy-dialog" | "editor-v0-save-open-recent-copy" | "editor-v0-formatted-run-edit" | "editor-v0-formatted-selection-edit" | "editor-v0-formatted-text-tranche" | "editor-v0-formatted-selection-ui" | "editor-v0-formatted-selection-controls" | "editor-v0-run-boundary-edit" | "editor-v0-run-boundary-edit-controls" | "editor-v0-run-boundary-insert-controls" | "editor-v0-run-boundary-text-input-controls" | "editor-v0-cross-run-selection-input" | "editor-v0-paragraph-split-merge" | "editor-v0-paragraph-text-flow" | "editor-v0-paragraph-text-flow-commands" | "editor-v0-styled-paragraph-flow" | "editor-v0-styled-paragraph-merge-controls" | "editor-v0-styled-paragraph-text-after-merge" | "editor-v0-paragraph-boundary-insert" | "editor-v0-paragraph-boundary-delete-controls" | "editor-v0-user-paragraph-boundary-edit" | "editor-v0-user-paragraph-multiline-flow" | "editor-v0-styled-multiline-boundary-edit" | "editor-v0-toolbar-format-commands-bounded" | "editor-v0-toolbar-format-commands-italic-blue" | "editor-v0-home-chr-tranche2-market" | "editor-v0-font-family-size-commands" | "editor-v0-text-case-toolbar-command" | "editor-v0-format-toolbar-multi-command-chain" | "editor-v0-format-clear-command" | "editor-v0-format-clear-partial-selection" | "editor-v0-format-apply-partial-selection" | "editor-v0-mixed-format-selection-workflow" | "editor-v0-mixed-format-clear-or-paste-rules" | "editor-v0-mixed-format-paste-rules" | "editor-v0-clipboard-copy-cut-paste"; path?: string | null; transientTableEdit?: boolean; canonicalHistoryTransitionKind?: | "table-cell-semantic-undo" | "table-cell-semantic-redo"; expectedClipboardFingerprint?: string | null; expectedDocumentPath?: string | null; canonicalOwnerReceipt?: { schema: "fastdoc.persistent-save-checkpoint-receipt.v1"; sessionId: string; documentId: string; acceptedRevision: number; publishedModelHash: string; targetHash: string; targetIdentity: import("../version-store.js").PublishedTargetIdentity; } | null; }): Promise<{ opened: boolean; path: string; text?: string | null }>

web_to_host_request_response · invoke · fastdoc-shell:reopen-editor-v0-text-continue-copy · capability=document · preload.ts:2166

selectCurrentImageWorkflowReplacementImage(): Promise<{ canceled: boolean; path: string | null; }>

web_to_host_request_response · invoke · fastdoc-shell:select-current-image-workflow-replacement-image · capability=document · preload.ts:1175

selectEditorV0InsertImageObjectImage(): Promise<{ canceled: boolean; path: string | null; }>

web_to_host_request_response · invoke · fastdoc-shell:select-editor-v0-insert-image-object-image · capability=document · preload.ts:1178

selectEditorV0InsertObjectTextFileSource(): Promise<EditorV0InsertObjectTextFileSourceResult>

web_to_host_request_response · invoke · fastdoc-shell:select-editor-v0-insert-object-text-file-source · capability=document · preload.ts:1523

writeJsonFile(path: string, data: unknown): Promise<{ path: string; written: boolean; bytes: number }>

web_to_host_request_response · invoke · fastdoc-shell:write-json-file · capability=document · preload.ts:573

Ассистент документации

Ответ собран из документации и может быть неточным — сверяйтесь с источниками.