theme | "light" | "dark" | "auto"Surface theme passed to drawContent; also tunes glass and shadows. | Defaultlight |
|---|
lens | Partial<MagnifierLens>Radius, bezel, housing depth, magnification (1.45 by default), texture quality, ticks and handle geometry. Values are clamped to safe ranges. | Default— |
|---|
motion | Partial<MagnifierMotion>Resting pitch/yaw, maximum inclination, springs, velocity response, pressScale, shadowStrength, shadowSoftness and glareStrength. Angles are degrees. | Default— |
|---|
palette | Partial<MagnifierPalette>Six-digit hex accent, handle and metal colors. | Default— |
|---|
drawContent | (context: CanvasRenderingContext2D, surface: MagnifierSurface) => voidOptional same-origin Canvas drawing callback. Called on resize/theme/content changes. No background or specimen copy is bundled. Keep the callback stable with useCallback when appropriate. | Default— |
|---|
contentVersion | string | numberInvalidate cached drawing after external content changes. | Default— |
|---|
returnToCenter | booleanReturn after drag release; false keeps the new position. | Defaulttrue |
|---|
ariaLabel | stringAccessible canvas name; keyboard instructions are supplied. | DefaultInteractive magnifying glass |
|---|
className / style | string / CSSPropertiesResponsive wrapper; default aspect ratio 8:5, minimum height 320px. No forced background. | Default— |
|---|