AppMagnifier
A draggable lens that really magnifies what is behind it — the same refraction engine as AppLiquidGlass, curved across the whole surface instead of only at the rim.
Install: pnpm add-component AppMagnifier
Drag the lens
A real magnifier over real text. Everything about the lens is live: raise magnification to zoom, thickness to bend the rim harder, and switch profiles to see convex, squircle and the inverted concave lens. The badge tracks the centre, which is what v-model reports.
It is AppLiquidGlass underneath
The magnifier adds a circle, a drag handler and a zoom term — the glass itself is the same component, composed rather than reimplemented. That is also the shortest way to see what separates the two: set the bevel to the full radius and raise magnification, and a pane becomes a lens.
Driving it from outside
Because the position is a model, the lens does not have to be dragged. Bind it to a pointer, an animation, or a step through the points of a walkthrough, and set draggable to false when it should only ever be driven.
API
size(number): Diameter in px. The corner radius is half of it, which is what makes the pane a circle.magnification(number): How much bigger the backdrop reads. This is a plain linear term — a point at distance r from the middle is sampled at r ÷ m — and it is what actually zooms. Refraction alone would only bend the rim.bezel(number): How far the curve reaches in. Defaulting to the full radius is the whole difference between a lens and a pane: curve every part of the surface and the refraction works across all of it.thickness / refractiveIndex(number): The strength of the refraction riding on top of the zoom — this is what gives the rim its distortion instead of a hard circular crop.profile('convex' | 'squircle' | 'concave' | 'lip'): A lens wants convex — the plain quarter-circle curve. squircle concentrates the bend nearer the rim; concave inverts it.x / y(number): v-model:x and v-model:y, tracking the lens **centre** in px within its offset parent — the point you actually aim, not the top-left corner. Leave them unbound and the lens owns its own position.draggable(boolean): Drag with a pointer. The pointer is captured on press, so a fast drag cannot outrun the lens and drop it.contain(boolean): Clamps the centre so the lens cannot be dragged off its offset parent.blur / saturate / brightness / tint(number | string): Deliberately nearly neutral, unlike the AppLiquidGlass defaults — a magnifier that blurs or recolours what it magnifies is not much of a magnifier.specular / shadow / disabled(boolean): The lit rim, the drop shadow, and an escape hatch that turns the refraction off entirely.