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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5df4f3cb3085b99b2ab4961e794ce837134096999868a450215dfd0d074d3144
4
- data.tar.gz: d2038c6e78c197d2d440de7d570ad3786995d782c43edfa35939067aca23b078
3
+ metadata.gz: c2384d6d8481183557687355b137fbbb8fe932ab9afa0bbe488dc09afb971a2d
4
+ data.tar.gz: b101ff1dce50e9e46237368c8b5cb6658fbe0c1dc221cbb2a09720ecbb31346c
5
5
  SHA512:
6
- metadata.gz: 7f59e43a5bd79c13e53a4fb6129253f3b1aae0d8d740e249d67d1c82cb30a08d851aa1bbb4f7a0d15f7559d9f24cebe95461ee7104c6809cd6ba3482c9f1d76f
7
- data.tar.gz: b6004a73a82b3f898a0905e941c65cd4136c3d5b9a47d9e8f1630d0b757e23ff7eb9a149edf7768d17a1dcc09e0b120a73e6451e7732e640c398460e7d85f652
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.expression,
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.expression,
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.expression,
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.expression,
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
- }, 0);
6594
+ }, 1);
6615
6595
  }
6616
6596
  });
6617
6597
  </script>
@@ -1,5 +1,5 @@
1
1
  module Gobstones
2
2
  module Blockly
3
- VERSION = "0.12.0"
3
+ VERSION = "0.13.0"
4
4
  end
5
5
  end
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.12.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-04-10 00:00:00.000000000 Z
11
+ date: 2018-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler