mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 06:06:09 +03:00
Initial commit for ReferenceStrip overhaul 2021
This commit is contained in:
parent
58a90f7c39
commit
885c4d8e51
@ -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',
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user