Handbook · Reference · Blockly · Canvas

Blockly: Canvas

Where in the UI. Scripts tab toolbox.

Query, move, align, animate items; schedules; canvas level.

Block idRead asPurpose
containd_query_canvas_itemsquery canvas itemscallHost(queryCanvasItems)
containd_move_canvas_itemsmove canvas itemscallHost(moveCanvasItems)
containd_resize_canvas_itemsresize canvas itemscallHost(resizeCanvasItems)
containd_sort_all_canvas_itemssort all canvas itemsSort tab: reorder every child of the bound canvas into a balanced grid. Spacing uses canvas defaults. Width/height appear only for “use custom size”. Match-size plug appears only for “match selected item” (numeric id or ItemRef). Not grid indices.
containd_align_layout_all_canvas_itemsalign layout all canvas itemsAlign tab: column/row pack or snap-to-grid for every child. Snap size appears only for snap-to-grid. Not edge-align.
containd_sort_canvas_itemssort canvas itemsSort a subset. Plug an item-ref list (e.g. child item refs); leave empty = all children. Ids are persistent item ids from ItemRefs — not post-sort grid indices.
containd_align_layout_canvas_itemsalign layout canvas itemsAlign tab for a subset. Plug an item-ref list; leave empty = all children. Snap size only for snap-to-grid.
containd_align_canvas_itemsalign canvas itemsEdge-align items from an item-ref list (e.g. child item refs). Not the Sort/Align modal — use “align all children” for column/row/snap.
containd_animate_itemsanimate itemscallHost(animateItems)
containd_animate_items_toanimate items tocallHost(animateItems) with runtime target coordinates
containd_cancel_animationcancel animationcallHost(cancelAnimation)
containd_schedule_repeatingschedule repeatingcallHost(scheduleRepeating)
containd_schedule_onceschedule oncecallHost(scheduleOnce)
containd_cancel_schedulecancel schedulecallHost(cancelSchedule)
containd_change_canvas_levelchange canvas levelcallHost(changeCanvasLevel)