mirror of
https://github.com/google/blockly.git
synced 2026-03-10 07:10:11 +01:00
PR comments
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user