From 8f0e876d4fe626d45333e43b87552caebe5930cb Mon Sep 17 00:00:00 2001 From: Greg Garson Date: Tue, 19 Nov 2019 17:05:03 -0800 Subject: [PATCH] Pass useCanvas value down to reference strip viewers. --- src/referencestrip.js | 3 ++- src/viewer.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/referencestrip.js b/src/referencestrip.js index fb747558..49530b7a 100644 --- a/src/referencestrip.js +++ b/src/referencestrip.js @@ -451,7 +451,8 @@ function loadPanels( strip, viewerSize, scroll ) { blendTime: 0, animationTime: 0, loadTilesWithAjax: strip.viewer.loadTilesWithAjax, - ajaxHeaders: strip.viewer.ajaxHeaders + ajaxHeaders: strip.viewer.ajaxHeaders, + useCanvas: strip.useCanvas } ); miniViewer.displayRegion = $.makeNeutralElement( "div" ); diff --git a/src/viewer.js b/src/viewer.js index bb3cfc1c..20e06186 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2227,6 +2227,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, width: this.referenceStripWidth, tileSources: this.tileSources, prefixUrl: this.prefixUrl, + useCanvas: this.useCanvas, viewer: this });