@@ -40,29 +40,29 @@ export function zoomLevelToPercentage(zoom: number): Percentage {
4040}
4141
4242/**
43- * Returns true if can decrease zoom percentage further .
43+ * Returns ` true` if the zoom can be decreased by one step .
4444 *
4545 * @param zoomPercentage - The current zoom percentage.
46- * @returns `true` if decrementing by one step stays at or above the minimum.
46+ * @returns `true` if decreasing by one step would remain at or above the minimum, `false` otherwise .
4747 */
4848export function canDecreaseZoom ( zoomPercentage : Percentage ) {
4949 return zoomPercentage - ZOOM_STEP >= MINIMUM_ZOOM_PERCENTAGE ;
5050}
5151
5252/**
53- * Returns true if can increase zoom percentage further .
53+ * Returns ` true` if the zoom can be increased by one step .
5454 *
5555 * @param zoomPercentage - The current zoom percentage.
56- * @returns `true` if incrementing by one step stays at or below the maximum.
56+ * @returns `true` if increasing by one step would remain at or below the maximum, `false` otherwise .
5757 */
5858export function canIncreaseZoom ( zoomPercentage : Percentage ) {
5959 return zoomPercentage + ZOOM_STEP <= MAXIMUM_ZOOM_PERCENTAGE ;
6060}
6161
6262/**
63- * Decrease zoom by one step amount, if possible.
63+ * Decreases the zoom level by one step if possible, then applies it via the Electron zoom bridge .
6464 *
65- * @param zoomPercentage - The current zoom percentage.
65+ * @param zoomPercentage - Current zoom percentage.
6666 */
6767export function decreaseZoom ( zoomPercentage : Percentage ) {
6868 if ( canDecreaseZoom ( zoomPercentage ) ) {
@@ -73,9 +73,9 @@ export function decreaseZoom(zoomPercentage: Percentage) {
7373}
7474
7575/**
76- * Increase zoom by one step amount, if possible.
76+ * Increases the zoom level by one step if possible, then applies it via the Electron zoom bridge .
7777 *
78- * @param zoomPercentage - The current zoom percentage.
78+ * @param zoomPercentage - Current zoom percentage.
7979 */
8080export function increaseZoom ( zoomPercentage : Percentage ) {
8181 if ( canIncreaseZoom ( zoomPercentage ) ) {
@@ -86,7 +86,7 @@ export function increaseZoom(zoomPercentage: Percentage) {
8686}
8787
8888/**
89- * Reset zoom level
89+ * Resets the zoom level to the recommended default, then applies it via the Electron zoom bridge.
9090 */
9191export function resetZoomLevel ( ) {
9292 window . gitify . zoom . setLevel (
0 commit comments