Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-openspace committed Dec 3, 2024
1 parent 715e841 commit 2825823
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
5 changes: 2 additions & 3 deletions lib/commonjs/ReactNativeZoomableView.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/commonjs/ReactNativeZoomableView.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions lib/module/ReactNativeZoomableView.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/module/ReactNativeZoomableView.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions lib/typescript/ReactNativeZoomableView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,9 @@ declare class ReactNativeZoomableView extends Component<ReactNativeZoomableViewP
*/
zoomTo(newZoomLevel: number): boolean;
/**
* Sets zoom relative to a "zoom subject" which is the relative coordinates
* of the view
* Sets zoom relative to the zoomableview
*/
zoomToZoomSubject(x: number, y: number, newZoomLevel: number): false | undefined;
zoomToRelCoords(x: number, y: number, newZoomLevel: number): false | undefined;
/**
* Zooms in or out by a specified change level
* Use a positive number for `zoomLevelChange` to zoom in
Expand Down
5 changes: 2 additions & 3 deletions src/ReactNativeZoomableView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1147,10 +1147,9 @@ class ReactNativeZoomableView extends Component<
}

/**
* Sets zoom relative to a "zoom subject" which is the relative coordinates
* of the view
* Sets zoom relative to the zoomableview
*/
zoomToZoomSubject(x: number, y: number, newZoomLevel: number) {
zoomToRelCoords(x: number, y: number, newZoomLevel: number) {
if (
// if we would go out of our min/max limits -> abort
(this.props.maxZoom && newZoomLevel > this.props.maxZoom) ||
Expand Down

0 comments on commit 2825823

Please sign in to comment.