本文整理汇总了TypeScript中core/layout/alignments.hstack函数的典型用法代码示例。如果您正苦于以下问题:TypeScript hstack函数的具体用法?TypeScript hstack怎么用?TypeScript hstack使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hstack函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: _get_side_constraints
private _get_side_constraints(): Constraint[] {
const panels = (objs: Renderer[]) => objs.map((obj: any) => obj.panel)
const above = vstack(this.above_panel, panels(this.plot.above))
const below = vstack(this.below_panel, reversed(panels(this.plot.below)))
const left = hstack(this.left_panel, panels(this.plot.left))
const right = hstack(this.right_panel, reversed(panels(this.plot.right)))
return concat([above, below, left, right])
}
示例2: _get_side_constraints
_get_side_constraints() {
const panels = objs => objs.map((obj) => obj.panel);
const above = vstack(this.above_panel, panels(this.plot.above));
const below = vstack(this.below_panel, reversed(panels(this.plot.below)));
const left = hstack(this.left_panel, panels(this.plot.left));
const right = hstack(this.right_panel, reversed(panels(this.plot.right)));
return [].concat(above, below, left, right);
}