-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.x.cache
1 lines (1 loc) · 29.3 KB
/
.x.cache
1
{"dependencies":{"npm":{"alert":"0.x.x","handlebars":"latest"}},"nodeDefinitions":{"./graphs/{ns}/{name}.fbp":{"clock":{"hand":{"id":"2906f572-8716-4994-98de-efa7f97cf738","type":"flow","links":[{"id":"5c92b871-6c3f-40c0-a7b8-fb5e4a344920","source":{"id":"406cd5f5-434a-4730-bfe2-c5c032610e19","port":"context"},"target":{"id":"115b0c2e-6f9c-4c02-8df3-103e0653e864","port":"context"},"metadata":{"title":"CanvasSave context -> context SetHandAttributes"}},{"id":"61325ed1-0cfb-4abd-a4e0-8b5e2f668fb2","source":{"id":"115b0c2e-6f9c-4c02-8df3-103e0653e864","port":"context"},"target":{"id":"269c0495-fcce-4a9c-8f19-2c5cb6a69eef","port":"context"},"metadata":{"title":"SetHandAttributes context -> context CanvasBeginPath"}},{"id":"304ef683-058b-4360-82d9-8dfe9da23d03","source":{"id":"269c0495-fcce-4a9c-8f19-2c5cb6a69eef","port":"context"},"target":{"id":"084c4666-ca55-4a42-8a47-3d4d8329d20b","port":"context"},"metadata":{"title":"CanvasBeginPath context -> context Rotate"}},{"id":"0a61a601-1105-4564-bc27-e4ed9bb22ced","source":{"id":"084c4666-ca55-4a42-8a47-3d4d8329d20b","port":"context"},"target":{"id":"022f5efb-dcda-473a-9447-866d31e71daf","port":"context"},"metadata":{"title":"Rotate context -> context CanvasMoveTo"}},{"id":"289f2dc7-71a3-42e5-a808-21a20a020c0d","source":{"id":"022f5efb-dcda-473a-9447-866d31e71daf","port":"context"},"target":{"id":"50c036e4-699a-40ce-adfe-5c46a517c0d7","port":"context"},"metadata":{"title":"CanvasMoveTo context -> context DrawLine"}},{"id":"e6f8165d-4b38-4ece-9e84-8750be692169","source":{"id":"50c036e4-699a-40ce-adfe-5c46a517c0d7","port":"context"},"target":{"id":"d91a19a1-f43a-4701-98ae-03b38ada8308","port":"context"},"metadata":{"title":"DrawLine context -> context DrawLine2"}},{"id":"c6f26b86-46af-4f13-9371-d481430fa741","source":{"id":"d91a19a1-f43a-4701-98ae-03b38ada8308","port":"context"},"target":{"id":"0dc837f4-567c-4c7f-91c7-dae4c88f570d","port":"context"},"metadata":{"title":"DrawLine2 context -> context DrawLine3"}},{"id":"de4b184e-2eb9-4648-92ed-39c6ced83729","source":{"id":"0dc837f4-567c-4c7f-91c7-dae4c88f570d","port":"context"},"target":{"id":"0ef375d3-bd84-40bb-8b51-244d3eb2aa93","port":"context"},"metadata":{"title":"DrawLine3 context -> context DrawLine4"}},{"id":"e6e53e6d-bac3-4cd9-a559-b687675043b3","source":{"id":"0ef375d3-bd84-40bb-8b51-244d3eb2aa93","port":"context"},"target":{"id":"8aebff56-1241-47db-aa90-9825a3f45661","port":"context"},"metadata":{"title":"DrawLine4 context -> context FillLine"}},{"id":"b2a61ce1-2d47-4d36-a864-11d5531672e0","source":{"id":"8aebff56-1241-47db-aa90-9825a3f45661","port":"context"},"target":{"id":"27c4ccfd-99a0-4fc2-bda3-3f4ba0d31c16","port":"context"},"metadata":{"title":"FillLine context -> context Stroke"}},{"id":"32a1c233-4a09-402b-921e-1870fd764f51","source":{"id":"27c4ccfd-99a0-4fc2-bda3-3f4ba0d31c16","port":"context"},"target":{"id":"4e4a1c76-900d-40e2-9ddb-7cbca07be3a8","port":"context"},"metadata":{"title":"Stroke context -> context CanvasRestore"}}],"nodes":[{"id":"269c0495-fcce-4a9c-8f19-2c5cb6a69eef","title":"CanvasBeginPath","ns":"canvas","name":"beginPath","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"022f5efb-dcda-473a-9447-866d31e71daf","title":"CanvasMoveTo","ns":"canvas","name":"moveTo","context":{"in":{"x":0,"y":0}},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"50c036e4-699a-40ce-adfe-5c46a517c0d7","title":"DrawLine","ns":"canvas","name":"lineTo","context":{"in":{"x":-4,"y":-10}},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"d91a19a1-f43a-4701-98ae-03b38ada8308","title":"DrawLine2","ns":"canvas","name":"lineTo","context":{"in":{"x":0,"y":-150}},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"0dc837f4-567c-4c7f-91c7-dae4c88f570d","title":"DrawLine3","ns":"canvas","name":"lineTo","context":{"in":{"x":4,"y":-10}},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"0ef375d3-bd84-40bb-8b51-244d3eb2aa93","title":"DrawLine4","ns":"canvas","name":"lineTo","context":{"in":{"x":0,"y":0}},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"27c4ccfd-99a0-4fc2-bda3-3f4ba0d31c16","title":"Stroke","ns":"canvas","name":"stroke","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"084c4666-ca55-4a42-8a47-3d4d8329d20b","title":"Rotate","ns":"canvas","name":"rotate","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"115b0c2e-6f9c-4c02-8df3-103e0653e864","title":"SetHandAttributes","ns":"canvas","name":"setAttributes","context":{"in":{"fillStyle":"blue","globalAlpha":0.8,"lineCap":"butt","lineJoin":"miter","lineWidth":5,"shadowBlur":0.8,"shadowColor":"green","strokeStyle":"yellow","textAlign":"start","textBaseline":"top"}},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"8aebff56-1241-47db-aa90-9825a3f45661","title":"FillLine","ns":"canvas","name":"fill","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"406cd5f5-434a-4730-bfe2-c5c032610e19","title":"CanvasSave","ns":"canvas","name":"save","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"4e4a1c76-900d-40e2-9ddb-7cbca07be3a8","title":"CanvasRestore","ns":"canvas","name":"restore","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"}],"title":"Hand","ns":"clock","name":"hand","description":"Draws a clock hand","ports":{"input":{"context":{"nodeId":"406cd5f5-434a-4730-bfe2-c5c032610e19","title":"Context","name":"context"},"angle":{"nodeId":"084c4666-ca55-4a42-8a47-3d4d8329d20b","title":"Angle","name":"angle"}},"output":{"context":{"nodeId":"4e4a1c76-900d-40e2-9ddb-7cbca07be3a8","title":"Context","name":"context"}}},"providers":{"@":{"url":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"}},"provider":"./graphs/{ns}/{name}.fbp"},"work":{"id":"713516b6-6eb5-463c-bebd-fec84c42ec7d","type":"flow","links":[{"id":"13d61d1e-7e7e-4941-8b76-bea2d1fdb99b","source":{"id":"e0573db6-42da-4798-bd0a-d94e33518360","port":"out"},"target":{"id":"fa35f1b1-9ad1-4c74-a37b-2653e57e70ec","port":"msg"},"metadata":{"title":"DateCreate out -> msg Log"}},{"id":"271eac75-abac-44e6-ade8-89aaf020aa3f","source":{"id":"e0573db6-42da-4798-bd0a-d94e33518360","port":"out"},"target":{"id":"8d55ed01-a352-4564-9713-427573d388d9","port":":start"},"metadata":{"title":"DateCreate out -> :start DateGetSeconds"}},{"id":"62c91c1f-511e-472b-9b72-f4911099a209","source":{"id":"e0573db6-42da-4798-bd0a-d94e33518360","port":"out"},"target":{"id":"8d55ed01-a352-4564-9713-427573d388d9","port":"date"},"metadata":{"title":"DateCreate out -> date DateGetSeconds"}},{"id":"ff92a004-3d6a-43ad-989e-4d6766561925","source":{"id":"8d55ed01-a352-4564-9713-427573d388d9","port":"out"},"target":{"id":"cb5ad2f1-b936-439d-b483-85aad78eded6","port":"x"},"metadata":{"title":"DateGetSeconds out -> x MathMultiply"}},{"id":"392e27d0-5d15-4531-aa5c-b2f4c6181b26","source":{"id":"cb5ad2f1-b936-439d-b483-85aad78eded6","port":"out"},"target":{"id":"67573377-7dfd-4569-a3e7-52dca3db1197","port":"in"},"metadata":{"title":"MathMultiply out -> in MathDegreesToRadians"}},{"id":"7248e2a7-0139-499f-8f29-fe533d193940","source":{"id":"8d55ed01-a352-4564-9713-427573d388d9","port":"out"},"target":{"id":"43f62199-1777-43f1-9bc9-28966f1e4a5e","port":"in"},"metadata":{"title":"DateGetSeconds out -> in UtilWait"}},{"id":"1bd8fc57-bdfa-49c7-8588-d58a68eca44d","source":{"id":"43f62199-1777-43f1-9bc9-28966f1e4a5e","port":"out"},"target":{"id":"3169dfbe-a335-4948-8c8b-8178736f5012","port":":start"},"metadata":{"title":"UtilWait out -> :start SoundAlert"}},{"id":"16b54d00-0871-4384-989e-a914036c0643","source":{"id":"43f62199-1777-43f1-9bc9-28966f1e4a5e","port":"out"},"target":{"id":"ea271db8-e803-4071-b82a-86db388fc7bd","port":":start"},"metadata":{"title":"UtilWait out -> :start DateCreate2"}},{"id":"cf632ae6-7a02-4f0a-81bc-e64b8b1809c7","source":{"id":"ea271db8-e803-4071-b82a-86db388fc7bd","port":"out"},"target":{"id":"8d55ed01-a352-4564-9713-427573d388d9","port":"date"},"metadata":{"title":"DateCreate2 out -> date DateGetSeconds"}},{"id":"c9c3d47b-395b-47d0-a0fb-461e770596f1","source":{"id":"ea271db8-e803-4071-b82a-86db388fc7bd","port":"out"},"target":{"id":"8d55ed01-a352-4564-9713-427573d388d9","port":":start"},"metadata":{"title":"DateCreate2 out -> :start DateGetSeconds"}}],"nodes":[{"id":"67573377-7dfd-4569-a3e7-52dca3db1197","title":"MathDegreesToRadians","ns":"math","name":"degreesToRadians","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"e0573db6-42da-4798-bd0a-d94e33518360","title":"DateCreate","ns":"date","name":"create","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"8d55ed01-a352-4564-9713-427573d388d9","title":"DateGetSeconds","ns":"date","name":"getSeconds","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"cb5ad2f1-b936-439d-b483-85aad78eded6","title":"MathMultiply","ns":"math","name":"multiply","context":{"y":6},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"43f62199-1777-43f1-9bc9-28966f1e4a5e","title":"UtilWait","ns":"util","name":"wait","context":{"timeout":1000},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"ea271db8-e803-4071-b82a-86db388fc7bd","title":"DateCreate2","ns":"date","name":"create","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"3169dfbe-a335-4948-8c8b-8178736f5012","title":"SoundAlert","ns":"sound","name":"alert","context":{"sound":"morse","volume":0.1},"provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},{"id":"fa35f1b1-9ad1-4c74-a37b-2653e57e70ec","title":"Log","ns":"console","name":"log"}],"title":"ClockWork","ns":"clock","name":"work","ports":{"output":{"out":{"nodeId":"67573377-7dfd-4569-a3e7-52dca3db1197","title":"Out","name":"out"}},"input":{}},"providers":{"@":{"url":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"}},"provider":"./graphs/{ns}/{name}.fbp"}}},"https://serve-chix.rhcloud.com/nodes/{ns}/{name}":{"dom":{"image":{"_id":"5313d1c60dfaa3eb4a7e1733","name":"image","ns":"dom","async":true,"description":"Create an image","phrases":{"active":"Creating Image"},"ports":{"input":{"src":{"type":"string","async":true,"title":"Source path"}},"output":{"image":{"type":"object","title":"Image"}}},"fn":"on.input.src = function() {\n var img = new Image();\n img.onload = function() {\n output( { image: this } );\n }.bind(img);\n img.src = data;\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"DomImage"},"querySelector":{"_id":"527299bb30b8af4b8910216b","name":"querySelector","ns":"dom","title":"CanvasEl","description":"[Document query selector](https://developer.mozilla.org/en-US/docs/Web/API/document.querySelector)","expose":["document"],"phrases":{"active":"Gathering elements matching criteria: {{input.selector}}"},"ports":{"input":{"element":{"title":"Element","type":"HTMLElement","default":null},"selector":{"title":"Selector","type":"string"}},"output":{"element":{"title":"Element","type":"HTMLElement"},"selection":{"title":"Selection","type":"HTMLElement"},"error":{"title":"Error","type":"Error"}}},"fn":"var el = input.element ? input.element : document;\noutput = {\n element: el\n};\n\nvar selection = el.querySelector(input.selector);\nif(selection) {\n output.selection = selection;\n} else {\n output.error = Error('Selector ' + input.selector + ' did not match');\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"setHtml":{"_id":"52be32d46a14bb6fbd924a24","name":"setHtml","ns":"dom","description":"dom setHtml","async":true,"phrases":{"active":"Adding html"},"ports":{"input":{"element":{"type":"HTMLElement","title":"Dom Element"},"html":{"type":"string","format":"html","title":"html","async":true}},"output":{"element":{"type":"HTMLElement","title":"Dom Element"}}},"fn":"on.input.html = function(data) {\n input.element.innerHTML = data;\n output({ element: input.element });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"SetCanvasHtml"}},"canvas":{"getContext":{"_id":"5314e8a40dfaa3eb4a7e173e","name":"getContext","ns":"canvas","async":true,"title":"GetContext","description":"Get Canvas Context","phrases":{"active":"Getting context"},"ports":{"input":{"canvas":{"title":"Canvas","async":true,"type":"HTMLElement","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.canvas = function() {\n output({\n context: data.getContext('2d')\n });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"drawImage":{"_id":"5314e8a40dfaa3eb4a7e173d","name":"drawImage","ns":"canvas","async":true,"title":"DrawImage","description":"","phrases":{"active":"Drawing image"},"ports":{"input":{"context":{"title":"Context","type":"CanvasRenderingContext2D","required":"true"},"element":{"title":"Element","type":"HTMLElement","required":true},"in":{"title":"Dimensions","async":true,"type":"object","properties":{"dx":{"title":"Destination X","type":"number","description":"The X coordinate in the destination canvas at which to place the top-left corner of the source image."},"dy":{"title":"Destination Y","type":"number","description":"The Y coordinate in the destination canvas at which to place the top-left corner of the source image."},"dw":{"title":"Destination Width","type":"number","description":"The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn.","required":false},"dh":{"title":"Destination Height","type":"number","description":"The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.","required":false},"sx":{"title":"Source X","type":"number","description":"The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.","required":false},"sy":{"title":"Source Y","type":"number","description":"The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.","required":false},"sw":{"title":"Source Width","type":"number","description":"The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used. If you specify a negative value, the image is flipped horizontally when drawn.","required":false},"sh":{"title":"Source Height","type":"number","description":"The height of the sub-rectangle of the source image to draw into the destination context. If you specify a negative value, the image is flipped vertically when drawn.","required":false}}}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.in = function() {\n\n var args = [input.element];\n\n if(data.sx && data.sy && data.sw && data.sh) {\n args.push(data.sx);\n args.push(data.sy);\n args.push(data.sw);\n args.push(data.sh);\n }\n\n args.push(data.dx || 0);\n args.push(data.dy || 0);\n\n if(data.dw) {\n args.push(data.dw);\n if(data.dh) {\n args.push(data.dh);\n }\n }\n\n input.context.drawImage.apply(input.context, args);\n output({\n context: input.context\n });\n\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"translate":{"_id":"5314e8a40dfaa3eb4a7e174b","name":"translate","ns":"canvas","async":true,"title":"CanvasTranslate","description":"Moves the origin point of the context to (x, y)","phrases":{"active":"Translating context"},"ports":{"input":{"context":{"title":"Context","type":"CanvasRenderingContext2D","required":"true"},"in":{"title":"Point","async":true,"type":"object","required":"true","properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}}}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"},"out":{"title":"Point","type":"array"}}},"fn":"on.input.in = function() {\n input.context.translate(data.x, data.y);\n output({\n context: input.context,\n out: data\n });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"strokeText":{"_id":"5324a9b450cefe6a3d8806ab","name":"strokeText","ns":"canvas","async":true,"title":"StrokeText","description":"Stroke Text","phrases":{"active":"Stroking text"},"ports":{"input":{"text":{"title":"Text","type":"string","required":"true"},"x":{"title":"X","type":"number","required":"true","default":0},"y":{"title":"Y","type":"number","required":"true","default":0},"context":{"title":"Context","async":true,"type":"CanvasRenderingContext2D","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.context = function() {\n data.strokeText(input.text, input.x, input.y);\n output({ context: data });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"beginPath":{"_id":"5314e8a40dfaa3eb4a7e1736","name":"beginPath","ns":"canvas","async":true,"title":"CanvasBeginPath","description":"Begin path","phrases":{"active":"Beginning path"},"ports":{"input":{"context":{"title":"Context","async":true,"type":"CanvasRenderingContext2D","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.context = function() {\n data.beginPath();\n output({ context: data });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"moveTo":{"_id":"5314e8a40dfaa3eb4a7e1742","name":"moveTo","ns":"canvas","async":true,"title":"CanvasMoveTo","description":"Moves the starting point of a new subpath to the (x, y) coordinates","phrases":{"active":"Moving"},"ports":{"input":{"context":{"title":"Context","type":"CanvasRenderingContext2D","required":"true"},"in":{"title":"Point","async":true,"type":"object","required":"true","properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}}}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"},"out":{"title":"Point","type":"array"}}},"fn":"on.input.in = function() {\n input.context.moveTo(data.x, data.y);\n output({\n context: input.context,\n out: data\n });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"lineTo":{"_id":"5314e8a40dfaa3eb4a7e1740","name":"lineTo","ns":"canvas","async":true,"title":"DrawLine4","description":"Connects the last point in the subpath to the x, y coordinates with a straight line","phrases":{"active":"Moving"},"ports":{"input":{"context":{"title":"Context","type":"CanvasRenderingContext2D","required":"true"},"in":{"title":"Point","async":true,"type":"object","required":"true","properties":{"x":{"type":"number","title":"X","description":"The x axis of the coordinate for the end of the line"},"y":{"type":"number","title":"Y","description":"The y axis of the coordinate for the end of the line"}}}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"},"out":{"title":"Point","type":"array"}}},"fn":"on.input.in = function() {\n input.context.lineTo(data.x, data.y);\n output({\n context: input.context,\n out: data\n });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"stroke":{"_id":"5314e8a40dfaa3eb4a7e174a","name":"stroke","ns":"canvas","async":true,"title":"Stroke","description":"Stroke","phrases":{"active":"Stroking path"},"ports":{"input":{"context":{"title":"Context","async":true,"type":"CanvasRenderingContext2D","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.context = function() {\n data.stroke();\n output({ context: data });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"rotate":{"_id":"5314e8a40dfaa3eb4a7e1746","name":"rotate","ns":"canvas","async":true,"title":"Rotate","description":"Rotate Context","phrases":{"active":"Rotating"},"ports":{"input":{"context":{"title":"Context","type":"CanvasRenderingContext2D","required":"true"},"angle":{"title":"Angle","async":true,"type":"number","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.angle = function() {\n input.context.rotate(data);\n output({\n context: input.context\n });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"setAttributes":{"_id":"5314e8a40dfaa3eb4a7e1748","name":"setAttributes","ns":"canvas","async":true,"title":"SetHandAttributes","description":"Sets one or more attributes","phrases":{"active":"Setting attributes"},"ports":{"input":{"context":{"title":"Context","type":"CanvasRenderingContext2D","required":"true"},"in":{"title":"Attributes","type":"object","async":true,"required":"true","properties":{"fillStyle":{"type":"string","title":"Fill Style","description":"Color or style to use inside shapes. Default #000 (black).","format":"color","default":"#000"},"font":{"type":"string","title":"Font","default":"10px sans-serif"},"globalAlpha":{"type":"number","title":"Global Alpha","description":"globalAlpha float Alpha value that is applied to shapes and images before they are composited onto the canvas. Default 1.0 (opaque).","default":1},"globalCompositeOperation":{"title":"Global Composite Operation","description":"With globalAlpha applied this sets how shapes and images are drawn onto the existing bitmap.","enum":["source-atop","source-in","source-out","source-over","destination-atop","destination-in","destination-out","destination-over","lighter","darker","copy","xor"],"default":"source-over"},"lineCap":{"enum":["butt","round","square"],"title":"Line Cap","description":"Type of endings on the end of lines.","default":"butt"},"lineDashOffset":{"type":"number","title":"Line Dash Offset","description":"Specifies where to start a dasharray on a line."},"lineJoin":{"enum":["miter","round","bevel"],"title":"Line Join","description":"Defines the type of corners where two lines meet.","default":"miter"},"lineWidth":{"type":"number","title":"Line Width","description":"Width of lines","default":1},"miterLimit":{"type":"number","title":"Miter Limit","default":10},"shadowBlur":{"type":"number","title":"Shadow Blur","description":"float Specifies the blurring effect.","default":0},"shadowColor":{"type":"string","title":"Shadow Color","description":"Color of the shadow. Default fully-transparent black.","format":"color","default":0},"shadowOffsetX":{"type":"number","title":"Shadow Offset X","description":"Horizontal distance the shadow will be offset.","default":0},"shadowOffsetY":{"type":"number","title":"Shadow Offset Y","description":"Vertical distance the shadow will be offset.","default":0},"strokeStyle":{"type":"string","title":"Stroke style","description":"Color or style to use for the lines around shapes.","format":"color","default":"#000"},"textAlign":{"enum":["start","end","left","right","center"],"title":"Text Align","default":"start"},"textBaseline":{"enum":["top","hanging","middle","alphabetic","ideographic","bottom"],"title":"Text Baseline","default":"alphabetic"}}}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.in = function() {\n for(var k in data) {\n input.context[k] = data[k];\n }\n output({\n context: input.context\n });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"fill":{"_id":"5314e8a40dfaa3eb4a7e173c","name":"fill","ns":"canvas","async":true,"title":"FillLine","description":"Fill Context","phrases":{"active":"Filling context"},"ports":{"input":{"context":{"title":"Context","async":true,"type":"CanvasRenderingContext2D","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.context = function() {\n data.fill();\n output({ context: data });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"save":{"_id":"5314e8a40dfaa3eb4a7e1745","name":"save","ns":"canvas","async":true,"title":"CanvasSave","description":"Save Context","phrases":{"active":"Saving context"},"ports":{"input":{"context":{"title":"Context","async":true,"type":"CanvasRenderingContext2D","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.context = function() {\n data.save();\n output({ context: data });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"restore":{"_id":"5322eafd50cefe6a3d88069f","name":"restore","ns":"canvas","async":true,"title":"CanvasRestore","description":"Restore Context","phrases":{"active":"Restoring"},"ports":{"input":{"context":{"title":"Context","type":"CanvasRenderingContext2D","required":"true"}},"output":{"context":{"title":"Context","type":"CanvasRenderingContext2D"}}},"fn":"on.input.context = function() {\n data.restore();\n output({\n context: data\n });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"}},"console":{"log":{"_id":"52645993df5da0102500004e","name":"log","ns":"console","description":"Console log","async":true,"phrases":{"active":"Logging to console"},"ports":{"input":{"msg":{"type":"any","title":"Log message","description":"Logs a message to the console","async":true,"required":true}},"output":{"out":{"type":"any","title":"Log message"}}},"fn":"on.input.msg = function() {\n console.log(data);\n output( { out: data });\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"Log"}},"sound":{"alert":{"_id":"5326ccf350cefe6a3d8806ad","name":"alert","ns":"sound","description":"Play a sound alert","phrases":{"active":"Playing sound alert {{input.sound}}"},"ports":{"input":{"sound":{"title":"Sound","type":"string","enum":["bottle","glass","funk","morse","purr","tink","submarine"],"default":"bottle"},"volume":{"title":"Volume","type":"number","default":0.5,"format":"range","step":0.1,"minimum":0,"maximum":1}},"output":{"volume":{"type":"number","title":"Volume"}}},"dependencies":{"npm":{"alert":"0.x.x"}},"fn":"alert.volume(input.volume);\nalert(input.sound);\noutput.volume = input.volume;\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"SoundAlert"}},"template":{"handlebars":{"_id":"52ea878d1905561c7aa3bdbc","name":"handlebars","ns":"template","description":"Handlebars Template engine","phrases":{"active":"Compiling handlebars template"},"ports":{"input":{"body":{"type":"string","format":"html","title":"Template body","description":"The body of the handlebars template","required":true},"vars":{"type":"object","title":"Input variables","description":"the input variables for this template","default":{}},"handlebars":{"type":"function","title":"Handlebars","default":null}},"output":{"out":{"title":"HTML","type":"string"}}},"dependencies":{"npm":{"handlebars":"latest"}},"fn":"var hb = input.handlebars || handlebars;\nvar tpl = hb.compile(input.body);\noutput = {\n out: tpl(input.vars)\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"}},"math":{"degreesToRadians":{"_id":"5314aec80dfaa3eb4a7e1734","name":"degreesToRadians","ns":"math","description":"Convert degrees to radians","async":true,"phrases":{"active":"Converting degrees to radians"},"ports":{"input":{"in":{"title":"Degrees","type":"number","async":true,"required":true}},"output":{"out":{"title":"Radians","type":"number"}}},"fn":"on.input.in = function() {\n\n output( { out: data * (Math.PI / 180) } );\n\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"MathDegreesToRadians"},"multiply":{"_id":"52eefb2dcf8e1bab142d5354","name":"multiply","ns":"math","description":"Computes x * y","phrases":{"active":"Multiplying"},"ports":{"input":{"x":{"title":"Number","type":"number","required":true},"y":{"title":"Number","type":"number","required":true}},"output":{"out":{"title":"out","type":"number"}}},"fn":"output.out = input.x * input.y\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"MathMultiply"}},"date":{"create":{"_id":"53248ba050cefe6a3d8806a0","name":"create","ns":"date","title":"DateCreate2","description":"Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.","phrases":{"active":"Creating Date"},"ports":{"input":{"value":{"title":"Value","type":"number","description":"Integer value representing the number of milliseconds since 1 January 1970 00:00:00 UTC (Unix Epoch).","default":null}},"output":{"out":{"title":"Date","type":"Date"}}},"fn":"if(input.value) {\n output.out = new Date(input.value);\n} else {\n output.out = new Date();\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"getSeconds":{"_id":"53248ba050cefe6a3d8806a5","name":"getSeconds","ns":"date","title":"DateGetSeconds","async":true,"description":"The seconds (0-59) in the specified date according to local time.","phrases":{"active":"Getting Seconds"},"ports":{"input":{"date":{"title":"Date","type":"Date","async":true}},"output":{"out":{"title":"Seconds","type":"number","description":"The seconds (0-59) in the specified date according to local time."}}},"fn":"on.input.date = function() {\n output({\n out: data.getSeconds()\n });\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"}},"util":{"wait":{"_id":"527330cc30b8af4b8910216d","name":"wait","ns":"util","description":"Holds the input for a while","phrases":{"active":"Holding input for {{input.timeout}} milliseconds."},"expose":["setTimeout"],"ports":{"input":{"in":{"type":"any","title":"Input","description":"Input to be delayed","readonly":true},"timeout":{"type":"number","title":"Timeout","description":"Timeout in milliseconds","format":"time"}},"output":{"out":{"type":"any","title":"Output","description":"Outputs the delayed input"}}},"fn":"var slow = {\n down: function (to, cb) {\n setTimeout(function () {\n cb(input. in );\n }, to)\n }\n}\noutput = [slow, 'down', input.timeout]\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"UtilWait"}}}}}