blockly > Block > setOutputShape
Block.setOutputShape() method
Set the block's output shape.
Signature:
setOutputShape(outputShape: number | null): void;
Parameters
Parameter |
Type |
Description |
outputShape |
number | null |
Value representing an output shape. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `setOutputShape` method allows you to define the shape of the output connection for a Blockly block."],["It accepts a single parameter, `outputShape`, which can be a number representing a specific shape or null for no output."],["Calling this method modifies the block's visual appearance and connection compatibility with other blocks."]]],["The `setOutputShape()` method of the `Block` class sets a block's output shape. It accepts a single parameter, `outputShape`, which can be either a number or null. This parameter represents the desired output shape. The method does not return any value (void).\n"]]