mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Fix annotations
This commit is contained in:
@@ -62,7 +62,7 @@ Blockly.inject = function(container, opt_options) {
|
||||
/**
|
||||
* Create the SVG image.
|
||||
* @param {!Element} container Containing element.
|
||||
* @param {Object} options Dictionary of options.
|
||||
* @param {!Blockly.Options} options Dictionary of options.
|
||||
* @return {!Element} Newly created SVG image.
|
||||
* @private
|
||||
*/
|
||||
@@ -176,7 +176,7 @@ Blockly.createDom_ = function(container, options) {
|
||||
/**
|
||||
* Create a main workspace and add it to the SVG.
|
||||
* @param {!Element} svg SVG element with pattern defined.
|
||||
* @param {Object} options Dictionary of options.
|
||||
* @param {!Blockly.Options} options Dictionary of options.
|
||||
* @return {!Blockly.Workspace} Newly created main workspace.
|
||||
* @private
|
||||
*/
|
||||
|
||||
@@ -32,14 +32,14 @@ goog.require('goog.math');
|
||||
/**
|
||||
* Class for a workspace. This is a data structure that contains blocks.
|
||||
* There is no UI, and can be created headlessly.
|
||||
* @param {Object=} opt_options Dictionary of options.
|
||||
* @param {Blockly.Options} opt_options Dictionary of options.
|
||||
* @constructor
|
||||
*/
|
||||
Blockly.Workspace = function(opt_options) {
|
||||
/** @type {string} */
|
||||
this.id = Blockly.genUid();
|
||||
Blockly.Workspace.WorkspaceDB_[this.id] = this;
|
||||
/** @type {!Object} */
|
||||
/** @type {!Blockly.Options} */
|
||||
this.options = opt_options || {};
|
||||
/** @type {boolean} */
|
||||
this.RTL = !!this.options.RTL;
|
||||
|
||||
@@ -43,7 +43,7 @@ goog.require('goog.userAgent');
|
||||
/**
|
||||
* Class for a workspace. This is an onscreen area with optional trashcan,
|
||||
* scrollbars, bubbles, and dragging.
|
||||
* @param {!Object} options Dictionary of options.
|
||||
* @param {!Blockly.Options} options Dictionary of options.
|
||||
* @extends {Blockly.Workspace}
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user