mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Add plugin options (#3922)
* Adds a plugin through options * Fix requires * Fix pr comments
This commit is contained in:
@@ -110,6 +110,8 @@ Blockly.Options = function(options) {
|
||||
|
||||
var renderer = options['renderer'] || 'geras';
|
||||
|
||||
var plugins = options['plugins'] || {};
|
||||
|
||||
/** @type {boolean} */
|
||||
this.RTL = rtl;
|
||||
/** @type {boolean} */
|
||||
@@ -174,6 +176,12 @@ Blockly.Options = function(options) {
|
||||
* @type {Blockly.Workspace}
|
||||
*/
|
||||
this.parentWorkspace = options['parentWorkspace'];
|
||||
|
||||
/**
|
||||
* Map of plugin type to name of registered plugin or plugin class.
|
||||
* @type {!Object.<string, (function(new:?, ...?)|string)>}
|
||||
*/
|
||||
this.plugins = plugins;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user