Skip to content

Instantly share code, notes, and snippets.

@saulshanabrook
Created April 17, 2019 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saulshanabrook/00ff600d2e519da0263ce38684ef5969 to your computer and use it in GitHub Desktop.
Save saulshanabrook/00ff600d2e519da0263ce38684ef5969 to your computer and use it in GitHub Desktop.
{
"background": null,
"operators": [
{ "id": 0, "type": "operator", "root": true },
{ "id": 1, "type": "operator", "value": 0, "signal": "width" },
{ "id": 2, "type": "operator", "value": 0, "signal": "height" },
{
"id": 3,
"type": "operator",
"value": { "top": 0, "bottom": 0, "left": 0, "right": 0 },
"signal": "padding"
},
{
"id": 4,
"type": "operator",
"value": { "type": "pad" },
"signal": "autosize"
},
{
"id": 5,
"type": "operator",
"value": null,
"params": {},
"update": "{\"offset\":18,\"direction\":\"horizontal\",\"left\":{\"direction\":\"vertical\"},\"right\":{\"direction\":\"vertical\"}}"
},
{ "id": 6, "type": "collect", "data": { "root": ["input", "output"] } },
{
"id": 7,
"type": "encode",
"params": {
"pulse": { "$ref": 6 },
"encoders": {
"$encode": {
"enter": {
"$expr": "var o=item,datum=o.datum,$;o[\"x\"]=0;o[\"y\"]=0;return 1;",
"$fields": [],
"$output": ["x", "y"]
},
"update": {
"$expr": "var o=item,datum=o.datum,$;o[\"width\"]=_[\"$width\"];o[\"height\"]=_[\"$height\"];return 1;",
"$fields": [],
"$output": ["width", "height"]
}
}
},
"$width": { "$ref": 1 },
"$height": { "$ref": 2 }
}
},
{ "id": 9, "type": "sieve", "params": { "pulse": { "$ref": 7 } } },
{
"id": 8,
"type": "viewlayout",
"params": {
"legends": { "$ref": 5 },
"autosize": { "$ref": 4 },
"mark": { "$ref": 0 },
"pulse": { "$ref": 7 }
}
},
{
"id": 10,
"type": "bound",
"params": { "mark": { "$ref": 0 }, "pulse": { "$ref": 8 } }
},
{ "id": 11, "type": "render", "params": { "pulse": { "$ref": 10 } } },
{
"id": 12,
"type": "sieve",
"params": { "pulse": { "$ref": 11 } },
"data": { "root": ["values"] }
}
],
"streams": [],
"updates": [],
"bindings": [],
"eventConfig": { "defaults": { "allow": ["wheel"] } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment