Initial commit for ReferenceStrip overhaul 2021

This commit is contained in:
Mark Salsbery 2021-03-18 21:35:56 -07:00
parent 58a90f7c39
commit 885c4d8e51
3 changed files with 24 additions and 3 deletions

View File

@ -601,7 +601,7 @@
* *
* @property {String} [referenceStripScroll='horizontal'] * @property {String} [referenceStripScroll='horizontal']
* *
* @property {Element} [referenceStripElement=null] * @property {Element} [referenceStripId=null]
* *
* @property {Number} [referenceStripHeight=null] * @property {Number} [referenceStripHeight=null]
* *
@ -1260,7 +1260,7 @@ function OpenSeadragon( options ){
//REFERENCE STRIP SETTINGS //REFERENCE STRIP SETTINGS
showReferenceStrip: false, showReferenceStrip: false,
referenceStripScroll: 'horizontal', referenceStripScroll: 'horizontal',
referenceStripElement: null, referenceStripId: null,
referenceStripHeight: null, referenceStripHeight: null,
referenceStripWidth: null, referenceStripWidth: null,
referenceStripPosition: 'BOTTOM_LEFT', referenceStripPosition: 'BOTTOM_LEFT',

View File

@ -62,6 +62,27 @@ var THIS = {};
* @param {Object} options * @param {Object} options
*/ */
$.ReferenceStrip = function ( 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, var _this = this,
viewer = options.viewer, viewer = options.viewer,

View File

@ -2249,7 +2249,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
if (this.tileSources.length && this.tileSources.length > 1) { if (this.tileSources.length && this.tileSources.length > 1) {
this.referenceStrip = new $.ReferenceStrip({ this.referenceStrip = new $.ReferenceStrip({
id: this.referenceStripElement, id: this.referenceStripId,
position: this.referenceStripPosition, position: this.referenceStripPosition,
sizeRatio: this.referenceStripSizeRatio, sizeRatio: this.referenceStripSizeRatio,
scroll: this.referenceStripScroll, scroll: this.referenceStripScroll,