Skip to content

Commit

Permalink
leaf input
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong committed Nov 15, 2024
1 parent 912982f commit f8792cb
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions core/block_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,17 @@ Blockly.BlockSvg.INNER_BOTTOM_LEFT_CORNER =
* SVG path for an empty leaf input shape.
* @const
*/
Blockly.BlockSvg.INPUT_SHAPE_LEAF =
'M ' + 4 * Blockly.BlockSvg.GRID_UNIT + ',0 ' +
' h ' + 4 * Blockly.BlockSvg.GRID_UNIT +
' l ' + 4 * Blockly.BlockSvg.GRID_UNIT + ',' + 4 * Blockly.BlockSvg.GRID_UNIT +
' l ' + -4 * Blockly.BlockSvg.GRID_UNIT + ',' + 4 * Blockly.BlockSvg.GRID_UNIT +
' h ' + -4 * Blockly.BlockSvg.GRID_UNIT +
' l ' + -4 * Blockly.BlockSvg.GRID_UNIT + ',' + -4 * Blockly.BlockSvg.GRID_UNIT +
' l ' + 4 * Blockly.BlockSvg.GRID_UNIT + ',' + -4 * Blockly.BlockSvg.GRID_UNIT +
' z';
Blockly.BlockSvg.INPUT_SHAPE_LEAF = `
M ${4 * Blockly.BlockSvg.GRID_UNIT} 0
a ${4 * Blockly.BlockSvg.GRID_UNIT} ${4 * Blockly.BlockSvg.GRID_UNIT} 0 0 1 ${4 * Blockly.BlockSvg.GRID_UNIT} ${4 * Blockly.BlockSvg.GRID_UNIT}
l 0 ${2.4 * Blockly.BlockSvg.GRID_UNIT}
a ${1.6 * Blockly.BlockSvg.GRID_UNIT} ${1.6 * Blockly.BlockSvg.GRID_UNIT} 0 0 1 -${1.6 * Blockly.BlockSvg.GRID_UNIT} ${1.6 * Blockly.BlockSvg.GRID_UNIT}
h ${4 * Blockly.BlockSvg.GRID_UNIT}
a ${4 * Blockly.BlockSvg.GRID_UNIT} ${4 * Blockly.BlockSvg.GRID_UNIT} 0 0 1 -${4 * Blockly.BlockSvg.GRID_UNIT} -${4 * Blockly.BlockSvg.GRID_UNIT}
l 0 -${2.4 * Blockly.BlockSvg.GRID_UNIT}
a ${1.6 * Blockly.BlockSvg.GRID_UNIT} ${1.6 * Blockly.BlockSvg.GRID_UNIT} 0 0 1 ${1.6 * Blockly.BlockSvg.GRID_UNIT} -${1.6 * Blockly.BlockSvg.GRID_UNIT}
z
`

/**
* Width of empty leaf input shape.
Expand Down

0 comments on commit f8792cb

Please sign in to comment.