本文整理汇总了TypeScript中core/signaling.Signal0.emit方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Signal0.emit方法的具体用法?TypeScript Signal0.emit怎么用?TypeScript Signal0.emit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core/signaling.Signal0
的用法示例。
在下文中一共展示了Signal0.emit方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: redo
redo(): void {
if (this.can_redo()) {
this.state.index += 1
this._do_state_change(this.state.index)
this.state_changed.emit()
}
}
示例2: push_state
push_state(type: string, new_info: Partial<StateInfo>): void {
const {history, index} = this.state
const prev_info = history[index] != null ? history[index].info : {}
const info = extend({}, this._initial_state_info, prev_info, new_info)
this.state.history = this.state.history.slice(0, this.state.index + 1)
this.state.history.push({type, info})
this.state.index = this.state.history.length - 1
this.state_changed.emit()
}
示例3:
document.addEventListener("click", () => clear_menus.emit())
示例4: clear_state
clear_state(): void {
this.state = {history: [], index: -1}
this.state_changed.emit()
}
示例5: throttle
this.throttled_paint = throttle((() => this.force_paint.emit()), 15) // TODO (bev) configurable
示例6: update
update({left, right, top, bottom}: {left: number | null, right: number | null, top: number | null, bottom: number | null}): void {
this.setv({left, right, top, bottom, screen: true}, {silent: true})
this.data_update.emit()
}
示例7:
window._bokeh_gmaps_callback = () => gmaps_ready.emit()
示例8: update
update({xs, ys}: {xs: number[], ys: number[]}): void {
this.setv({xs, ys, screen: true}, {silent: true})
this.data_update.emit()
}