blockly > BlockSvg > decompose
BlockSvg.decompose property
Signature:
decompose?: (p1: Workspace) => BlockSvg;
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."],[[["`BlockSvg.decompose` is an optional property that holds a function."],["This function, when present, is responsible for creating a detailed visual representation (a \"shadow block\") of a given block."],["The visual representation is typically used to illustrate the block's internal structure or logic during procedures like mutation."],["The input to the function is a `Workspace` object where the shadow block will be placed."],["The function is expected to return a `BlockSvg` object, representing the created shadow block."]]],[]]