From fa00ed53baf01381f0a195fe02f04dbf2da01d59 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 22 Mar 2016 17:56:47 +0100 Subject: [PATCH] plots docs, mention color prop --- resources/docs/widgets-reference.md | 1 + resources/docs/widgets/plots.md | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/resources/docs/widgets-reference.md b/resources/docs/widgets-reference.md index cd27fcd5..6af83d68 100644 --- a/resources/docs/widgets-reference.md +++ b/resources/docs/widgets-reference.md @@ -13,6 +13,7 @@ Every widget has the following properties: left:"auto", // [string|integer] if set, the widget will have an absolute position (percentages allowed) width:"auto", // [string|integer] widget's width in px (percentages allowed) height:"auto", // [string|integer] widget's height in px (percentages allowed) + color:'auto', // [string] css color code replacing the default accent color css:"", // [string] css styles, yeah precision:2, // [integer] number of decimals : 0 to send integers diff --git a/resources/docs/widgets/plots.md b/resources/docs/widgets/plots.md index ecfc3576..fe507396 100644 --- a/resources/docs/widgets/plots.md +++ b/resources/docs/widgets/plots.md @@ -1,8 +1,19 @@ # Plots -Plots are tools that display other widgets' state or incomming osc messages. +Plots are tools that display other widgets' state or incomming osc messages. They are not sensitive to mouse and touch interactions. + +## led +```js +type:'led', +range:x:{"min":0,"max":1} // [object] minimum and maximum values for X and Y axis +logScale: false, // [bool] use logarithmic scale +``` + ## plot + +The plot receives an array of [x,y] coordinates and draws them on a chart with linear or logarithmic interpolation. + ```js type:'plot', points:[], // [string|array] @@ -20,9 +31,12 @@ logScaleY: false // [bool] use logarithmic scale for y axis (log10) ``` ## visualizer + +The visualizer displays the evolution in time of a received value (through osc) *or* another widget's value. + ```js type:'visualizer', -curve:'', // [string] widget id (its value will be displayed) +widgetId:'', // [string] widget id (its value will be displayed instead of the incoming osc) duration:1, // [number] window size in seconds range:{"min":0,"max":1}, // [object] minimum and maximum values the Y axis logScale: false, // [bool] use logarithmic scale for Y axis (log10)