@pie-element/graphing 3.7.21 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/configure/CHANGELOG.md +36 -0
- package/configure/lib/configure.js +71 -48
- package/configure/lib/configure.js.map +1 -1
- package/configure/lib/correct-response.js +101 -17
- package/configure/lib/correct-response.js.map +1 -1
- package/configure/lib/defaults.js +45 -7
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/graphing-config.js +170 -181
- package/configure/lib/graphing-config.js.map +1 -1
- package/configure/lib/index.js +39 -14
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/utils.js +94 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +4 -4
- package/controller/CHANGELOG.md +25 -0
- package/controller/lib/defaults.js +2 -0
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +19 -20
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js +5 -3
- package/controller/lib/utils.js.map +1 -1
- package/controller/package.json +1 -1
- package/docs/config-schema.json +370 -10
- package/docs/config-schema.json.md +284 -11
- package/docs/demo/generate.js +1 -0
- package/docs/pie-schema.json +217 -6
- package/docs/pie-schema.json.md +171 -7
- package/lib/main.js +2 -0
- package/lib/main.js.map +1 -1
- package/package.json +6 -6
package/docs/pie-schema.json.md
CHANGED
|
@@ -72,6 +72,22 @@ Additional restrictions:
|
|
|
72
72
|
|
|
73
73
|
Indicates if coordinates of a point are displayed on hover
|
|
74
74
|
|
|
75
|
+
# `defaultTool` (string, enum, required)
|
|
76
|
+
|
|
77
|
+
Indicates the default selected tool for the graph
|
|
78
|
+
|
|
79
|
+
This element must be one of the following enum values:
|
|
80
|
+
|
|
81
|
+
* `circle`
|
|
82
|
+
* `line`
|
|
83
|
+
* `parabola`
|
|
84
|
+
* `point`
|
|
85
|
+
* `polygon`
|
|
86
|
+
* `ray`
|
|
87
|
+
* `segment`
|
|
88
|
+
* `sine`
|
|
89
|
+
* `vector`
|
|
90
|
+
|
|
75
91
|
# `domain` (object, required)
|
|
76
92
|
|
|
77
93
|
Properties of the `domain` object:
|
|
@@ -112,6 +128,10 @@ Width for graph representation
|
|
|
112
128
|
|
|
113
129
|
Height for graph representation
|
|
114
130
|
|
|
131
|
+
# `includeAxes` (boolean)
|
|
132
|
+
|
|
133
|
+
Indicates if the graph axes and labels are enabled
|
|
134
|
+
|
|
115
135
|
# `labels` (object)
|
|
116
136
|
|
|
117
137
|
Properties of the `labels` object:
|
|
@@ -213,6 +233,10 @@ Indicates if Rationale are enabled
|
|
|
213
233
|
|
|
214
234
|
Indicates if spellcheck is enabled for the author. Default value is true
|
|
215
235
|
|
|
236
|
+
# `standardGrid` (boolean)
|
|
237
|
+
|
|
238
|
+
Indicates if some domain values will be synched to the range values
|
|
239
|
+
|
|
216
240
|
# `studentInstructionsEnabled` (boolean, required)
|
|
217
241
|
|
|
218
242
|
Indicates if Student Instructions are enabled
|
|
@@ -235,22 +259,101 @@ The html Element tag name
|
|
|
235
259
|
|
|
236
260
|
The schema defines the following additional types:
|
|
237
261
|
|
|
238
|
-
## `
|
|
262
|
+
## `AuthoringConfigProp` (object)
|
|
239
263
|
|
|
240
|
-
Properties of the `
|
|
264
|
+
Properties of the `AuthoringConfigProp` object:
|
|
241
265
|
|
|
242
266
|
### `settings` (boolean)
|
|
243
267
|
|
|
244
|
-
Indicates if the item
|
|
268
|
+
Indicates if the item is displayed in the Settings Panel
|
|
245
269
|
|
|
246
270
|
### `label` (string)
|
|
247
271
|
|
|
248
|
-
Indicates the label for the item that
|
|
272
|
+
Indicates the label for the item that is displayed in the Settings Panel
|
|
249
273
|
|
|
250
274
|
### `enabled` (boolean)
|
|
251
275
|
|
|
252
|
-
Indicates
|
|
253
|
-
|
|
276
|
+
Indicates if the Grid Setup Panel is displayed
|
|
277
|
+
|
|
278
|
+
### `includeAxesEnabled` (boolean)
|
|
279
|
+
|
|
280
|
+
Indicates if the "includeAxes" toggle is displayed in the Grid Setup Panel
|
|
281
|
+
|
|
282
|
+
### `standardGridEnabled` (boolean)
|
|
283
|
+
|
|
284
|
+
Indicates if the "standardGrid" toggle is displayed in the Grid Setup Panel
|
|
285
|
+
|
|
286
|
+
### `min` (object)
|
|
287
|
+
|
|
288
|
+
Properties of the `min` object:
|
|
289
|
+
|
|
290
|
+
#### `label` (string)
|
|
291
|
+
|
|
292
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
293
|
+
|
|
294
|
+
#### `enabled` (boolean)
|
|
295
|
+
|
|
296
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
297
|
+
|
|
298
|
+
### `max` (object)
|
|
299
|
+
|
|
300
|
+
Properties of the `max` object:
|
|
301
|
+
|
|
302
|
+
#### `label` (string)
|
|
303
|
+
|
|
304
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
305
|
+
|
|
306
|
+
#### `enabled` (boolean)
|
|
307
|
+
|
|
308
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
309
|
+
|
|
310
|
+
### `axisLabel` (object)
|
|
311
|
+
|
|
312
|
+
Properties of the `axisLabel` object:
|
|
313
|
+
|
|
314
|
+
#### `label` (string)
|
|
315
|
+
|
|
316
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
317
|
+
|
|
318
|
+
#### `enabled` (boolean)
|
|
319
|
+
|
|
320
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
321
|
+
|
|
322
|
+
### `step` (object)
|
|
323
|
+
|
|
324
|
+
Properties of the `step` object:
|
|
325
|
+
|
|
326
|
+
#### `label` (string)
|
|
327
|
+
|
|
328
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
329
|
+
|
|
330
|
+
#### `enabled` (boolean)
|
|
331
|
+
|
|
332
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
333
|
+
|
|
334
|
+
### `labelStep` (object)
|
|
335
|
+
|
|
336
|
+
Properties of the `labelStep` object:
|
|
337
|
+
|
|
338
|
+
#### `label` (string)
|
|
339
|
+
|
|
340
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
341
|
+
|
|
342
|
+
#### `enabled` (boolean)
|
|
343
|
+
|
|
344
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
345
|
+
|
|
346
|
+
## `GridPanelConfigProp` (object)
|
|
347
|
+
|
|
348
|
+
Properties of the `GridPanelConfigProp` object:
|
|
349
|
+
|
|
350
|
+
### `label` (string)
|
|
351
|
+
|
|
352
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
353
|
+
|
|
354
|
+
### `enabled` (boolean)
|
|
355
|
+
|
|
356
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
254
357
|
|
|
255
358
|
## `ArrowsConfigProp` (object)
|
|
256
359
|
|
|
@@ -316,6 +419,67 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
316
419
|
|
|
317
420
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
318
421
|
|
|
422
|
+
## `DimensionsConfigProp` (object)
|
|
423
|
+
|
|
424
|
+
Properties of the `DimensionsConfigProp` object:
|
|
425
|
+
|
|
426
|
+
### `settings` (boolean)
|
|
427
|
+
|
|
428
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
429
|
+
|
|
430
|
+
### `label` (string)
|
|
431
|
+
|
|
432
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
433
|
+
|
|
434
|
+
### `enabled` (boolean)
|
|
435
|
+
|
|
436
|
+
Indicates if the graph dimensions are included in the Grid Setup Panel
|
|
437
|
+
|
|
438
|
+
### `min` (number)
|
|
439
|
+
|
|
440
|
+
Indicates the minimum value for the graph width and height
|
|
441
|
+
|
|
442
|
+
### `max` (number)
|
|
443
|
+
|
|
444
|
+
Indicates the maximum value for the graph width and height
|
|
445
|
+
|
|
446
|
+
### `step` (number)
|
|
447
|
+
|
|
448
|
+
Indicates the increase/decrease value for the graph width and height
|
|
449
|
+
|
|
450
|
+
## `ConfigurePropWithEnabled` (object)
|
|
451
|
+
|
|
452
|
+
Properties of the `ConfigurePropWithEnabled` object:
|
|
453
|
+
|
|
454
|
+
### `settings` (boolean)
|
|
455
|
+
|
|
456
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
457
|
+
|
|
458
|
+
### `label` (string)
|
|
459
|
+
|
|
460
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
461
|
+
|
|
462
|
+
### `enabled` (boolean)
|
|
463
|
+
|
|
464
|
+
Indicates the value of the item if it affects config-ui
|
|
465
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
466
|
+
|
|
467
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
468
|
+
|
|
469
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
470
|
+
|
|
471
|
+
### `teacherInstructions` (number)
|
|
472
|
+
|
|
473
|
+
Indicates the max dimension for images in teacher instructions
|
|
474
|
+
|
|
475
|
+
### `prompt` (number)
|
|
476
|
+
|
|
477
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
478
|
+
|
|
479
|
+
### `rationale` (number)
|
|
480
|
+
|
|
481
|
+
Indicates the max dimension for images in rationale
|
|
482
|
+
|
|
319
483
|
## `Answer` (object)
|
|
320
484
|
|
|
321
485
|
Properties of the `Answer` object:
|
|
@@ -546,4 +710,4 @@ Label for left side of the graph
|
|
|
546
710
|
|
|
547
711
|
### `right` (string, required)
|
|
548
712
|
|
|
549
|
-
Label for right side of the graph
|
|
713
|
+
Label for right side of the graph
|
package/lib/main.js
CHANGED
|
@@ -86,6 +86,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
86
86
|
backgroundMarks = _ref2.backgroundMarks,
|
|
87
87
|
coordinatesOnHover = _ref2.coordinatesOnHover,
|
|
88
88
|
correctResponse = _ref2.correctResponse,
|
|
89
|
+
defaultTool = _ref2.defaultTool,
|
|
89
90
|
disabled = _ref2.disabled,
|
|
90
91
|
domain = _ref2.domain,
|
|
91
92
|
labels = _ref2.labels,
|
|
@@ -140,6 +141,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
140
141
|
},
|
|
141
142
|
backgroundMarks: backgroundMarks,
|
|
142
143
|
coordinatesOnHover: coordinatesOnHover,
|
|
144
|
+
defaultTool: defaultTool,
|
|
143
145
|
disabled: disabled,
|
|
144
146
|
domain: domain,
|
|
145
147
|
labels: labels,
|
package/lib/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["Main","showingCorrect","setState","props","model","classes","onAnswersChange","session","state","answer","answersCorrected","arrows","backgroundMarks","coordinatesOnHover","correctResponse","disabled","domain","labels","prompt","range","rationale","size","showToggle","title","teacherInstructions","toolbarTools","marks","mainContainer","toggleCorrect","includeArrows","map","i","correctness","hidden","visible","React","Component","PropTypes","object","isRequired","func","styles","theme","padding","spacing","unit","color","text","backgroundColor","background"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,I;;;;;;;;;;;;;;;8FAYH;AAAEC,MAAAA,cAAc,EAAE;AAAlB,K;sGAEQ,UAAAA,cAAc;AAAA,aAAI,MAAKC,QAAL,CAAc;AAAED,QAAAA,cAAc,EAAdA;AAAF,OAAd,CAAJ;AAAA,K;;;;;;WAE9B,kBAAS;AACP,wBAAqD,KAAKE,KAA1D;AAAA,UAAQC,KAAR,eAAQA,KAAR;AAAA,UAAeC,OAAf,eAAeA,OAAf;AAAA,UAAwBC,eAAxB,eAAwBA,eAAxB;AAAA,UAAyCC,OAAzC,eAAyCA,OAAzC;AACA,UAAQN,cAAR,GAA2B,KAAKO,KAAhC,CAAQP,cAAR;;AACA,iBAAmBM,OAAO,IAAI,EAA9B;AAAA,UAAQE,MAAR,QAAQA,MAAR;;AACA,
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["Main","showingCorrect","setState","props","model","classes","onAnswersChange","session","state","answer","answersCorrected","arrows","backgroundMarks","coordinatesOnHover","correctResponse","defaultTool","disabled","domain","labels","prompt","range","rationale","size","showToggle","title","teacherInstructions","toolbarTools","marks","mainContainer","toggleCorrect","includeArrows","map","i","correctness","hidden","visible","React","Component","PropTypes","object","isRequired","func","styles","theme","padding","spacing","unit","color","text","backgroundColor","background"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,I;;;;;;;;;;;;;;;8FAYH;AAAEC,MAAAA,cAAc,EAAE;AAAlB,K;sGAEQ,UAAAA,cAAc;AAAA,aAAI,MAAKC,QAAL,CAAc;AAAED,QAAAA,cAAc,EAAdA;AAAF,OAAd,CAAJ;AAAA,K;;;;;;WAE9B,kBAAS;AACP,wBAAqD,KAAKE,KAA1D;AAAA,UAAQC,KAAR,eAAQA,KAAR;AAAA,UAAeC,OAAf,eAAeA,OAAf;AAAA,UAAwBC,eAAxB,eAAwBA,eAAxB;AAAA,UAAyCC,OAAzC,eAAyCA,OAAzC;AACA,UAAQN,cAAR,GAA2B,KAAKO,KAAhC,CAAQP,cAAR;;AACA,iBAAmBM,OAAO,IAAI,EAA9B;AAAA,UAAQE,MAAR,QAAQA,MAAR;;AACA,kBAkBIL,KAAK,IAAI,EAlBb;AAAA,UACEM,gBADF,SACEA,gBADF;AAAA,UAEEC,MAFF,SAEEA,MAFF;AAAA,UAGEC,eAHF,SAGEA,eAHF;AAAA,UAIEC,kBAJF,SAIEA,kBAJF;AAAA,UAKEC,eALF,SAKEA,eALF;AAAA,UAMEC,WANF,SAMEA,WANF;AAAA,UAOEC,QAPF,SAOEA,QAPF;AAAA,UAQEC,MARF,SAQEA,MARF;AAAA,UASEC,MATF,SASEA,MATF;AAAA,UAUEC,MAVF,SAUEA,MAVF;AAAA,UAWEC,KAXF,SAWEA,KAXF;AAAA,UAYEC,SAZF,SAYEA,SAZF;AAAA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A0GxB,IAAMqC,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBf,IAAAA,aAAa,EAAE;AACbgB,MAAAA,OAAO,EAAED,KAAK,CAACE,OAAN,CAAcC,IADV;AAEbC,MAAAA,KAAK,EAAEA,gBAAMC,IAAN,EAFM;AAGbC,MAAAA,eAAe,EAAEF,gBAAMG,UAAN;AAHJ;AADQ,GAAL;AAAA,CAApB;;eAQe,wBAAWR,MAAX,EAAmB1C,IAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport { GraphContainer } from '@pie-lib/graphing';\nimport {color, Collapsible, hasText, PreviewPrompt} from '@pie-lib/render-ui';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\n\nexport class Main extends React.Component {\n static propTypes = {\n classes: PropTypes.object,\n model: PropTypes.object.isRequired,\n session: PropTypes.object.isRequired,\n onAnswersChange: PropTypes.func\n };\n\n static defaultProps = {\n classes: {}\n };\n\n state = { showingCorrect: false };\n\n toggleCorrect = showingCorrect => this.setState({ showingCorrect });\n\n render() {\n const { model, classes, onAnswersChange, session } = this.props;\n const { showingCorrect } = this.state;\n const { answer } = session || {};\n const {\n answersCorrected,\n arrows,\n backgroundMarks,\n coordinatesOnHover,\n correctResponse,\n defaultTool,\n disabled,\n domain,\n labels,\n prompt,\n range,\n rationale,\n size,\n showToggle,\n title,\n teacherInstructions,\n toolbarTools\n } = model || {};\n const marks = answersCorrected || answer || [];\n\n return (\n <div className={classes.mainContainer}>\n <CorrectAnswerToggle\n show={showToggle}\n toggled={showingCorrect}\n onToggle={this.toggleCorrect}\n />\n\n {(showingCorrect && showToggle) && (\n <GraphContainer\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={backgroundMarks}\n coordinatesOnHover={coordinatesOnHover}\n disabled={true}\n domain={domain}\n labels={labels}\n marks={correctResponse.map(i => ({ ...i, correctness: 'correct' }))}\n onChangeMarks={onAnswersChange}\n range={range}\n size={size}\n title={title}\n toolbarTools={toolbarTools}\n />\n )}\n\n {\n teacherInstructions && hasText(teacherInstructions) && (\n <React.Fragment>\n <Collapsible labels={{ hidden: 'Show Teacher Instructions', visible: 'Hide Teacher Instructions' }}>\n <PreviewPrompt prompt={teacherInstructions} />\n </Collapsible>\n <br />\n </React.Fragment>\n )\n }\n\n {prompt && (\n <React.Fragment>\n <PreviewPrompt className=\"prompt\" prompt={prompt} />\n <br />\n </React.Fragment>\n )}\n\n <GraphContainer\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={backgroundMarks}\n coordinatesOnHover={coordinatesOnHover}\n defaultTool={defaultTool}\n disabled={disabled}\n domain={domain}\n labels={labels}\n marks={marks}\n onChangeMarks={onAnswersChange}\n range={range}\n size={size}\n title={title}\n toolbarTools={toolbarTools}\n />\n\n <br />\n\n {\n rationale && hasText(rationale) && (\n <Collapsible labels={{ hidden: 'Show Rationale', visible: 'Hide Rationale' }}>\n <PreviewPrompt prompt={rationale} />\n </Collapsible>\n )\n }\n </div>\n );\n }\n}\n\nconst styles = theme => ({\n mainContainer: {\n padding: theme.spacing.unit,\n color: color.text(),\n backgroundColor: color.background()\n }\n});\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "
|
|
7
|
+
"version": "4.0.0",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@material-ui/core": "^3.9.2",
|
|
15
15
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
16
|
-
"@pie-lib/correct-answer-toggle": "2.3.
|
|
17
|
-
"@pie-lib/graphing": "^2.
|
|
18
|
-
"@pie-lib/math-rendering": "^2.4.
|
|
19
|
-
"@pie-lib/render-ui": "^4.12.
|
|
16
|
+
"@pie-lib/correct-answer-toggle": "2.3.39",
|
|
17
|
+
"@pie-lib/graphing": "^2.7.0",
|
|
18
|
+
"@pie-lib/math-rendering": "^2.4.3",
|
|
19
|
+
"@pie-lib/render-ui": "^4.12.9",
|
|
20
20
|
"classnames": "^2.2.5",
|
|
21
21
|
"debug": "^4.1.1",
|
|
22
22
|
"react": "^16.8.1",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"author": "",
|
|
26
26
|
"license": "ISC",
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "ff92cee6f9a7bf3f3dc75dbafd2263710f0a6b3d",
|
|
28
28
|
"main": "lib/index.js",
|
|
29
29
|
"module": "src/index.js"
|
|
30
30
|
}
|