TilesManager
Constructors
Functions
Shows a non-modal bottom sheet built from tileSchemas, registered under id so a later dismissBottomSheet call can target it.
Shows a modal bottom sheet built from tileSchemas, registered under id — unlike addBottomSheet, this dims and blocks the content behind it.
Inserts tileSchema as a new top-level child of the screen's own root tile.
Inserts tileSchema as a new child of the container tile identified by groupingTileId, wherever that container currently is in the tree.
Same as addTile, for several tiles inserted together at the same position, preserving tileSchemas' own order.
Same as the groupingTileId overload of addTile, for several tiles inserted together.
Whether every id in childrenIds is currently a direct child of the container tile identified by groupingTileId — the mechanism behind CheckIfTileContainsChildren. Unlike the other methods on this interface, this doesn't fail when groupingTileId isn't found; it simply returns false.
Closes the non-modal bottom sheet registered under id, starting its two-phase dismissal animation.
Closes the dialog registered under id. Unlike the bottom sheet variants, this resolves without waiting for an exit animation.
Closes the modal bottom sheet registered under id, starting its two-phase dismissal animation.
Every EventSchema currently registered anywhere in this screen's tile tree whose trigger equals eventTrigger.
Looks up the EventSchema registered under eventId anywhere in the screen's tile tree — the lookup behind TriggerEvent.
Number of direct children currently under the container tile identified by groupingTileId — the mechanism behind GetTileChildrenCount.
Delivers event to every TileHolder in the whole screen's tree whose handlesGroupEvent returns true for it, via each one's own onTileGroupEvent override — the routing behind dev.catbit.mosaic.client.ui.sdui.foundation.tiles.renderer.TileRenderingScope.dispatchGroupEvent.
Removes the top-level root tile whose id equals tileId.
Removes the child whose id equals tileId from the container tile identified by groupingTileId.
Removes every top-level root tile whose id is in tileIds.
Removes every child whose id is in tileIds from the container tile identified by groupingTileId.
Replaces every top-level root tile with tileSchemas — the current root children are wiped first, then tileSchemas is added in full.
Replaces every child of the container tile identified by groupingTileId with tileSchemas — that container's current children are wiped first, then tileSchemas is added in full.
Re-reads the current root tile schema (via get() on the screen's holder) and pushes it to the screen's own state — called after every mutating TilesEditor/TilesOverlaysEditor/ TilesEventDispatcher operation succeeds, so its effect actually reaches Compose.
Applies updateData as a shallow JSON-patch merge onto the tile identified by tileId — see dev.catbit.mosaic.client.ui.sdui.foundation.tiles.holder.tile.TileHolder.update for exactly how the merge (and the special handling of a "style" patch) works. The lookup also searches inside event holders' own nested tiles, not just the plain tile tree.