From 3a851f09e162bcf183895cdb2f149fb5ee1413e3 Mon Sep 17 00:00:00 2001 From: Phan Shi Yu Date: Mon, 22 Apr 2024 18:24:52 +0800 Subject: [PATCH] chore: add console log of displayResult --- example/application/container.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/example/application/container.tsx b/example/application/container.tsx index 46fb268..0d39dde 100644 --- a/example/application/container.tsx +++ b/example/application/container.tsx @@ -225,7 +225,13 @@ const Viewer: React.FunctionComponent = ({ document }): React.React `} > {isSvg ? ( - <__unsafe__not__for__production__v2__SvgRenderer document={document.document} ref={svgRef} /> + <__unsafe__not__for__production__v2__SvgRenderer + document={document.document} + ref={svgRef} + onResult={(r) => { + console.log(r); + }} + /> ) : (