yarn @react-pdf-viewer/core 2.3.1
v2.3.1

latest releases: 3.12.0, 3.11.0, 3.10.0...
3 years ago

Improvements

  • Full Screen plugin provides new callbacks that are triggered after entering and exiting the full screen mode
import { SpecialZoomLevel } from '@react-pdf-viewer/core';
import { fullScreenPlugin } from '@react-pdf-viewer/full-screen';

const fullScreenPluginInstance = fullScreenPlugin({
    // Zoom to fit the screen after entering and exiting the full screen mode
    onEnterFullScreen: (zoom) => {
        zoom(SpecialZoomLevel.PageFit);
    },
    onExitFullScreen: (zoom) => {
        zoom(SpecialZoomLevel.PageFit);
    },
});

Bug fixes

  • The style files are missing in the Highlight plugin
  • Render highlight annotations formed by quadrilaterals
  • The popup annotations aren't shown if they are children of highlight annotations
  • Clicking a destination (bookmark, for example) with name of FitH or FitBH throws an exception

Don't miss a new core release

NewReleases is sending notifications on new releases.