本文整理汇总了TypeScript中core/layout/side_panel.update_panel_constraints函数的典型用法代码示例。如果您正苦于以下问题:TypeScript update_panel_constraints函数的具体用法?TypeScript update_panel_constraints怎么用?TypeScript update_panel_constraints使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了update_panel_constraints函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: update_constraints
update_constraints(): void {
this.solver.suggest_value(this.frame._width, this.canvas._width.value)
this.solver.suggest_value(this.frame._height, this.canvas._height.value)
for (const id in this.renderer_views) {
const view = this.renderer_views[id]
if (isSizeableView(view) && view.model.panel != null)
update_panel_constraints(view)
}
this.solver.update_variables()
}
示例2: update_constraints
update_constraints() {
this.solver.suggest_value(this.frame._width, this.canvas._width.value);
this.solver.suggest_value(this.frame._height, this.canvas._height.value);
for (const _ in this.renderer_views) {
const view = this.renderer_views[_];
if (view.model.panel != null) {
update_panel_constraints(view);
}
}
return this.solver.update_variables();
}