Stay organized with collections
Save and categorize content based on your preferences.
blockly > zelos > ConstantProvider > SHAPE_IN_SHAPE_PADDING
zelos.ConstantProvider.SHAPE_IN_SHAPE_PADDING property
Map of output/input shapes and the amount they should cause a block to be padded. Outer key is the outer shape, inner key is the inner shape. When a block with the outer shape contains an input block with the inner shape on its left or right edge, the block elements are aligned such that the padding specified is reached.
Signature:
SHAPE_IN_SHAPE_PADDING: {
[key: number]: {
[key: number]: number;
};
};
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`SHAPE_IN_SHAPE_PADDING` is a property within Blockly's Zelos theme that defines padding amounts between nested blocks based on their shapes."],["It uses a nested map structure where the outer key represents the containing block's shape and the inner key represents the contained block's shape, with the value indicating the desired padding between them."],["This property ensures consistent and visually appealing spacing between blocks with different shapes when they are connected."]]],[]]