本文整理汇总了TypeScript中core/util/object.merge函数的典型用法代码示例。如果您正苦于以下问题:TypeScript merge函数的具体用法?TypeScript merge怎么用?TypeScript merge使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了merge函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: update_through_union
update_through_union(other: Selection): void {
this.indices = union(other.indices, this.indices)
this.selected_glyphs = union(other.selected_glyphs, this.selected_glyphs)
this.line_indices = union(other.line_indices, this.line_indices)
if(!this.get_view())
this.get_view = other.get_view
this.multiline_indices = merge(other.multiline_indices, this.multiline_indices)
}
示例2: update_through_intersection
update_through_intersection(other: Selection): void {
this.indices = intersection(other.indices, this.indices)
// TODO: think through and fix any logic below
this.selected_glyphs = union(other.selected_glyphs, this.selected_glyphs)
this.line_indices = union(other.line_indices, this.line_indices)
if(!this.get_view())
this.get_view = other.get_view
this.multiline_indices = merge(other.multiline_indices, this.multiline_indices)
}