Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default connect((state) => {
const pendingCount = selectors.network.getPendingCount(state);
const remoteRendering = selectors.view.getRemoteRenderingState(state);
const remoteFps = selectors.view.getRemoteFpsState(state);
const viewId = selectors.active.getActiveView(state);
const provideOnImageReady = selectors.ui.getVisiblePanel(state) === 3; // SavePanel visible
const interactiveQuality = selectors.view.getRemoteInteractiveQualityState(
state
);
const interactiveRatio = selectors.view.getRemoteInteractiveRatioState(state);
const throttleTime = selectors.view.getThrottleTime(state);
const maxFPS = selectors.view.getServerMaxFPS(state);
const progress = selectors.network.getProgressUpdate(state);
return {
pendingCount,
remoteRendering,
remoteFps,
viewId,
provideOnImageReady,
interactiveRatio,