Merge pull request #15011 from Snuffleupagus/misc-review-comments
Fix a couple of old review comments
This commit is contained in:
		
						commit
						a1bc5a8fe2
					
				@ -2706,7 +2706,7 @@ class ChoiceWidgetAnnotation extends WidgetAnnotation {
 | 
				
			|||||||
      let lineWidth = -1;
 | 
					      let lineWidth = -1;
 | 
				
			||||||
      let value;
 | 
					      let value;
 | 
				
			||||||
      for (const { displayValue } of this.data.options) {
 | 
					      for (const { displayValue } of this.data.options) {
 | 
				
			||||||
        const width = this._getTextWidth(displayValue);
 | 
					        const width = this._getTextWidth(displayValue, font);
 | 
				
			||||||
        if (width > lineWidth) {
 | 
					        if (width > lineWidth) {
 | 
				
			||||||
          lineWidth = width;
 | 
					          lineWidth = width;
 | 
				
			||||||
          value = displayValue;
 | 
					          value = displayValue;
 | 
				
			||||||
 | 
				
			|||||||
@ -70,7 +70,8 @@ class ColorConverters {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static CMYK_HTML(components) {
 | 
					  static CMYK_HTML(components) {
 | 
				
			||||||
    return this.RGB_HTML(this.CMYK_RGB(components));
 | 
					    const rgb = this.CMYK_RGB(components).slice(1);
 | 
				
			||||||
 | 
					    return this.RGB_HTML(rgb);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static RGB_CMYK([r, g, b]) {
 | 
					  static RGB_CMYK([r, g, b]) {
 | 
				
			||||||
 | 
				
			|||||||
@ -117,7 +117,7 @@ const FontInspector = (function FontInspectorClosure() {
 | 
				
			|||||||
        download.href = url[1];
 | 
					        download.href = url[1];
 | 
				
			||||||
      } else if (fontObj.data) {
 | 
					      } else if (fontObj.data) {
 | 
				
			||||||
        download.href = URL.createObjectURL(
 | 
					        download.href = URL.createObjectURL(
 | 
				
			||||||
          new Blob([fontObj.data], { type: fontObj.mimeType })
 | 
					          new Blob([fontObj.data], { type: fontObj.mimetype })
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      download.textContent = "Download";
 | 
					      download.textContent = "Download";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user