MCPcopy Index your code

hub / github.com/MatthewHerbst/react-to-print / functions

Functions24 in github.com/MatthewHerbst/react-to-print

↓ 14 callersFunctionlogMessages
({ level = 'error', messages, suppressErrors = false }: LogMessagesArgs)
src/utils/logMessage.ts:11
↓ 5 callersFunctionuseReactToPrint
({ bodyClass, contentRef, copyShadowRoots, documentTitle, fonts, ignoreGlobalStyles,
src/hooks/useReactToPrint.ts:14
↓ 4 callersFunctiongetErrorFromUnknown
(error: unknown)
src/utils/getErrorMessage.ts:1
↓ 2 callersMethodadd
(font: FontFace)
src/types/font-face.d.ts:17
↓ 2 callersFunctionbeginPrint
()
src/hooks/useReactToPrint.ts:35
↓ 2 callersFunctioncollectElements
(root: HTMLElement)
src/utils/clone.ts:3
↓ 2 callersFunctionremovePrintIframe
(preserveAfterPrint: UseReactToPrintOptions["preserveAfterPrint"], force?: boolean)
src/utils/removePrintIframe.ts:4
↓ 2 callersFunctionstartPrint
(printWindow: HTMLIFrameElement, options: UseReactToPrintOptions)
src/utils/startPrint.ts:12
↓ 1 callersFunctionappendPrintWindow
( /** The print iframe */ printWindow: HTMLIFrameElement, markLoaded: (resource: Element | Font |
src/utils/appendPrintWindow.ts:5
↓ 1 callersFunctioncloneShadowRoots
(sourceNode: Node, targetNode: Node, suppressErrors: boolean)
src/utils/clone.ts:16
↓ 1 callersFunctiongeneratePrintWindow
(printIframeProps: UseReactToPrintOptions["printIframeProps"])
src/utils/generatePrintWindow.ts:4
↓ 1 callersFunctiongetContentNode
({ contentRef, optionalContent, suppressErrors }: GetContentNodesArgs)
src/utils/getContentNode.ts:12
↓ 1 callersFunctiongetMarkedLoaded
( options: UseReactToPrintOptions, numResourcesToLoad: number, printWindow: HTMLIFrameElement, )
src/utils/getMarkedLoaded.ts:6
↓ 1 callersFunctiongetPrintData
( optionalContent: UseReactToPrintHookContent | undefined, options: UseReactToPrintOptions, )
src/utils/getPrintData.ts:7
↓ 1 callersFunctionhandleAfterPrint
()
src/utils/startPrint.ts:27
↓ 1 callersFunctionhandlePrintWindowOnLoad
( printWindow: HTMLIFrameElement, markLoaded: MarkLoaded, data: HandlePrintWindowOnLoadData, o
src/utils/handlePrintWindowOnLoad.ts:43
↓ 1 callersFunctionisMobileBrowser
* Determines if the current browser is a mobile browser by checking the `navigator.userAgent` * against a predefined list of common mobile browser i
src/utils/startPrint.ts:117
FunctionBasicComponent
()
examples/BasicComponent/index.tsx:10
FunctionCopyShadowRootContent
()
examples/CopyShadowRootContent/index.tsx:10
FunctionCustomPrint
()
examples/CustomPrint/index.tsx:10
FunctionExample
()
examples/index.tsx:13
FunctionLazyContent
()
examples/LazyContent/index.tsx:7
FunctionOnBeforePrint
()
examples/OnBeforePrint/index.tsx:10
FunctionreactToPrintContent
()
examples/LazyContent/index.tsx:10