flowrs-engine/e2e/fixtures/apps/scale_and_offset.flowrs
flowRS fd958c0547 flowRS engine, cut from flowRS 3451b065
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:04:39 -05:00

126 lines
No EOL
2.1 KiB
Text

{
"format": 1,
"generator": "flowrs 0.1.0",
"nodes": [
{
"id": 0,
"type_id": "FloatLiteral",
"properties": {
"value": "2"
},
"position": [
60.0,
60.0
],
"group": null
},
{
"id": 1,
"type_id": "FloatLiteral",
"properties": {
"value": "3"
},
"position": [
60.0,
170.0
],
"group": null
},
{
"id": 2,
"type_id": "FloatLiteral",
"properties": {
"value": "1"
},
"position": [
60.0,
280.0
],
"group": null
},
{
"id": 3,
"type_id": "math.mul",
"properties": {},
"position": [
280.0,
60.0
],
"group": null
},
{
"id": 4,
"type_id": "math.add",
"properties": {},
"position": [
500.0,
60.0
],
"group": null
},
{
"id": 5,
"type_id": "io.print",
"properties": {},
"position": [
720.0,
60.0
],
"group": null
}
],
"wires": [
{
"id": 0,
"from_node": 0,
"from_port": "value",
"to_node": 3,
"to_port": "a",
"mode": "Move"
},
{
"id": 1,
"from_node": 1,
"from_port": "value",
"to_node": 3,
"to_port": "b",
"mode": "Move"
},
{
"id": 2,
"from_node": 3,
"from_port": "product",
"to_node": 4,
"to_port": "a",
"mode": "Move"
},
{
"id": 3,
"from_node": 2,
"from_port": "value",
"to_node": 4,
"to_port": "b",
"mode": "Move"
},
{
"id": 4,
"from_node": 4,
"from_port": "sum",
"to_node": 5,
"to_port": "value",
"mode": "Move"
}
],
"groups": [],
"widgets": {
"io.print": "dfec86693a3ed913",
"math.add": "78d39daaa71cba6a",
"math.mul": "c0420ebca1090887"
},
"app": {
"version": "1.0",
"library": "flowrs-app@1",
"source": "",
"title": "Scale a value and add an offset"
}
}