blockly > zelos > RenderInfo > getNegativeSpacing_
zelos.RenderInfo.getNegativeSpacing_() method
Calculate the spacing to reduce the left and right edges by based on the outer and inner connection shape.
Signature:
protected getNegativeSpacing_(elem: Measurable): number;
Parameters
Parameter | Type | Description |
---|---|---|
elem | Measurable | The first or last element on a block. |
Returns:
number
The amount of spacing to reduce the first or last spacer.