Home > @jsplumbtoolkit/browser-ui > Surface > adHocLayout
Surface.adHocLayout() method
Run an adhoc layout on the viewport. The layout will be applied one time, and then the previous layout will be restored (but not run, of course, otherwise the results of this adhoc layout would be overwritten!)
Signature:
adHocLayout<LP extends LayoutParameters>(layoutParams: {
type: string;
options: LP;
}): void;
Parameters
Parameter | Type | Description |
---|---|---|
layoutParams | { type: string; options: LP; } |
Returns:
void