gobstones-blockly 0.12.0 → 0.13.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 +10 -30
- 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: c2384d6d8481183557687355b137fbbb8fe932ab9afa0bbe488dc09afb971a2d
|
4
|
+
data.tar.gz: b101ff1dce50e9e46237368c8b5cb6658fbe0c1dc221cbb2a09720ecbb31346c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c1e7fd5e83ad4aa5c3b53ee4c2b786998d63e22619183e5c743a05734a108129740ef4f64cfd1f3aefeb8095c2c96054e3f82455332e9483fe9d06bdc6f7344
|
7
|
+
data.tar.gz: 519449f5493aecdf7c7270f82baa6aef2cdb922ebd49193bf8db259de35a238cafc91d5ccf3eb40f0741dc3a195ea3f8d67c9ba0ecb3371e8df29f1b2ed315f9
|
@@ -4042,27 +4042,7 @@ var CLEAN = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYEAYAAACw5+G7A
|
|
4042
4042
|
|
4043
4043
|
/* global Blockly */
|
4044
4044
|
|
4045
|
-
Blockly.CUSTOM_COLORS = {
|
4046
|
-
globalHsvSaturation: Blockly.HSV_SATURATION,
|
4047
|
-
globalHsvValue: Blockly.HSV_VALUE,
|
4048
|
-
primitiveCommand: "#8DA65B",
|
4049
|
-
assignation: "#5B68A6",
|
4050
|
-
controlStructure: "#A6A65B",
|
4051
|
-
literalExpression: "#5BA6A6",
|
4052
|
-
expression: "#745BA6",
|
4053
|
-
program: "#74A65B",
|
4054
|
-
interactiveProgram: "#A6805B",
|
4055
|
-
interactiveBinding: "#A6995B",
|
4056
|
-
procedure: "#995BA6",
|
4057
|
-
function: "#774A77",
|
4058
|
-
primitiveProcedure: "#CACACA",
|
4059
|
-
primitiveFunction: "#BABABA",
|
4060
|
-
procedure_call: "#661CF6",
|
4061
|
-
function_call: "#330610",
|
4062
|
-
variable: "#FF0000",
|
4063
|
-
parameter: "#0000FF",
|
4064
|
-
complete: "#A65C5B",
|
4065
|
-
};
|
4045
|
+
Blockly.CUSTOM_COLORS = {"globalHsvSaturation":0.45,"globalHsvValue":0.65,"primitiveCommand":"#1d48cc","assignation":"#14328c","controlStructure":"#193fb3","literalExpression":"#48cc1d","primitiveExpression":"#48cc1d","operator":"#3fb319","program":"#ae25db","interactiveProgram":"#731991","interactiveBinding":"#ae25db","procedure":"#915ba3","function":"#745380","primitiveProcedure":"#2351db","primitiveFunction":"#51db23","procedure_call":"#3163f7","function_call":"#63f731","variable":"#328c14","parameter":"#328c14","complete":"#fc0303","H":{"commands":225,"expressions":105,"definitions":285},"S":{"assignation":86,"variable":86,"parameter":86,"primitiveCommand":86,"literalExpression":86,"primitiveExpression":86,"controlStructure":86,"operator":86,"procedure_call":80,"function_call":80,"primitiveProcedure":84,"primitiveFunction":84,"program":83,"interactiveProgram":83,"interactiveBinding":83,"procedure":44,"function":35,"complete":99},"V":{"assignation":55,"variable":55,"parameter":55,"primitiveCommand":80,"literalExpression":80,"primitiveExpression":80,"controlStructure":70,"operator":70,"procedure_call":97,"function_call":97,"primitiveProcedure":86,"primitiveFunction":86,"program":86,"interactiveProgram":57,"interactiveBinding":86,"procedure":64,"function":50,"complete":99}};
|
4066
4046
|
|
4067
4047
|
/**
|
4068
4048
|
* Create the svg representation of a block and render
|
@@ -4785,7 +4765,7 @@ Blockly.Blocks.ColorSelector = createLiteralSelectorBlock('Color',['Rojo','Verde
|
|
4785
4765
|
Blockly.Blocks.DireccionSelector = createLiteralSelectorBlock('Direccion',['Este','Oeste','Norte','Sur']);
|
4786
4766
|
Blockly.Blocks.BoolSelector = createLiteralSelectorBlock('Bool',['True','False']);
|
4787
4767
|
|
4788
|
-
function createSingleParameterExpressionBlock(blockText,returnType){
|
4768
|
+
function createSingleParameterExpressionBlock(blockText,returnType, colorType = "operator"){
|
4789
4769
|
return {
|
4790
4770
|
init: function () {
|
4791
4771
|
this.jsonInit({
|
@@ -4796,7 +4776,7 @@ function createSingleParameterExpressionBlock(blockText,returnType){
|
|
4796
4776
|
name: 'VALUE'
|
4797
4777
|
}
|
4798
4778
|
],
|
4799
|
-
colour: Blockly.CUSTOM_COLORS[this.type] || Blockly.CUSTOM_COLORS
|
4779
|
+
colour: Blockly.CUSTOM_COLORS[this.type] || Blockly.CUSTOM_COLORS[colorType],
|
4800
4780
|
inputsInline: true,
|
4801
4781
|
output: returnType
|
4802
4782
|
})
|
@@ -4804,9 +4784,9 @@ function createSingleParameterExpressionBlock(blockText,returnType){
|
|
4804
4784
|
};
|
4805
4785
|
}
|
4806
4786
|
|
4807
|
-
Blockly.Blocks.hayBolitas = createSingleParameterExpressionBlock('hay bolitas','Bool');
|
4808
|
-
Blockly.Blocks.puedeMover = createSingleParameterExpressionBlock('puede mover','Bool');
|
4809
|
-
Blockly.Blocks.nroBolitas = createSingleParameterExpressionBlock('numero de bolitas','Number');
|
4787
|
+
Blockly.Blocks.hayBolitas = createSingleParameterExpressionBlock('hay bolitas','Bool', "primitiveExpression");
|
4788
|
+
Blockly.Blocks.puedeMover = createSingleParameterExpressionBlock('puede mover','Bool', "primitiveExpression");
|
4789
|
+
Blockly.Blocks.nroBolitas = createSingleParameterExpressionBlock('numero de bolitas','Number', "primitiveExpression");
|
4810
4790
|
|
4811
4791
|
// ------------------------------------------------------
|
4812
4792
|
// Operaciones:
|
@@ -4834,7 +4814,7 @@ Blockly.Blocks.OperadorDeComparacion = {
|
|
4834
4814
|
name: 'arg2'
|
4835
4815
|
}
|
4836
4816
|
],
|
4837
|
-
colour: Blockly.CUSTOM_COLORS.OperadorDeComparacion || Blockly.CUSTOM_COLORS.
|
4817
|
+
colour: Blockly.CUSTOM_COLORS.OperadorDeComparacion || Blockly.CUSTOM_COLORS.operator,
|
4838
4818
|
inputsInline: false,
|
4839
4819
|
output: 'Bool'
|
4840
4820
|
});
|
@@ -4863,7 +4843,7 @@ Blockly.Blocks.OperadorNumerico = {
|
|
4863
4843
|
name: 'arg2'
|
4864
4844
|
}
|
4865
4845
|
],
|
4866
|
-
colour: Blockly.CUSTOM_COLORS.OperadorNumerico || Blockly.CUSTOM_COLORS.
|
4846
|
+
colour: Blockly.CUSTOM_COLORS.OperadorNumerico || Blockly.CUSTOM_COLORS.operator,
|
4867
4847
|
inputsInline: false,
|
4868
4848
|
output: 'Number'
|
4869
4849
|
});
|
@@ -4892,7 +4872,7 @@ Blockly.Blocks.OperadorLogico = {
|
|
4892
4872
|
name: 'arg2'
|
4893
4873
|
}
|
4894
4874
|
],
|
4895
|
-
colour: Blockly.CUSTOM_COLORS.OperadorLogico || Blockly.CUSTOM_COLORS.
|
4875
|
+
colour: Blockly.CUSTOM_COLORS.OperadorLogico || Blockly.CUSTOM_COLORS.operator,
|
4896
4876
|
inputsInline: false,
|
4897
4877
|
output: 'Bool'
|
4898
4878
|
});
|
@@ -6611,7 +6591,7 @@ Blockly.ErrorInforming.CssContent = [
|
|
6611
6591
|
|
6612
6592
|
setTimeout(() => {
|
6613
6593
|
this.workspaceXml = xml;
|
6614
|
-
},
|
6594
|
+
}, 1);
|
6615
6595
|
}
|
6616
6596
|
});
|
6617
6597
|
</script>
|
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.13.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-
|
11
|
+
date: 2018-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|