mirror of
https://github.com/google/blockly.git
synced 2026-06-17 00:25:14 +02:00
feat!: update the default renderer to thrasos (#9976)
This commit is contained in:
@@ -147,7 +147,7 @@ export class Options {
|
||||
const rawOneBasedIndex = options['oneBasedIndex'];
|
||||
const oneBasedIndex =
|
||||
rawOneBasedIndex === undefined ? true : rawOneBasedIndex;
|
||||
const renderer = options['renderer'] || 'geras';
|
||||
const renderer = options['renderer'] || 'thrasos';
|
||||
|
||||
const plugins = options['plugins'] || {};
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
suite('InsertionMarkers', function () {
|
||||
setup(function () {
|
||||
sharedTestSetup.call(this);
|
||||
this.workspace = Blockly.inject('blocklyDiv', {});
|
||||
this.workspace = Blockly.inject('blocklyDiv', {renderer: 'geras'});
|
||||
Blockly.defineBlocksWithJsonArray([
|
||||
{
|
||||
'type': 'stack_block',
|
||||
|
||||
@@ -8,4 +8,4 @@ description: Introduction to the built-in renderers.
|
||||
|
||||
First, visit [the advanced playground](https://blockly-demo.appspot.com/static/tests/playgrounds/advanced_playground.html) to observe what the built-in renderers look like.
|
||||
|
||||
Click on the "Loops" entry and drag out a repeat block. Now, change the selection in the "renderer" drop down to observe the look of each built-in renderer. By default, the renderer named "Geras" is used.
|
||||
Click on the "Loops" entry and drag out a repeat block. Now, change the selection in the "renderer" drop down to observe the look of each built-in renderer. By default, the renderer named "Thrasos" is used.
|
||||
|
||||
@@ -57,7 +57,7 @@ default value based on whether the provided toolbox has categories or not.
|
||||
| `oneBasedIndex` | boolean | If `true` list and string operations should index from `1`, if `false` index from `0`. Defaults to `true`. |
|
||||
| `plugins` | object | An object mapping registry type names to replacement classes or the registered names of replacement classes. See [Inject your replacement class][replacement]. |
|
||||
| `readOnly` | boolean | If `true`, prevent the user from editing. Suppresses the toolbox and trashcan. Defaults to `false`. See also [`setIsReadOnly`][setIsReadOnly] and [`isReadOnly`][isReadOnly]. |
|
||||
| `renderer` | string | Determines the renderer used by blockly. Pre-packaged renderers include `'geras'` (the default), `'thrasos'`, and `'zelos'` (a Scratch-like renderer). For information about custom renderers, see [Create custom renderers][renderer]. |
|
||||
| `renderer` | string | Determines the renderer used by blockly. Pre-packaged renderers include `'thrasos'` (the default), `'geras'` (an older style we no longer recommend), and `'zelos'` (a Scratch-like renderer). For information about custom renderers, see [Create custom renderers][renderer]. |
|
||||
| `rtl` | boolean | If `true`, mirror the editor (for Arabic or Hebrew locales).See [RTL demo]. Defaults to `false`. |
|
||||
| `scrollbars` | object or boolean | Sets whether the workspace has vertical or horizontal scrollbars. Takes an object where the `horizontal` property determines if horizontal scrolling is enabled and the `vertical` property determines if vertical scrolling is enabled. If a boolean is passed then it is equivalent to passing an object with both `horizontal` and `vertical` properties set as that value. Defaults to `true` if the toolbox has categories. |
|
||||
| `sounds` | boolean | If `false`, disables sounds. Defaults to `true`. |
|
||||
|
||||
Reference in New Issue
Block a user