Skip to content

Commit

Permalink
Renamed repage to resetPage.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Aug 11, 2024
1 parent 3dcfcc6 commit 3043729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/magick-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ export interface IMagickImage extends IDisposable {
/**
* Resets the page property of this image.
*/
repage(): void;
resetPage(): void;

/**
* Resize image in terms of its pixel size.
Expand Down Expand Up @@ -2872,7 +2872,7 @@ export class MagickImage extends NativeInstance implements IMagickImage {
});
}

repage(): void {
resetPage(): void {
this.page = new MagickGeometry(0, 0, 0, 0);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import { MagickGeometry } from '@src/types/magick-geometry';
import { TestImages } from '@test/test-images';

describe('MagickImage#repage', () => {
describe('MagickImage#resetPage', () => {
it('should reset the page', () => {
TestImages.empty.use((image) => {
image.page = new MagickGeometry(1, 2, 3, 4);

image.repage();
image.resetPage();

const page = image.page;
expect(page.x).toBe(0);
Expand Down

0 comments on commit 3043729

Please sign in to comment.