Type

Define types used by clipcc-extension.

Source:

Members

(inner, constant) BlockType :number

Source:
Properties:
Name Type Description
COMMAND number

A general command block

REPORTER number

A block which returns a number or string

BOOLEAN number

A block which returns a boolean value

BRANCH number

[Unsupported] A block with branch(es)

HAT number

[Unsupported] A hat block

Block types.

Type:
  • number

(inner, constant) ParameterType :number

Source:
Properties:
Name Type Description
NUMBER number

Number

STRING number

String

BOOLEAN number

Boolean value

ANY number

Any type

COLOR number

Color selector

MATRIX number

[Unsupported]

NOTE number

[Unsupported]

ANGLE number

[Unsupported]

IMAGE number

[Unsupported]

Argument types.

Type:
  • number

(inner, constant) ShadowType :ShadowPrototype|boolean

Source:
Properties:
Name Type Description
NO_SHADOW ShadowPrototype | boolean
ANGLE ShadowPrototype | boolean
COLOR ShadowPrototype | boolean
NUMBER ShadowPrototype | boolean
STRING ShadowPrototype | boolean
MATRIX ShadowPrototype | boolean
NOTE ShadowPrototype | boolean

Shadow types.

Type:
  • ShadowPrototype | boolean

Type Definitions

BlockPrototype

Source:
Properties:
Name Type Description
opcode string

Opcode.

type BlockType

Block type.

msg string

Message id.

categoryId string

Category id.

func function

Function.

argument Array.<ParameterPrototype>

Arguments.

Block prototype.

Type:
  • object

CategoryPrototype

Source:
Properties:
Name Type Description
categoryId string

Category id.

messageId string

Message id.

color string

Color #rrggbb.

Category prototype.

Type:
  • object

Message

Source:
Properties:
Name Type Description
id string

id

default string

default

Message

Type:
  • object

ParameterPrototype

Source:
Properties:
Name Type Description
type ParameterType

Argument type.

default string | number

Default value.

shadow ShadowPrototype

Shadow.

Argument meta data.

Type:
  • object

ShadowPrototype

Source:
Properties:
Name Type Description
type string

Shadow type.

fieldName string

Field name.

Shadow meta data.

Type:
  • object