@pie-element/graphing-solution-set 7.0.4-next.20261010144103 → 7.0.4-next.20261011221311
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/dist/author/configure.d.ts +23 -13
- package/dist/author/configure.js +46 -58
- package/dist/author/correct-response.d.ts +1 -0
- package/dist/author/correct-response.js +1 -0
- package/dist/author/defaults.d.ts +138 -60
- package/dist/author/graphing-config.d.ts +1 -0
- package/dist/author/graphing-config.js +1 -0
- package/dist/author/index.d.ts +15 -49
- package/dist/author/index.js +5 -2
- package/dist/browser/{alert-dialog-DllDU7Pm.js → alert-dialog-Dp3LfDPB.js} +12 -12
- package/dist/browser/{alert-dialog-DllDU7Pm.js.map → alert-dialog-Dp3LfDPB.js.map} +1 -1
- package/dist/browser/author/index.js +83 -91
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +57 -55
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +86 -86
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/editor-runtime/{alert-dialog-EKnpaRqk.js → alert-dialog-4qvRDuSD.js} +12 -12
- package/dist/browser/editor-runtime/{alert-dialog-EKnpaRqk.js.map → alert-dialog-4qvRDuSD.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +83 -91
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js +57 -55
- package/dist/browser/editor-runtime/controller/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +86 -86
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -1
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-BTOkFSFn.js → mathjax-CptWnMbQ-CuSAeI3o.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-BTOkFSFn.js.map → mathjax-CptWnMbQ-CuSAeI3o.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-z6JCQNaz.js → mathjax-CptWnMbQ-CbLU2IFU.js} +2 -2
- package/dist/browser/{mathjax-CptWnMbQ-z6JCQNaz.js.map → mathjax-CptWnMbQ-CbLU2IFU.js.map} +1 -1
- package/dist/controller/defaults.d.ts +19 -18
- package/dist/controller/index.d.ts +45 -13
- package/dist/controller/index.js +16 -12
- package/dist/controller/utils.d.ts +17 -11
- package/dist/controller/utils.js +28 -30
- package/dist/delivery/main.js +10 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.js +3 -3
- package/dist/schemas/configuration.schema.json +561 -0
- package/dist/schemas/model.schema.json +744 -0
- package/dist/schemas/session.schema.json +126 -0
- package/dist/types.d.ts +349 -0
- package/package.json +12 -8
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import type { DeleteDone, ImageHandler, SoundHandler } from '@pie-element/shared-configure-events';
|
|
3
|
+
import type { GraphingSolutionSetValidationErrors } from '../controller/index.js';
|
|
4
|
+
import type { GraphingSolutionSetConfiguration, GraphingSolutionSetModel } from '../types.js';
|
|
5
|
+
/** The model the author edits; the host sets `errors` from the controller's `validate()`. */
|
|
6
|
+
export type AuthorModel = Partial<GraphingSolutionSetModel> & {
|
|
7
|
+
errors?: GraphingSolutionSetValidationErrors;
|
|
8
|
+
};
|
|
9
|
+
type MediaSupport<Handler> = {
|
|
10
|
+
add: (handler: Handler) => void;
|
|
11
|
+
delete: (src: string, done: DeleteDone) => void;
|
|
12
|
+
};
|
|
13
|
+
export type ConfigureProps = {
|
|
14
|
+
model: AuthorModel;
|
|
15
|
+
configuration: GraphingSolutionSetConfiguration;
|
|
16
|
+
onModelChanged: (model: AuthorModel) => void;
|
|
17
|
+
onConfigurationChanged: (configuration: GraphingSolutionSetConfiguration) => void;
|
|
18
|
+
imageSupport?: MediaSupport<ImageHandler>;
|
|
19
|
+
uploadSoundSupport?: MediaSupport<SoundHandler>;
|
|
20
|
+
};
|
|
21
|
+
export declare class Configure extends React.Component<ConfigureProps> {
|
|
12
22
|
componentDidMount(): void;
|
|
13
|
-
onRationaleChange:
|
|
14
|
-
onPromptChange:
|
|
15
|
-
onTeacherInstructionsChange:
|
|
23
|
+
onRationaleChange: (rationale: string) => void;
|
|
24
|
+
onPromptChange: (prompt: string) => void;
|
|
25
|
+
onTeacherInstructionsChange: (teacherInstructions: string) => void;
|
|
16
26
|
render(): React.JSX.Element;
|
|
17
27
|
}
|
|
18
28
|
export default Configure;
|
package/dist/author/configure.js
CHANGED
|
@@ -1,30 +1,18 @@
|
|
|
1
1
|
import { GraphingConfig as e } from "./graphing-config.js";
|
|
2
2
|
import { CorrectResponse as t } from "./correct-response.js";
|
|
3
3
|
import n from "react";
|
|
4
|
-
import r from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import u from "
|
|
9
|
-
import d from "@mui/material/Typography";
|
|
10
|
-
import f from "@pie-lib/editable-html-tip-tap";
|
|
4
|
+
import { styled as r } from "@mui/material/styles";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { InputContainer as o, layout as s, settings as c } from "@pie-lib/config-ui";
|
|
7
|
+
import l from "@mui/material/Typography";
|
|
8
|
+
import u from "@pie-lib/editable-html-tip-tap";
|
|
11
9
|
//#region src/author/configure.tsx
|
|
12
|
-
var { Panel:
|
|
13
|
-
u("@pie-element:graphing-solution-set:configure");
|
|
14
|
-
var y = i(s)(({ theme: e }) => ({
|
|
10
|
+
var { Panel: d, toggle: f, radio: p, checkboxes: m, textField: h, dropdown: g } = c, _ = r(o)(({ theme: e }) => ({
|
|
15
11
|
width: "100%",
|
|
16
12
|
paddingTop: e.spacing(2),
|
|
17
13
|
marginBottom: e.spacing(2),
|
|
18
14
|
marginTop: e.spacing(2)
|
|
19
|
-
})),
|
|
20
|
-
static propTypes = {
|
|
21
|
-
onModelChanged: r.func,
|
|
22
|
-
onConfigurationChanged: r.func,
|
|
23
|
-
imageSupport: r.object,
|
|
24
|
-
uploadSoundSupport: r.object,
|
|
25
|
-
model: r.object.isRequired,
|
|
26
|
-
configuration: r.object.isRequired
|
|
27
|
-
};
|
|
15
|
+
})), v = r(l)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), y = class extends n.Component {
|
|
28
16
|
componentDidMount() {
|
|
29
17
|
let { configuration: e, onModelChanged: t, model: n } = this.props, { title: r, graphDimensions: i } = e || {}, { arrows: a, titleEnabled: o, dimensionsEnabled: s } = n || {};
|
|
30
18
|
typeof a == "boolean" && (a = a ? {
|
|
@@ -68,59 +56,59 @@ var y = i(s)(({ theme: e }) => ({
|
|
|
68
56
|
});
|
|
69
57
|
};
|
|
70
58
|
render() {
|
|
71
|
-
let { model: n, configuration: r, onConfigurationChanged:
|
|
59
|
+
let { model: n, configuration: r, onConfigurationChanged: o, onModelChanged: c, imageSupport: l, uploadSoundSupport: y } = this.props, { arrows: b = {}, authoring: x = {}, coordinatesOnHover: S = {}, contentDimensions: C = {}, gridConfigurations: w = [], graphDimensions: T = {}, instruction: E = {}, labels: D = {}, padding: O = {}, prompt: k = {}, rationale: A = {}, scoringType: j = {}, settingsPanelDisabled: M, spellCheck: N = {}, studentInstructions: P = {}, teacherInstructions: F = {}, title: I = {}, maxImageWidth: L = {}, maxImageHeight: R = {}, withRubric: z = {}, language: B = {}, languageChoices: V = {}, mathMlOptions: H = {} } = r || {}, { errors: U = {}, extraCSSRules: W, labelsEnabled: G, dimensionsEnabled: K, promptEnabled: q, rationaleEnabled: J, spellCheckEnabled: Y, teacherInstructionsEnabled: X, titleEnabled: Z } = n || {}, Q = L && L.prompt, $ = R && R.prompt, ee = {
|
|
72
60
|
top: D.top,
|
|
73
61
|
right: D.right,
|
|
74
62
|
bottom: D.bottom,
|
|
75
63
|
left: D.left
|
|
76
64
|
}, te = {
|
|
77
|
-
arrows:
|
|
78
|
-
left:
|
|
79
|
-
right:
|
|
80
|
-
up:
|
|
81
|
-
down:
|
|
65
|
+
arrows: b.settings && m(b.label, {
|
|
66
|
+
left: b.left,
|
|
67
|
+
right: b.right,
|
|
68
|
+
up: b.up,
|
|
69
|
+
down: b.down
|
|
82
70
|
}),
|
|
83
|
-
titleEnabled: I.settings &&
|
|
84
|
-
padding: O.settings &&
|
|
85
|
-
labelsEnabled: D.settings &&
|
|
86
|
-
"language.enabled": B.settings &&
|
|
87
|
-
language: B.settings && B.enabled &&
|
|
88
|
-
dimensionsEnabled: T.settings &&
|
|
89
|
-
coordinatesOnHover: S.settings &&
|
|
71
|
+
titleEnabled: I.settings && f(I.label),
|
|
72
|
+
padding: O.settings && f(O.label),
|
|
73
|
+
labelsEnabled: D.settings && f(D.label),
|
|
74
|
+
"language.enabled": B.settings && f(B.label, !0),
|
|
75
|
+
language: B.settings && B.enabled && g(V.label, V.options),
|
|
76
|
+
dimensionsEnabled: T.settings && f(T.label),
|
|
77
|
+
coordinatesOnHover: S.settings && f(S.label)
|
|
90
78
|
}, ne = {
|
|
91
|
-
"authoring.enabled": x.settings &&
|
|
92
|
-
teacherInstructionsEnabled: F.settings &&
|
|
93
|
-
studentInstructionsEnabled: P.settings &&
|
|
94
|
-
promptEnabled: k.settings &&
|
|
95
|
-
rationaleEnabled: A.settings &&
|
|
96
|
-
spellCheckEnabled: N.settings &&
|
|
97
|
-
scoringType: j.settings &&
|
|
98
|
-
rubricEnabled: z?.settings &&
|
|
99
|
-
instruction: E.settings &&
|
|
79
|
+
"authoring.enabled": x.settings && f(x.label, !0),
|
|
80
|
+
teacherInstructionsEnabled: F.settings && f(F.label),
|
|
81
|
+
studentInstructionsEnabled: P.settings && f(P.label),
|
|
82
|
+
promptEnabled: k.settings && f(k.label),
|
|
83
|
+
rationaleEnabled: A.settings && f(A.label),
|
|
84
|
+
spellCheckEnabled: N.settings && f(N.label),
|
|
85
|
+
scoringType: j.settings && p(j.label, ["dichotomous", "partial scoring"]),
|
|
86
|
+
rubricEnabled: z?.settings && f(z?.label),
|
|
87
|
+
instruction: E.settings && h(E.label)
|
|
100
88
|
};
|
|
101
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ a(s.ConfigLayout, {
|
|
102
90
|
extraCSSRules: W,
|
|
103
91
|
dimensions: C,
|
|
104
92
|
hideSettings: M,
|
|
105
|
-
settings: /* @__PURE__ */
|
|
93
|
+
settings: /* @__PURE__ */ i(d, {
|
|
106
94
|
model: n,
|
|
107
95
|
configuration: r,
|
|
108
|
-
onChangeModel:
|
|
109
|
-
onChangeConfiguration:
|
|
96
|
+
onChangeModel: c,
|
|
97
|
+
onChangeConfiguration: o,
|
|
110
98
|
groups: {
|
|
111
99
|
Settings: te,
|
|
112
100
|
Properties: ne
|
|
113
101
|
}
|
|
114
102
|
}),
|
|
115
103
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ i(v, {
|
|
117
105
|
component: "div",
|
|
118
106
|
variant: "body1",
|
|
119
107
|
children: E?.label || ""
|
|
120
108
|
}),
|
|
121
|
-
X && /* @__PURE__ */
|
|
109
|
+
X && /* @__PURE__ */ i(_, {
|
|
122
110
|
label: F.label,
|
|
123
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ i(u, {
|
|
124
112
|
markup: n.teacherInstructions || "",
|
|
125
113
|
onChange: this.onTeacherInstructionsChange,
|
|
126
114
|
imageSupport: l,
|
|
@@ -128,14 +116,14 @@ var y = i(s)(({ theme: e }) => ({
|
|
|
128
116
|
spellCheck: Y,
|
|
129
117
|
maxImageWidth: L && L.teacherInstructions || Q,
|
|
130
118
|
maxImageHeight: R && R.teacherInstructions || $,
|
|
131
|
-
uploadSoundSupport:
|
|
119
|
+
uploadSoundSupport: y,
|
|
132
120
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
133
121
|
mathMlOptions: H
|
|
134
122
|
})
|
|
135
123
|
}),
|
|
136
|
-
q && /* @__PURE__ */
|
|
124
|
+
q && /* @__PURE__ */ i(_, {
|
|
137
125
|
label: k.label,
|
|
138
|
-
children: /* @__PURE__ */
|
|
126
|
+
children: /* @__PURE__ */ i(u, {
|
|
139
127
|
markup: n.prompt,
|
|
140
128
|
onChange: this.onPromptChange,
|
|
141
129
|
imageSupport: l,
|
|
@@ -144,12 +132,12 @@ var y = i(s)(({ theme: e }) => ({
|
|
|
144
132
|
disableUnderline: !0,
|
|
145
133
|
maxImageWidth: Q,
|
|
146
134
|
maxImageHeight: $,
|
|
147
|
-
uploadSoundSupport:
|
|
135
|
+
uploadSoundSupport: y,
|
|
148
136
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
149
137
|
mathMlOptions: H
|
|
150
138
|
})
|
|
151
139
|
}),
|
|
152
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ i(e, {
|
|
153
141
|
authoring: x,
|
|
154
142
|
gridConfigurations: w,
|
|
155
143
|
graphDimensions: T,
|
|
@@ -162,22 +150,22 @@ var y = i(s)(({ theme: e }) => ({
|
|
|
162
150
|
onChange: this.props.onModelChanged,
|
|
163
151
|
mathMlOptions: H
|
|
164
152
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ i(t, {
|
|
166
154
|
errors: U,
|
|
167
155
|
model: n,
|
|
168
156
|
onChange: this.props.onModelChanged,
|
|
169
157
|
mathMlOptions: H
|
|
170
158
|
}),
|
|
171
|
-
J && /* @__PURE__ */
|
|
159
|
+
J && /* @__PURE__ */ i(_, {
|
|
172
160
|
label: A.label || "Rationale",
|
|
173
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ i(u, {
|
|
174
162
|
markup: n.rationale || "",
|
|
175
163
|
onChange: this.onRationaleChange,
|
|
176
164
|
imageSupport: l,
|
|
177
165
|
spellCheck: Y,
|
|
178
166
|
maxImageWidth: L && L.rationale || Q,
|
|
179
167
|
maxImageHeight: R && R.rationale || $,
|
|
180
|
-
uploadSoundSupport:
|
|
168
|
+
uploadSoundSupport: y,
|
|
181
169
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
182
170
|
mathMlOptions: H
|
|
183
171
|
})
|
|
@@ -187,4 +175,4 @@ var y = i(s)(({ theme: e }) => ({
|
|
|
187
175
|
}
|
|
188
176
|
};
|
|
189
177
|
//#endregion
|
|
190
|
-
export {
|
|
178
|
+
export { y as Configure, y as default };
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
export declare class CorrectResponse extends React.Component {
|
|
4
4
|
static propTypes: {
|
|
5
5
|
errors: PropTypes.Requireable<object>;
|
|
6
|
+
mathMlOptions: PropTypes.Requireable<object>;
|
|
6
7
|
model: PropTypes.Validator<object>;
|
|
7
8
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
9
|
};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import type { ConfigureLanguageOptionsProp } from '@pie-element/shared-types';
|
|
2
|
+
import type { Mark, Point } from '../types.js';
|
|
1
3
|
declare const _default: {
|
|
2
4
|
model: {
|
|
3
5
|
answers: {
|
|
4
6
|
correctAnswer: {
|
|
5
7
|
name: string;
|
|
6
|
-
marks:
|
|
8
|
+
marks: Mark[];
|
|
7
9
|
};
|
|
8
10
|
};
|
|
9
11
|
arrows: {
|
|
10
|
-
left:
|
|
11
|
-
right:
|
|
12
|
-
up:
|
|
13
|
-
down:
|
|
12
|
+
left: true;
|
|
13
|
+
right: true;
|
|
14
|
+
up: true;
|
|
15
|
+
down: true;
|
|
14
16
|
};
|
|
15
|
-
marks:
|
|
17
|
+
marks: Mark[];
|
|
16
18
|
defaultGridConfiguration: number;
|
|
17
19
|
domain: {
|
|
18
20
|
min: number;
|
|
@@ -27,16 +29,16 @@ declare const _default: {
|
|
|
27
29
|
};
|
|
28
30
|
gssLineData: {
|
|
29
31
|
numberOfLines: number;
|
|
30
|
-
selectedTool:
|
|
31
|
-
sections:
|
|
32
|
+
selectedTool: "lineA";
|
|
33
|
+
sections: Point[][];
|
|
32
34
|
lineA: {
|
|
33
|
-
lineType:
|
|
35
|
+
lineType: "Solid";
|
|
34
36
|
};
|
|
35
37
|
};
|
|
36
|
-
includeAxes:
|
|
38
|
+
includeAxes: true;
|
|
37
39
|
labels: {};
|
|
38
|
-
labelsEnabled:
|
|
39
|
-
padding:
|
|
40
|
+
labelsEnabled: true;
|
|
41
|
+
padding: true;
|
|
40
42
|
prompt: string;
|
|
41
43
|
range: {
|
|
42
44
|
min: number;
|
|
@@ -46,44 +48,44 @@ declare const _default: {
|
|
|
46
48
|
axisLabel: string;
|
|
47
49
|
};
|
|
48
50
|
rationale: string;
|
|
49
|
-
standardGrid:
|
|
51
|
+
standardGrid: false;
|
|
50
52
|
title: string;
|
|
51
|
-
coordinatesOnHover:
|
|
52
|
-
promptEnabled:
|
|
53
|
-
rationaleEnabled:
|
|
54
|
-
teacherInstructionsEnabled:
|
|
55
|
-
studentInstructionsEnabled:
|
|
53
|
+
coordinatesOnHover: false;
|
|
54
|
+
promptEnabled: true;
|
|
55
|
+
rationaleEnabled: true;
|
|
56
|
+
teacherInstructionsEnabled: true;
|
|
57
|
+
studentInstructionsEnabled: true;
|
|
56
58
|
};
|
|
57
59
|
configuration: {
|
|
58
60
|
authoring: {
|
|
59
|
-
settings:
|
|
61
|
+
settings: false;
|
|
60
62
|
label: string;
|
|
61
|
-
enabled:
|
|
62
|
-
includeAxesEnabled:
|
|
63
|
-
standardGridEnabled:
|
|
63
|
+
enabled: true;
|
|
64
|
+
includeAxesEnabled: false;
|
|
65
|
+
standardGridEnabled: true;
|
|
64
66
|
min: {
|
|
65
67
|
label: string;
|
|
66
|
-
enabled:
|
|
68
|
+
enabled: true;
|
|
67
69
|
};
|
|
68
70
|
max: {
|
|
69
71
|
label: string;
|
|
70
|
-
enabled:
|
|
72
|
+
enabled: true;
|
|
71
73
|
};
|
|
72
74
|
axisLabel: {
|
|
73
75
|
label: string;
|
|
74
|
-
enabled:
|
|
76
|
+
enabled: true;
|
|
75
77
|
};
|
|
76
78
|
step: {
|
|
77
79
|
label: string;
|
|
78
|
-
enabled:
|
|
80
|
+
enabled: true;
|
|
79
81
|
};
|
|
80
82
|
labelStep: {
|
|
81
83
|
label: string;
|
|
82
|
-
enabled:
|
|
84
|
+
enabled: true;
|
|
83
85
|
};
|
|
84
86
|
};
|
|
85
87
|
arrows: {
|
|
86
|
-
settings:
|
|
88
|
+
settings: true;
|
|
87
89
|
label: string;
|
|
88
90
|
left: {
|
|
89
91
|
label: string;
|
|
@@ -98,13 +100,13 @@ declare const _default: {
|
|
|
98
100
|
label: string;
|
|
99
101
|
};
|
|
100
102
|
};
|
|
101
|
-
gridConfigurations: {
|
|
103
|
+
gridConfigurations: ({
|
|
102
104
|
label: string;
|
|
103
105
|
arrows: {
|
|
104
|
-
left:
|
|
105
|
-
right:
|
|
106
|
-
up:
|
|
107
|
-
down:
|
|
106
|
+
left: true;
|
|
107
|
+
right: true;
|
|
108
|
+
up: true;
|
|
109
|
+
down: true;
|
|
108
110
|
};
|
|
109
111
|
domain: {
|
|
110
112
|
min: number;
|
|
@@ -118,14 +120,14 @@ declare const _default: {
|
|
|
118
120
|
width: number;
|
|
119
121
|
height: number;
|
|
120
122
|
};
|
|
121
|
-
includeAxes:
|
|
123
|
+
includeAxes: true;
|
|
122
124
|
labels: {
|
|
123
125
|
top: string;
|
|
124
126
|
right: string;
|
|
125
127
|
bottom: string;
|
|
126
128
|
left: string;
|
|
127
129
|
};
|
|
128
|
-
padding:
|
|
130
|
+
padding: true;
|
|
129
131
|
range: {
|
|
130
132
|
min: number;
|
|
131
133
|
max: number;
|
|
@@ -134,68 +136,144 @@ declare const _default: {
|
|
|
134
136
|
labelStep: number;
|
|
135
137
|
axisLabel: string;
|
|
136
138
|
};
|
|
137
|
-
standardGrid:
|
|
139
|
+
standardGrid: true;
|
|
138
140
|
title: string;
|
|
139
|
-
}
|
|
141
|
+
} | {
|
|
142
|
+
label: string;
|
|
143
|
+
arrows: {
|
|
144
|
+
left: false;
|
|
145
|
+
right: true;
|
|
146
|
+
up: true;
|
|
147
|
+
down: false;
|
|
148
|
+
};
|
|
149
|
+
domain: {
|
|
150
|
+
min: number;
|
|
151
|
+
max: number;
|
|
152
|
+
step: number;
|
|
153
|
+
padding: number;
|
|
154
|
+
labelStep: number;
|
|
155
|
+
axisLabel: string;
|
|
156
|
+
};
|
|
157
|
+
graph: {
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
};
|
|
161
|
+
includeAxes: true;
|
|
162
|
+
labels: {
|
|
163
|
+
top: string;
|
|
164
|
+
right: string;
|
|
165
|
+
bottom: string;
|
|
166
|
+
left: string;
|
|
167
|
+
};
|
|
168
|
+
padding: true;
|
|
169
|
+
range: {
|
|
170
|
+
min: number;
|
|
171
|
+
max: number;
|
|
172
|
+
step: number;
|
|
173
|
+
padding: number;
|
|
174
|
+
labelStep: number;
|
|
175
|
+
axisLabel: string;
|
|
176
|
+
};
|
|
177
|
+
standardGrid: true;
|
|
178
|
+
title: string;
|
|
179
|
+
} | {
|
|
180
|
+
label: string;
|
|
181
|
+
arrows: {
|
|
182
|
+
left: false;
|
|
183
|
+
right: true;
|
|
184
|
+
up: true;
|
|
185
|
+
down: false;
|
|
186
|
+
};
|
|
187
|
+
domain: {
|
|
188
|
+
min: number;
|
|
189
|
+
max: number;
|
|
190
|
+
step: number;
|
|
191
|
+
padding: number;
|
|
192
|
+
labelStep: number;
|
|
193
|
+
axisLabel: string;
|
|
194
|
+
};
|
|
195
|
+
graph: {
|
|
196
|
+
width: number;
|
|
197
|
+
height: number;
|
|
198
|
+
};
|
|
199
|
+
includeAxes: true;
|
|
200
|
+
labels: {
|
|
201
|
+
top: string;
|
|
202
|
+
right: string;
|
|
203
|
+
bottom: string;
|
|
204
|
+
left: string;
|
|
205
|
+
};
|
|
206
|
+
padding: true;
|
|
207
|
+
range: {
|
|
208
|
+
min: number;
|
|
209
|
+
max: number;
|
|
210
|
+
step: number;
|
|
211
|
+
padding: number;
|
|
212
|
+
labelStep: number;
|
|
213
|
+
axisLabel: string;
|
|
214
|
+
};
|
|
215
|
+
standardGrid: false;
|
|
216
|
+
title: string;
|
|
217
|
+
})[];
|
|
140
218
|
graphDimensions: {
|
|
141
|
-
settings:
|
|
219
|
+
settings: false;
|
|
142
220
|
label: string;
|
|
143
|
-
enabled:
|
|
221
|
+
enabled: true;
|
|
144
222
|
min: number;
|
|
145
223
|
max: number;
|
|
146
224
|
step: number;
|
|
147
225
|
};
|
|
148
226
|
padding: {
|
|
149
|
-
settings:
|
|
227
|
+
settings: false;
|
|
150
228
|
label: string;
|
|
151
229
|
};
|
|
152
230
|
labels: {
|
|
153
|
-
settings:
|
|
231
|
+
settings: true;
|
|
154
232
|
label: string;
|
|
155
|
-
enabled:
|
|
233
|
+
enabled: true;
|
|
156
234
|
top: string;
|
|
157
235
|
right: string;
|
|
158
236
|
bottom: string;
|
|
159
237
|
left: string;
|
|
160
238
|
};
|
|
161
239
|
prompt: {
|
|
162
|
-
settings:
|
|
240
|
+
settings: true;
|
|
163
241
|
label: string;
|
|
164
242
|
};
|
|
165
243
|
rationale: {
|
|
166
|
-
settings:
|
|
244
|
+
settings: true;
|
|
167
245
|
label: string;
|
|
168
246
|
};
|
|
169
247
|
scoringType: {
|
|
170
|
-
settings:
|
|
248
|
+
settings: false;
|
|
171
249
|
label: string;
|
|
172
250
|
};
|
|
173
251
|
studentInstructions: {
|
|
174
|
-
settings:
|
|
252
|
+
settings: false;
|
|
175
253
|
label: string;
|
|
176
254
|
};
|
|
177
255
|
teacherInstructions: {
|
|
178
|
-
settings:
|
|
256
|
+
settings: true;
|
|
179
257
|
label: string;
|
|
180
258
|
};
|
|
181
259
|
title: {
|
|
182
|
-
settings:
|
|
260
|
+
settings: true;
|
|
183
261
|
label: string;
|
|
184
|
-
enabled:
|
|
262
|
+
enabled: true;
|
|
185
263
|
placeholder: string;
|
|
186
264
|
};
|
|
187
265
|
instruction: {
|
|
188
|
-
settings:
|
|
266
|
+
settings: false;
|
|
189
267
|
label: string;
|
|
190
268
|
};
|
|
191
|
-
settingsPanelDisabled:
|
|
269
|
+
settingsPanelDisabled: false;
|
|
192
270
|
spellCheck: {
|
|
193
271
|
label: string;
|
|
194
|
-
settings:
|
|
195
|
-
enabled:
|
|
272
|
+
settings: false;
|
|
273
|
+
enabled: true;
|
|
196
274
|
};
|
|
197
275
|
coordinatesOnHover: {
|
|
198
|
-
settings:
|
|
276
|
+
settings: true;
|
|
199
277
|
label: string;
|
|
200
278
|
};
|
|
201
279
|
maxImageWidth: {
|
|
@@ -209,21 +287,21 @@ declare const _default: {
|
|
|
209
287
|
rationale: number;
|
|
210
288
|
};
|
|
211
289
|
withRubric: {
|
|
212
|
-
settings:
|
|
290
|
+
settings: false;
|
|
213
291
|
label: string;
|
|
214
292
|
};
|
|
215
293
|
language: {
|
|
216
|
-
settings:
|
|
294
|
+
settings: false;
|
|
217
295
|
label: string;
|
|
218
|
-
enabled:
|
|
296
|
+
enabled: false;
|
|
219
297
|
};
|
|
220
298
|
languageChoices: {
|
|
221
299
|
label: string;
|
|
222
|
-
options:
|
|
300
|
+
options: ConfigureLanguageOptionsProp[];
|
|
223
301
|
};
|
|
224
302
|
mathMlOptions: {
|
|
225
|
-
mmlOutput:
|
|
226
|
-
mmlEditing:
|
|
303
|
+
mmlOutput: false;
|
|
304
|
+
mmlEditing: false;
|
|
227
305
|
};
|
|
228
306
|
};
|
|
229
307
|
};
|
|
@@ -8,6 +8,7 @@ export declare class GraphingConfig extends React.Component {
|
|
|
8
8
|
graphDimensions: PropTypes.Requireable<object>;
|
|
9
9
|
gridConfigurations: PropTypes.Requireable<any[]>;
|
|
10
10
|
labelsPlaceholders: PropTypes.Requireable<object>;
|
|
11
|
+
mathMlOptions: PropTypes.Requireable<object>;
|
|
11
12
|
model: PropTypes.Validator<object>;
|
|
12
13
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
14
|
showLabels: PropTypes.Requireable<boolean>;
|