dist/ngx-document-scanner/bundles/ngx-document-scanner.umd.js
function (resizeRatios, initialPreviewDimensions, initialPositions) {
                var _this = this;
                // convert positions to ratio between position to initial pane dimension
                initialPositions = initialPositions.map(function (point) {
                    return new PositionChangeData({
                        x: point.x / initialPreviewDimensions.width,
                        y: point.y / initialPreviewDimensions.height,
                    }, point.roles);
                });
                this.repositionPoints(initialPositions.map(function (point) {
                    return _this.rotateCornerClockwise(point);
                }));
            }
function (resizeRatios, initialPreviewDimensions, initialPositions) {
                var _this = this;
                // convert positions to ratio between position to initial pane dimension
                initialPositions = initialPositions.map(function (point) {
                    return new PositionChangeData({
                        x: point.x / initialPreviewDimensions.width,
                        y: point.y / initialPreviewDimensions.height,
                    }, point.roles);
                });
                this.repositionPoints(initialPositions.map(function (point) {
                    return _this.rotateCornerClockwise(point);
                }));
            }
function ( resizeRatios , initialPreviewDimensions , initialPositions ) { var _this = this ; // convert positions to ratio between position to initial pane dimension initialPositions = initialPositions . map ( function ( point ) { return new PositionChangeData ( { x : point . x / initialPreviewDimensions . width , y : point . y / initialPreviewDimensions . height , } , point . roles ) ; } ) ; this . repositionPoints ( initialPositions . map ( function ( point ) { return _this . rotateCornerClockwise ( point ) ; } ) ) ; }
rotate crop tool points clockwise
@param {?} resizeRatios - ratio between the new dimensions and the previous
@param {?} initialPreviewDimensions - preview pane dimensions before rotation
@param {?} initialPositions - current positions before rotation
@return {?}
rotate crop tool points clockwise