Showing the changes to scripts/developer/utilities/lib/plotperf (1 of 7 files). Show all
Unified · Split
| @@ -55,9 +55,17 @@ Item { · 54 unmodified lines | |||
| 55 | function createValues() { | 55 | function createValues() { |
| 56 | for (var i =0; i < plots.length; i++) { | 56 | for (var i =0; i < plots.length; i++) { |
| 57 | var plot = plots[i]; | 57 | var plot = plots[i]; |
| 58 | var object = plot["object"] || root.object; | ||
| 59 | var value = plot["prop"]; | ||
| 60 | var isBinding = plot["binding"]; | ||
| 61 | if (isBinding) { | ||
| 62 | object = root.parent; | ||
| 63 | value = isBinding; | ||
| 64 | } | ||
| 58 | _values.push( { | 65 | _values.push( { |
| 59 | object: (plot["object"] !== undefined ? plot["object"] : root.object), | 66 | object: object, |
| 60 | value: plot["prop"], | 67 | value: value, |
| 68 | fromBinding: isBinding, | ||
| 61 | valueMax: 1, | 69 | valueMax: 1, |
| 62 | numSamplesConstantMax: 0, | 70 | numSamplesConstantMax: 0, |
| 63 | valueHistory: new Array(), | 71 | valueHistory: new Array(), |
| @@ -218,7 +226,6 @@ Item { · 154 unmodified lines | |||
| 218 | anchors.rightMargin: -hitboxExtension | 226 | anchors.rightMargin: -hitboxExtension |
| 219 | 227 | ||
| 220 | onClicked: { | 228 | onClicked: { |
| 221 | print("PerfPlot clicked!") | ||
| 222 | resetMax(); | 229 | resetMax(); |
| 223 | } | 230 | } |
| 224 | } | 231 | } |