|
22 | 22 | </Attribute> |
23 | 23 | </Attributes> |
24 | 24 | <Docs> |
25 | | - <summary>To be added.</summary> |
26 | | - <remarks>To be added.</remarks> |
| 25 | + <summary>A Blazor component that provides a GPU-accelerated SkiaSharp drawing surface using WebGL.</summary> |
| 26 | + <remarks>This component renders to an HTML canvas element using WebGL for hardware-accelerated graphics. It provides better performance than <see cref="T:SkiaSharp.Views.Blazor.SKCanvasView" /> for complex scenes and animations, but requires WebGL support in the browser.</remarks> |
27 | 27 | </Docs> |
28 | 28 | <Members> |
29 | 29 | <Member MemberName=".ctor"> |
|
39 | 39 | </AssemblyInfo> |
40 | 40 | <Parameters /> |
41 | 41 | <Docs> |
42 | | - <summary>To be added.</summary> |
43 | | - <remarks>To be added.</remarks> |
| 42 | + <summary>Initializes a new instance of the <see cref="T:SkiaSharp.Views.Blazor.SKGLView" /> class.</summary> |
| 43 | + <remarks /> |
44 | 44 | </Docs> |
45 | 45 | </Member> |
46 | 46 | <Member MemberName="AdditionalAttributes"> |
|
63 | 63 | <ReturnType>System.Collections.Generic.IReadOnlyDictionary<System.String,System.Object></ReturnType> |
64 | 64 | </ReturnValue> |
65 | 65 | <Docs> |
66 | | - <summary>To be added.</summary> |
67 | | - <value>To be added.</value> |
68 | | - <remarks>To be added.</remarks> |
| 66 | + <summary>Gets or sets additional HTML attributes to apply to the canvas element.</summary> |
| 67 | + <value>A dictionary of attribute names and values, or <see langword="null" />.</value> |
| 68 | + <remarks>Use this property to add CSS classes, styles, or other HTML attributes to the underlying canvas element.</remarks> |
69 | 69 | </Docs> |
70 | 70 | </Member> |
71 | 71 | <Member MemberName="BuildRenderTree"> |
|
86 | 86 | <Parameter Name="__builder" Type="Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder" /> |
87 | 87 | </Parameters> |
88 | 88 | <Docs> |
89 | | - <param name="__builder">To be added.</param> |
90 | | - <summary>To be added.</summary> |
91 | | - <remarks>To be added.</remarks> |
| 89 | + <param name="__builder">The render tree builder.</param> |
| 90 | + <summary>Renders the component to the render tree.</summary> |
| 91 | + <remarks /> |
92 | 92 | </Docs> |
93 | 93 | </Member> |
94 | 94 | <Member MemberName="Dispose"> |
|
110 | 110 | </ReturnValue> |
111 | 111 | <Parameters /> |
112 | 112 | <Docs> |
113 | | - <summary>To be added.</summary> |
114 | | - <remarks>To be added.</remarks> |
| 113 | + <summary>Releases all resources used by this component.</summary> |
| 114 | + <remarks>Call this method when the component is no longer needed to free the GPU context, surface, and JavaScript interop resources.</remarks> |
115 | 115 | </Docs> |
116 | 116 | </Member> |
117 | 117 | <Member MemberName="Dpi"> |
|
128 | 128 | <ReturnType>System.Double</ReturnType> |
129 | 129 | </ReturnValue> |
130 | 130 | <Docs> |
131 | | - <summary>To be added.</summary> |
132 | | - <value>To be added.</value> |
133 | | - <remarks>To be added.</remarks> |
| 131 | + <summary>Gets the current device pixel ratio (DPI scaling factor).</summary> |
| 132 | + <value>The device pixel ratio, typically 1.0 for standard displays and 2.0 or higher for high-DPI displays.</value> |
| 133 | + <remarks>This value is automatically updated when the browser's DPI changes, such as when moving windows between monitors with different scaling.</remarks> |
134 | 134 | </Docs> |
135 | 135 | </Member> |
136 | 136 | <Member MemberName="EnableRenderLoop"> |
|
153 | 153 | <ReturnType>System.Boolean</ReturnType> |
154 | 154 | </ReturnValue> |
155 | 155 | <Docs> |
156 | | - <summary>To be added.</summary> |
157 | | - <value>To be added.</value> |
158 | | - <remarks>To be added.</remarks> |
| 156 | + <summary>Gets or sets a value indicating whether continuous rendering is enabled.</summary> |
| 157 | + <value> |
| 158 | + <see langword="true" /> to render continuously using requestAnimationFrame; <see langword="false" /> to render only when <see cref="M:SkiaSharp.Views.Blazor.SKGLView.Invalidate" /> is called.</value> |
| 159 | + <remarks>Enable this for animations that need to update every frame. Disable for static content to conserve GPU resources and battery.</remarks> |
159 | 160 | </Docs> |
160 | 161 | </Member> |
161 | 162 | <Member MemberName="IgnorePixelScaling"> |
|
178 | 179 | <ReturnType>System.Boolean</ReturnType> |
179 | 180 | </ReturnValue> |
180 | 181 | <Docs> |
181 | | - <summary>To be added.</summary> |
182 | | - <value>To be added.</value> |
183 | | - <remarks>To be added.</remarks> |
| 182 | + <summary>Gets or sets a value indicating whether the canvas should ignore the device pixel ratio.</summary> |
| 183 | + <value> |
| 184 | + <see langword="true" /> to use logical pixels matching the CSS size; <see langword="false" /> to use physical pixels scaled by the DPI.</value> |
| 185 | + <remarks>When <see langword="false" /> (the default), the canvas is scaled to match the physical pixel density, resulting in sharper rendering on high-DPI displays. When <see langword="true" />, drawing coordinates match the CSS pixel size.</remarks> |
184 | 186 | </Docs> |
185 | 187 | </Member> |
186 | 188 | <Member MemberName="Invalidate"> |
|
199 | 201 | </ReturnValue> |
200 | 202 | <Parameters /> |
201 | 203 | <Docs> |
202 | | - <summary>To be added.</summary> |
203 | | - <remarks>To be added.</remarks> |
| 204 | + <summary>Requests a redraw of the canvas.</summary> |
| 205 | + <remarks>This method schedules a repaint using the browser's requestAnimationFrame API. The <see cref="P:SkiaSharp.Views.Blazor.SKGLView.OnPaintSurface" /> callback will be invoked on the next animation frame.</remarks> |
204 | 206 | </Docs> |
205 | 207 | </Member> |
206 | 208 | <Member MemberName="OnAfterRenderAsync"> |
|
221 | 223 | <Parameter Name="firstRender" Type="System.Boolean" /> |
222 | 224 | </Parameters> |
223 | 225 | <Docs> |
224 | | - <param name="firstRender">To be added.</param> |
225 | | - <summary>To be added.</summary> |
226 | | - <returns>To be added.</returns> |
227 | | - <remarks>To be added.</remarks> |
| 226 | + <param name="firstRender"> |
| 227 | + <see langword="true" /> if this is the first time the component has been rendered; otherwise, <see langword="false" />.</param> |
| 228 | + <summary>Called after the component has rendered.</summary> |
| 229 | + <returns>A task representing the asynchronous operation.</returns> |
| 230 | + <remarks>On first render, this method initializes the WebGL context, creates the GPU context and surface, and sets up DPI and size change watchers.</remarks> |
228 | 231 | </Docs> |
229 | 232 | </Member> |
230 | 233 | <Member MemberName="OnPaintSurface"> |
|
247 | 250 | <ReturnType>System.Action<SkiaSharp.Views.Blazor.SKPaintGLSurfaceEventArgs></ReturnType> |
248 | 251 | </ReturnValue> |
249 | 252 | <Docs> |
250 | | - <summary>To be added.</summary> |
251 | | - <value>To be added.</value> |
252 | | - <remarks>To be added.</remarks> |
| 253 | + <summary>Gets or sets the callback invoked when the canvas needs to be painted.</summary> |
| 254 | + <value>An action that receives <see cref="T:SkiaSharp.Views.Blazor.SKPaintGLSurfaceEventArgs" /> containing the surface, canvas, and GPU context information.</value> |
| 255 | + <remarks>Use this callback to perform your drawing operations. The callback is invoked when <see cref="M:SkiaSharp.Views.Blazor.SKGLView.Invalidate" /> is called or continuously when <see cref="P:SkiaSharp.Views.Blazor.SKGLView.EnableRenderLoop" /> is <see langword="true" />.</remarks> |
253 | 256 | </Docs> |
254 | 257 | </Member> |
255 | 258 | </Members> |
|
0 commit comments