PR comments

This commit is contained in:
Sam El-Husseini
2020-06-08 12:05:37 -07:00
parent 47385c5986
commit 2276b67968
2 changed files with 1 additions and 30 deletions

View File

@@ -361,34 +361,6 @@ function logEvents(state) {
}
}
function toggleRenderingDebug(state) {
if (!Blockly.blockRendering.Debug) {
return;
}
var checkbox = document.getElementById('blockRenderDebugCheck');
checkbox.checked = state;
if (sessionStorage) {
sessionStorage.setItem('blockRenderDebug', Number(state));
}
if (state) {
document.getElementById('blocklyDiv').className = 'renderingDebug';
Blockly.blockRendering.startDebugger();
document.getElementById('renderDebugOptions').style.display = 'block';
} else {
document.getElementById('blocklyDiv').className = '';
Blockly.blockRendering.stopDebugger();
document.getElementById('renderDebugOptions').style.display = 'none';
}
}
function toggleAccessibilityMode(state) {
if (state) {
Blockly.navigation.enableKeyboardAccessibility();
} else {
Blockly.navigation.disableKeyboardAccessibility();
}
}
function configureContextMenu(menuOptions, e) {
var screenshotOption = {
text: 'Download Screenshot',

View File

@@ -68,8 +68,7 @@
<script src="../themes/test_themes.js"></script>
<script src="./screenshot.js"></script>
<script src="./test_blocks_toolbox.js"></script>
<script src="../../../blockly-samples2/plugins/dev-tools/dist/index.js"></script>
<!-- <script src="https://unpkg.com/@blockly/dev-tools/dist/index.js"></script> -->
<script src="https://unpkg.com/@blockly/dev-tools/dist/index.js"></script>
<script src="https://unpkg.com/@blockly/theme-modern/dist/index.js"></script>
<script>