mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-28 08:06:08 +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 {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',
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user