此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

DelegatedInkTrailPresenter:expectedImprovement 属性

Deprecated

Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.

非标准: 该特性尚未标准化。我们不建议在生产环境中使用非标准特性,因为它们在浏览器中的支持有限,且可能发生变化或被移除。不过,在没有标准选项的特定情况下,它们可以作为合适的替代方案。

DelegatedInkTrailPresenter 接口的只读属性 expectedImprovement 返回一个以毫秒为单位的值,表示使用此演示器可以预期的延迟改进。

数值。

示例

js
async function inkInit() {
  const ink = navigator.ink;
  const presenter = await ink.requestPresenter({ presentationArea: canvas });
  console.log(presenter.expectedImprovement);

  // …
}

规范

该特性已不再属于规范。

浏览器兼容性