Handbook · Reference · Blockly · Graph
Blockly: Graph
Where in the UI. Scripts tab toolbox.
Item graph edges, wire style, peer ids.
| Block id | Read as | Purpose |
|---|---|---|
containd_list_outgoing_item_refs | list outgoing item refs | number[] 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_refs | list incoming item refs | number[] 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_edges | list graph edges | List 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_length | wire list length | How 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_index | wire list last index | Last 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_index | wire at index | Opaque 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_id | wire peer item id | Numeric 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_out | wire goes out | True when the listed item is the source (outgoing) end of the wire; false when it is the target (incoming). |
containd_wire_color | wire color | Current wire color string; empty when unset. Pair with wire style is unset before first write. |
containd_wire_thickness | wire thickness | Current stroke width; 0 when unset. |
containd_wire_dash | wire dash | Dash pattern (solid / dashed / dotted); empty when unset. |
containd_wire_start_cap | wire start cap | Cap decoration at the source end; empty when unset. |
containd_wire_end_cap | wire end cap | Cap decoration at the target end; empty when unset. |
containd_wire_style_is_unset | wire style is unset | True 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_color | set wire color | Merge color onto this wire (needs write.graph). Does not change the peer item — use for appearance only. |
containd_set_wire_thickness | set wire thickness | Merge stroke width onto this wire (needs write.graph). |
containd_set_wire_dash | set wire dash | Merge dash pattern onto this wire (needs write.graph). |
containd_set_wire_start_cap | set wire start cap | Merge source-end cap onto this wire (needs write.graph). |
containd_set_wire_end_cap | set wire end cap | Merge target-end cap onto this wire (needs write.graph). |
containd_wire_style_patch | wire style patch | Build a partial style patch. Leave fields “unchanged” to skip them. Apply with apply style patch to wire. |
containd_apply_wire_style_patch | apply wire style patch | Apply a wire-style patch to one wire (needs write.graph). Empty / all-unchanged patches are no-ops. |