UNPKG
@webwriter/block-based-code
Version:
latest (1.7.3)
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
Write block-based code (e.g. Scratch) and run it.
@webwriter/block-based-code
/
lib
/
blockly
/
blocks
/
math.ts
17 lines
(15 loc)
•
314 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
{
BlockDefinition
}
from
"../types"
;
export
const
numberBlock = {
type
:
"math:number"
,
message0
:
"%1"
,
args0
: [ {
type
:
"field_number"
,
name
:
"NUM"
,
value
:
0
, }, ],
output
:
"Number"
,
category
:
null
,
style
:
null
, }
as
const
satisfies
BlockDefinition
;