Handbook · Reference · Blockly · Graph

Blockly: Graph

Where in the UI. Scripts tab toolbox.

Item graph edges, wire style, peer ids.

Block idRead asPurpose
containd_list_outgoing_item_refslist outgoing item refsnumber[] of original items this item wires TO, including edges stored on any of its placeholders (needs read.graph). Use 0 for bound item. Loop and plug ids into ContaindData “… on item”. Prefer this over wires-of-item when you need data, not style.
containd_list_incoming_item_refslist incoming item refsnumber[] of original items that wire INTO this item or any of its placeholders (needs read.graph). Use 0 for bound item. Originals only (placeholder seats resolve to originals).
containd_list_graph_edgeslist graph edgesList graph wires for styling (not neighbor id lists), including wires owned by placeholder seats. Use 0 for the bound item. Loop with wire at index → set color / peer item id. For ContaindData on neighbors, prefer outgoing/incoming graph item ids instead.
containd_wire_list_lengthwire list lengthHow many wires are in a wires-of-item list. Prefer last wire index as the “to” value in a count-with loop (inclusive).
containd_wire_list_last_indexwire list last indexLast valid index in a wires list (0 when empty). Plug into count-with “to” (from 0, by 1) then wire at index.
containd_wire_at_indexwire at indexOpaque wire value from a wires list (null if missing). Feed into set wire … / peer item id / wire color blocks — not into ContaindData directly.
containd_wire_peer_item_idwire peer item idNumeric id of the other end of this wire (0 if unknown). Plug into ContaindData “… on item” sockets, or use outgoing/incoming graph item ids for neighbor walks.
containd_wire_goes_outwire goes outTrue when the listed item is the source (outgoing) end of the wire; false when it is the target (incoming).
containd_wire_colorwire colorCurrent wire color string; empty when unset. Pair with wire style is unset before first write.
containd_wire_thicknesswire thicknessCurrent stroke width; 0 when unset.
containd_wire_dashwire dashDash pattern (solid / dashed / dotted); empty when unset.
containd_wire_start_capwire start capCap decoration at the source end; empty when unset.
containd_wire_end_capwire end capCap decoration at the target end; empty when unset.
containd_wire_style_is_unsetwire style is unsetTrue when the wire has no style yet. Gate set-wire blocks on create so you style once without overwriting later user edits.
containd_set_wire_colorset wire colorMerge color onto this wire (needs write.graph). Does not change the peer item — use for appearance only.
containd_set_wire_thicknessset wire thicknessMerge stroke width onto this wire (needs write.graph).
containd_set_wire_dashset wire dashMerge dash pattern onto this wire (needs write.graph).
containd_set_wire_start_capset wire start capMerge source-end cap onto this wire (needs write.graph).
containd_set_wire_end_capset wire end capMerge target-end cap onto this wire (needs write.graph).
containd_wire_style_patchwire style patchBuild a partial style patch. Leave fields “unchanged” to skip them. Apply with apply style patch to wire.
containd_apply_wire_style_patchapply wire style patchApply a wire-style patch to one wire (needs write.graph). Empty / all-unchanged patches are no-ops.