<!--
 //////////////////////////////////////////////////////////////////////////////
 // @license
 // This file is part of yFiles for HTML 2.6.
 // Use is subject to license terms.
 //
 // Copyright (c) 2000-2024 by yWorks GmbH, Vor dem Kreuzberg 28,
 // 72070 Tuebingen, Germany. All rights reserved.
 //
 //////////////////////////////////////////////////////////////////////////////
-->
# Magnifying Glass Demo

# Magnifying Glass Demo

This demo shows a floating magnifying glass that magnifies the cursor's surroundings. It is implemented as a specialized input mode that can be added to any of yFiles's default interactions.

The magnifying lens is visible only at low zoom levels `(< 0.7)` since otherwise the graph is large enough and details of the elements can be distinguished even without magnification.

**Current zoom level:** 0.5

## Things to Try

- Hover with the mouse cursor over the graph elements that need magnification.
- Adjust the lens zoom using the combo box and observe the higher or lower magnification.
