<

{{title}}

{{file.summary.functions.pct}}%

Functions
{{file.summary.functions.covered}}/{{file.summary.functions.total}}

{{file.summary.branches.pct}}%

Branches
{{file.summary.branches.covered}}/{{file.summary.branches.total}}

{{file.summary.lines.pct}}%

Lines
{{file.summary.lines.covered}}/{{file.summary.lines.total}}
          
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                
/** 
 * Web 组件标准配置应用器。 
 * 
 * 输出 SDK 推荐的 Web 组件属性集合,由调用方在自己的 Web 组件链式属性上引用。 
 */ 
export class WebSettingsApplier { 
  /** Web 组件推荐的标准配置只读快照。 */ 
  public static readonly DEFAULTS: Readonly<WebSettingsSnapshot> = { 
    javaScriptAccess: true, 
    domStorageAccess: true, 
    mediaPlaybackRequiresUserGesture: false, 
    fileAccess: false, 
    databaseAccess: true, 
    textZoomAtio: 100, 
    zoomAccess: true, 
    multiWindowAccess: false, 
    wideViewModeAccess: true, 
    overviewModeAccess: true 
  }; 
 
  /** 
   * 根据 `allowMixedContent` 返回对应的 MixedMode 名。 
   * - `true` → `'All'` 
   * - `false` → `'None'` 
   */ 
  public static mixedModeName(allowMixedContent: boolean): 'All' | 'None' { 
    return allowMixedContent ? 'All' : 'None'; 
  } 
 
  private constructor() {} 
} 
 
/** 
 * Web 组件标准配置快照接口。 
 */ 
export interface WebSettingsSnapshot { 
  javaScriptAccess: boolean; 
  domStorageAccess: boolean; 
  mediaPlaybackRequiresUserGesture: boolean; 
  fileAccess: boolean; 
  databaseAccess: boolean; 
  textZoomAtio: number; 
  zoomAccess: boolean; 
  multiWindowAccess: boolean; 
  wideViewModeAccess: boolean; 
  overviewModeAccess: boolean; 
} 

              
Code coverage generated by bjc at {{date}}