mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-27 23:56:09 +03:00
Compare commits
No commits in common. "bdb44d84fb59e1050e95f6f92613057c24371ba7" and "0335f3f4abfcd003a70ecd2fce92475bb13fa207" have entirely different histories.
bdb44d84fb
...
0335f3f4ab
@ -7,7 +7,6 @@ OPENSEADRAGON CHANGELOG
|
|||||||
* You can now provide an element for the navigator (as an alternative to an ID) (#1303 @cameronbaney, #2166 #2175 @joedf)
|
* You can now provide an element for the navigator (as an alternative to an ID) (#1303 @cameronbaney, #2166 #2175 @joedf)
|
||||||
* Now supporting IIIF "id" and "identifier" in addition to "@id" (#2173 @ahankinson)
|
* Now supporting IIIF "id" and "identifier" in addition to "@id" (#2173 @ahankinson)
|
||||||
* We now delegate tile fetching and caching to the TileSource, to allow for custom tile formats (#2148 @Aiosa)
|
* We now delegate tile fetching and caching to the TileSource, to allow for custom tile formats (#2148 @Aiosa)
|
||||||
* Fixed: Cropping tiled images with polygons was broken (#2183 @altert)
|
|
||||||
|
|
||||||
3.1.0:
|
3.1.0:
|
||||||
|
|
||||||
|
@ -1940,15 +1940,14 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this._croppingPolygons) {
|
if (this._croppingPolygons) {
|
||||||
var self = this;
|
|
||||||
this._drawer.saveContext(useSketch);
|
this._drawer.saveContext(useSketch);
|
||||||
try {
|
try {
|
||||||
var polygons = this._croppingPolygons.map(function (polygon) {
|
var polygons = this._croppingPolygons.map(function (polygon) {
|
||||||
return polygon.map(function (coord) {
|
return polygon.map(function (coord) {
|
||||||
var point = self
|
var point = this
|
||||||
.imageToViewportCoordinates(coord.x, coord.y, true)
|
.imageToViewportCoordinates(coord.x, coord.y, true)
|
||||||
.rotate(-self.getRotation(true), self._getRotationPoint(true));
|
.rotate(-this.getRotation(true), this._getRotationPoint(true));
|
||||||
var clipPoint = self._drawer.viewportCoordToDrawerCoord(point);
|
var clipPoint = this._drawer.viewportCoordToDrawerCoord(point);
|
||||||
if (sketchScale) {
|
if (sketchScale) {
|
||||||
clipPoint = clipPoint.times(sketchScale);
|
clipPoint = clipPoint.times(sketchScale);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user