primaryCategory check, all math blocks checked
This commit is contained in:
parent
00e7074c38
commit
dce355387e
6 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
/** @type {import('#types').BlockDefinitionRaw} */
|
||||
export default {
|
||||
type: 'io_math_arithmetic',
|
||||
bytecodeKey: "arithmetic",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/** @type {import('#types').BlockDefinitionRaw} */
|
||||
export default {
|
||||
type: 'io_logic_compare',
|
||||
bytecodeKey: "",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/** @type {import('#types').BlockDefinitionRaw} */
|
||||
export default {
|
||||
type: "io_math_constrain",
|
||||
bytecodeKey: "constrain",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/** @type {import('#types').BlockDefinitionRaw} */
|
||||
export default {
|
||||
type: "math_map",
|
||||
bytecodeKey: "mapValue",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/** @type {import('#types').BlockDefinitionRaw} */
|
||||
export default {
|
||||
type: "io_math_round",
|
||||
bytecodeKey: "round",
|
||||
|
|
|
|||
|
|
@ -63,6 +63,9 @@
|
|||
* @prop {(number|string)=} color A number or string from 0-360 that specifies a
|
||||
* color in Blockly's radial color space
|
||||
* @prop {(number|string)=} colour Alias for "color"
|
||||
* @prop {string=} primaryCategory For blocks appearing in multiple categories,
|
||||
* this property determines which menu this block will appear under in the
|
||||
* docs.
|
||||
* @prop {string} description Markdown documentation for this block. The first
|
||||
* line will be automatically set as the Block's tooltip.
|
||||
* @prop {BlockConnections} connections
|
||||
|
|
|
|||
Loading…
Reference in a new issue