Class: BlockSet

BlockSet(reporter, settings)

Block set Component is not auto-linked and uses the Package to formulate the set of blocks from block categories and block references. As "BlockSet" is loaded after "Block" in the Package, this isn't a problem. Otherwise, building depends on Package change events.

Constructor

new BlockSet(reporter, settings)

Parameters:
Name Type Description
reporter Reporter
settings Object
Properties
Name Type Attributes Description
id UUID <optional>
name string
thumbnail WrappedImage <optional>
categories Array.<BlockCategory> <optional>
blocks Array.<Block> <optional>
Source:

Members

allBlocks :Array.<Block>

All blocks that are in this set. (Available after building)
Type:
Source:

Methods

(async, protected) _build()

Source:

has(block) → {boolean}

Check whether a block is in the set
Parameters:
Name Type Description
block Block
Source:
Returns:
Type
boolean

size() → {number}

Number of blocks in set
Source:
Returns:
Type
number