Browse Source

Add function documentation.

Jason Grout 7 năm trước cách đây
mục cha
commit
fa295cb2ed
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      packages/imageviewer/src/widget.ts

+ 3 - 0
packages/imageviewer/src/widget.ts

@@ -176,6 +176,9 @@ class ImageViewer extends Widget implements DocumentRegistry.IReadyWidget {
     this._img.src = `data:${cm.mimetype};${cm.format},${content}`;
   }
 
+  /**
+   * Update the image CSS style, including the transform and filter.
+   */
   private _updateStyle(): void {
     let [a, b, c, d] = this._matrix;
     let [tX, tY] = Private.prodVec(this._matrix, [1, 1]);