Options
All
  • Public
  • Public/Protected
  • All
Menu

uCode 全局类型

Index

Type aliases

ArgumentTypeDef

ArgumentTypeDef: { ANGLE: "angle"; BOOLEAN: "Boolean"; COLOR: "color"; CUSTOM: "custom"; DIALOG_MENU: "dialog_menu"; DROPDOWN_MENU: "field_dropdown_menu"; FIELD_INPUT: "field_input"; IMAGE: "image"; MATRIX: "matrix"; NOTE: "note"; NUMBER: "number"; NUMBER_INPUT: "number_input"; NUMBER_PAD: "number_pad"; RGB_COLOR: "rgb_color"; STRING: "string"; UCODE_CUSTOM_MATRIX: "custom_matrix"; VARIABLE: "variable" }

积木块参数类型 枚举类型

Type declaration

  • ANGLE: "angle"

    Numeric value with angle picker

  • BOOLEAN: "Boolean"

    Boolean value with hexagonal placeholder

  • COLOR: "color"

    Numeric value with color picker

  • CUSTOM: "custom"
  • DIALOG_MENU: "dialog_menu"
  • DROPDOWN_MENU: "field_dropdown_menu"
  • FIELD_INPUT: "field_input"
  • IMAGE: "image"

    Inline image on block (as part of the label)

  • MATRIX: "matrix"

    String value with matrix field

  • NOTE: "note"

    MIDI note number with note picker (piano) field

  • NUMBER: "number"

    Numeric value with text field

  • NUMBER_INPUT: "number_input"
  • NUMBER_PAD: "number_pad"
  • RGB_COLOR: "rgb_color"
  • STRING: "string"

    String value with text field

  • UCODE_CUSTOM_MATRIX: "custom_matrix"
  • VARIABLE: "variable"

ArgumentUnionType

ArgumentUnionType: ValueOf<ArgumentTypeDef>

积木块参数类型 所有值,联合类型

BlockFilter

BlockFilter: { list: {}; type: "blacklist" | "whitelist" }

Type declaration

  • list: {}
    • [key: string]: boolean
  • type: "blacklist" | "whitelist"

BlockTypeDef

BlockTypeDef: { BOOLEAN: "Boolean"; COMMAND: "command"; CONDITIONAL: "conditional"; EVENT: "event"; HAT: "hat"; LABEL: "label"; LOOP: "loop"; NUMBER: "Number"; REPORTER: "reporter" }

积木块类型 枚举类型

Type declaration

  • BOOLEAN: "Boolean"
  • COMMAND: "command"
  • CONDITIONAL: "conditional"
  • EVENT: "event"
  • HAT: "hat"
  • LABEL: "label"
  • LOOP: "loop"
  • NUMBER: "Number"
  • REPORTER: "reporter"

BlockUnionType

BlockUnionType: ValueOf<BlockTypeDef>

积木块类型 所有值,联合类型

DataEncoding

DataEncoding: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex"

数据编码

DeviceConnectStatusType

DeviceConnectStatusType: { ConnectFail: 4; Connected: 0; Connecting: 2; DisconnectFail: 5; Disconnected: 1; Disconnecting: 3 }

连接状态 枚举类型

Type declaration

  • ConnectFail: 4
  • Connected: 0
  • Connecting: 2
  • DisconnectFail: 5
  • Disconnected: 1
  • Disconnecting: 3

DeviceConnectStatusUnionType

DeviceConnectStatusUnionType: ValueOf<DeviceConnectStatusType>

连接状态 所有值,联合类型

GeneratorLanguageDef

GeneratorLanguageDef: { Arduino: "Arduino"; Lua: "Lua"; Python: "Python" }

Type declaration

  • Arduino: "Arduino"
  • Lua: "Lua"
  • Python: "Python"

GeneratorLanguageType

GeneratorLanguageType: ValueOf<GeneratorLanguageDef>

HostType

HostType: "web" | "electron" | "webview" | "flutter" | "qt"

宿主环境

PlatformType

PlatformType: "windows" | "macos" | "linux" | "ios" | "android" | "chromeos"

系统环境

SwitchModeDataType

SwitchModeDataType: { language: GeneratorLanguageType; mode: "upload" } | "online"

TargetType

TargetType: "stage" | "device" | "all"

角色类型

WorkingModeDef

WorkingModeDef: { Online: "online"; Upload: "upload" }

Type declaration

  • Online: "online"
  • Upload: "upload"

WorkingModeType

WorkingModeType: ValueOf<WorkingModeDef>

Generated using TypeDoc