chore: move remaining function definitions out of blockly.js (#5699)

* chore: move remaining function definitions out of blockly.js

* chore: record renamings

* chore: add aliases to moved function jsdoc

* chore: add deprecation warnings in blockly.js

* chore: fix bad merge

* chore: move functions in response to PR comments

* chore: move isNumber to utils.string
This commit is contained in:
Rachel Fenichel
2021-11-17 11:13:27 -08:00
committed by GitHub
parent 5deed5a194
commit 27699ed08b
7 changed files with 122 additions and 60 deletions

View File

@@ -237,7 +237,15 @@ const renamings = {
runAfterPageLoad:
{module: 'Blockly.Extensions', export: 'runAfterPageLoad'}
}
}
},
'Blockly': {
exports: {
svgSize: {module: 'Blockly.utils.svgMath'},
resizeSvgContents: {module: 'Blockly.WorkspaecSvg'},
defineBlocksWithJsonArray: {module: 'Blockly.common'},
isNumber: {module: 'Blockly.utils.string'},
},
},
}
};