gobstones-blockly 0.8.5 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/htmls/gs-element-blockly.html +15 -8
- data/lib/gobstones/blockly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69c2a16fd99f15355377a2a38a02ca99374416a0ac14d2f0fe792af62816ba45
|
4
|
+
data.tar.gz: f680590c43e2b1bcd7f9603869b5475c0e2a8ac1e2be8462c7b2a0cf90b805d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ad1d7184fdea98f4f8cdf35b0c683eeaaf778132640c9672d8a169511e8ef1910f0ee024e2513ebf422efd1d633b1bcc6e71eb7a88863fd6740b4d0527d017
|
7
|
+
data.tar.gz: b60cecf0eec1bbc2badcf153d4be1609bb6576c756831bbdba665d430d53f02ada5a8bee5b2c8ff9be5fa923a5cecc1161657f28556be7cd87398122e596e142
|
@@ -101,11 +101,11 @@ Example:
|
|
101
101
|
<block type="procedures_defreturn"></block>
|
102
102
|
</category>
|
103
103
|
</category>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
104
|
+
<category name="Auxiliares Docente">
|
105
|
+
<block type="ComandoCompletar"></block>
|
106
|
+
<block type="ExpresionCompletar"></block>
|
107
|
+
<block type="AsociacionDeTeclaCompletar"></block>
|
108
|
+
</category>
|
109
109
|
</xml>
|
110
110
|
</template>
|
111
111
|
|
@@ -3312,7 +3312,7 @@ Blockly.Blocks['procedures_ifreturn'] = {
|
|
3312
3312
|
var MINUS = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAQAAAD2e2DtAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA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VwDGjBLIiQKWWwC9fgHBhAFlOgBhNQDCggHHigFwPQBoNQDIhgHDqADBqQDOkAF4PgBjLwDIhwLFjAGUUgCJRACIQgCSTwDCiwHNkAJ2OABSJgCcWgqPQgCCOgB8OACPQgCcWgthLQD06Xj16nn47YT14Hv35YD14Xzx1G744Hv44Xvy1m/00nX31nj32Hb323b43Xb43nb43Hb32nb313f103bpwlz2zG/30W/31W/42W/422/43W/43G/42m/412/302/3z2/3zmj402j42Gj43Gj53mj53Wj42mj41mj30WjswEr401/52V/53V/54F/64V/531/522H4zErtsir4yD350j352Tn63TL63Cj61Bn4xQL3twD3tgD4xgD61QD73wD74QD72wD5zgD3vgD3uAD5ywD73AD86wD97wD85AD61AD4wgD2tQD5yQD01gDz3AD60wD4vwDsrgHqswH////vUbxMAAAATXRSTlMABAQHwMIIen0c8fIeCa6yCgI5e7Hp67WAPwOD/otJ/PxLev7+fAKSlQIG3OEIy9IBA+HpBAj1/v77DAr58ZMtKo3u/Q4BcGcTEGJzAcqMNfMAAAABYktHRKBe076gAAAAB3RJTUUH4QwFFBQHSAc27gAAANRJREFUGNNjYIAARiYGFMDMwsqGIsDu68eBzOfk8vfn5kHwefkCAgOD+AXAHEEhYRHR4JDQ0JAwMXEJSSkGaZnwiMio6JiY6Ni4+IREWQY5+aTklNS09PSMzKzsHAVFBgYl5dy8/ILCwqLiklIVVaAhaupl5RWVVdU1tXX1GpogY7W0Gxqbmlta29p1dCG26nV0dnX39Pb16xuA+YZGEyZOmjxl6rTpxiZgAVOzGTNnmVvMnjPX0gosYG0zz9bO3sHRab6zC1jA1c3dA0R7enn7MDAAABs9NIkRbjxSAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTEyLTA1VDIwOjIwOjA3LTA1OjAw6QjR4wAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0xMi0wNVQyMDoyMDowNy0wNTowMJhVaV8AAAAASUVORK5CYII=";
|
3314
3314
|
|
3315
|
-
function
|
3315
|
+
window.initProcedsBlockly = function(customStatementType) {
|
3316
3316
|
Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT = 'Describe el procedimiento...';
|
3317
3317
|
Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE = "Hacer algo";
|
3318
3318
|
Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE = "Definir";
|
@@ -4876,7 +4876,7 @@ Blockly.Blocks.variables_get = {
|
|
4876
4876
|
mutationToDom: function() {
|
4877
4877
|
var container = document.createElement('mutation');
|
4878
4878
|
container.setAttribute('var', this.getFieldValue('VAR'));
|
4879
|
-
container.setAttribute("parent", this.$parent
|
4879
|
+
if (this.$parent) container.setAttribute("parent", this.$parent);
|
4880
4880
|
return container;
|
4881
4881
|
},
|
4882
4882
|
domToMutation: function(xmlElement) {
|
@@ -6254,10 +6254,17 @@ Blockly.ErrorInforming.CssContent = [
|
|
6254
6254
|
*
|
6255
6255
|
* @return {Array} Los objetos.
|
6256
6256
|
*/
|
6257
|
-
validToolboxIDs: function(){
|
6257
|
+
validToolboxIDs: function() {
|
6258
6258
|
return this._validToolboxIDsFrom(this._defaultToolboxTree());
|
6259
6259
|
},
|
6260
6260
|
|
6261
|
+
setDefaultToolbox: function(xml) {
|
6262
|
+
this.$$('#toolbox').innerHTML = xml;
|
6263
|
+
|
6264
|
+
const toolboxXml = `<xml>${xml}</xml>`;
|
6265
|
+
this.workspace.updateToolbox(toolboxXml);
|
6266
|
+
},
|
6267
|
+
|
6261
6268
|
/**
|
6262
6269
|
* Recursively defined. Gets a list of user-readable objects describing the
|
6263
6270
|
* toolboxTree hierarchy and aliases.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobstones-blockly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Alfonso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|