Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlocklyMetaRenderer

Hierarchy

  • BlocklyMetaRenderer

Implements

Index

Properties

blocksMap

blocksMap: Map<string, MetaModule> = new Map()

defaultsMap

defaultsMap: Map<string, IBlockDefaults> = new Map()

legacyBlocksMap

legacyBlocksMap: Map<string, ILegacyModule> = new Map()

Methods

disposeToolboxEntry

  • disposeToolboxEntry(category: ICategory): void

getDefaultsForBlock

  • getDefaultsForBlock(blockType: string): undefined | IBlockDefaults
  • Parameters

    • blockType: string

    Returns undefined | IBlockDefaults

getEntryForBlock

  • getEntryForBlock(blockType: string): undefined | MetaModule
  • Parameters

    • blockType: string

    Returns undefined | MetaModule

getIdForBlock

  • getIdForBlock(blockType: string): Meta | undefined
  • Parameters

    • blockType: string

    Returns Meta | undefined

render

  • Parameters

    Returns IRenderedBlock[]

renderFunction

  • Parameters

    Returns object[]

renderLegacyToolboxEntry

  • renderLegacyToolboxEntry(mod: ILegacyModule, whitelist: string[] | null): null | ICategory
  • Parameters

    • mod: ILegacyModule
    • whitelist: string[] | null

    Returns null | ICategory

renderModule

  • Parameters

    Returns IRenderedBlock[]

renderToolboxEntry

shadowForDefaults

  • shadowForDefaults(defaults: IBlockDefaults): any
  • Parameters

    • defaults: IBlockDefaults

    Returns any

Static findScopedArgument

  • findScopedArgument(block: Block, returnType: any): null | string
  • Parameters

    • block: Block
    • returnType: any

    Returns null | string

Static formatFieldValue

  • formatFieldValue(value: any, def: any): any
  • Parameters

    • value: any
    • def: any

    Returns any

Static getId

  • getId(m: Meta): string
  • Parameters

    Returns string

Static isInToolbox

  • isInToolbox(m: Meta): boolean
  • Parameters

    Returns boolean

Static parseInputType

  • parseInputType(type: any, param: Meta): object | object | object | object | object
  • Parameters

    • type: any
    • param: Meta

    Returns object | object | object | object | object

Static parseType

  • parseType(type: any): any
  • Parameters

    • type: any

    Returns any

Static renderGetter

  • Parameters

    Returns IRenderedBlock

Static renderSetter

  • Parameters

    Returns IRenderedBlock

Static renderVariable

  • Parameters

    Returns IRenderedBlock[]

Static verboseWithPrefix

  • verboseWithPrefix(m: Meta): string
  • Parameters

    Returns string

Generated using TypeDoc