diff --git a/src/openseadragon.js b/src/openseadragon.js index ff011fb7..4b89e31c 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -601,7 +601,7 @@ * * @property {String} [referenceStripScroll='horizontal'] * - * @property {Element} [referenceStripElement=null] + * @property {Element} [referenceStripId=null] * * @property {Number} [referenceStripHeight=null] * @@ -1260,7 +1260,7 @@ function OpenSeadragon( options ){ //REFERENCE STRIP SETTINGS showReferenceStrip: false, referenceStripScroll: 'horizontal', - referenceStripElement: null, + referenceStripId: null, referenceStripHeight: null, referenceStripWidth: null, referenceStripPosition: 'BOTTOM_LEFT', diff --git a/src/referencestrip.js b/src/referencestrip.js index 20dd9ea9..e991699c 100644 --- a/src/referencestrip.js +++ b/src/referencestrip.js @@ -62,6 +62,27 @@ var THIS = {}; * @param {Object} options */ $.ReferenceStrip = function ( options ) { + // //REFERENCE STRIP SETTINGS ($.DEFAULT_SETTINGS) + // showReferenceStrip: false, + // referenceStripScroll: 'horizontal', + // referenceStripId: null, + // referenceStripHeight: null, + // referenceStripWidth: null, + // referenceStripPosition: 'BOTTOM_LEFT', + // referenceStripSizeRatio: 0.2, + + // this.referenceStrip = new $.ReferenceStrip({ + // id: this.referenceStripId, + // position: this.referenceStripPosition, + // sizeRatio: this.referenceStripSizeRatio, + // scroll: this.referenceStripScroll, + // height: this.referenceStripHeight, + // width: this.referenceStripWidth, + // tileSources: this.tileSources, + // prefixUrl: this.prefixUrl, + // useCanvas: this.useCanvas, + // viewer: this + // }); var _this = this, viewer = options.viewer, diff --git a/src/viewer.js b/src/viewer.js index 29b2054a..4b3812cc 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2249,7 +2249,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, if (this.tileSources.length && this.tileSources.length > 1) { this.referenceStrip = new $.ReferenceStrip({ - id: this.referenceStripElement, + id: this.referenceStripId, position: this.referenceStripPosition, sizeRatio: this.referenceStripSizeRatio, scroll: this.referenceStripScroll,