fix phyphox view style to use lines as default
This commit is contained in:
		
							parent
							
								
									31efce44e7
								
							
						
					
					
						commit
						43aa53fb84
					
				| @ -65,8 +65,8 @@ Blockly.Blocks["sensebox_phyphox_graph"] = { | |||||||
|       .appendField(Blockly.Msg.sensebox_phyphox_graphStyle) |       .appendField(Blockly.Msg.sensebox_phyphox_graphStyle) | ||||||
|       .appendField( |       .appendField( | ||||||
|         new Blockly.FieldDropdown([ |         new Blockly.FieldDropdown([ | ||||||
|           [Blockly.Msg.sensebox_phyphox_style_dots, "dots"], |  | ||||||
|           [Blockly.Msg.sensebox_phyphox_style_line, "line"], |           [Blockly.Msg.sensebox_phyphox_style_line, "line"], | ||||||
|  |           [Blockly.Msg.sensebox_phyphox_style_dots, "dots"], | ||||||
|         ]), |         ]), | ||||||
|         "style" |         "style" | ||||||
|       ); |       ); | ||||||
|  | |||||||
| @ -90,7 +90,9 @@ Blockly.Arduino.sensebox_phyphox_graph = function () { | |||||||
|   code += `${label}.setUnitY("${unity}");\n`; |   code += `${label}.setUnitY("${unity}");\n`; | ||||||
|   code += `${label}.setLabelX("${labelx}");\n`; |   code += `${label}.setLabelX("${labelx}");\n`; | ||||||
|   code += `${label}.setLabelY("${labely}");\n`; |   code += `${label}.setLabelY("${labely}");\n`; | ||||||
|  |   if (style === "dots"){ | ||||||
|     code += `${label}.setStyle("${style}");\n`; |     code += `${label}.setStyle("${style}");\n`; | ||||||
|  |   } | ||||||
|   code += `${label}.setChannel(${channelX}, ${channelY});\n`; |   code += `${label}.setChannel(${channelX}, ${channelY});\n`; | ||||||
|   code += `firstView.addElement(${label});\n`; |   code += `firstView.addElement(${label});\n`; | ||||||
|   return code; |   return code; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user