Handbook · Reference · Blockly · Canvas
Blockly: Canvas
Where in the UI. Scripts tab toolbox.
Query, move, align, animate items; schedules; canvas level.
| Block id | Read as | Purpose |
|---|---|---|
containd_query_canvas_items | query canvas items | callHost(queryCanvasItems) |
containd_move_canvas_items | move canvas items | callHost(moveCanvasItems) |
containd_resize_canvas_items | resize canvas items | callHost(resizeCanvasItems) |
containd_sort_all_canvas_items | sort all canvas items | Sort 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_items | align layout all canvas items | Align 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_items | sort canvas items | Sort 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_items | align layout canvas items | Align tab for a subset. Plug an item-ref list; leave empty = all children. Snap size only for snap-to-grid. |
containd_align_canvas_items | align canvas items | Edge-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_items | animate items | callHost(animateItems) |
containd_animate_items_to | animate items to | callHost(animateItems) with runtime target coordinates |
containd_cancel_animation | cancel animation | callHost(cancelAnimation) |
containd_schedule_repeating | schedule repeating | callHost(scheduleRepeating) |
containd_schedule_once | schedule once | callHost(scheduleOnce) |
containd_cancel_schedule | cancel schedule | callHost(cancelSchedule) |
containd_change_canvas_level | change canvas level | callHost(changeCanvasLevel) |