@blockly/field-colour
Version:
A Blockly colour field.
34 lines (29 loc) • 1.05 kB
text/typescript
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
export * from './field_colour';
import * as colourPicker from './blocks/colourPicker';
import * as colourRandom from './blocks/colourRandom';
import * as colourRgb from './blocks/colourRgb';
import * as colourBlend from './blocks/colourBlend';
import {Generators} from './blocks/generatorsType';
// Re-export all parts of the definition.
export * as colourPicker from './blocks/colourPicker';
export * as colourRandom from './blocks/colourRandom';
export * as colourRgb from './blocks/colourRgb';
export * as colourBlend from './blocks/colourBlend';
/**
* Install all of the blocks defined in this file and all of their
* dependencies.
*
* @param generators The CodeGenerators to install per-block
* generators on.
*/
export function installAllBlocks(generators: Generators = {}) {
colourPicker.installBlock(generators);
colourRgb.installBlock(generators);
colourRandom.installBlock(generators);
colourBlend.installBlock(generators);
}