mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
Fix XML across Blockly. (#2727)
Also fixes references to createSvgElement
This commit is contained in:
committed by
Sam El-Husseini
parent
47574c670d
commit
abc452109e
@@ -144,7 +144,7 @@
|
||||
|
||||
</script>
|
||||
|
||||
<xml id="workspace-blocks" xmlns="http://www.w3.org/1999/xhtml" style="display: none">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml" id="workspace-blocks" style="display: none">
|
||||
<block type="turtle_basic"></block>
|
||||
<block type="turtle_nullifier" y="120"></block>
|
||||
<block type="turtle_changer" y="230"></block>
|
||||
|
||||
@@ -81,10 +81,10 @@ Minimap.init = function(workspace, minimap) {
|
||||
this.rect = document.getElementById('mapDiv').getBoundingClientRect();
|
||||
|
||||
// Create a svg overlay on the top of mapDiv for the minimap.
|
||||
this.svg = Blockly.utils.createSvgElement('svg', {
|
||||
'xmlns': 'http://www.w3.org/2000/svg',
|
||||
'xmlns:html': 'http://www.w3.org/1999/xhtml',
|
||||
'xmlns:xlink': 'http://www.w3.org/1999/xlink',
|
||||
this.svg = Blockly.utils.dom.createSvgElement('svg', {
|
||||
'xmlns': Blockly.utils.dom.SVG_NS,
|
||||
'xmlns:html': Blockly.utils.dom.HTML_NS,
|
||||
'xmlns:xlink': Blockly.utils.dom.XLINK_NS,
|
||||
'version': '1.1',
|
||||
'height': this.rect.bottom-this.rect.top,
|
||||
'width': this.rect.right-this.rect.left,
|
||||
@@ -94,7 +94,7 @@ Minimap.init = function(workspace, minimap) {
|
||||
this.svg.style.left = this.rect.left + 'px';
|
||||
|
||||
// Creating a rectangle in the minimap that represents current view.
|
||||
Blockly.utils.createSvgElement('rect', {
|
||||
Blockly.utils.dom.createSvgElement('rect', {
|
||||
'width': 100,
|
||||
'height': 100,
|
||||
'class': 'mapDragger'
|
||||
|
||||
@@ -71,8 +71,7 @@ Blockly.Msg.PROCEDURES_HUE = '290';
|
||||
/// For more context, see
|
||||
/// [[Translating:Blockly#infrequent_message_types]].\n{{Identical|Item}}
|
||||
Blockly.Msg.VARIABLES_DEFAULT_NAME = 'item';
|
||||
/// default name - A simple, default name for an unnamed function or
|
||||
// variable. Preferably indicates that the key is unnamed.
|
||||
/// default name - A simple, default name for an unnamed function or variable. Preferably indicates that the item is unnamed.
|
||||
Blockly.Msg.UNNAMED_KEY = 'unnamed';
|
||||
/// button text - Button that sets a calendar to today's date.\n{{Identical|Today}}
|
||||
Blockly.Msg.TODAY = 'Today';
|
||||
|
||||
@@ -757,7 +757,7 @@ function test_events_newblock_newvar_xml() {
|
||||
var dom = Blockly.Xml.textToDom(
|
||||
'<xml xmlns="https://developers.google.com/blockly/xml">' +
|
||||
' <block type="field_variable_test_block" id="block1">' +
|
||||
' <field name="VAR" id="id1" variabletype="">name1</field>' +
|
||||
' <field name="VAR" id="id1">name1</field>' +
|
||||
' </block>' +
|
||||
'</xml>');
|
||||
Blockly.Xml.domToWorkspace(dom, workspace);
|
||||
|
||||
@@ -163,10 +163,10 @@ function test_domToWorkspace_VariablesAtTop() {
|
||||
' <variables>' +
|
||||
' <variable type="type1" id="id1">name1</variable>' +
|
||||
' <variable type="type2" id="id2">name2</variable>' +
|
||||
' <variable type="" id="id3">name3</variable>' +
|
||||
' <variable id="id3">name3</variable>' +
|
||||
' </variables>' +
|
||||
' <block type="field_variable_test_block">' +
|
||||
' <field name="VAR" id="id3" variabletype="">name3</field>' +
|
||||
' <field name="VAR" id="id3">name3</field>' +
|
||||
' </block>' +
|
||||
'</xml>');
|
||||
Blockly.Xml.domToWorkspace(dom, workspace);
|
||||
@@ -210,7 +210,7 @@ function test_domToWorkspace_VariablesAtTop_MissingType() {
|
||||
' <variable id="id1">name1</variable>' +
|
||||
' </variables>' +
|
||||
' <block type="field_variable_test_block">' +
|
||||
' <field name="VAR" id="id1" variabletype="">name3</field>' +
|
||||
' <field name="VAR" id="id1">name3</field>' +
|
||||
' </block>' +
|
||||
'</xml>');
|
||||
Blockly.Xml.domToWorkspace(dom, workspace);
|
||||
@@ -233,7 +233,7 @@ function test_domToWorkspace_VariablesAtTop_MismatchBlockType() {
|
||||
' <variable type="type1" id="id1">name1</variable>' +
|
||||
' </variables>' +
|
||||
' <block type="field_variable_test_block">' +
|
||||
' <field name="VAR" id="id1" variabletype="">name1</field>' +
|
||||
' <field name="VAR" id="id1">name1</field>' +
|
||||
' </block>' +
|
||||
'</xml>');
|
||||
Blockly.Xml.domToWorkspace(dom, workspace);
|
||||
|
||||
@@ -50,11 +50,11 @@
|
||||
<script src="xml_test.js"></script>
|
||||
|
||||
<div id="blocklyDiv"></div>
|
||||
<xml id="toolbox-minimal" style="display: none">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-minimal" style="display: none">
|
||||
<block type="basic_block"></block>
|
||||
</xml>
|
||||
|
||||
<xml id="toolbox-categories" style="display: none">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml" id="toolbox-categories" style="display: none">
|
||||
<category name="First">
|
||||
<block type="basic_block">
|
||||
<field name="TEXT">First</field>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
suite('Insert/Modify', function() {
|
||||
setup(function() {
|
||||
var xmlText = '<xml xmlns="http://www.w3.org/1999/xhtml">' +
|
||||
var xmlText = '<xml xmlns="https://developers.google.com/blockly/xml">' +
|
||||
'<block type="stack_block" id="stack_block_1" x="12" y="38"></block>' +
|
||||
'<block type="stack_block" id="stack_block_2" x="12" y="113"></block>' +
|
||||
'<block type="row_block" id="row_block_1" x="13" y="213"></block>' +
|
||||
|
||||
@@ -1304,14 +1304,14 @@ h1 {
|
||||
<block type="text_print">
|
||||
<value name="TEXT">
|
||||
<block type="variables_get">
|
||||
<field name="VAR" id="item" variabletype="">item</field>
|
||||
<field name="VAR" id="item">item</field>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="text_print">
|
||||
<value name="TEXT">
|
||||
<block type="variables_get">
|
||||
<field name="VAR" id="item" variabletype="">item</field>
|
||||
<field name="VAR" id="item">item</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
|
||||
@@ -48,11 +48,11 @@ limitations under the License.
|
||||
var svgSpace;
|
||||
|
||||
function addPathAt(path, x, y) {
|
||||
var group = Blockly.utils.createSvgElement('g',
|
||||
var group = Blockly.utils.dom.createSvgElement('g',
|
||||
{
|
||||
'transform': 'translate(' + (x + 50) + ', ' + y + ')'
|
||||
}, svgSpace);
|
||||
Blockly.utils.createSvgElement('path', {
|
||||
Blockly.utils.dom.createSvgElement('path', {
|
||||
'd': 'M 0,0 ' + path,
|
||||
'marker-start': 'url(#startDot)',
|
||||
'marker-end': 'url(#endDot)',
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="colour_blend">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="colour_blend"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="colour_picker">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="colour_picker"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="colour_random">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="colour_random"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="colour_rgb">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="colour_rgb"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_flow_statements">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_flow_statements"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_for">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_for"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_forEach">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_forEach"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_if">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_if"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_if_else">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_if_else"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_if_elseif">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_if_elseif"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_if_if">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_if_if"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_ifelse">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_ifelse"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_repeat">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_repeat"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_repeat_ext">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_repeat_ext"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="controls_whileUntil">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="controls_whileUntil"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_create_empty">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_create_empty"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_create_with">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_create_with"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_create_with_container">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_create_with_container"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_create_with_item">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_create_with_item"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_getIndex">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_getIndex"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_getSublist">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_getSublist"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_indexOf">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_indexOf"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_isEmpty">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_isEmpty"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_length">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_length"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_repeat">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_repeat"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_reverse">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_reverse"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_setIndex">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_setIndex"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_sort">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_sort"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="lists_split">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="lists_split"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="logic_boolean">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_boolean"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="logic_compare">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_compare"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="logic_negate">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_negate"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="logic_null">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_null"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="logic_operation">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_operation"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="logic_ternary">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_ternary"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,4 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_arithmetic">
|
||||
<field name="OP">ADD</field>
|
||||
<value name="A">
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_arithmetic">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_arithmetic"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_atan2">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_atan2"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_change">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_change"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_constant">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_constant"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_constrain">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_constrain"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_modulo">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_modulo"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_number">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_number"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_number_property">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_number_property"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_on_list">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_on_list"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_random_float">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_random_float"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_random_int">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_random_int"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_round">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_round"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_single">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_single"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,4 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_arithmetic">
|
||||
<field name="OP">MINUS</field>
|
||||
<value name="A">
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="math_trig">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="math_trig"></block>
|
||||
</xml>
|
||||
@@ -1,6 +1,6 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<variables>
|
||||
<variable type="" id=";yuq?=_C|_qk64!)f:m^">item</variable>
|
||||
<variable id=";yuq?=_C|_qk64!)f:m^">item</variable>
|
||||
</variables>
|
||||
<block type="controls_ifelse">
|
||||
<statement name="ELSE">
|
||||
@@ -50,7 +50,7 @@
|
||||
</statement>
|
||||
<statement name="ELSE">
|
||||
<block type="text_append">
|
||||
<field name="VAR" id=";yuq?=_C|_qk64!)f:m^" variabletype="">item</field>
|
||||
<field name="VAR" id=";yuq?=_C|_qk64!)f:m^">item</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">f00</field>
|
||||
@@ -58,7 +58,7 @@
|
||||
</value>
|
||||
<next>
|
||||
<block type="text_append">
|
||||
<field name="VAR" id=";yuq?=_C|_qk64!)f:m^" variabletype="">item</field>
|
||||
<field name="VAR" id=";yuq?=_C|_qk64!)f:m^">item</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">bar</field>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_compare">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="colour_rgb">
|
||||
<value name="RED">
|
||||
<shadow type="math_number">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="colour_rgb" inline="true">
|
||||
<value name="RED">
|
||||
<shadow type="math_number">
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<variables>
|
||||
<variable type="" id="YUz?xxnE}SFx_,jmW#s;">item</variable>
|
||||
<variable id="YUz?xxnE}SFx_,jmW#s;">item</variable>
|
||||
</variables>
|
||||
<block type="text_append">
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;" variabletype="">item</field>
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;">item</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">one</field>
|
||||
@@ -11,7 +11,7 @@
|
||||
</value>
|
||||
<next>
|
||||
<block type="text_append">
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;" variabletype="">item</field>
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;">item</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">two</field>
|
||||
@@ -19,7 +19,7 @@
|
||||
</value>
|
||||
<next>
|
||||
<block type="text_append">
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;" variabletype="">item</field>
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;">item</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">three</field>
|
||||
@@ -27,7 +27,7 @@
|
||||
</value>
|
||||
<next>
|
||||
<block type="text_append">
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;" variabletype="">item</field>
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;">item</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">four</field>
|
||||
@@ -35,7 +35,7 @@
|
||||
</value>
|
||||
<next>
|
||||
<block type="text_append">
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;" variabletype="">item</field>
|
||||
<field name="VAR" id="YUz?xxnE}SFx_,jmW#s;">item</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">five</field>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="logic_negate">
|
||||
<value name="BOOL">
|
||||
<block type="logic_boolean">
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="procedures_callnoreturn">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="procedures_callnoreturn"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="procedures_callreturn">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="procedures_callreturn"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="procedures_defnoreturn">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="procedures_defnoreturn"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="procedures_defreturn">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="procedures_defreturn"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="procedures_ifreturn">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="procedures_ifreturn"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="procedures_mutatorarg">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="procedures_mutatorarg"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="procedures_mutatorcontainer">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="procedures_mutatorcontainer"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_basic_empty">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_basic_empty"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_basic_empty_with_mutator">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_basic_empty_with_mutator"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_basic_limit_instances">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_basic_limit_instances"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_basic_value_to_stack">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_basic_value_to_stack"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_basic_value_to_statement">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_basic_value_to_statement"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_dropdowns_dynamic">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_dropdowns_dynamic"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_dropdowns_images">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_dropdowns_images"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_dropdowns_images_and_text">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_dropdowns_images_and_text"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_dropdowns_long">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_dropdowns_long"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_fields_angle">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_fields_angle"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_fields_checkbox">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_fields_checkbox"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_fields_colour">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_fields_colour"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_fields_date">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_fields_date"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_fields_label_serializable">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_fields_label_serializable"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_fields_text_input">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_fields_text_input"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_fields_variable">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_fields_variable"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_images_datauri">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_images_datauri"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_images_fliprtl">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_images_fliprtl"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_images_large">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_images_large"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_images_many_icons">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_images_many_icons"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_images_missing">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_images_missing"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_images_small">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_images_small"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_numbers_float">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_numbers_float"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_numbers_halves">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_numbers_halves"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_numbers_hundredths">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_numbers_hundredths"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_numbers_three_halves">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_numbers_three_halves"></block>
|
||||
</xml>
|
||||
@@ -1,4 +1,3 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<block type="test_numbers_whole">
|
||||
</block>
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="test_numbers_whole"></block>
|
||||
</xml>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user