本文整理匯總了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()
}