41f3df4c718fe68bbc1cd2c05024485714a476af
Added `DotNetObjectReference` in `EnvelopeViewer.razor` to enable Blazor-JS communication. Updated `OnAfterRenderAsync` to pass the reference to `pdfViewer.initialize`. Introduced `[JSInvokable]` method `OnZoomChanged` to handle zoom updates from JavaScript. Enhanced `DisposeAsync` to clean up resources, including disposing of the `.NET reference` and invoking a JavaScript `dispose` method. In `pdf-viewer.js`, modified `initialize` to accept a `.NET reference` and added `attachWheelEvent` to handle zooming via mouse wheel with `Ctrl`/`Meta` key. Updated `dispose` to clean up event listeners and reset the `.NET reference`. Added `getScale` to retrieve the current zoom scale. Improved resource cleanup and event handling to prevent memory leaks and ensure stability.
Description
No description provided
Languages
JavaScript
86.8%
C#
6.6%
Visual Basic .NET
2.7%
HTML
2.3%
CSS
1.1%
Other
0.4%