Class: Earcon

Highcharts. Earcon

new Earcon(options)

The Earcon class. Earcon objects represent a certain sound consisting of one or more instruments playing a predefined sound.

参数:
名字 类型 详情
options Highcharts.EarconOptionsObject

Options for the Earcon instance.

依赖:
  • module:modules/sonification
在线示例

依赖

  • module:modules/sonification

方法

cancelSonify( [fadeOut])

Cancel any current sonification of the Earcon. Calls onEnd functions.

参数:
名字 类型 特质 默认值 详情
fadeOut boolean <可选>
false

Whether or not to fade out as we stop. If false, the earcon is cancelled synchronously.

sonify(options)

Play the earcon, optionally overriding init options.

参数:
名字 类型 详情
options Highcharts.EarconOptionsObject

Override existing options.

在线示例