@pie-element/hotspot 9.3.4-next.3 → 10.0.0-beta.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 (106) hide show
  1. package/CHANGELOG.md +0 -11
  2. package/configure/CHANGELOG.md +0 -11
  3. package/configure/lib/DeleteWidget.js +30 -43
  4. package/configure/lib/DeleteWidget.js.map +1 -1
  5. package/configure/lib/button.js +26 -45
  6. package/configure/lib/button.js.map +1 -1
  7. package/configure/lib/buttons/circle.js +20 -27
  8. package/configure/lib/buttons/circle.js.map +1 -1
  9. package/configure/lib/buttons/polygon.js +26 -33
  10. package/configure/lib/buttons/polygon.js.map +1 -1
  11. package/configure/lib/buttons/rectangle.js +26 -33
  12. package/configure/lib/buttons/rectangle.js.map +1 -1
  13. package/configure/lib/defaults.js +2 -3
  14. package/configure/lib/defaults.js.map +1 -1
  15. package/configure/lib/hotspot-circle.js +132 -198
  16. package/configure/lib/hotspot-circle.js.map +1 -1
  17. package/configure/lib/hotspot-container.js +250 -355
  18. package/configure/lib/hotspot-container.js.map +1 -1
  19. package/configure/lib/hotspot-drawable.js +360 -472
  20. package/configure/lib/hotspot-drawable.js.map +1 -1
  21. package/configure/lib/hotspot-palette.js +92 -139
  22. package/configure/lib/hotspot-palette.js.map +1 -1
  23. package/configure/lib/hotspot-polygon.js +212 -317
  24. package/configure/lib/hotspot-polygon.js.map +1 -1
  25. package/configure/lib/hotspot-rectangle.js +128 -192
  26. package/configure/lib/hotspot-rectangle.js.map +1 -1
  27. package/configure/lib/icons.js.map +1 -1
  28. package/configure/lib/image-konva.js +46 -86
  29. package/configure/lib/image-konva.js.map +1 -1
  30. package/configure/lib/index.js +162 -222
  31. package/configure/lib/index.js.map +1 -1
  32. package/configure/lib/root.js +302 -394
  33. package/configure/lib/root.js.map +1 -1
  34. package/configure/lib/shapes/circle.js +69 -101
  35. package/configure/lib/shapes/circle.js.map +1 -1
  36. package/configure/lib/shapes/index.js +4 -12
  37. package/configure/lib/shapes/index.js.map +1 -1
  38. package/configure/lib/shapes/polygon.js +64 -96
  39. package/configure/lib/shapes/polygon.js.map +1 -1
  40. package/configure/lib/shapes/rectagle.js +69 -101
  41. package/configure/lib/shapes/rectagle.js.map +1 -1
  42. package/configure/lib/shapes/utils.js +2 -8
  43. package/configure/lib/shapes/utils.js.map +1 -1
  44. package/configure/lib/upload-control.js +25 -52
  45. package/configure/lib/upload-control.js.map +1 -1
  46. package/configure/lib/utils.js +84 -137
  47. package/configure/lib/utils.js.map +1 -1
  48. package/configure/package.json +11 -10
  49. package/configure/src/__tests__/hotspot-container.test.js +50 -19
  50. package/configure/src/__tests__/hotspot-drawable.test.js +55 -34
  51. package/configure/src/__tests__/index.test.js +167 -5
  52. package/configure/src/__tests__/root.test.js +89 -63
  53. package/configure/src/button.jsx +12 -20
  54. package/configure/src/hotspot-circle.jsx +5 -18
  55. package/configure/src/hotspot-container.jsx +82 -98
  56. package/configure/src/hotspot-drawable.jsx +43 -45
  57. package/configure/src/hotspot-palette.jsx +45 -37
  58. package/configure/src/hotspot-polygon.jsx +4 -20
  59. package/configure/src/hotspot-rectangle.jsx +4 -17
  60. package/configure/src/index.js +12 -2
  61. package/configure/src/root.jsx +86 -80
  62. package/configure/src/upload-control.jsx +6 -16
  63. package/controller/CHANGELOG.md +0 -11
  64. package/controller/lib/defaults.js +2 -3
  65. package/controller/lib/defaults.js.map +1 -1
  66. package/controller/lib/index.js +151 -205
  67. package/controller/lib/index.js.map +1 -1
  68. package/controller/lib/utils.js +14 -34
  69. package/controller/lib/utils.js.map +1 -1
  70. package/controller/package.json +2 -2
  71. package/lib/hotspot/circle.js +110 -169
  72. package/lib/hotspot/circle.js.map +1 -1
  73. package/lib/hotspot/container.js +174 -260
  74. package/lib/hotspot/container.js.map +1 -1
  75. package/lib/hotspot/icons.js.map +1 -1
  76. package/lib/hotspot/image-konva-tooltip.js +65 -112
  77. package/lib/hotspot/image-konva-tooltip.js.map +1 -1
  78. package/lib/hotspot/index.js +135 -198
  79. package/lib/hotspot/index.js.map +1 -1
  80. package/lib/hotspot/polygon.js +150 -214
  81. package/lib/hotspot/polygon.js.map +1 -1
  82. package/lib/hotspot/rectangle.js +128 -185
  83. package/lib/hotspot/rectangle.js.map +1 -1
  84. package/lib/index.js +187 -256
  85. package/lib/index.js.map +1 -1
  86. package/lib/session-updater.js +12 -18
  87. package/lib/session-updater.js.map +1 -1
  88. package/package.json +14 -11
  89. package/src/__tests__/container.test.jsx +27 -175
  90. package/src/__tests__/index.test.js +70 -30
  91. package/src/hotspot/circle.jsx +2 -13
  92. package/src/hotspot/container.jsx +35 -50
  93. package/src/hotspot/index.jsx +16 -28
  94. package/src/hotspot/polygon.jsx +4 -13
  95. package/src/hotspot/rectangle.jsx +5 -15
  96. package/src/index.js +21 -12
  97. package/configure/src/__tests__/DeleteWidget.test.js +0 -64
  98. package/configure/src/__tests__/__snapshots__/hotspot-container.test.js.snap +0 -192
  99. package/configure/src/__tests__/__snapshots__/hotspot-drawable.test.js.snap +0 -562
  100. package/configure/src/__tests__/__snapshots__/root.test.js.snap +0 -469
  101. package/src/__tests__/__snapshots__/container.test.jsx.snap +0 -264
  102. package/src/__tests__/__snapshots__/index.test.js.snap +0 -81
  103. package/src/__tests__/__snapshots__/polygon.test.jsx.snap +0 -192
  104. package/src/__tests__/__snapshots__/rectangle.test.jsx.snap +0 -127
  105. package/src/__tests__/polygon.test.jsx +0 -230
  106. package/src/__tests__/rectangle.test.jsx +0 -232
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Rect, Group, Transformer } from 'react-konva';
4
- import { withStyles } from '@material-ui/core/styles/index';
5
4
  import DeleteWidget from './DeleteWidget';
6
5
 
7
6
  class RectComponent extends React.Component {
@@ -75,7 +74,6 @@ class RectComponent extends React.Component {
75
74
 
76
75
  render() {
77
76
  const {
78
- classes,
79
77
  correct,
80
78
  height,
81
79
  hotspotColor,
@@ -92,7 +90,7 @@ class RectComponent extends React.Component {
92
90
  const { hovered } = this.state;
93
91
 
94
92
  return (
95
- <Group classes={classes.group} onMouseLeave={this.handleMouseLeave} onMouseEnter={this.handleMouseEnter}>
93
+ <Group onMouseLeave={this.handleMouseLeave} onMouseEnter={this.handleMouseEnter} padding={12}>
96
94
  {hoverOutlineColor && hovered && (
97
95
  <Rect
98
96
  x={x}
@@ -106,7 +104,6 @@ class RectComponent extends React.Component {
106
104
  )}
107
105
 
108
106
  <Rect
109
- classes={classes.base}
110
107
  ref={this.shapeRef}
111
108
  width={width}
112
109
  height={height}
@@ -122,6 +119,8 @@ class RectComponent extends React.Component {
122
119
  onTransformEnd={this.onResizeEnd}
123
120
  x={x}
124
121
  y={y}
122
+ opacity={0.5}
123
+ cursor="pointer"
125
124
  />
126
125
  {!this.state.isDragging && this.state.hovered && (
127
126
  <DeleteWidget id={id} height={height} width={width} x={x} y={y} handleWidgetClick={this.handleDelete} />
@@ -144,19 +143,7 @@ class RectComponent extends React.Component {
144
143
  }
145
144
  }
146
145
 
147
- const styles = () => ({
148
- base: {
149
- cursor: 'pointer',
150
- opacity: 0.5,
151
- },
152
-
153
- group: {
154
- padding: '12px',
155
- },
156
- });
157
-
158
146
  RectComponent.propTypes = {
159
- classes: PropTypes.object.isRequired,
160
147
  correct: PropTypes.bool,
161
148
  isDrawing: PropTypes.bool.isRequired,
162
149
  id: PropTypes.string.isRequired,
@@ -178,4 +165,4 @@ RectComponent.defaultProps = {
178
165
  correct: false,
179
166
  };
180
167
 
181
- export default withStyles(styles)(RectComponent);
168
+ export default RectComponent;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom';
2
+ import { createRoot } from 'react-dom/client';
3
3
  import debug from 'debug';
4
4
  import {
5
5
  ModelUpdatedEvent,
@@ -25,6 +25,7 @@ export default class HotspotConfigure extends HTMLElement {
25
25
 
26
26
  constructor() {
27
27
  super();
28
+ this._root = null;
28
29
  this._model = HotspotConfigure.createDefaultModel();
29
30
  this._configuration = sensibleDefaults.configuration;
30
31
  this.onModelChanged = this.onModelChanged.bind(this);
@@ -193,6 +194,15 @@ export default class HotspotConfigure extends HTMLElement {
193
194
  onTeacherInstructionsChanged: this.onTeacherInstructionsChanged,
194
195
  });
195
196
 
196
- ReactDOM.render(element, this);
197
+ if (!this._root) {
198
+ this._root = createRoot(this);
199
+ }
200
+ this._root.render(element);
201
+ }
202
+
203
+ disconnectedCallback() {
204
+ if (this._root) {
205
+ this._root.unmount();
206
+ }
197
207
  }
198
208
  }
@@ -1,17 +1,57 @@
1
1
  import React from 'react';
2
2
  import { settings, layout, InputContainer, NumberTextField } from '@pie-lib/config-ui';
3
3
  import PropTypes from 'prop-types';
4
- import EditableHtml from '@pie-lib/editable-html';
5
- import { withStyles } from '@material-ui/core/styles';
6
- import Typography from '@material-ui/core/Typography';
7
- import Info from '@material-ui/icons/Info';
8
- import Tooltip from '@material-ui/core/Tooltip';
4
+ import EditableHtml from '@pie-lib/editable-html-tip-tap';
5
+ import { styled } from '@mui/material/styles';
6
+ import Typography from '@mui/material/Typography';
7
+ import Info from '@mui/icons-material/Info';
8
+ import Tooltip from '@mui/material/Tooltip';
9
9
  import HotspotPalette from './hotspot-palette';
10
10
  import HotspotContainer from './hotspot-container';
11
11
  import { updateImageDimensions, generateValidationMessage, getUpdatedShapes, getAllShapes, groupShapes } from './utils';
12
12
 
13
13
  const { Panel, toggle, dropdown } = settings;
14
14
 
15
+ const DimensionsContainer = styled('div')(({ theme }) => ({
16
+ display: 'flex',
17
+ marginBottom: theme.spacing(1.5),
18
+ }));
19
+
20
+ const FieldContainer = styled('div')({
21
+ flex: 1,
22
+ width: '90%',
23
+ });
24
+
25
+ const PromptContainer = styled(InputContainer)(({ theme }) => ({
26
+ paddingTop: theme.spacing(1),
27
+ marginTop: theme.spacing(2),
28
+ marginBottom: theme.spacing(2),
29
+ width: '100%',
30
+ }));
31
+
32
+ const SubHeading = styled(Typography)(({ theme }) => ({
33
+ marginRight: theme.spacing(1),
34
+ }));
35
+
36
+ const FlexContainer = styled('div')({
37
+ display: 'flex',
38
+ alignItems: 'center',
39
+ });
40
+
41
+ const StyledTooltip = styled(Tooltip)(({ theme }) => ({
42
+ '& .MuiTooltip-tooltip': {
43
+ fontSize: theme.typography.fontSize - 2,
44
+ whiteSpace: 'pre',
45
+ maxWidth: '500px',
46
+ },
47
+ }));
48
+
49
+ const ErrorText = styled('div')(({ theme }) => ({
50
+ fontSize: theme.typography.fontSize - 2,
51
+ color: theme.palette.error.main,
52
+ paddingTop: theme.spacing(1),
53
+ }));
54
+
15
55
  export class Root extends React.Component {
16
56
  handleColorChange = (fieldType, color) => {
17
57
  const { onColorChanged } = this.props;
@@ -49,7 +89,6 @@ export class Root extends React.Component {
49
89
 
50
90
  render() {
51
91
  const {
52
- classes,
53
92
  configuration,
54
93
  model,
55
94
  imageSupport,
@@ -144,7 +183,7 @@ export class Root extends React.Component {
144
183
  }
145
184
  >
146
185
  {teacherInstructionsEnabled && (
147
- <InputContainer label={teacherInstructions.label} className={classes.promptContainer}>
186
+ <PromptContainer label={teacherInstructions.label}>
148
187
  <EditableHtml
149
188
  markup={model.teacherInstructions || ''}
150
189
  onChange={onTeacherInstructionsChanged}
@@ -160,12 +199,12 @@ export class Root extends React.Component {
160
199
  languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
161
200
  mathMlOptions={mathMlOptions}
162
201
  />
163
- {teacherInstructionsError && <div className={classes.errorText}>{teacherInstructionsError}</div>}
164
- </InputContainer>
202
+ {teacherInstructionsError && <ErrorText>{teacherInstructionsError}</ErrorText>}
203
+ </PromptContainer>
165
204
  )}
166
205
 
167
206
  {promptEnabled && (
168
- <InputContainer label={prompt.label} className={classes.promptContainer}>
207
+ <PromptContainer label={prompt.label}>
169
208
  <EditableHtml
170
209
  markup={model.prompt || ''}
171
210
  onChange={onPromptChanged}
@@ -181,24 +220,23 @@ export class Root extends React.Component {
181
220
  languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
182
221
  mathMlOptions={mathMlOptions}
183
222
  />
184
- {promptError && <div className={classes.errorText}>{promptError}</div>}
185
- </InputContainer>
223
+ {promptError && <ErrorText>{promptError}</ErrorText>}
224
+ </PromptContainer>
186
225
  )}
187
226
 
188
- <div className={classes.flexContainer}>
189
- <Typography className={classes.subheading} variant="subheading">
227
+ <FlexContainer>
228
+ <SubHeading variant="h6">
190
229
  Define Hotspot
191
- </Typography>
192
- <Tooltip
193
- classes={{ tooltip: classes.tooltip }}
230
+ </SubHeading>
231
+ <StyledTooltip
194
232
  disableFocusListener
195
233
  disableTouchListener
196
234
  placement={'left'}
197
235
  title={validationMessage}
198
236
  >
199
237
  <Info fontSize={'small'} color={'primary'} style={{ float: 'right' }} />
200
- </Tooltip>
201
- </div>
238
+ </StyledTooltip>
239
+ </FlexContainer>
202
240
 
203
241
  <HotspotPalette
204
242
  hotspotColor={model.hotspotColor}
@@ -226,39 +264,41 @@ export class Root extends React.Component {
226
264
  preserveAspectRatioEnabled={preserveAspectRatio.enabled}
227
265
  insertImage={imageSupport && imageSupport.add}
228
266
  />
229
- {shapesError && <div className={classes.errorText}>{shapesError}</div>}
230
- {selectionsError && <div className={classes.errorText}>{selectionsError}</div>}
267
+ {shapesError && <ErrorText>{shapesError}</ErrorText>}
268
+ {selectionsError && <ErrorText>{selectionsError}</ErrorText>}
231
269
 
232
270
  {model.imageUrl && (
233
271
  <React.Fragment>
234
- <Typography variant="subheading">Image Dimensions</Typography>
272
+ <Typography variant="h6">Image Dimensions</Typography>
235
273
 
236
- <div className={classes.dimensions}>
237
- <NumberTextField
238
- key="hotspot-manual-width"
239
- label="Width"
240
- value={model.dimensions.width}
241
- min={0}
242
- onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'width')}
243
- showErrorWhenOutsideRange
244
- className={classes.field}
245
- />
274
+ <DimensionsContainer>
275
+ <FieldContainer>
276
+ <NumberTextField
277
+ key="hotspot-manual-width"
278
+ label="Width"
279
+ value={model.dimensions.width}
280
+ min={0}
281
+ onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'width')}
282
+ showErrorWhenOutsideRange
283
+ />
284
+ </FieldContainer>
246
285
 
247
- <NumberTextField
248
- key="hotspot-manual-height"
249
- label="Height"
250
- value={model.dimensions.height}
251
- min={0}
252
- onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'height')}
253
- showErrorWhenOutsideRange
254
- className={classes.field}
255
- />
256
- </div>
286
+ <FieldContainer>
287
+ <NumberTextField
288
+ key="hotspot-manual-height"
289
+ label="Height"
290
+ value={model.dimensions.height}
291
+ min={0}
292
+ onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'height')}
293
+ showErrorWhenOutsideRange
294
+ />
295
+ </FieldContainer>
296
+ </DimensionsContainer>
257
297
  </React.Fragment>
258
298
  )}
259
299
 
260
300
  {rationaleEnabled && (
261
- <InputContainer label={rationale.label} className={classes.promptContainer}>
301
+ <PromptContainer label={rationale.label}>
262
302
  <EditableHtml
263
303
  markup={model.rationale || ''}
264
304
  onChange={onRationaleChanged}
@@ -273,49 +313,15 @@ export class Root extends React.Component {
273
313
  languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
274
314
  mathMlOptions={mathMlOptions}
275
315
  />
276
- {rationaleError && <div className={classes.errorText}>{rationaleError}</div>}
277
- </InputContainer>
316
+ {rationaleError && <ErrorText>{rationaleError}</ErrorText>}
317
+ </PromptContainer>
278
318
  )}
279
319
  </layout.ConfigLayout>
280
320
  );
281
321
  }
282
322
  }
283
323
 
284
- const styles = (theme) => ({
285
- dimensions: {
286
- display: 'flex',
287
- marginBottom: theme.spacing.unit * 1.5,
288
- },
289
- field: {
290
- flex: 1,
291
- width: '90%',
292
- },
293
- promptContainer: {
294
- paddingTop: theme.spacing.unit * 2,
295
- marginBottom: theme.spacing.unit * 2,
296
- width: '100%',
297
- },
298
- subheading: {
299
- marginRight: theme.spacing.unit,
300
- },
301
- flexContainer: {
302
- display: 'flex',
303
- alignItems: 'center',
304
- },
305
- tooltip: {
306
- fontSize: theme.typography.fontSize - 2,
307
- whiteSpace: 'pre',
308
- maxWidth: '500px',
309
- },
310
- errorText: {
311
- fontSize: theme.typography.fontSize - 2,
312
- color: theme.palette.error.main,
313
- paddingTop: theme.spacing.unit,
314
- },
315
- });
316
-
317
324
  Root.propTypes = {
318
- classes: PropTypes.object.isRequired,
319
325
  configuration: PropTypes.object,
320
326
  model: PropTypes.object.isRequired,
321
327
  imageSupport: PropTypes.shape({
@@ -337,4 +343,4 @@ Root.propTypes = {
337
343
  onTeacherInstructionsChanged: PropTypes.func.isRequired,
338
344
  };
339
345
 
340
- export default withStyles(styles)(Root);
346
+ export default Root;
@@ -1,34 +1,24 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { withStyles } from '@material-ui/core/styles/index';
4
3
 
5
4
  import Button from './button';
6
5
 
7
- const UploadControl = ({ classNameButton, classNameSection, classes, label, onInputClick, onUploadImage, setRef }) => (
8
- <div className={classNameSection}>
9
- <Button className={classNameButton} label={label} onClick={onInputClick} />
6
+ const UploadControl = ({ label, onInputClick, onUploadImage, setRef }) => (
7
+ <>
8
+ <Button label={label} onClick={onInputClick} />
10
9
  <input
11
10
  accept="image/*"
12
- className={classes.input}
11
+ style={{ display: 'none' }}
13
12
  onChange={onUploadImage}
14
13
  ref={(ref) => {
15
14
  setRef(ref);
16
15
  }}
17
16
  type="file"
18
17
  />
19
- </div>
18
+ </>
20
19
  );
21
20
 
22
- const styles = () => ({
23
- input: {
24
- display: 'none',
25
- },
26
- });
27
-
28
21
  UploadControl.propTypes = {
29
- classes: PropTypes.object.isRequired,
30
- classNameButton: PropTypes.string,
31
- classNameSection: PropTypes.string,
32
22
  label: PropTypes.string.isRequired,
33
23
  onInputClick: PropTypes.func.isRequired,
34
24
  onUploadImage: PropTypes.func.isRequired,
@@ -40,4 +30,4 @@ UploadControl.defaultProps = {
40
30
  classNameSection: '',
41
31
  };
42
32
 
43
- export default withStyles(styles)(UploadControl);
33
+ export default UploadControl;
@@ -3,17 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [6.3.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-controller@6.3.2...@pie-element/hotspot-controller@6.3.3) (2025-11-27)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * bump libs PD-5274, PD-5211, PD-5248 ([7610b25](https://github.com/pie-framework/pie-elements/commit/7610b25423956b6492f33322513b3430051fca77))
12
-
13
-
14
-
15
-
16
-
17
6
  ## [6.3.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/hotspot-controller@6.3.1...@pie-element/hotspot-controller@6.3.2) (2025-10-22)
18
7
 
19
8
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
7
- var _default = {
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
8
  dimensions: {
9
9
  height: 0,
10
10
  width: 0
@@ -30,5 +30,4 @@ var _default = {
30
30
  teacherInstructionsEnabled: true,
31
31
  toolbarEditorPosition: 'bottom'
32
32
  };
33
- exports["default"] = _default;
34
33
  //# sourceMappingURL=defaults.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/defaults.js"],"names":["dimensions","height","width","hotspotColor","hotspotList","imageUrl","multipleCorrect","outlineColor","outlineList","partialScoring","prompt","promptEnabled","rationaleEnabled","shapes","rectangles","polygons","circles","strokeWidth","studentInstructionsEnabled","teacherInstructions","teacherInstructionsEnabled","toolbarEditorPosition"],"mappings":";;;;;;eAAe;AACbA,EAAAA,UAAU,EAAE;AAAEC,IAAAA,MAAM,EAAE,CAAV;AAAaC,IAAAA,KAAK,EAAE;AAApB,GADC;AAEbC,EAAAA,YAAY,EAAE,2BAFD;AAGbC,EAAAA,WAAW,EAAE,CAAC,2BAAD,CAHA;AAIbC,EAAAA,QAAQ,EAAE,EAJG;AAKbC,EAAAA,eAAe,EAAE,IALJ;AAMbC,EAAAA,YAAY,EAAE,MAND;AAObC,EAAAA,WAAW,EAAE,CAAC,MAAD,CAPA;AAQbC,EAAAA,cAAc,EAAE,KARH;AASbC,EAAAA,MAAM,EAAE,EATK;AAUbC,EAAAA,aAAa,EAAE,IAVF;AAWbC,EAAAA,gBAAgB,EAAE,IAXL;AAYbC,EAAAA,MAAM,EAAE;AAAEC,IAAAA,UAAU,EAAE,EAAd;AAAkBC,IAAAA,QAAQ,EAAE,EAA5B;AAAgCC,IAAAA,OAAO,EAAE;AAAzC,GAZK;AAabC,EAAAA,WAAW,EAAE,CAbA;AAcbC,EAAAA,0BAA0B,EAAE,IAdf;AAebC,EAAAA,mBAAmB,EAAE,EAfR;AAgBbC,EAAAA,0BAA0B,EAAE,IAhBf;AAiBbC,EAAAA,qBAAqB,EAAE;AAjBV,C","sourcesContent":["export default {\n dimensions: { height: 0, width: 0 },\n hotspotColor: 'rgba(137, 183, 244, 0.25)',\n hotspotList: ['rgba(137, 183, 244, 0.25)'],\n imageUrl: '',\n multipleCorrect: true,\n outlineColor: 'blue',\n outlineList: ['blue'],\n partialScoring: false,\n prompt: '',\n promptEnabled: true,\n rationaleEnabled: true,\n shapes: { rectangles: [], polygons: [], circles: [] },\n strokeWidth: 5,\n studentInstructionsEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n};\n"],"file":"defaults.js"}
1
+ {"version":3,"file":"defaults.js","names":["dimensions","height","width","hotspotColor","hotspotList","imageUrl","multipleCorrect","outlineColor","outlineList","partialScoring","prompt","promptEnabled","rationaleEnabled","shapes","rectangles","polygons","circles","strokeWidth","studentInstructionsEnabled","teacherInstructions","teacherInstructionsEnabled","toolbarEditorPosition"],"sources":["../src/defaults.js"],"sourcesContent":["export default {\n dimensions: { height: 0, width: 0 },\n hotspotColor: 'rgba(137, 183, 244, 0.25)',\n hotspotList: ['rgba(137, 183, 244, 0.25)'],\n imageUrl: '',\n multipleCorrect: true,\n outlineColor: 'blue',\n outlineList: ['blue'],\n partialScoring: false,\n prompt: '',\n promptEnabled: true,\n rationaleEnabled: true,\n shapes: { rectangles: [], polygons: [], circles: [] },\n strokeWidth: 5,\n studentInstructionsEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n};\n"],"mappings":";;;;;;iCAAe;EACbA,UAAU,EAAE;IAAEC,MAAM,EAAE,CAAC;IAAEC,KAAK,EAAE;EAAE,CAAC;EACnCC,YAAY,EAAE,2BAA2B;EACzCC,WAAW,EAAE,CAAC,2BAA2B,CAAC;EAC1CC,QAAQ,EAAE,EAAE;EACZC,eAAe,EAAE,IAAI;EACrBC,YAAY,EAAE,MAAM;EACpBC,WAAW,EAAE,CAAC,MAAM,CAAC;EACrBC,cAAc,EAAE,KAAK;EACrBC,MAAM,EAAE,EAAE;EACVC,aAAa,EAAE,IAAI;EACnBC,gBAAgB,EAAE,IAAI;EACtBC,MAAM,EAAE;IAAEC,UAAU,EAAE,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,OAAO,EAAE;EAAG,CAAC;EACrDC,WAAW,EAAE,CAAC;EACdC,0BAA0B,EAAE,IAAI;EAChCC,mBAAmB,EAAE,EAAE;EACvBC,0BAA0B,EAAE,IAAI;EAChCC,qBAAqB,EAAE;AACzB,CAAC","ignoreList":[]}