@pie-element/graphing-solution-set 6.1.1 → 6.1.2-next.1

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.
Files changed (88) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/configure.d.ts +26 -0
  4. package/dist/author/configure.js +190 -0
  5. package/dist/author/correct-response.d.ts +33 -0
  6. package/dist/author/correct-response.js +206 -0
  7. package/dist/author/defaults.d.ts +238 -0
  8. package/dist/author/defaults.js +339 -0
  9. package/dist/author/graphing-config.d.ts +33 -0
  10. package/dist/author/graphing-config.js +237 -0
  11. package/dist/author/index.d.ts +62 -0
  12. package/dist/author/index.js +87 -0
  13. package/dist/author/utils.d.ts +46 -0
  14. package/dist/author/utils.js +474 -0
  15. package/dist/browser/author/index.js +1942 -0
  16. package/dist/browser/author/index.js.map +1 -0
  17. package/dist/browser/browser-pUycHh7Y.js +348 -0
  18. package/dist/browser/browser-pUycHh7Y.js.map +1 -0
  19. package/dist/browser/controller/index.js +193 -0
  20. package/dist/browser/controller/index.js.map +1 -0
  21. package/dist/browser/delivery/index.js +782 -0
  22. package/dist/browser/delivery/index.js.map +1 -0
  23. package/dist/browser/dist-BxTk7Laj.js +57671 -0
  24. package/dist/browser/dist-BxTk7Laj.js.map +1 -0
  25. package/dist/browser/graphing-solution-set.css +2 -0
  26. package/dist/controller/defaults.d.ts +64 -0
  27. package/dist/controller/defaults.js +54 -0
  28. package/dist/controller/index.d.ts +24 -0
  29. package/dist/controller/index.js +110 -0
  30. package/dist/controller/utils.d.ts +20 -0
  31. package/dist/controller/utils.js +39 -0
  32. package/dist/delivery/index.d.ts +22 -0
  33. package/dist/delivery/index.js +62 -0
  34. package/dist/delivery/main.d.ts +31 -0
  35. package/dist/delivery/main.js +198 -0
  36. package/dist/delivery/utils.d.ts +12 -0
  37. package/dist/delivery/utils.js +220 -0
  38. package/dist/graphing-solution-set.css +2 -0
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.iife.d.ts +8 -0
  41. package/dist/index.iife.js +405 -0
  42. package/dist/index.js +2 -0
  43. package/dist/runtime-support.d.ts +12 -0
  44. package/dist/runtime-support.js +12 -0
  45. package/package.json +86 -23
  46. package/CHANGELOG.json +0 -1
  47. package/CHANGELOG.md +0 -850
  48. package/LICENSE.md +0 -5
  49. package/README.md +0 -20
  50. package/configure/CHANGELOG.json +0 -1
  51. package/configure/CHANGELOG.md +0 -810
  52. package/configure/lib/configure.js +0 -312
  53. package/configure/lib/configure.js.map +0 -1
  54. package/configure/lib/correct-response.js +0 -435
  55. package/configure/lib/correct-response.js.map +0 -1
  56. package/configure/lib/defaults.js +0 -357
  57. package/configure/lib/defaults.js.map +0 -1
  58. package/configure/lib/graphing-config.js +0 -408
  59. package/configure/lib/graphing-config.js.map +0 -1
  60. package/configure/lib/index.js +0 -163
  61. package/configure/lib/index.js.map +0 -1
  62. package/configure/lib/utils.js +0 -630
  63. package/configure/lib/utils.js.map +0 -1
  64. package/configure/package.json +0 -29
  65. package/controller/CHANGELOG.json +0 -1
  66. package/controller/CHANGELOG.md +0 -675
  67. package/controller/lib/defaults.js +0 -69
  68. package/controller/lib/defaults.js.map +0 -1
  69. package/controller/lib/index.js +0 -351
  70. package/controller/lib/index.js.map +0 -1
  71. package/controller/lib/utils.js +0 -212
  72. package/controller/lib/utils.js.map +0 -1
  73. package/controller/package.json +0 -22
  74. package/demo-gss.gif +0 -0
  75. package/docs/config-schema.json +0 -1560
  76. package/docs/config-schema.json.md +0 -1114
  77. package/docs/demo/config.js +0 -8
  78. package/docs/demo/generate.js +0 -54
  79. package/docs/demo/index.html +0 -1
  80. package/docs/demo/session.js +0 -6
  81. package/docs/pie-schema.json +0 -1800
  82. package/docs/pie-schema.json.md +0 -952
  83. package/lib/index.js +0 -164
  84. package/lib/index.js.map +0 -1
  85. package/lib/main.js +0 -355
  86. package/lib/main.js.map +0 -1
  87. package/lib/utils.js +0 -515
  88. package/lib/utils.js.map +0 -1
@@ -0,0 +1,339 @@
1
+ //#region src/author/defaults.tsx
2
+ var e = {
3
+ model: {
4
+ answers: { correctAnswer: {
5
+ name: "Correct Answer",
6
+ marks: []
7
+ } },
8
+ arrows: {
9
+ left: !0,
10
+ right: !0,
11
+ up: !0,
12
+ down: !0
13
+ },
14
+ marks: [],
15
+ defaultGridConfiguration: 0,
16
+ domain: {
17
+ min: -5,
18
+ max: 5,
19
+ step: 1,
20
+ labelStep: 1,
21
+ axisLabel: "x"
22
+ },
23
+ graph: {
24
+ width: 500,
25
+ height: 500
26
+ },
27
+ gssLineData: {
28
+ numberOfLines: 1,
29
+ selectedTool: "lineA",
30
+ sections: [],
31
+ lineA: { lineType: "Solid" }
32
+ },
33
+ includeAxes: !0,
34
+ labels: {},
35
+ labelsEnabled: !0,
36
+ padding: !0,
37
+ prompt: "",
38
+ range: {
39
+ min: -5,
40
+ max: 5,
41
+ step: 1,
42
+ labelStep: 1,
43
+ axisLabel: "y"
44
+ },
45
+ rationale: "",
46
+ standardGrid: !1,
47
+ title: "",
48
+ coordinatesOnHover: !1,
49
+ promptEnabled: !0,
50
+ rationaleEnabled: !0,
51
+ teacherInstructionsEnabled: !0,
52
+ studentInstructionsEnabled: !0
53
+ },
54
+ configuration: {
55
+ authoring: {
56
+ settings: !1,
57
+ label: "Customize Grid Setup",
58
+ enabled: !0,
59
+ includeAxesEnabled: !1,
60
+ standardGridEnabled: !0,
61
+ min: {
62
+ label: "Min Value",
63
+ enabled: !0
64
+ },
65
+ max: {
66
+ label: "Max Value",
67
+ enabled: !0
68
+ },
69
+ axisLabel: {
70
+ label: "Label",
71
+ enabled: !0
72
+ },
73
+ step: {
74
+ label: "Grid Interval",
75
+ enabled: !0
76
+ },
77
+ labelStep: {
78
+ label: "Label Interval",
79
+ enabled: !0
80
+ }
81
+ },
82
+ arrows: {
83
+ settings: !0,
84
+ label: "Include Arrows",
85
+ left: { label: "left" },
86
+ right: { label: "right" },
87
+ up: { label: "up" },
88
+ down: { label: "down" }
89
+ },
90
+ gridConfigurations: [
91
+ {
92
+ label: "4-quadrant coordinate grid, -10 to 10",
93
+ arrows: {
94
+ left: !0,
95
+ right: !0,
96
+ up: !0,
97
+ down: !0
98
+ },
99
+ domain: {
100
+ min: -10,
101
+ max: 10,
102
+ step: 1,
103
+ padding: 0,
104
+ labelStep: 1,
105
+ axisLabel: "<i>x</i>"
106
+ },
107
+ graph: {
108
+ width: 480,
109
+ height: 480
110
+ },
111
+ includeAxes: !0,
112
+ labels: {
113
+ top: "",
114
+ right: "",
115
+ bottom: "",
116
+ left: ""
117
+ },
118
+ padding: !0,
119
+ range: {
120
+ min: -10,
121
+ max: 10,
122
+ step: 1,
123
+ padding: 0,
124
+ labelStep: 1,
125
+ axisLabel: "<i>y</i>"
126
+ },
127
+ standardGrid: !0,
128
+ title: ""
129
+ },
130
+ {
131
+ label: "0 to 10 on both axes",
132
+ arrows: {
133
+ left: !1,
134
+ right: !0,
135
+ up: !0,
136
+ down: !1
137
+ },
138
+ domain: {
139
+ min: 0,
140
+ max: 10,
141
+ step: 1,
142
+ padding: 0,
143
+ labelStep: 1,
144
+ axisLabel: "<i>x</i>"
145
+ },
146
+ graph: {
147
+ width: 480,
148
+ height: 480
149
+ },
150
+ includeAxes: !0,
151
+ labels: {
152
+ top: "",
153
+ right: "",
154
+ bottom: "",
155
+ left: ""
156
+ },
157
+ padding: !0,
158
+ range: {
159
+ min: 0,
160
+ max: 10,
161
+ step: 1,
162
+ padding: 0,
163
+ labelStep: 1,
164
+ axisLabel: "<i>y</i>"
165
+ },
166
+ standardGrid: !0,
167
+ title: ""
168
+ },
169
+ {
170
+ label: "0 to 20 on both axes",
171
+ arrows: {
172
+ left: !1,
173
+ right: !0,
174
+ up: !0,
175
+ down: !1
176
+ },
177
+ domain: {
178
+ min: 0,
179
+ max: 20,
180
+ step: 1,
181
+ padding: 0,
182
+ labelStep: 1,
183
+ axisLabel: "<i>x</i>"
184
+ },
185
+ graph: {
186
+ width: 480,
187
+ height: 480
188
+ },
189
+ includeAxes: !0,
190
+ labels: {
191
+ top: "",
192
+ right: "",
193
+ bottom: "",
194
+ left: ""
195
+ },
196
+ padding: !0,
197
+ range: {
198
+ min: 0,
199
+ max: 20,
200
+ step: 1,
201
+ padding: 0,
202
+ labelStep: 1,
203
+ axisLabel: "<i>y</i>"
204
+ },
205
+ standardGrid: !0,
206
+ title: ""
207
+ },
208
+ {
209
+ label: "Sample Data Graph",
210
+ arrows: {
211
+ left: !1,
212
+ right: !0,
213
+ up: !0,
214
+ down: !1
215
+ },
216
+ domain: {
217
+ min: 0,
218
+ max: 30,
219
+ step: 1,
220
+ padding: 0,
221
+ labelStep: 2,
222
+ axisLabel: "<i>t</i>"
223
+ },
224
+ graph: {
225
+ width: 480,
226
+ height: 480
227
+ },
228
+ includeAxes: !0,
229
+ labels: {
230
+ top: "",
231
+ right: "",
232
+ bottom: "Time (seconds)",
233
+ left: "Distance (meters)"
234
+ },
235
+ padding: !0,
236
+ range: {
237
+ min: 0,
238
+ max: 80,
239
+ step: 5,
240
+ padding: 0,
241
+ labelStep: 10,
242
+ axisLabel: "<i>d</i>"
243
+ },
244
+ standardGrid: !1,
245
+ title: "Distance as a function of time"
246
+ }
247
+ ],
248
+ graphDimensions: {
249
+ settings: !1,
250
+ label: "Graph Dimensions",
251
+ enabled: !0,
252
+ min: 150,
253
+ max: 800,
254
+ step: 20
255
+ },
256
+ padding: {
257
+ settings: !1,
258
+ label: "Padding"
259
+ },
260
+ labels: {
261
+ settings: !0,
262
+ label: "Graph Labels",
263
+ enabled: !0,
264
+ top: "Click here to add a top label",
265
+ right: "Click here to add a right label",
266
+ bottom: "Click here to add a bottom label",
267
+ left: "Click here to add a left label"
268
+ },
269
+ prompt: {
270
+ settings: !0,
271
+ label: "Item Stem"
272
+ },
273
+ rationale: {
274
+ settings: !0,
275
+ label: "Rationale"
276
+ },
277
+ scoringType: {
278
+ settings: !1,
279
+ label: "Scoring Type"
280
+ },
281
+ studentInstructions: {
282
+ settings: !1,
283
+ label: "Student Instructions"
284
+ },
285
+ teacherInstructions: {
286
+ settings: !0,
287
+ label: "Teacher Instructions"
288
+ },
289
+ title: {
290
+ settings: !0,
291
+ label: "Graph Title",
292
+ enabled: !0,
293
+ placeholder: "Click here to add a title for this graph"
294
+ },
295
+ instruction: {
296
+ settings: !1,
297
+ label: "Graphing Solution Set items involve plotting one or two lines on a graph and then selecting the correct area that represents the solution set. To create one, first configure the grid, then select if one or two lines will be offered and if the lines should be solid or dashed. After defining the line(s), define the correct answer by clicking the area that represents the solution set."
298
+ },
299
+ settingsPanelDisabled: !1,
300
+ spellCheck: {
301
+ label: "Spellcheck",
302
+ settings: !1,
303
+ enabled: !0
304
+ },
305
+ coordinatesOnHover: {
306
+ settings: !0,
307
+ label: "Coordinates on Hover"
308
+ },
309
+ maxImageWidth: {
310
+ teacherInstructions: 300,
311
+ prompt: 300,
312
+ rationale: 300
313
+ },
314
+ maxImageHeight: {
315
+ teacherInstructions: 300,
316
+ prompt: 300,
317
+ rationale: 300
318
+ },
319
+ withRubric: {
320
+ settings: !1,
321
+ label: "Add Rubric"
322
+ },
323
+ language: {
324
+ settings: !1,
325
+ label: "Specify Language",
326
+ enabled: !1
327
+ },
328
+ languageChoices: {
329
+ label: "Language Choices",
330
+ options: []
331
+ },
332
+ mathMlOptions: {
333
+ mmlOutput: !1,
334
+ mmlEditing: !1
335
+ }
336
+ }
337
+ };
338
+ //#endregion
339
+ export { e as default };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing-solution-set/configure/src/graphing-config.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import * as React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare class GraphingConfig extends React.Component {
12
+ static propTypes: {
13
+ availableTools: PropTypes.Requireable<any[]>;
14
+ authoring: PropTypes.Requireable<object>;
15
+ dimensionsEnabled: PropTypes.Requireable<boolean>;
16
+ graphDimensions: PropTypes.Requireable<object>;
17
+ gridConfigurations: PropTypes.Requireable<any[]>;
18
+ labelsPlaceholders: PropTypes.Requireable<object>;
19
+ model: PropTypes.Validator<object>;
20
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
21
+ showLabels: PropTypes.Requireable<boolean>;
22
+ showTitle: PropTypes.Requireable<boolean>;
23
+ titlePlaceholder: PropTypes.Requireable<string>;
24
+ };
25
+ constructor(props: any);
26
+ changeLabels: any;
27
+ changeTitle: any;
28
+ onConfigChange: any;
29
+ onChangeView: any;
30
+ changeGridConfiguration: any;
31
+ render(): React.JSX.Element;
32
+ }
33
+ export default GraphingConfig;
@@ -0,0 +1,237 @@
1
+ import { applyConstraints as e, filterPlotableMarks as t, getGridValues as n, getLabelValues as r } from "./utils.js";
2
+ import * as i from "react";
3
+ import a from "prop-types";
4
+ import { styled as o } from "@mui/material/styles";
5
+ import { GraphContainer as s, GridSetup as c } from "@pie-lib/graphing-solution-set";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
+ import { AlertDialog as d } from "@pie-lib/config-ui";
8
+ import { cloneDeep as f, isEqual as p } from "@pie-element/shared-lodash";
9
+ import { MenuItem as m, OutlinedInput as h, Select as g, Typography as _ } from "@mui/material";
10
+ //#region src/author/graphing-config.tsx
11
+ var v = o("div")(({ theme: e }) => ({
12
+ display: "flex",
13
+ flexWrap: "wrap",
14
+ marginBottom: e.spacing(2.5)
15
+ })), y = o("div")(({ theme: e }) => ({
16
+ display: "flex",
17
+ flexDirection: "column",
18
+ marginRight: e.spacing(3),
19
+ marginBottom: e.spacing(2.5)
20
+ })), b = o("div")({
21
+ display: "flex",
22
+ flexDirection: "column"
23
+ }), x = o(_)(({ theme: e }) => ({
24
+ marginTop: e.spacing(1.5),
25
+ marginBottom: e.spacing(1)
26
+ })), S = o("div")(({ theme: e }) => ({
27
+ display: "flex",
28
+ flexWrap: "wrap",
29
+ alignItems: "center",
30
+ width: "100%",
31
+ marginBottom: e.spacing(2.5)
32
+ })), C = o(_)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), w = o(g)({ flex: "1" }), T = class extends i.Component {
33
+ static propTypes = {
34
+ availableTools: a.array,
35
+ authoring: a.object,
36
+ dimensionsEnabled: a.bool,
37
+ graphDimensions: a.object,
38
+ gridConfigurations: a.array,
39
+ labelsPlaceholders: a.object,
40
+ model: a.object.isRequired,
41
+ onChange: a.func.isRequired,
42
+ showLabels: a.bool,
43
+ showTitle: a.bool,
44
+ titlePlaceholder: a.string
45
+ };
46
+ constructor(e) {
47
+ super(e);
48
+ let { domain: t, range: i, graph: a } = e.model || {}, o = {
49
+ domain: n(t, a.width, !0),
50
+ range: n(i, a.height, !0)
51
+ }, s = {
52
+ domain: r(t.step),
53
+ range: r(i.step)
54
+ };
55
+ this.state = {
56
+ gridValues: o,
57
+ labelValues: s,
58
+ showPixelGuides: !1,
59
+ dialog: { isOpened: !1 },
60
+ domain: { ...t },
61
+ range: { ...i }
62
+ };
63
+ }
64
+ changeLabels = (e) => {
65
+ let { model: t, onChange: n } = this.props;
66
+ n({
67
+ ...t,
68
+ labels: e
69
+ });
70
+ };
71
+ changeTitle = (e) => {
72
+ let { model: t, onChange: n } = this.props;
73
+ n({
74
+ ...t,
75
+ title: e
76
+ });
77
+ };
78
+ onConfigChange = (n, r) => {
79
+ let { model: i, onChange: a } = this.props, { defaultGridConfiguration: o = 0 } = i, { gridValues: s, labelValues: c, domain: l, range: u } = this.state, d = {
80
+ ...i,
81
+ ...n
82
+ }, { answers: m, domain: h, includeAxes: g = !0, graph: _, range: v, standardGrid: y } = d, b = {
83
+ domain: [],
84
+ range: []
85
+ }, x = {
86
+ domain: [],
87
+ range: []
88
+ }, S = r >= 0 ? r : o;
89
+ if (g) {
90
+ let t = e(h, _.width, s.domain, c.domain);
91
+ b.domain = t.gridValues || [], x.domain = t.labelValues || [];
92
+ }
93
+ if (y) b.range = b.domain, x.range = x.domain, v.step = h.step, v.labelStep = h.labelStep;
94
+ else if (g) {
95
+ let t = e(v, _.height, s.range, c.range);
96
+ b.range = t.gridValues || [], x.range = t.labelValues || [];
97
+ }
98
+ let C = f(m);
99
+ C.correctAnswer.marks = m.correctAnswer.marks.filter((e) => e.type !== "polygon");
100
+ let w = t(h, v, C);
101
+ if (!p(C, w)) {
102
+ this.setState({ dialog: {
103
+ isOpened: !0,
104
+ onClose: () => this.setState({ dialog: { isOpened: !1 } }, a({
105
+ ...i,
106
+ domain: l,
107
+ range: u
108
+ })),
109
+ onConfirm: () => {
110
+ d.gssLineData.sections = [], d.gssLineData.selectedTool = "lineA", this.setState({
111
+ gridValues: b,
112
+ labelValues: x,
113
+ dialog: { isOpened: !1 },
114
+ domain: { ...h },
115
+ range: { ...v }
116
+ }, a({
117
+ ...d,
118
+ answers: w,
119
+ defaultGridConfiguration: S
120
+ }));
121
+ }
122
+ } });
123
+ return;
124
+ }
125
+ this.setState({
126
+ gridValues: b,
127
+ labelValues: x,
128
+ domain: { ...h },
129
+ range: { ...v }
130
+ }), a({
131
+ ...d,
132
+ defaultGridConfiguration: S
133
+ });
134
+ };
135
+ onChangeView = (e, t) => {
136
+ let { graphDimensions: { enabled: n } = {} } = this.props;
137
+ n && this.setState({ showPixelGuides: t });
138
+ };
139
+ changeGridConfiguration = (e) => {
140
+ let { gridConfigurations: t } = this.props, { value: n } = e.target;
141
+ this.onConfigChange(t?.[n] || {}, n);
142
+ };
143
+ render() {
144
+ let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle: f, titlePlaceholder: p, mathMlOptions: g = {} } = this.props, { arrows: T, coordinatesOnHover: E, defaultGridConfiguration: D, domain: O, labels: k, range: A, standardGrid: j, title: M } = i || {}, N = (i || {}).graph || {}, { min: P, max: F, step: I } = n || {}, { dialog: L = {}, gridValues: R, labelValues: z, showPixelGuides: B } = this.state, V = {
145
+ min: Math.max(150, P),
146
+ max: Math.min(800, F),
147
+ step: I >= 1 ? Math.min(200, I) : 20
148
+ }, H = {
149
+ axisLabel: e.axisLabel,
150
+ dimensionsEnabled: o,
151
+ includeAxesEnabled: !1,
152
+ labelStep: e.labelStep,
153
+ min: e.min,
154
+ max: e.max,
155
+ standardGridEnabled: e.standardGridEnabled,
156
+ step: e.step
157
+ }, U = e.enabled && Object.values(H).some((e) => typeof e == "object" ? e.enabled : e);
158
+ return /* @__PURE__ */ u(v, { children: [
159
+ /* @__PURE__ */ u(y, { children: [t && t.length ? /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ l(C, {
160
+ component: "div",
161
+ variant: "h6",
162
+ children: "Grid Configuration"
163
+ }), /* @__PURE__ */ l(w, {
164
+ input: /* @__PURE__ */ l(h, { labelWidth: 10 }),
165
+ displayEmpty: !0,
166
+ onChange: this.changeGridConfiguration,
167
+ value: D,
168
+ MenuProps: { transitionDuration: {
169
+ enter: 225,
170
+ exit: 195
171
+ } },
172
+ children: (t || []).map((e, t) => /* @__PURE__ */ l(m, {
173
+ value: t,
174
+ children: e.label
175
+ }, t))
176
+ })] }) : null, U && /* @__PURE__ */ l(c, {
177
+ displayedFields: H,
178
+ domain: O,
179
+ gridValues: R,
180
+ includeAxes: !0,
181
+ labelValues: z,
182
+ range: A,
183
+ size: N,
184
+ sizeConstraints: V,
185
+ standardGrid: j,
186
+ onChange: this.onConfigChange,
187
+ onChangeView: this.onChangeView
188
+ })] }),
189
+ /* @__PURE__ */ u(b, { children: [
190
+ /* @__PURE__ */ l(_, {
191
+ component: "div",
192
+ variant: "h6",
193
+ children: "Define Graph Attributes"
194
+ }),
195
+ /* @__PURE__ */ l(x, {
196
+ component: "div",
197
+ variant: "body1",
198
+ children: "Use this interface to add/edit a title and/or labels"
199
+ }),
200
+ /* @__PURE__ */ l(s, {
201
+ axesSettings: { includeArrows: T },
202
+ backgroundMarks: [],
203
+ coordinatesOnHover: E,
204
+ collapsibleToolbar: !0,
205
+ collapsibleToolbarTitle: "Add Background Shapes to Graph",
206
+ domain: O,
207
+ labels: k,
208
+ labelsPlaceholders: r,
209
+ marks: [],
210
+ onChangeLabels: this.changeLabels,
211
+ onChangeTitle: this.changeTitle,
212
+ range: A,
213
+ showLabels: a,
214
+ showPixelGuides: B,
215
+ showTitle: f,
216
+ size: {
217
+ width: N.width,
218
+ height: N.height
219
+ },
220
+ title: M,
221
+ titlePlaceholder: p,
222
+ disableToolbar: !0,
223
+ mathMlOptions: g
224
+ }, "graphing-config")
225
+ ] }, "graph"),
226
+ /* @__PURE__ */ l(d, {
227
+ open: L.isOpened,
228
+ title: "Warning",
229
+ text: "This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.",
230
+ onClose: L.onClose,
231
+ onConfirm: L.onConfirm
232
+ })
233
+ ] });
234
+ }
235
+ };
236
+ //#endregion
237
+ export { T as default };
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing-solution-set/configure/src/index.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export default class GraphLinesConfigure extends HTMLElement {
10
+ static createDefaultModel: (model?: {}) => {
11
+ answers: any;
12
+ range: {};
13
+ graph: {};
14
+ arrows: {
15
+ left: boolean;
16
+ right: boolean;
17
+ up: boolean;
18
+ down: boolean;
19
+ };
20
+ marks: never[];
21
+ defaultGridConfiguration: number;
22
+ domain: {
23
+ min: number;
24
+ max: number;
25
+ step: number;
26
+ labelStep: number;
27
+ axisLabel: string;
28
+ };
29
+ gssLineData: {
30
+ numberOfLines: number;
31
+ selectedTool: string;
32
+ sections: never[];
33
+ lineA: {
34
+ lineType: string;
35
+ };
36
+ };
37
+ includeAxes: boolean;
38
+ labels: {};
39
+ labelsEnabled: boolean;
40
+ padding: boolean;
41
+ prompt: string;
42
+ rationale: string;
43
+ standardGrid: boolean;
44
+ title: string;
45
+ coordinatesOnHover: boolean;
46
+ promptEnabled: boolean;
47
+ rationaleEnabled: boolean;
48
+ teacherInstructionsEnabled: boolean;
49
+ studentInstructionsEnabled: boolean;
50
+ };
51
+ constructor();
52
+ set model(m: any);
53
+ set configuration(c: any);
54
+ onModelChanged: any;
55
+ onConfigurationChanged: any;
56
+ insertImage: any;
57
+ onDeleteImage: any;
58
+ insertSound(handler: any): void;
59
+ onDeleteSound(src: any, done: any): void;
60
+ _render(): void;
61
+ disconnectedCallback(): void;
62
+ }