X-Git-Url: https://git.r.bdr.sh/rbdr/sorting-hat-renderer/blobdiff_plain/4b3d812031dd07c251623d7155159115e99d2671..refs/heads/main:/doc/README.md?ds=inline diff --git a/doc/README.md b/doc/README.md index e69de29..495c624 100644 --- a/doc/README.md +++ b/doc/README.md @@ -0,0 +1,103 @@ +## Classes + +
object
The data structure representing the sorting hat data
+object
The running averages, including the current sum and count
+DataService
](#DataService)
+**Returns**: tSortingHatData
+
+
+## SortingHat
+**Kind**: global class
+
+
+### new SortingHat()
+The main vue application, it is composed by the other components, no real
+logic otherwise
+
+
+
+## tSortingHatData : object
+The data structure representing the sorting hat data
+
+**Kind**: global typedef
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | number
| the current state: 0 for waiting, 1 for polling, 2 for cool down. |
+| [winner] | string
| the winner after polling, might be null if no winner is detected |
+| runningAverages | Object.<string, tRunningAverages>
| the running averages for the different categories, used to render the waves |
+
+
+
+## tRunningAverages : object
+The running averages, including the current sum and count
+
+**Kind**: global typedef
+
+| Param | Type | Description |
+| --- | --- | --- |
+| sum | number
| the current total |
+| count | number
| the number of samples |
+| average | number
| the average (sum / count) |
+