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 {
|
export default {
|
||||||
type: 'io_math_arithmetic',
|
type: 'io_math_arithmetic',
|
||||||
bytecodeKey: "arithmetic",
|
bytecodeKey: "arithmetic",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/** @type {import('#types').BlockDefinitionRaw} */
|
||||||
export default {
|
export default {
|
||||||
type: 'io_logic_compare',
|
type: 'io_logic_compare',
|
||||||
bytecodeKey: "",
|
bytecodeKey: "",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/** @type {import('#types').BlockDefinitionRaw} */
|
||||||
export default {
|
export default {
|
||||||
type: "io_math_constrain",
|
type: "io_math_constrain",
|
||||||
bytecodeKey: "constrain",
|
bytecodeKey: "constrain",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/** @type {import('#types').BlockDefinitionRaw} */
|
||||||
export default {
|
export default {
|
||||||
type: "math_map",
|
type: "math_map",
|
||||||
bytecodeKey: "mapValue",
|
bytecodeKey: "mapValue",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/** @type {import('#types').BlockDefinitionRaw} */
|
||||||
export default {
|
export default {
|
||||||
type: "io_math_round",
|
type: "io_math_round",
|
||||||
bytecodeKey: "round",
|
bytecodeKey: "round",
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,9 @@
|
||||||
* @prop {(number|string)=} color A number or string from 0-360 that specifies a
|
* @prop {(number|string)=} color A number or string from 0-360 that specifies a
|
||||||
* color in Blockly's radial color space
|
* color in Blockly's radial color space
|
||||||
* @prop {(number|string)=} colour Alias for "color"
|
* @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
|
* @prop {string} description Markdown documentation for this block. The first
|
||||||
* line will be automatically set as the Block's tooltip.
|
* line will be automatically set as the Block's tooltip.
|
||||||
* @prop {BlockConnections} connections
|
* @prop {BlockConnections} connections
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue