Skip to content

Commit

Permalink
chore(docs): Improve inaccurate documentation for Viewport.zoomTo
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Feb 8, 2025
1 parent 617798c commit 24b83f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/js-draw/src/Viewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,11 @@ export class Viewport {
return transform;
}

// Returns a Command that transforms the view such that [rect] is visible, and perhaps
// Returns a Command that transforms the view such that `toMakeVisible` is visible, and perhaps
// centered in the viewport.
// Returns null if no transformation is necessary
//
// If the content is already roughly centered in the screen and at a reasonable zoom level,
// the resultant command does nothing.
//
// @see {@link computeZoomToTransform}
public zoomTo(
Expand Down

0 comments on commit 24b83f3

Please sign in to comment.