mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 12:46:09 +03:00
fix docs. rename matrix.js to matrix3.js
This commit is contained in:
parent
d5a3cabf13
commit
55882b9215
@ -28,7 +28,7 @@ module.exports = function(grunt) {
|
|||||||
coverageDir = 'coverage/' + dateFormat(new Date(), 'yyyymmdd-HHMMss'),
|
coverageDir = 'coverage/' + dateFormat(new Date(), 'yyyymmdd-HHMMss'),
|
||||||
sources = [
|
sources = [
|
||||||
"src/openseadragon.js",
|
"src/openseadragon.js",
|
||||||
"src/matrix.js",
|
"src/matrix3.js",
|
||||||
"src/fullscreen.js",
|
"src/fullscreen.js",
|
||||||
"src/eventsource.js",
|
"src/eventsource.js",
|
||||||
"src/mousetracker.js",
|
"src/mousetracker.js",
|
||||||
|
@ -241,7 +241,7 @@ $.DrawerBase = class DrawerBase{
|
|||||||
// Internal utility functions
|
// Internal utility functions
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* * Calculate width and height of the canvas based on viewport dimensions
|
* Calculate width and height of the canvas based on viewport dimensions
|
||||||
* and pixelDensityRatio
|
* and pixelDensityRatio
|
||||||
* @private
|
* @private
|
||||||
* @returns {OpenSeadragon.Point} {x, y} size of the canvas
|
* @returns {OpenSeadragon.Point} {x, y} size of the canvas
|
||||||
|
@ -30,38 +30,41 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
*
|
*/
|
||||||
*
|
|
||||||
|
|
||||||
|
/*
|
||||||
* Portions of this source file are taken from WegGL Fundamentals:
|
* Portions of this source file are taken from WegGL Fundamentals:
|
||||||
*
|
*
|
||||||
* # Copyright 2012, Gregg Tavares.
|
* Copyright 2012, Gregg Tavares.
|
||||||
* # All rights reserved.
|
* All rights reserved.
|
||||||
* #
|
*
|
||||||
* # Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* # modification, are permitted provided that the following conditions are
|
* modification, are permitted provided that the following conditions are
|
||||||
* # met:
|
* met:
|
||||||
* #
|
*
|
||||||
* # * Redistributions of source code must retain the above copyright
|
* * Redistributions of source code must retain the above copyright
|
||||||
* # notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* # * Redistributions in binary form must reproduce the above
|
* * Redistributions in binary form must reproduce the above
|
||||||
* # copyright notice, this list of conditions and the following disclaimer
|
* copyright notice, this list of conditions and the following disclaimer
|
||||||
* # in the documentation and/or other materials provided with the
|
* in the documentation and/or other materials provided with the
|
||||||
* # distribution.
|
* distribution.
|
||||||
* # * Neither the name of Gregg Tavares. nor the names of his
|
* * Neither the name of Gregg Tavares. nor the names of his
|
||||||
* # contributors may be used to endorse or promote products derived from
|
* contributors may be used to endorse or promote products derived from
|
||||||
* # this software without specific prior written permission.
|
* this software without specific prior written permission.
|
||||||
* #
|
*
|
||||||
* # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
* # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
* # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
* # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
* # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
* # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
* # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
* # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
* # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
* # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
* # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -84,7 +87,6 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
class Mat3{
|
class Mat3{
|
||||||
|
|
||||||
constructor(values){
|
constructor(values){
|
||||||
if(!values) {
|
if(!values) {
|
||||||
values = [
|
values = [
|
||||||
@ -93,13 +95,12 @@ class Mat3{
|
|||||||
0, 0, 0
|
0, 0, 0
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
this.values = values;
|
this.values = values;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @alias makeIdentity
|
* @function makeIdentity
|
||||||
* @memberof! OpenSeadragon.Mat3
|
* @memberof OpenSeadragon.Mat3
|
||||||
* @static
|
* @static
|
||||||
* @returns {OpenSeadragon.Mat3} an identity matrix
|
* @returns {OpenSeadragon.Mat3} an identity matrix
|
||||||
*/
|
*/
|
||||||
@ -112,8 +113,8 @@ class Mat3{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @alias makeTranslation
|
* @function makeTranslation
|
||||||
* @memberof! OpenSeadragon.Mat3
|
* @memberof OpenSeadragon.Mat3
|
||||||
* @static
|
* @static
|
||||||
* @param {Number} tx The x value of the translation
|
* @param {Number} tx The x value of the translation
|
||||||
* @param {Number} ty The y value of the translation
|
* @param {Number} ty The y value of the translation
|
||||||
@ -128,8 +129,8 @@ class Mat3{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @alias makeRotation
|
* @function makeRotation
|
||||||
* @memberof! OpenSeadragon.Mat3
|
* @memberof OpenSeadragon.Mat3
|
||||||
* @static
|
* @static
|
||||||
* @param {Number} angleInRadians The desired rotation angle, in radians
|
* @param {Number} angleInRadians The desired rotation angle, in radians
|
||||||
* @returns {OpenSeadragon.Mat3} A rotation matrix
|
* @returns {OpenSeadragon.Mat3} A rotation matrix
|
||||||
@ -145,8 +146,8 @@ class Mat3{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @alias makeScaling
|
* @function makeScaling
|
||||||
* @memberof! OpenSeadragon.Mat3
|
* @memberof OpenSeadragon.Mat3
|
||||||
* @static
|
* @static
|
||||||
* @param {Number} sx The x value of the scaling
|
* @param {Number} sx The x value of the scaling
|
||||||
* @param {Number} sy The y value of the scaling
|
* @param {Number} sy The y value of the scaling
|
@ -518,7 +518,7 @@
|
|||||||
* Milliseconds to wait after each tile retry if tileRetryMax is set.
|
* Milliseconds to wait after each tile retry if tileRetryMax is set.
|
||||||
*
|
*
|
||||||
* @property {Boolean} [useCanvas=true]
|
* @property {Boolean} [useCanvas=true]
|
||||||
* Deprecated. Use options.drawer to specify preferred renderer.
|
* Deprecated. Use the `drawer` option to specify preferred renderer.
|
||||||
*
|
*
|
||||||
* @property {Number} [minPixelRatio=0.5]
|
* @property {Number} [minPixelRatio=0.5]
|
||||||
* The higher the minPixelRatio, the lower the quality of the image that
|
* The higher the minPixelRatio, the lower the quality of the image that
|
||||||
|
@ -46,7 +46,7 @@ var THIS = {};
|
|||||||
*
|
*
|
||||||
* This idea is a reexpression of the idea of dzi collections
|
* This idea is a reexpression of the idea of dzi collections
|
||||||
* which allows a clearer algorithm to reuse the tile sources already
|
* which allows a clearer algorithm to reuse the tile sources already
|
||||||
* supported by OpenSeadragon, in heterogenious or homogenious
|
* supported by OpenSeadragon, in heterogeneous or homogeneous
|
||||||
* sequences just like mixed groups already supported by the viewer
|
* sequences just like mixed groups already supported by the viewer
|
||||||
* for the purpose of image sequnces.
|
* for the purpose of image sequnces.
|
||||||
*
|
*
|
||||||
@ -455,7 +455,7 @@ function loadPanels( strip, viewerSize, scroll ) {
|
|||||||
animationTime: 0,
|
animationTime: 0,
|
||||||
loadTilesWithAjax: strip.viewer.loadTilesWithAjax,
|
loadTilesWithAjax: strip.viewer.loadTilesWithAjax,
|
||||||
ajaxHeaders: strip.viewer.ajaxHeaders,
|
ajaxHeaders: strip.viewer.ajaxHeaders,
|
||||||
drawer: strip.viewer.drawer.constructor,
|
drawer: strip.viewer.drawer.constructor, //use the same drawer as the main viewer
|
||||||
} );
|
} );
|
||||||
// Allow pointer events to pass through miniViewer's canvas/container
|
// Allow pointer events to pass through miniViewer's canvas/container
|
||||||
// elements so implicit pointer capture works on touch devices
|
// elements so implicit pointer capture works on touch devices
|
||||||
|
Loading…
Reference in New Issue
Block a user