Debian Codegraph @

src/activities/graduated_line_read/resource/1/Data.qml

raw
1 /* GCompris - graduated_line - Data.qml
2 *
3 * SPDX-FileCopyrightText: 2023 Bruno Anselme <[email protected]>
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 * Authors:
6 * Bruno Anselme <[email protected]>
7 *
8 * When fitLimits is true:
9 * - the number of steps must be a divisor of the upper limit
10 * - segments is not used (empty)
11 * range[min, max] (pair) ruler's min and max values
12 * steps[a, b, c, ...] (list) of possible step values
13 * segments[min, max] (pair) number of segments (random within interval). Unused when fitLimits is true
14 *
15 * Number of graduations = number of segments + 1
16 * Constraint : segments[max] * steps[max] <= range[max] (Minimal check made with js: console warning and values adjusted)
17 */
18 import core 1.0
19
20 Data {
21 objective: qsTr("Number to find between 1 and 5.")
22 difficulty: 1
23 data: [
24 { "title": objective,
25 "rules": {
26 "nbOfQuestions": 6,
27 "fitLimits": true,
28 "range": [1,5],
29 "steps": [1],
30 "segments": []
31 }
32 }
33 ]
34 }