Open hichemfantar opened 2 years ago
How can I bring back the toolbar already available in react-svg-pan-zoom library?
Cause: svg-viewer.jsx ( customToolbar={() => <></>} ) Wouldn't it be better to make the custom Toolbar optional?
customToolbar={() => <></>}
return ( <ReactSVGPanZoom detectAutoPan={false} ref={Viewer} scaleFactor={scaleFactor} scaleFactorMax={scaleFactorMax} scaleFactorMin={scaleFactorMin} width={Math.min(width, bracketWidth)} height={Math.min(height, bracketHeight)} tool={tool} onChangeTool={setTool} value={value} onChangeValue={setValue} onZoom={lockToBoundaries} onPan={lockToBoundaries} miniatureProps={{ position: 'right' }} customToolbar={() => <></>} {...rest} > {children} </ReactSVGPanZoom> );
How can I bring back the toolbar already available in react-svg-pan-zoom library?
Cause: svg-viewer.jsx (
customToolbar={() => <></>}
) Wouldn't it be better to make the custom Toolbar optional?