-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdefaults.js
More file actions
190 lines (188 loc) · 4.8 KB
/
defaults.js
File metadata and controls
190 lines (188 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/**
* NOTE: There's no functionality described for graphTitle,
* rationale, scoringType, studentInstructions, teacherInstructions
* so there's no implementation (they are only added in model)
*/
// const createCategory = (label, value) => ({
// label,
// value,
// interactive: true,
// editable: true
// });
export default {
model: {
addCategoryEnabled: true,
changeAddCategoryEnabled: false,
changeEditableEnabled: false,
changeInteractiveEnabled: false,
chartType: 'lineCross',
correctAnswer: {},
data: [],
domain: {},
graph: { width: 480, height: 480 },
prompt: '',
promptEnabled: true,
range: { label: '', max: 1, min: 0, labelStep: 1 },
rationale: '',
rationaleEnabled: true,
scoringType: 'all or nothing',
studentInstructionsEnabled: true,
studentNewCategoryDefaultLabel: 'New Category',
teacherInstructions: '',
teacherInstructionsEnabled: true,
title: '',
},
configuration: {
baseInputConfiguration: {
audio: { disabled: false },
video: { disabled: false },
image: { disabled: false },
textAlign: { disabled: true },
showParagraphs: { disabled: false },
separateParagraphs: { disabled: true },
},
spellCheck: {
label: 'Spellcheck',
settings: false,
enabled: true,
},
chartDimensions: {
settings: false,
label: 'Chart Dimensions',
showInConfigPanel: true,
width: {
min: 50,
max: 700,
step: 20,
},
height: {
min: 400,
max: 700,
step: 20,
},
},
authorNewCategoryDefaults: {
settings: false,
label: 'Category',
interactive: true,
editable: false,
},
availableChartTypes: {
bar: 'Bar Chart',
histogram: 'Histogram',
lineDot: 'Line Chart ●',
lineCross: 'Line Chart x',
dotPlot: 'Dot/Line Plot ⬤',
linePlot: 'Dot/Line Plot X',
},
chartTypeLabel: 'ChartType',
studentNewCategoryDefaultLabel: {
settings: false,
label: 'Category',
},
prompt: {
settings: true,
label: 'Item Stem',
required: false,
inputConfiguration: {
audio: { disabled: false },
video: { disabled: false },
image: { disabled: false },
},
},
rationale: {
settings: true,
label: 'Rationale',
required: false,
inputConfiguration: {
audio: { disabled: false },
video: { disabled: false },
image: { disabled: false },
},
},
scoringType: {
settings: false,
label: 'Scoring Type',
},
settingsPanelDisabled: false,
studentInstructions: {
settings: false,
label: 'Student Instructions',
},
teacherInstructions: {
settings: true,
label: 'Teacher Instructions',
required: false,
inputConfiguration: {
audio: { disabled: false },
video: { disabled: false },
image: { disabled: false },
},
},
title: {
settings: false,
label: 'Chart Title',
},
instruction: {
settings: false,
label:
'This item type provides various types of interactive charts. Depending upon how an item is configured,\n' +
' students can change the heights of bars (or other similar chart elements) created by the author; relabel bars\n' +
' created by the author; and/or add new bars, label them, and set their heights.',
},
titlePlaceholder: {
settings: false,
label: 'Click here to add a title',
},
labelsPlaceholders: {
left: 'Click here to add a label for this axis',
right: '',
top: '',
bottom: 'Click here to add a label for this axis',
},
maxImageWidth: {
teacherInstructions: 300,
prompt: 300,
rationale: 300,
},
maxImageHeight: {
teacherInstructions: 300,
prompt: 300,
rationale: 300,
},
withRubric: {
settings: false,
label: 'Add Rubric',
},
language: {
settings: false,
label: 'Specify Language',
enabled: false,
},
languageChoices: {
label: 'Language Choices',
options: [],
},
chartingOptions: {
changeInteractive: {
settings: false,
authoringLabel: 'Student can set value',
settingsLabel: 'Allow non-interactive categories',
},
changeEditable: {
settings: false,
authoringLabel: 'Student can edit name',
settingsLabel: 'Allow editable category names',
},
addCategory: {
settings: false,
authoringLabel: 'Student can add categories',
settingsLabel: 'Allow changes to whether students can add categories',
},
mathMlOptions: {
mmlOutput: false,
mmlEditing: false,
},
},
},
};