MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / registerTileLayout

Method registerTileLayout

frontend/layout/lib/layoutModel.ts:600–609  ·  view source on GitHub ↗

* Register TileLayout callbacks that should be called on various state changes. * @param contents Contains callbacks provided by the TileLayout component.

(contents: TileLayoutContents)

Source from the content-addressed store, hash-verified

598 * @param contents Contains callbacks provided by the TileLayout component.
599 */
600 registerTileLayout(contents: TileLayoutContents) {
601 this.renderContent = contents.renderContent;
602 this.renderPreview = contents.renderPreview;
603 this.onNodeDelete = contents.onNodeDelete;
604 if (contents.gapSizePx !== undefined) {
605 this.setter(this.gapSizePx, contents.gapSizePx);
606 }
607 const tab = this.getter(this.tabAtom);
608 fireAndForget(() => BlockService.CleanupOrphanedBlocks(tab.oid));
609 }
610
611 /**
612 * Perform an action against the layout tree state.

Callers 1

useTileLayoutFunction · 0.80

Calls 2

fireAndForgetFunction · 0.90
CleanupOrphanedBlocksMethod · 0.45

Tested by

no test coverage detected