{
"source": "JSON",
"data": "BLOCK",
"version": "0.0.1",
"type": "javascript.GUI.print",
"language": "javascript",
"extension": "webaudio",
"help": "Print value",
"label": "Print",
"color": "#23F483",
"group": "GUI",
"codes": [
{
"name": "declaration",
"code": "\n// $label$\nvar $port[float_value]$ = function(value){\n document.getElementById(\"block_$id$\").innerHTML = value;\n return true;\n };\n\nvar $port[char_value]$ = function(value){\n document.getElementById(\"block_$id$\").innerHTML = value;\n return true;\n };\n\nvar $port[color_value]$ = function(value){\n document.getElementById(\"block_$id$\").innerHTML = value;\n return true;\n };\n\nvar $port[string_value]$ = function(value){\n document.getElementById(\"block_$id$\").innerHTML = value;\n return true;\n };\n\nvar $port[point_value]$ = function(value){\n document.getElementById(\"block_$id$\").innerHTML = \"(\"+value+\")\";\n return true;\n };\n \nvar $port[bool_value]$ = function(value){\n document.getElementById(\"block_$id$\").innerHTML = \"(\"+value+\")\";\n return true;\n }; \n"
},
{
"name": "html",
"code": "\n$prop[label]$
\n"
}
],
"properties": [
{
"name": "label",
"label": "Label",
"value": "Label",
"type": "String"
}
],
"ports": [
{
"conn_type": "input",
"name": "float_value",
"label": "Float Value",
"type": "javascript.float"
},
{
"conn_type": "input",
"name": "char_value",
"label": "Char Value",
"type": "javascript.char"
},
{
"conn_type": "input",
"name": "color_value",
"label": "Color Value",
"type": "javascript.color"
},
{
"conn_type": "input",
"name": "string_value",
"label": "String Value",
"type": "javascript.string"
},
{
"conn_type": "input",
"name": "point_value",
"label": "Point Value",
"type": "javascript.point"
},
{
"conn_type": "input",
"name": "bool_value",
"label": "Bool Value",
"type": "javascript.bool"
}
]
}