1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import * as Blockly from 'blockly/core';
|
8 |
|
9 | import {DebugDrawer} from './debugDrawer';
|
10 | import {createNewRenderer} from './debug';
|
11 | import {generateFieldTestBlocks} from './generateFieldTestBlocks';
|
12 | import {populateRandom} from './populateRandom';
|
13 | import {downloadWorkspaceScreenshot} from './screenshot';
|
14 | import {spaghetti} from './spaghetti';
|
15 | import * as logger from './logger';
|
16 | import * as testHelpers from './test_helpers.mocha';
|
17 | import {toolboxTestBlocksInit, toolboxTestBlocks} from '@blockly/block-test';
|
18 | import toolboxCategories from './toolboxCategories';
|
19 | import toolboxSimple from './toolboxSimple';
|
20 |
|
21 | let addGUIControls;
|
22 | let addCodeEditor;
|
23 | let createPlayground;
|
24 | if (typeof window !== 'undefined') {
|
25 | addGUIControls = require('./playground/options').addGUIControls;
|
26 | addCodeEditor = require('./playground/monaco').addCodeEditor;
|
27 | createPlayground = require('./playground/').createPlayground;
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 | globalThis.Blockly = Blockly;
|
33 |
|
34 | export {
|
35 | addCodeEditor,
|
36 | addGUIControls,
|
37 | createNewRenderer,
|
38 | createPlayground,
|
39 | DebugDrawer,
|
40 | downloadWorkspaceScreenshot,
|
41 | generateFieldTestBlocks,
|
42 | populateRandom,
|
43 | logger,
|
44 | spaghetti,
|
45 | testHelpers,
|
46 | toolboxCategories,
|
47 | toolboxSimple,
|
48 | toolboxTestBlocks,
|
49 | toolboxTestBlocksInit,
|
50 | };
|