Skip to main content

blockShape

blockShape:Scratch.BlockShape

This changes the shape of an output block to another block shape. You can use this to make it clearer what your block returns.

{
opcode: 'testReporter',
text: 'testing!',
blockType: Scratch.BlockType.REPORTER,
blockShape: Scratch.BlockShape.SQUARE,
}
EnumPurposeImage
Scratch.BlockShape.HEXAGONALbooleans/predicateshexagonal block
Scratch.BlockShape.ROUNDnumbers/stringsround block
Scratch.BlockShape.SQUAREarrays/array buffers/uint arrayssquare block
Scratch.BlockShape.LEAFvectorsleaf block
Scratch.BlockShape.PLUSObjects/Classes or Class instancesplus block
Scratch.BlockShape.OCTAGONALScratch targetoctagonal block
Scratch.BlockShape.BUMPEDJavaScript BigIntbumped block
Scratch.BlockShape.INDENTEDJavaScript Symbolindented block
Scratch.BlockShape.SCRAPPEDJavaScript Mapscrapped block
Scratch.BlockShape.ARROWJavaScript Setarrow block
Scratch.BlockShape.TICKETJavaScript Dateticket block