@khanacademy/perseus 19.1.4 → 19.1.6

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 (487) hide show
  1. package/dist/components/graphie.d.ts +9 -1
  2. package/dist/es/index.js +255 -122
  3. package/dist/es/index.js.map +1 -1
  4. package/dist/index.js +261 -126
  5. package/dist/index.js.map +1 -1
  6. package/dist/interactive2/interactive-util.d.ts +1 -1
  7. package/dist/interactive2/movable-point-options.d.ts +5 -4
  8. package/dist/interactive2/movable.d.ts +90 -13
  9. package/dist/interactive2/types.d.ts +6 -0
  10. package/dist/util/graphie.d.ts +5 -0
  11. package/dist/widgets/expression.d.ts +4 -4
  12. package/package.json +11 -8
  13. package/.babelrc.js +0 -8
  14. package/.eslintrc.js +0 -12
  15. package/CHANGELOG.md +0 -1422
  16. package/src/__stories__/article-renderer.stories.tsx +0 -100
  17. package/src/__stories__/hints-renderer.stories.tsx +0 -55
  18. package/src/__stories__/server-item-renderer.stories.tsx +0 -44
  19. package/src/__testdata__/article-renderer.testdata.ts +0 -212
  20. package/src/__testdata__/graphie.testdata.ts +0 -51
  21. package/src/__testdata__/renderer.testdata.ts +0 -274
  22. package/src/__testdata__/server-item-renderer.testdata.ts +0 -171
  23. package/src/__tests__/__snapshots__/perseus-markdown.test.ts.snap +0 -507
  24. package/src/__tests__/__snapshots__/renderer.test.tsx.snap +0 -525
  25. package/src/__tests__/__snapshots__/server-item-renderer.test.tsx.snap +0 -285
  26. package/src/__tests__/a11y.test.ts +0 -303
  27. package/src/__tests__/article-renderer.test.tsx +0 -130
  28. package/src/__tests__/error-boundary.test.tsx +0 -76
  29. package/src/__tests__/extract-perseus-data.test.ts +0 -1027
  30. package/src/__tests__/init.test.ts +0 -10
  31. package/src/__tests__/jipt-paragraphs.test.ts +0 -32
  32. package/src/__tests__/mock-asset-loading-widget.tsx +0 -53
  33. package/src/__tests__/mock-widget.tsx +0 -33
  34. package/src/__tests__/perseus-markdown.test.ts +0 -764
  35. package/src/__tests__/renderability.test.ts +0 -480
  36. package/src/__tests__/renderer-api.test.tsx +0 -302
  37. package/src/__tests__/renderer.test.tsx +0 -1816
  38. package/src/__tests__/server-item-renderer.test.tsx +0 -582
  39. package/src/__tests__/test-items/image-item.ts +0 -24
  40. package/src/__tests__/test-items/input-number-1-item.ts +0 -26
  41. package/src/__tests__/test-items/input-number-2-item.ts +0 -38
  42. package/src/__tests__/test-items/table-item.ts +0 -29
  43. package/src/__tests__/tex-wrangler.test.ts +0 -82
  44. package/src/__tests__/util.test.ts +0 -40
  45. package/src/__tests__/widget-container.test.tsx +0 -126
  46. package/src/__tests__/widgets.test.ts +0 -91
  47. package/src/a11y.ts +0 -45
  48. package/src/all-widgets.ts +0 -9
  49. package/src/article-renderer.tsx +0 -237
  50. package/src/asset-context.ts +0 -30
  51. package/src/basic-widgets.ts +0 -16
  52. package/src/components/__stories__/button-group.stories.tsx +0 -55
  53. package/src/components/__stories__/fixed-to-responsive.stories.tsx +0 -141
  54. package/src/components/__stories__/graph.stories.tsx +0 -28
  55. package/src/components/__stories__/graphie.stories.tsx +0 -33
  56. package/src/components/__stories__/hud.stories.tsx +0 -35
  57. package/src/components/__stories__/icon.stories.tsx +0 -63
  58. package/src/components/__stories__/image-loader.stories.tsx +0 -63
  59. package/src/components/__stories__/info-tip.stories.tsx +0 -31
  60. package/src/components/__stories__/inline-icon.stories.tsx +0 -40
  61. package/src/components/__stories__/input-with-examples.stories.tsx +0 -53
  62. package/src/components/__stories__/lint.stories.tsx +0 -86
  63. package/src/components/__stories__/math-input.stories.tsx +0 -43
  64. package/src/components/__stories__/math-output.stories.tsx +0 -23
  65. package/src/components/__stories__/multi-button-group.stories.tsx +0 -66
  66. package/src/components/__stories__/number-input.stories.tsx +0 -41
  67. package/src/components/__stories__/prop-check-box.stories.tsx +0 -65
  68. package/src/components/__stories__/range-input.stories.tsx +0 -29
  69. package/src/components/__stories__/simple-keypad-input.stories.tsx +0 -27
  70. package/src/components/__stories__/sortable.stories.tsx +0 -77
  71. package/src/components/__stories__/stub-tag-editor.stories.tsx +0 -45
  72. package/src/components/__stories__/svg-image.stories.tsx +0 -74
  73. package/src/components/__stories__/tex.stories.tsx +0 -23
  74. package/src/components/__stories__/text-input.stories.tsx +0 -33
  75. package/src/components/__stories__/text-list-editor.stories.tsx +0 -32
  76. package/src/components/__stories__/tooltip.stories.tsx +0 -52
  77. package/src/components/__stories__/zoomable-tex.stories.tsx +0 -41
  78. package/src/components/__stories__/zoomable.stories.tsx +0 -49
  79. package/src/components/__testdata__/sorter.testdata.ts +0 -19
  80. package/src/components/__tests__/__snapshots__/sortable.test.tsx.snap +0 -163
  81. package/src/components/__tests__/__snapshots__/sorter.test.tsx.snap +0 -265
  82. package/src/components/__tests__/math-input.test.tsx +0 -147
  83. package/src/components/__tests__/number-input.test.tsx +0 -128
  84. package/src/components/__tests__/sortable.test.tsx +0 -269
  85. package/src/components/__tests__/sorter.test.tsx +0 -114
  86. package/src/components/__tests__/zoomable.test.tsx +0 -399
  87. package/src/components/button-group.tsx +0 -130
  88. package/src/components/constants.ts +0 -14
  89. package/src/components/fixed-to-responsive.tsx +0 -169
  90. package/src/components/graph.tsx +0 -444
  91. package/src/components/graphie-classes.ts +0 -153
  92. package/src/components/graphie-movables.ts +0 -338
  93. package/src/components/graphie.tsx +0 -392
  94. package/src/components/highlighting/highlightable-content.tsx +0 -240
  95. package/src/components/highlighting/highlights.ts +0 -207
  96. package/src/components/highlighting/ranges.ts +0 -304
  97. package/src/components/highlighting/types.ts +0 -73
  98. package/src/components/highlighting/ui/highlight-renderer.tsx +0 -172
  99. package/src/components/highlighting/ui/highlight-set-renderer.tsx +0 -185
  100. package/src/components/highlighting/ui/highlight-tooltip.tsx +0 -141
  101. package/src/components/highlighting/ui/highlighting-ui.tsx +0 -143
  102. package/src/components/highlighting/ui/selection-tracker.tsx +0 -186
  103. package/src/components/highlighting/ui/types.ts +0 -21
  104. package/src/components/highlighting/ui/util.ts +0 -165
  105. package/src/components/highlighting/word-indexer.tsx +0 -152
  106. package/src/components/hud.tsx +0 -167
  107. package/src/components/icon.tsx +0 -141
  108. package/src/components/image-loader.tsx +0 -177
  109. package/src/components/info-tip/info-tip.tsx +0 -144
  110. package/src/components/info-tip.tsx +0 -39
  111. package/src/components/inline-icon.tsx +0 -60
  112. package/src/components/input-with-examples.tsx +0 -249
  113. package/src/components/lint.tsx +0 -459
  114. package/src/components/math-input.tsx +0 -474
  115. package/src/components/math-output.tsx +0 -134
  116. package/src/components/multi-button-group.tsx +0 -135
  117. package/src/components/number-input.tsx +0 -249
  118. package/src/components/prop-check-box.tsx +0 -79
  119. package/src/components/range-input.tsx +0 -60
  120. package/src/components/simple-keypad-input.tsx +0 -88
  121. package/src/components/sortable.tsx +0 -958
  122. package/src/components/stub-tag-editor.tsx +0 -53
  123. package/src/components/svg-image.tsx +0 -779
  124. package/src/components/tex.tsx +0 -67
  125. package/src/components/text-input.tsx +0 -129
  126. package/src/components/text-list-editor.tsx +0 -166
  127. package/src/components/tooltip.tsx +0 -410
  128. package/src/components/visibility-observer/__stories__/visibility-observer.stories.tsx +0 -141
  129. package/src/components/visibility-observer/create-visibility-observer.ts +0 -108
  130. package/src/components/visibility-observer/get-scroll-parent.ts +0 -46
  131. package/src/components/visibility-observer/visibility-observer.tsx +0 -124
  132. package/src/components/zoomable-tex.tsx +0 -78
  133. package/src/components/zoomable.tsx +0 -304
  134. package/src/components.ts +0 -15
  135. package/src/definition-context.tsx +0 -59
  136. package/src/dependencies.ts +0 -40
  137. package/src/error-boundary.tsx +0 -70
  138. package/src/extra-widgets.ts +0 -75
  139. package/src/hint-renderer.tsx +0 -151
  140. package/src/hints-renderer.tsx +0 -372
  141. package/src/icon-paths.ts +0 -119
  142. package/src/index.ts +0 -171
  143. package/src/init.ts +0 -56
  144. package/src/interaction-tracker.ts +0 -62
  145. package/src/interactive2/__tests__/movable-mock.ts +0 -43
  146. package/src/interactive2/__tests__/movable-point.test.ts +0 -144
  147. package/src/interactive2/__tests__/movable.test.ts +0 -157
  148. package/src/interactive2/interactive-util.test.ts +0 -93
  149. package/src/interactive2/interactive-util.ts +0 -159
  150. package/src/interactive2/movable-helper-methods.ts +0 -166
  151. package/src/interactive2/movable-line-options.ts +0 -419
  152. package/src/interactive2/movable-line.ts +0 -307
  153. package/src/interactive2/movable-point-options.ts +0 -212
  154. package/src/interactive2/movable-point.tsx +0 -585
  155. package/src/interactive2/movable-polygon-options.ts +0 -389
  156. package/src/interactive2/movable-polygon.ts +0 -360
  157. package/src/interactive2/movable.ts +0 -279
  158. package/src/interactive2/objective_.ts +0 -79
  159. package/src/interactive2/types.ts +0 -2
  160. package/src/interactive2/wrapped-defaults.ts +0 -87
  161. package/src/interactive2/wrapped-ellipse.ts +0 -94
  162. package/src/interactive2/wrapped-line.ts +0 -116
  163. package/src/interactive2/wrapped-path.ts +0 -51
  164. package/src/interactive2.ts +0 -70
  165. package/src/item-version.ts +0 -10
  166. package/src/jipt-paragraphs.ts +0 -49
  167. package/src/jquery.mobile.vmouse.js +0 -545
  168. package/src/loading-context.ts +0 -21
  169. package/src/logging/log.test.ts +0 -39
  170. package/src/logging/log.ts +0 -97
  171. package/src/mixins/__tests__/widget-prop-denylist.test.ts +0 -21
  172. package/src/mixins/changeable.ts +0 -133
  173. package/src/mixins/editor-jsonify.ts +0 -13
  174. package/src/mixins/widget-jsonify-deprecated.ts +0 -23
  175. package/src/mixins/widget-prop-denylist.ts +0 -48
  176. package/src/multi-items/__stories__/multi-renderer.stories.tsx +0 -83
  177. package/src/multi-items/__testdata__/multi-renderer.testdata.ts +0 -172
  178. package/src/multi-items/__tests__/__snapshots__/multi-renderer.test.tsx.snap +0 -1164
  179. package/src/multi-items/__tests__/items.test.ts +0 -240
  180. package/src/multi-items/__tests__/multi-renderer.test.tsx +0 -914
  181. package/src/multi-items/__tests__/prop-type-builders.test.ts +0 -133
  182. package/src/multi-items/__tests__/shapes.test.ts +0 -43
  183. package/src/multi-items/__tests__/trees.test.ts +0 -317
  184. package/src/multi-items/item-types.ts +0 -56
  185. package/src/multi-items/items.ts +0 -176
  186. package/src/multi-items/multi-renderer.tsx +0 -569
  187. package/src/multi-items/prop-type-builders.ts +0 -106
  188. package/src/multi-items/shape-types.ts +0 -52
  189. package/src/multi-items/shapes.ts +0 -52
  190. package/src/multi-items/tree-types.ts +0 -47
  191. package/src/multi-items/trees.ts +0 -360
  192. package/src/multi-items.ts +0 -75
  193. package/src/perseus-api.tsx +0 -188
  194. package/src/perseus-env.ts +0 -27
  195. package/src/perseus-error.ts +0 -17
  196. package/src/perseus-markdown.tsx +0 -405
  197. package/src/perseus-types.ts +0 -1366
  198. package/src/perseus-version.ts +0 -9
  199. package/src/question-paragraph.tsx +0 -34
  200. package/src/renderability.ts +0 -109
  201. package/src/renderer.tsx +0 -2000
  202. package/src/server-item-renderer.tsx +0 -495
  203. package/src/sigfigs.ts +0 -490
  204. package/src/styles/articles.less +0 -749
  205. package/src/styles/constants.ts +0 -94
  206. package/src/styles/global-constants.ts +0 -343
  207. package/src/styles/global-styles.ts +0 -306
  208. package/src/styles/khan-exercise.css +0 -1468
  209. package/src/styles/media-queries.ts +0 -47
  210. package/src/styles/perseus-renderer.less +0 -732
  211. package/src/styles/shared.ts +0 -130
  212. package/src/styles/util.less +0 -47
  213. package/src/styles/variables.boostrap.less +0 -277
  214. package/src/styles/variables.less +0 -56
  215. package/src/styles/variables.shared.less +0 -340
  216. package/src/styles/widgets/categorizer.less +0 -38
  217. package/src/styles/widgets/dropdown.less +0 -3
  218. package/src/styles/widgets/expression.less +0 -65
  219. package/src/styles/widgets/graded-group.less +0 -36
  220. package/src/styles/widgets/grapher.less +0 -12
  221. package/src/styles/widgets/group.less +0 -19
  222. package/src/styles/widgets/image.less +0 -54
  223. package/src/styles/widgets/interactive-graph.less +0 -64
  224. package/src/styles/widgets/label-image.less +0 -57
  225. package/src/styles/widgets/matcher.less +0 -8
  226. package/src/styles/widgets/matrix.less +0 -126
  227. package/src/styles/widgets/measurer.less +0 -20
  228. package/src/styles/widgets/orderer.less +0 -98
  229. package/src/styles/widgets/passage.less +0 -154
  230. package/src/styles/widgets/plotter.less +0 -31
  231. package/src/styles/widgets/radio.less +0 -58
  232. package/src/styles/widgets/reaction-diagram.less +0 -35
  233. package/src/styles/widgets/sequence.less +0 -5
  234. package/src/styles/widgets/sortable.less +0 -113
  235. package/src/styles/widgets/table.less +0 -57
  236. package/src/styles/widgets/unit.less +0 -15
  237. package/src/tex-wrangler.ts +0 -182
  238. package/src/translation-linter.ts +0 -126
  239. package/src/traversal.ts +0 -138
  240. package/src/types.ts +0 -513
  241. package/src/util/a11y.ts +0 -23
  242. package/src/util/answer-types.test.ts +0 -114
  243. package/src/util/answer-types.ts +0 -876
  244. package/src/util/colors.ts +0 -93
  245. package/src/util/drawing-transform.test.ts +0 -67
  246. package/src/util/drawing-transform.ts +0 -102
  247. package/src/util/extract-perseus-data.ts +0 -539
  248. package/src/util/fix-passage-refs.ts +0 -121
  249. package/src/util/geometry.test.ts +0 -75
  250. package/src/util/geometry.ts +0 -312
  251. package/src/util/graph-bounds.ts +0 -23
  252. package/src/util/graph-utils.ts +0 -15
  253. package/src/util/graphie.test.ts +0 -1277
  254. package/src/util/graphie.ts +0 -1566
  255. package/src/util/interactive.ts +0 -4172
  256. package/src/util/interval.ts +0 -4
  257. package/src/util/katex-preprocess.ts +0 -14
  258. package/src/util/math.test.ts +0 -11
  259. package/src/util/math.ts +0 -294
  260. package/src/util/mobile-native-utils.test.ts +0 -22
  261. package/src/util/mobile-native-utils.ts +0 -12
  262. package/src/util/parse-perseus-json.test.ts +0 -10
  263. package/src/util/parse-perseus-json.ts +0 -13
  264. package/src/util/react-render.tsx +0 -27
  265. package/src/util/register-all-widgets-for-testing.ts +0 -13
  266. package/src/util/scroll-utils.ts +0 -155
  267. package/src/util/sizing-utils.ts +0 -46
  268. package/src/util/tex.ts +0 -73
  269. package/src/util/url-utils.ts +0 -34
  270. package/src/util.graphie.test.ts +0 -45
  271. package/src/util.graphie.ts +0 -59
  272. package/src/util.ts +0 -966
  273. package/src/version.ts +0 -10
  274. package/src/widget-container.tsx +0 -199
  275. package/src/widgets/__stories__/categorizer.stories.tsx +0 -14
  276. package/src/widgets/__stories__/cs-program.stories.tsx +0 -14
  277. package/src/widgets/__stories__/definition.stories.tsx +0 -114
  278. package/src/widgets/__stories__/dropdown.stories.tsx +0 -14
  279. package/src/widgets/__stories__/explanation.stories.tsx +0 -18
  280. package/src/widgets/__stories__/expression.stories.tsx +0 -145
  281. package/src/widgets/__stories__/graded-group-set.stories.tsx +0 -31
  282. package/src/widgets/__stories__/graded-group.stories.tsx +0 -31
  283. package/src/widgets/__stories__/grapher.stories.tsx +0 -46
  284. package/src/widgets/__stories__/group.stories.tsx +0 -14
  285. package/src/widgets/__stories__/iframe.stories.tsx +0 -14
  286. package/src/widgets/__stories__/image.stories.tsx +0 -85
  287. package/src/widgets/__stories__/input-number.stories.tsx +0 -101
  288. package/src/widgets/__stories__/interaction.stories.tsx +0 -14
  289. package/src/widgets/__stories__/interactive-graph.stories.tsx +0 -60
  290. package/src/widgets/__stories__/label-image.stories.tsx +0 -130
  291. package/src/widgets/__stories__/matcher.stories.tsx +0 -14
  292. package/src/widgets/__stories__/matrix.stories.tsx +0 -14
  293. package/src/widgets/__stories__/number-line.stories.tsx +0 -14
  294. package/src/widgets/__stories__/numeric-input.stories.tsx +0 -105
  295. package/src/widgets/__stories__/orderer.stories.tsx +0 -18
  296. package/src/widgets/__stories__/passage-ref.stories.tsx +0 -33
  297. package/src/widgets/__stories__/passage.stories.tsx +0 -39
  298. package/src/widgets/__stories__/plotter.stories.tsx +0 -27
  299. package/src/widgets/__stories__/radio.stories.tsx +0 -86
  300. package/src/widgets/__stories__/random-widgets.stories.tsx +0 -59
  301. package/src/widgets/__stories__/sorter.stories.tsx +0 -14
  302. package/src/widgets/__stories__/test-keypad-context-wrapper.tsx +0 -66
  303. package/src/widgets/__stories__/unit.stories.tsx +0 -28
  304. package/src/widgets/__stories__/video-transcript-link.stories.tsx +0 -23
  305. package/src/widgets/__stories__/video.stories.tsx +0 -22
  306. package/src/widgets/__testdata__/base-radio.testdata.ts +0 -21
  307. package/src/widgets/__testdata__/categorizer.testdata.ts +0 -89
  308. package/src/widgets/__testdata__/cs-program.testdata.ts +0 -27
  309. package/src/widgets/__testdata__/dropdown.testdata.ts +0 -71
  310. package/src/widgets/__testdata__/explanation.testdata.ts +0 -85
  311. package/src/widgets/__testdata__/expression.testdata.ts +0 -198
  312. package/src/widgets/__testdata__/graded-group-set.testdata.ts +0 -356
  313. package/src/widgets/__testdata__/graded-group.testdata.ts +0 -77
  314. package/src/widgets/__testdata__/grapher.testdata.ts +0 -374
  315. package/src/widgets/__testdata__/group.testdata.ts +0 -153
  316. package/src/widgets/__testdata__/iframe.testdata.ts +0 -35
  317. package/src/widgets/__testdata__/image.testdata.ts +0 -36
  318. package/src/widgets/__testdata__/input-number.testdata.ts +0 -72
  319. package/src/widgets/__testdata__/interaction.testdata.ts +0 -262
  320. package/src/widgets/__testdata__/interactive-graph-random.testdata.ts +0 -269
  321. package/src/widgets/__testdata__/interactive-graph.testdata.ts +0 -644
  322. package/src/widgets/__testdata__/label-image.testdata.ts +0 -308
  323. package/src/widgets/__testdata__/matcher.testdata.ts +0 -33
  324. package/src/widgets/__testdata__/matrix.testdata.ts +0 -28
  325. package/src/widgets/__testdata__/number-line.testdata.ts +0 -30
  326. package/src/widgets/__testdata__/numeric-input.testdata.ts +0 -265
  327. package/src/widgets/__testdata__/orderer.testdata.ts +0 -123
  328. package/src/widgets/__testdata__/passage-ref.testdata.ts +0 -101
  329. package/src/widgets/__testdata__/passage.testdata.ts +0 -95
  330. package/src/widgets/__testdata__/plotter.testdata.ts +0 -36
  331. package/src/widgets/__testdata__/radio.testdata.ts +0 -324
  332. package/src/widgets/__testdata__/randomizers.ts +0 -51
  333. package/src/widgets/__testdata__/sorter.testdata.ts +0 -19
  334. package/src/widgets/__testdata__/video.testdata.ts +0 -61
  335. package/src/widgets/__tests__/__snapshots__/categorizer.test.ts.snap +0 -940
  336. package/src/widgets/__tests__/__snapshots__/cs-program.test.ts.snap +0 -67
  337. package/src/widgets/__tests__/__snapshots__/definition.test.ts.snap +0 -97
  338. package/src/widgets/__tests__/__snapshots__/dropdown.test.ts.snap +0 -133
  339. package/src/widgets/__tests__/__snapshots__/explanation.test.ts.snap +0 -425
  340. package/src/widgets/__tests__/__snapshots__/graded-group-set-jipt.test.ts.snap +0 -729
  341. package/src/widgets/__tests__/__snapshots__/graded-group-set.test.ts.snap +0 -339
  342. package/src/widgets/__tests__/__snapshots__/graded-group.test.ts.snap +0 -801
  343. package/src/widgets/__tests__/__snapshots__/grapher.test.ts.snap +0 -2673
  344. package/src/widgets/__tests__/__snapshots__/group.test.tsx.snap +0 -1211
  345. package/src/widgets/__tests__/__snapshots__/iframe.test.ts.snap +0 -61
  346. package/src/widgets/__tests__/__snapshots__/image.test.ts.snap +0 -378
  347. package/src/widgets/__tests__/__snapshots__/input-number.test.ts.snap +0 -495
  348. package/src/widgets/__tests__/__snapshots__/interaction.test.ts.snap +0 -292
  349. package/src/widgets/__tests__/__snapshots__/interactive-graph.test.ts.snap +0 -2889
  350. package/src/widgets/__tests__/__snapshots__/matcher.test.tsx.snap +0 -883
  351. package/src/widgets/__tests__/__snapshots__/matrix.test.ts.snap +0 -514
  352. package/src/widgets/__tests__/__snapshots__/number-line.test.ts.snap +0 -814
  353. package/src/widgets/__tests__/__snapshots__/numeric-input.test.ts.snap +0 -470
  354. package/src/widgets/__tests__/__snapshots__/orderer.test.ts.snap +0 -243
  355. package/src/widgets/__tests__/__snapshots__/passage-ref.test.ts.snap +0 -434
  356. package/src/widgets/__tests__/__snapshots__/passage.test.tsx.snap +0 -1956
  357. package/src/widgets/__tests__/__snapshots__/plotter.test.tsx.snap +0 -827
  358. package/src/widgets/__tests__/__snapshots__/radio.test.ts.snap +0 -4237
  359. package/src/widgets/__tests__/__snapshots__/unit.test.tsx.snap +0 -20
  360. package/src/widgets/__tests__/__snapshots__/video.test.ts.snap +0 -153
  361. package/src/widgets/__tests__/categorizer.test.ts +0 -203
  362. package/src/widgets/__tests__/cs-program.test.ts +0 -43
  363. package/src/widgets/__tests__/definition.test.ts +0 -136
  364. package/src/widgets/__tests__/dropdown.test.ts +0 -105
  365. package/src/widgets/__tests__/explanation.test.ts +0 -198
  366. package/src/widgets/__tests__/expression-mobile.test.tsx +0 -363
  367. package/src/widgets/__tests__/expression.test.tsx +0 -484
  368. package/src/widgets/__tests__/graded-group-set-jipt.test.ts +0 -30
  369. package/src/widgets/__tests__/graded-group-set.test.ts +0 -288
  370. package/src/widgets/__tests__/graded-group.test.ts +0 -232
  371. package/src/widgets/__tests__/grapher.cypress.ts +0 -576
  372. package/src/widgets/__tests__/grapher.test.ts +0 -33
  373. package/src/widgets/__tests__/group.test.tsx +0 -510
  374. package/src/widgets/__tests__/iframe.test.ts +0 -45
  375. package/src/widgets/__tests__/image.test.ts +0 -62
  376. package/src/widgets/__tests__/input-number.test.ts +0 -354
  377. package/src/widgets/__tests__/interaction.test.ts +0 -31
  378. package/src/widgets/__tests__/interactive-graph.cypress.ts +0 -815
  379. package/src/widgets/__tests__/interactive-graph.test.ts +0 -106
  380. package/src/widgets/__tests__/matcher.test.tsx +0 -176
  381. package/src/widgets/__tests__/matrix.test.ts +0 -82
  382. package/src/widgets/__tests__/number-line.test.ts +0 -79
  383. package/src/widgets/__tests__/numeric-input.test.ts +0 -575
  384. package/src/widgets/__tests__/orderer.test.ts +0 -73
  385. package/src/widgets/__tests__/passage-ref.test.ts +0 -168
  386. package/src/widgets/__tests__/passage.test.tsx +0 -224
  387. package/src/widgets/__tests__/plotter.test.tsx +0 -69
  388. package/src/widgets/__tests__/radio/base-radio.test.tsx +0 -470
  389. package/src/widgets/__tests__/radio/choice-icon.test.tsx +0 -90
  390. package/src/widgets/__tests__/radio/choice.test.tsx +0 -310
  391. package/src/widgets/__tests__/radio/focus-ring.test.tsx +0 -22
  392. package/src/widgets/__tests__/radio/option-status.test.tsx +0 -77
  393. package/src/widgets/__tests__/radio.test.ts +0 -807
  394. package/src/widgets/__tests__/randomizers.test.ts +0 -53
  395. package/src/widgets/__tests__/renderQuestion.tsx +0 -101
  396. package/src/widgets/__tests__/unit.test.tsx +0 -168
  397. package/src/widgets/__tests__/video.test.ts +0 -69
  398. package/src/widgets/categorizer.tsx +0 -344
  399. package/src/widgets/cs-program.tsx +0 -227
  400. package/src/widgets/definition.tsx +0 -121
  401. package/src/widgets/deprecated-standin/__stories__/deprecated-standin.stories.tsx +0 -30
  402. package/src/widgets/deprecated-standin/__tests__/__snapshots__/deprecated-standin.test.ts.snap +0 -70
  403. package/src/widgets/deprecated-standin/__tests__/deprecated-standin.test.ts +0 -93
  404. package/src/widgets/deprecated-standin/index.tsx +0 -58
  405. package/src/widgets/dropdown.tsx +0 -142
  406. package/src/widgets/explanation.tsx +0 -317
  407. package/src/widgets/expression.tsx +0 -707
  408. package/src/widgets/graded-group-answer-bar.tsx +0 -142
  409. package/src/widgets/graded-group-set.tsx +0 -338
  410. package/src/widgets/graded-group.tsx +0 -471
  411. package/src/widgets/grapher/util.tsx +0 -799
  412. package/src/widgets/grapher.tsx +0 -660
  413. package/src/widgets/group.tsx +0 -195
  414. package/src/widgets/iframe.tsx +0 -195
  415. package/src/widgets/image.tsx +0 -312
  416. package/src/widgets/input-number.tsx +0 -412
  417. package/src/widgets/interaction/arrow-picker.tsx +0 -38
  418. package/src/widgets/interaction/color-picker.tsx +0 -69
  419. package/src/widgets/interaction/dash-picker.tsx +0 -45
  420. package/src/widgets/interaction/element-container.tsx +0 -100
  421. package/src/widgets/interaction.tsx +0 -826
  422. package/src/widgets/interactive-graph.tsx +0 -2597
  423. package/src/widgets/label-image/__stories__/answer-choices.stories.tsx +0 -91
  424. package/src/widgets/label-image/__stories__/answer-pill.stories.tsx +0 -62
  425. package/src/widgets/label-image/__stories__/marker.stories.tsx +0 -171
  426. package/src/widgets/label-image/__tests__/answer-pill.test.tsx +0 -75
  427. package/src/widgets/label-image/__tests__/hide-answers-toggle.test.tsx +0 -39
  428. package/src/widgets/label-image/answer-choices.tsx +0 -88
  429. package/src/widgets/label-image/answer-pill.tsx +0 -103
  430. package/src/widgets/label-image/hide-answers-toggle.tsx +0 -40
  431. package/src/widgets/label-image/marker.tsx +0 -268
  432. package/src/widgets/label-image/strings.ts +0 -5
  433. package/src/widgets/label-image/types.ts +0 -27
  434. package/src/widgets/label-image.test.ts +0 -928
  435. package/src/widgets/label-image.tsx +0 -819
  436. package/src/widgets/lights-puzzle.tsx +0 -359
  437. package/src/widgets/matcher.tsx +0 -298
  438. package/src/widgets/matrix.tsx +0 -634
  439. package/src/widgets/measurer.tsx +0 -222
  440. package/src/widgets/molecule/__tests__/layout.test.ts +0 -162
  441. package/src/widgets/molecule/__tests__/parser.test.ts +0 -155
  442. package/src/widgets/molecule/molecule-drawing.ts +0 -173
  443. package/src/widgets/molecule/molecule-layout.ts +0 -362
  444. package/src/widgets/molecule/smiles-parser.ts +0 -296
  445. package/src/widgets/molecule.tsx +0 -172
  446. package/src/widgets/number-line.tsx +0 -862
  447. package/src/widgets/numeric-input.tsx +0 -576
  448. package/src/widgets/orderer.tsx +0 -786
  449. package/src/widgets/passage/__tests__/passage-markdown.test.ts +0 -376
  450. package/src/widgets/passage/passage-markdown.tsx +0 -475
  451. package/src/widgets/passage-ref-target.tsx +0 -76
  452. package/src/widgets/passage-ref.tsx +0 -213
  453. package/src/widgets/passage.tsx +0 -582
  454. package/src/widgets/plotter.tsx +0 -1194
  455. package/src/widgets/radio/__stories__/base-radio.stories.tsx +0 -196
  456. package/src/widgets/radio/__stories__/choice-icon.stories.tsx +0 -166
  457. package/src/widgets/radio/__stories__/choice-none-above.stories.tsx +0 -40
  458. package/src/widgets/radio/__stories__/choice.stories.tsx +0 -137
  459. package/src/widgets/radio/__stories__/focus-ring.stories.tsx +0 -43
  460. package/src/widgets/radio/__stories__/option-status.stories.tsx +0 -103
  461. package/src/widgets/radio/base-radio.tsx +0 -511
  462. package/src/widgets/radio/choice-a11y-text.ts +0 -61
  463. package/src/widgets/radio/choice-icon/choice-icon.tsx +0 -218
  464. package/src/widgets/radio/choice-icon/cross-out-line.tsx +0 -51
  465. package/src/widgets/radio/choice-icon/shared-styles.ts +0 -15
  466. package/src/widgets/radio/choice-none-above.tsx +0 -56
  467. package/src/widgets/radio/choice.jsx.fixture.ts +0 -45
  468. package/src/widgets/radio/choice.tsx +0 -359
  469. package/src/widgets/radio/focus-ring.tsx +0 -57
  470. package/src/widgets/radio/option-status.tsx +0 -98
  471. package/src/widgets/radio/util.test.ts +0 -18
  472. package/src/widgets/radio/util.ts +0 -31
  473. package/src/widgets/radio/widget.tsx +0 -520
  474. package/src/widgets/radio.ts +0 -157
  475. package/src/widgets/reaction-diagram.tsx +0 -144
  476. package/src/widgets/sequence.tsx +0 -142
  477. package/src/widgets/simulator.tsx +0 -829
  478. package/src/widgets/sorter.tsx +0 -155
  479. package/src/widgets/table.tsx +0 -393
  480. package/src/widgets/unit.tsx +0 -374
  481. package/src/widgets/video-transcript-link.test.tsx +0 -213
  482. package/src/widgets/video-transcript-link.tsx +0 -84
  483. package/src/widgets/video.tsx +0 -135
  484. package/src/widgets.ts +0 -489
  485. package/src/zoom.ts +0 -555
  486. package/tsconfig-build.json +0 -26
  487. package/tsconfig-build.tsbuildinfo +0 -1
@@ -1,2889 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`interactive-graph widget question Shoud render predictably: after interaction 1`] = `
4
- <div>
5
- <div
6
- class="perseus-renderer perseus-renderer-responsive"
7
- >
8
- <div
9
- class="paragraph"
10
- data-perseus-paragraph-index="0"
11
- >
12
- <div
13
- class="paragraph"
14
- >
15
- <strong>
16
- Drag the vertices of the triangle below to draw a right triangle with side lengths
17
- <span
18
- style="white-space: nowrap;"
19
- >
20
- <span />
21
- <span
22
- class="mock-TeX"
23
- >
24
- 3
25
- </span>
26
- <span />
27
- </span>
28
- ,
29
- <span
30
- style="white-space: nowrap;"
31
- >
32
- <span />
33
- <span
34
- class="mock-TeX"
35
- >
36
- 4
37
- </span>
38
- <span />
39
- </span>
40
- , and
41
- <span
42
- style="white-space: nowrap;"
43
- >
44
- <span />
45
- <span
46
- class="mock-TeX"
47
- >
48
- 5
49
- </span>
50
- <span />
51
- </span>
52
- .
53
- </strong>
54
-
55
-
56
- <div
57
- class="perseus-widget-container widget-nohighlight widget-block"
58
- >
59
- <div
60
- class="perseus-widget perseus-widget-interactive-graph"
61
- style="width: 400px; height: 400px;"
62
- >
63
- <div
64
- class="graphie-container above-scratchpad"
65
- style="width: 400px; height: 400px;"
66
- >
67
- <div
68
- class="graphie"
69
- style="position: relative; width: 400px; height: 400px;"
70
- >
71
- <svg
72
- height="400"
73
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
74
- version="1.1"
75
- width="400"
76
- xmlns="http://www.w3.org/2000/svg"
77
- >
78
- <desc
79
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
80
- >
81
- Created with Raphaël
82
- </desc>
83
- <defs
84
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
85
- />
86
- <path
87
- d="M371.42857142857144,228.57142857142858L142.85714285714286,57.142857142857146L142.85714285714286,228.57142857142858Z"
88
- fill="#000000"
89
- opacity="0"
90
- stroke="#000000"
91
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
92
- />
93
- </svg>
94
- <svg
95
- height="400"
96
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
97
- version="1.1"
98
- width="400"
99
- xmlns="http://www.w3.org/2000/svg"
100
- >
101
- <desc
102
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
103
- >
104
- Created with Raphaël
105
- </desc>
106
- <defs
107
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
108
- />
109
- <path
110
- d="M371.42857142857144,228.57142857142858L142.85714285714286,57.142857142857146L142.85714285714286,228.57142857142858Z"
111
- fill="#71b307"
112
- fill-opacity="0"
113
- stroke="#71b307"
114
- stroke-width="2"
115
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 2; fill-opacity: 0;"
116
- />
117
- <path
118
- d="M156.23200184286875,228.57142857142858L156.23200184286875,215.1965695857027"
119
- fill="none"
120
- stroke="#6495ed"
121
- stroke-width="1"
122
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 1;"
123
- />
124
- <path
125
- d="M142.85714285714286,215.1965695857027L156.23200184286875,215.1965695857027"
126
- fill="none"
127
- stroke="#6495ed"
128
- stroke-width="1"
129
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 1;"
130
- />
131
- </svg>
132
- <div
133
- style="position: absolute; left: 0px; top: 0px;"
134
- >
135
- <div
136
- style="position: absolute; width: 26px; height: 26px; left: 358.42857142857144px; top: 215.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
137
- >
138
- <svg
139
- height="26"
140
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
141
- version="1.1"
142
- width="26"
143
- xmlns="http://www.w3.org/2000/svg"
144
- >
145
- <desc
146
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
147
- >
148
- Created with Raphaël
149
- </desc>
150
- <defs
151
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
152
- />
153
- <ellipse
154
- cx="NaN"
155
- cy="NaN"
156
- fill="#71b307"
157
- r="NaN"
158
- rx="4"
159
- ry="4"
160
- stroke="#71b307"
161
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
162
- transform=""
163
- />
164
- </svg>
165
- </div>
166
- <div
167
- style="position: absolute; width: 26px; height: 26px; left: 129.85714285714286px; top: 44.142857142857146px; transform: translateX(0px) translateY(0px) translateZ(0);"
168
- >
169
- <svg
170
- height="26"
171
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
172
- version="1.1"
173
- width="26"
174
- xmlns="http://www.w3.org/2000/svg"
175
- >
176
- <desc
177
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
178
- >
179
- Created with Raphaël
180
- </desc>
181
- <defs
182
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
183
- />
184
- <ellipse
185
- cx="NaN"
186
- cy="NaN"
187
- fill="#71b307"
188
- r="NaN"
189
- rx="4"
190
- ry="4"
191
- stroke="#71b307"
192
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
193
- transform=""
194
- />
195
- </svg>
196
- </div>
197
- <div
198
- style="position: absolute; width: 26px; height: 26px; left: 129.85714285714286px; top: 215.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
199
- >
200
- <svg
201
- height="26"
202
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
203
- version="1.1"
204
- width="26"
205
- xmlns="http://www.w3.org/2000/svg"
206
- >
207
- <desc
208
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
209
- >
210
- Created with Raphaël
211
- </desc>
212
- <defs
213
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
214
- />
215
- <ellipse
216
- cx="NaN"
217
- cy="NaN"
218
- fill="#71b307"
219
- r="NaN"
220
- rx="4"
221
- ry="4"
222
- stroke="#71b307"
223
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
224
- transform=""
225
- />
226
- </svg>
227
- </div>
228
- </div>
229
- <div
230
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
231
- >
232
- <div
233
- data-interactive-kind-for-testing="movable-point"
234
- style="position: absolute; width: 48px; height: 48px; left: 347.42857142857144px; top: 204.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
235
- >
236
- <svg
237
- height="48"
238
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
239
- version="1.1"
240
- width="48"
241
- xmlns="http://www.w3.org/2000/svg"
242
- >
243
- <desc
244
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
245
- >
246
- Created with Raphaël
247
- </desc>
248
- <defs
249
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
250
- />
251
- <ellipse
252
- cx="24"
253
- cy="24"
254
- fill="#000000"
255
- opacity="0"
256
- rx="24"
257
- ry="24"
258
- stroke="#000"
259
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
260
- />
261
- </svg>
262
- </div>
263
- <div
264
- data-interactive-kind-for-testing="movable-point"
265
- style="position: absolute; width: 48px; height: 48px; left: 118.85714285714286px; top: 33.142857142857146px; transform: translateX(0px) translateY(0px) translateZ(0);"
266
- >
267
- <svg
268
- height="48"
269
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
270
- version="1.1"
271
- width="48"
272
- xmlns="http://www.w3.org/2000/svg"
273
- >
274
- <desc
275
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
276
- >
277
- Created with Raphaël
278
- </desc>
279
- <defs
280
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
281
- />
282
- <ellipse
283
- cx="24"
284
- cy="24"
285
- fill="#000000"
286
- opacity="0"
287
- rx="24"
288
- ry="24"
289
- stroke="#000"
290
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
291
- />
292
- </svg>
293
- </div>
294
- <div
295
- data-interactive-kind-for-testing="movable-point"
296
- style="position: absolute; width: 48px; height: 48px; left: 118.85714285714286px; top: 204.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
297
- >
298
- <svg
299
- height="48"
300
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
301
- version="1.1"
302
- width="48"
303
- xmlns="http://www.w3.org/2000/svg"
304
- >
305
- <desc
306
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
307
- >
308
- Created with Raphaël
309
- </desc>
310
- <defs
311
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
312
- />
313
- <ellipse
314
- cx="24"
315
- cy="24"
316
- fill="#000000"
317
- opacity="0"
318
- rx="24"
319
- ry="24"
320
- stroke="#000"
321
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
322
- />
323
- </svg>
324
- </div>
325
- </div>
326
- <span
327
- class="graphie-label"
328
- data-math-formula=""
329
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 57.142857142857146px; top: 342.8571428571429px; fill: none; stroke: #6495ED;"
330
- >
331
- <span
332
- class="tex-holder"
333
- />
334
- </span>
335
- <span
336
- class="graphie-label"
337
- data-math-formula=""
338
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 57.142857142857146px; top: 342.8571428571429px; fill: none; stroke: #6495ED;"
339
- >
340
- <span
341
- class="tex-holder"
342
- />
343
- </span>
344
- <span
345
- class="graphie-label"
346
- data-math-formula=""
347
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 57.142857142857146px; top: 342.8571428571429px; fill: none; stroke: #6495ED;"
348
- >
349
- <span
350
- class="tex-holder"
351
- />
352
- </span>
353
- <span
354
- class="graphie-label"
355
- data-math-formula="5.0"
356
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 269.14285714285717px; top: 126.85714285714285px; fill: none; stroke: #6495ED;"
357
- >
358
- <span
359
- class="tex-holder"
360
- />
361
- </span>
362
- <span
363
- class="graphie-label"
364
- data-math-formula="3.0"
365
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 122.85714285714286px; top: 142.85714285714286px; fill: none; stroke: #6495ED;"
366
- >
367
- <span
368
- class="tex-holder"
369
- />
370
- </span>
371
- <span
372
- class="graphie-label"
373
- data-math-formula="4.0"
374
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 257.14285714285717px; top: 248.57142857142856px; fill: none; stroke: #6495ED;"
375
- >
376
- <span
377
- class="tex-holder"
378
- />
379
- </span>
380
- </div>
381
- </div>
382
- </div>
383
- </div>
384
-
385
- </div>
386
- </div>
387
- </div>
388
- </div>
389
- `;
390
-
391
- exports[`interactive-graph widget question Shoud render predictably: after interaction 2`] = `
392
- <div>
393
- <div
394
- class="perseus-renderer perseus-renderer-responsive"
395
- >
396
- <div
397
- class="paragraph"
398
- data-perseus-paragraph-index="0"
399
- >
400
- <div
401
- class="paragraph"
402
- >
403
- <strong>
404
- Plot the image of triangle
405
- <span
406
- style="white-space: nowrap;"
407
- >
408
- <span />
409
- <span
410
- class="mock-TeX"
411
- >
412
- \\triangle ABC
413
- </span>
414
- <span />
415
- </span>
416
- under a reflection across line
417
- <span
418
- style="white-space: nowrap;"
419
- >
420
- <span />
421
- <span
422
- class="mock-TeX"
423
- >
424
- \\ell
425
- </span>
426
- <span />
427
- </span>
428
- .
429
- </strong>
430
- </div>
431
- </div>
432
- <div
433
- class="paragraph"
434
- data-perseus-paragraph-index="1"
435
- >
436
- <div
437
- class="paragraph"
438
- >
439
- <div
440
- class="perseus-widget-container widget-nohighlight widget-block"
441
- >
442
- <div
443
- class="perseus-widget perseus-widget-interactive-graph"
444
- style="width: 400px; height: 400px;"
445
- >
446
- <div
447
- class="graphie-container above-scratchpad"
448
- style="width: 400px; height: 400px;"
449
- >
450
- <div
451
- class="unresponsive-svg-image"
452
- style="width: 400px; height: 400px;"
453
- >
454
- <span
455
- style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute; min-width: 20px; display: flex; justify-content: center; align-content: center;"
456
- >
457
- <div
458
- class="default_xu2jcg-o_O-spinnerContainer_agrn11"
459
- >
460
- <svg
461
- height="48"
462
- viewBox="0 0 48 48"
463
- width="48"
464
- xmlns="http://www.w3.org/2000/svg"
465
- >
466
- <path
467
- class="loadingSpinner_1dvgeb3-o_O-inlineStyles_1kzk0y9"
468
- d="M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z"
469
- fill-rule="nonzero"
470
- />
471
- </svg>
472
- </div>
473
- </span>
474
- </div>
475
- <div
476
- class="graphie"
477
- style="position: relative; width: 400px; height: 400px;"
478
- >
479
- <svg
480
- height="400"
481
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
482
- version="1.1"
483
- width="400"
484
- xmlns="http://www.w3.org/2000/svg"
485
- >
486
- <desc
487
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
488
- >
489
- Created with Raphaël
490
- </desc>
491
- <defs
492
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
493
- />
494
- <path
495
- d="M50,375L225,300L125,300Z"
496
- fill="#000000"
497
- opacity="0"
498
- stroke="#000000"
499
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
500
- />
501
- </svg>
502
- <svg
503
- height="400"
504
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
505
- version="1.1"
506
- width="400"
507
- xmlns="http://www.w3.org/2000/svg"
508
- >
509
- <desc
510
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
511
- >
512
- Created with Raphaël
513
- </desc>
514
- <defs
515
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
516
- />
517
- <path
518
- d="M50,375L225,300L125,300Z"
519
- fill="#71b307"
520
- fill-opacity="0"
521
- stroke="#71b307"
522
- stroke-width="2"
523
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 2; fill-opacity: 0;"
524
- />
525
- </svg>
526
- <div
527
- style="position: absolute; left: 0px; top: 0px;"
528
- >
529
- <div
530
- style="position: absolute; width: 26px; height: 26px; left: 37px; top: 362px; transform: translateX(0px) translateY(0px) translateZ(0);"
531
- >
532
- <svg
533
- height="26"
534
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
535
- version="1.1"
536
- width="26"
537
- xmlns="http://www.w3.org/2000/svg"
538
- >
539
- <desc
540
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
541
- >
542
- Created with Raphaël
543
- </desc>
544
- <defs
545
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
546
- />
547
- <ellipse
548
- cx="NaN"
549
- cy="NaN"
550
- fill="#71b307"
551
- r="NaN"
552
- rx="4"
553
- ry="4"
554
- stroke="#71b307"
555
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
556
- transform=""
557
- />
558
- </svg>
559
- </div>
560
- <div
561
- style="position: absolute; width: 26px; height: 26px; left: 212px; top: 287px; transform: translateX(0px) translateY(0px) translateZ(0);"
562
- >
563
- <svg
564
- height="26"
565
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
566
- version="1.1"
567
- width="26"
568
- xmlns="http://www.w3.org/2000/svg"
569
- >
570
- <desc
571
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
572
- >
573
- Created with Raphaël
574
- </desc>
575
- <defs
576
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
577
- />
578
- <ellipse
579
- cx="NaN"
580
- cy="NaN"
581
- fill="#71b307"
582
- r="NaN"
583
- rx="4"
584
- ry="4"
585
- stroke="#71b307"
586
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
587
- transform=""
588
- />
589
- </svg>
590
- </div>
591
- <div
592
- style="position: absolute; width: 26px; height: 26px; left: 112px; top: 287px; transform: translateX(0px) translateY(0px) translateZ(0);"
593
- >
594
- <svg
595
- height="26"
596
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
597
- version="1.1"
598
- width="26"
599
- xmlns="http://www.w3.org/2000/svg"
600
- >
601
- <desc
602
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
603
- >
604
- Created with Raphaël
605
- </desc>
606
- <defs
607
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
608
- />
609
- <ellipse
610
- cx="NaN"
611
- cy="NaN"
612
- fill="#71b307"
613
- r="NaN"
614
- rx="4"
615
- ry="4"
616
- stroke="#71b307"
617
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
618
- transform=""
619
- />
620
- </svg>
621
- </div>
622
- </div>
623
- <div
624
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
625
- >
626
- <div
627
- data-interactive-kind-for-testing="movable-point"
628
- style="position: absolute; width: 48px; height: 48px; left: 26px; top: 351px; transform: translateX(0px) translateY(0px) translateZ(0);"
629
- >
630
- <svg
631
- height="48"
632
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
633
- version="1.1"
634
- width="48"
635
- xmlns="http://www.w3.org/2000/svg"
636
- >
637
- <desc
638
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
639
- >
640
- Created with Raphaël
641
- </desc>
642
- <defs
643
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
644
- />
645
- <ellipse
646
- cx="24"
647
- cy="24"
648
- fill="#000000"
649
- opacity="0"
650
- rx="24"
651
- ry="24"
652
- stroke="#000"
653
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
654
- />
655
- </svg>
656
- </div>
657
- <div
658
- data-interactive-kind-for-testing="movable-point"
659
- style="position: absolute; width: 48px; height: 48px; left: 201px; top: 276px; transform: translateX(0px) translateY(0px) translateZ(0);"
660
- >
661
- <svg
662
- height="48"
663
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
664
- version="1.1"
665
- width="48"
666
- xmlns="http://www.w3.org/2000/svg"
667
- >
668
- <desc
669
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
670
- >
671
- Created with Raphaël
672
- </desc>
673
- <defs
674
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
675
- />
676
- <ellipse
677
- cx="24"
678
- cy="24"
679
- fill="#000000"
680
- opacity="0"
681
- rx="24"
682
- ry="24"
683
- stroke="#000"
684
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
685
- />
686
- </svg>
687
- </div>
688
- <div
689
- data-interactive-kind-for-testing="movable-point"
690
- style="position: absolute; width: 48px; height: 48px; left: 101px; top: 276px; transform: translateX(0px) translateY(0px) translateZ(0);"
691
- >
692
- <svg
693
- height="48"
694
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
695
- version="1.1"
696
- width="48"
697
- xmlns="http://www.w3.org/2000/svg"
698
- >
699
- <desc
700
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
701
- >
702
- Created with Raphaël
703
- </desc>
704
- <defs
705
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
706
- />
707
- <ellipse
708
- cx="24"
709
- cy="24"
710
- fill="#000000"
711
- opacity="0"
712
- rx="24"
713
- ry="24"
714
- stroke="#000"
715
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
716
- />
717
- </svg>
718
- </div>
719
- </div>
720
- <span
721
- class="graphie-label"
722
- data-math-formula=""
723
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
724
- >
725
- <span
726
- class="tex-holder"
727
- />
728
- </span>
729
- <span
730
- class="graphie-label"
731
- data-math-formula=""
732
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
733
- >
734
- <span
735
- class="tex-holder"
736
- />
737
- </span>
738
- <span
739
- class="graphie-label"
740
- data-math-formula=""
741
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
742
- >
743
- <span
744
- class="tex-holder"
745
- />
746
- </span>
747
- <span
748
- class="graphie-label"
749
- data-math-formula=""
750
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
751
- >
752
- <span
753
- class="tex-holder"
754
- />
755
- </span>
756
- <span
757
- class="graphie-label"
758
- data-math-formula=""
759
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
760
- >
761
- <span
762
- class="tex-holder"
763
- />
764
- </span>
765
- <span
766
- class="graphie-label"
767
- data-math-formula=""
768
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
769
- >
770
- <span
771
- class="tex-holder"
772
- />
773
- </span>
774
- </div>
775
- </div>
776
- </div>
777
- </div>
778
- </div>
779
- </div>
780
- </div>
781
- </div>
782
- `;
783
-
784
- exports[`interactive-graph widget question Shoud render predictably: after interaction 3`] = `
785
- <div>
786
- <div
787
- class="perseus-renderer perseus-renderer-responsive"
788
- >
789
- <div
790
- class="paragraph"
791
- data-perseus-paragraph-index="0"
792
- >
793
- <div
794
- class="paragraph"
795
- >
796
- We want to find the zeros of this polynomial:
797
- </div>
798
- </div>
799
- <div
800
- class="paragraph perseus-paragraph-centered"
801
- data-perseus-paragraph-index="1"
802
- >
803
- <div
804
- class="perseus-block-math"
805
- >
806
- <div
807
- class="perseus-block-math-inner"
808
- style="overflow-x: auto; overflow-y: hidden; padding-top: 10px; padding-bottom: 10px; margin-top: -10px; margin-bottom: -10px;"
809
- >
810
- <span
811
- class="mock-TeX"
812
- >
813
- p(x)=x(2x+5)(x+1)
814
- </span>
815
- </div>
816
- </div>
817
- </div>
818
- <div
819
- class="paragraph"
820
- data-perseus-paragraph-index="2"
821
- >
822
- <div
823
- class="paragraph"
824
- >
825
- <strong>
826
- Plot all the zeros (
827
- <span
828
- style="white-space: nowrap;"
829
- >
830
- <span />
831
- <span
832
- class="mock-TeX"
833
- >
834
- x
835
- </span>
836
- <span />
837
- </span>
838
- -intercepts) of the polynomial in the interactive graph.
839
- </strong>
840
- </div>
841
- </div>
842
- <div
843
- class="paragraph"
844
- data-perseus-paragraph-index="3"
845
- >
846
- <div
847
- class="paragraph"
848
- >
849
- <div
850
- class="perseus-widget-container widget-nohighlight widget-block"
851
- >
852
- <div
853
- class="perseus-widget perseus-widget-interactive-graph"
854
- style="width: 400px; height: 400px;"
855
- >
856
- <div
857
- class="graphie-container above-scratchpad"
858
- style="width: 400px; height: 400px;"
859
- >
860
- <div
861
- class="unresponsive-svg-image"
862
- style="width: 425px; height: 425px;"
863
- >
864
- <span
865
- style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute; min-width: 20px; display: flex; justify-content: center; align-content: center;"
866
- >
867
- <div
868
- class="default_xu2jcg-o_O-spinnerContainer_agrn11"
869
- >
870
- <svg
871
- height="48"
872
- viewBox="0 0 48 48"
873
- width="48"
874
- xmlns="http://www.w3.org/2000/svg"
875
- >
876
- <path
877
- class="loadingSpinner_1dvgeb3-o_O-inlineStyles_1kzk0y9"
878
- d="M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z"
879
- fill-rule="nonzero"
880
- />
881
- </svg>
882
- </div>
883
- </span>
884
- </div>
885
- <div
886
- class="graphie"
887
- style="position: relative; width: 400px; height: 400px;"
888
- >
889
- <svg
890
- height="400"
891
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
892
- version="1.1"
893
- width="400"
894
- xmlns="http://www.w3.org/2000/svg"
895
- >
896
- <desc
897
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
898
- >
899
- Created with Raphaël
900
- </desc>
901
- <defs
902
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
903
- />
904
- <rect
905
- fill="#000000"
906
- height="400"
907
- opacity="0"
908
- r="0"
909
- rx="0"
910
- ry="0"
911
- stroke="#000"
912
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0;"
913
- width="400"
914
- x="0"
915
- y="0"
916
- />
917
- </svg>
918
- <svg
919
- height="400"
920
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
921
- version="1.1"
922
- width="400"
923
- xmlns="http://www.w3.org/2000/svg"
924
- >
925
- <desc
926
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
927
- >
928
- Created with Raphaël
929
- </desc>
930
- <defs
931
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
932
- />
933
- <image
934
- height="40"
935
- href="https://ka-perseus-graphie.s3.amazonaws.com/b1452c0d79fd0f7ff4c3af9488474a0a0decb361.png"
936
- opacity="0.5"
937
- preserveAspectRatio="none"
938
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0.5;"
939
- width="40"
940
- x="360"
941
- y="360"
942
- />
943
- </svg>
944
- <div
945
- style="font-style: italic; font-weight: bold; font-size: 32px; width: 100%; height: 100%; text-align: center; background-color: white; position: absolute; z-index: 1; transition: opacity .25s ease-in-out; opacity: 0.5;"
946
- >
947
- <span
948
- style="position: relative; top: 25%;"
949
- >
950
- Click to add points
951
- </span>
952
- </div>
953
- <div
954
- style="position: absolute; left: 0px; top: 0px;"
955
- >
956
- <div
957
- style="position: absolute; width: 26px; height: 26px; left: 187px; top: 187px; transform: translateX(0px) translateY(0px) translateZ(0);"
958
- >
959
- <svg
960
- height="26"
961
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
962
- version="1.1"
963
- width="26"
964
- xmlns="http://www.w3.org/2000/svg"
965
- >
966
- <desc
967
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
968
- >
969
- Created with Raphaël
970
- </desc>
971
- <defs
972
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
973
- />
974
- <ellipse
975
- cx="NaN"
976
- cy="NaN"
977
- fill="#71b307"
978
- r="NaN"
979
- rx="4"
980
- ry="4"
981
- stroke="#71b307"
982
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
983
- transform=""
984
- />
985
- </svg>
986
- </div>
987
- <div
988
- style="position: absolute; width: 26px; height: 26px; left: 62px; top: 187px; transform: translateX(0px) translateY(0px) translateZ(0);"
989
- >
990
- <svg
991
- height="26"
992
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
993
- version="1.1"
994
- width="26"
995
- xmlns="http://www.w3.org/2000/svg"
996
- >
997
- <desc
998
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
999
- >
1000
- Created with Raphaël
1001
- </desc>
1002
- <defs
1003
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1004
- />
1005
- <ellipse
1006
- cx="NaN"
1007
- cy="NaN"
1008
- fill="#71b307"
1009
- r="NaN"
1010
- rx="4"
1011
- ry="4"
1012
- stroke="#71b307"
1013
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1014
- transform=""
1015
- />
1016
- </svg>
1017
- </div>
1018
- <div
1019
- style="position: absolute; width: 26px; height: 26px; left: 137px; top: 187px; transform: translateX(0px) translateY(0px) translateZ(0);"
1020
- >
1021
- <svg
1022
- height="26"
1023
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1024
- version="1.1"
1025
- width="26"
1026
- xmlns="http://www.w3.org/2000/svg"
1027
- >
1028
- <desc
1029
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1030
- >
1031
- Created with Raphaël
1032
- </desc>
1033
- <defs
1034
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1035
- />
1036
- <ellipse
1037
- cx="NaN"
1038
- cy="NaN"
1039
- fill="#71b307"
1040
- r="NaN"
1041
- rx="4"
1042
- ry="4"
1043
- stroke="#71b307"
1044
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1045
- transform=""
1046
- />
1047
- </svg>
1048
- </div>
1049
- </div>
1050
- <div
1051
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
1052
- >
1053
- <div
1054
- data-interactive-kind-for-testing="movable-point"
1055
- style="position: absolute; width: 48px; height: 48px; left: 176px; top: 176px; transform: translateX(0px) translateY(0px) translateZ(0);"
1056
- >
1057
- <svg
1058
- height="48"
1059
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1060
- version="1.1"
1061
- width="48"
1062
- xmlns="http://www.w3.org/2000/svg"
1063
- >
1064
- <desc
1065
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1066
- >
1067
- Created with Raphaël
1068
- </desc>
1069
- <defs
1070
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1071
- />
1072
- <ellipse
1073
- cx="24"
1074
- cy="24"
1075
- fill="#000000"
1076
- opacity="0"
1077
- rx="24"
1078
- ry="24"
1079
- stroke="#000"
1080
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1081
- />
1082
- </svg>
1083
- </div>
1084
- <div
1085
- data-interactive-kind-for-testing="movable-point"
1086
- style="position: absolute; width: 48px; height: 48px; left: 51px; top: 176px; transform: translateX(0px) translateY(0px) translateZ(0);"
1087
- >
1088
- <svg
1089
- height="48"
1090
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1091
- version="1.1"
1092
- width="48"
1093
- xmlns="http://www.w3.org/2000/svg"
1094
- >
1095
- <desc
1096
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1097
- >
1098
- Created with Raphaël
1099
- </desc>
1100
- <defs
1101
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1102
- />
1103
- <ellipse
1104
- cx="24"
1105
- cy="24"
1106
- fill="#000000"
1107
- opacity="0"
1108
- rx="24"
1109
- ry="24"
1110
- stroke="#000"
1111
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1112
- />
1113
- </svg>
1114
- </div>
1115
- <div
1116
- data-interactive-kind-for-testing="movable-point"
1117
- style="position: absolute; width: 48px; height: 48px; left: 126px; top: 176px; transform: translateX(0px) translateY(0px) translateZ(0);"
1118
- >
1119
- <svg
1120
- height="48"
1121
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1122
- version="1.1"
1123
- width="48"
1124
- xmlns="http://www.w3.org/2000/svg"
1125
- >
1126
- <desc
1127
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1128
- >
1129
- Created with Raphaël
1130
- </desc>
1131
- <defs
1132
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1133
- />
1134
- <ellipse
1135
- cx="24"
1136
- cy="24"
1137
- fill="#000000"
1138
- opacity="0"
1139
- rx="24"
1140
- ry="24"
1141
- stroke="#000"
1142
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1143
- />
1144
- </svg>
1145
- </div>
1146
- </div>
1147
- </div>
1148
- </div>
1149
- </div>
1150
- </div>
1151
- </div>
1152
- </div>
1153
- </div>
1154
- </div>
1155
- `;
1156
-
1157
- exports[`interactive-graph widget question Shoud render predictably: after interaction 4`] = `
1158
- <div>
1159
- <div
1160
- class="perseus-renderer perseus-renderer-responsive"
1161
- >
1162
- <div
1163
- class="paragraph"
1164
- data-perseus-paragraph-index="0"
1165
- >
1166
- <div
1167
- class="paragraph"
1168
- >
1169
- The graph below contains quadrilateral
1170
- <span
1171
- style="white-space: nowrap;"
1172
- >
1173
- <span />
1174
- <span
1175
- class="mock-TeX"
1176
- >
1177
- TREK
1178
- </span>
1179
- <span />
1180
- </span>
1181
- and the point
1182
- <span
1183
- style="white-space: nowrap;"
1184
- >
1185
- <span />
1186
- <span
1187
- class="mock-TeX"
1188
- >
1189
- P(-8,-6)
1190
- </span>
1191
- <span />
1192
- </span>
1193
- .
1194
- </div>
1195
- </div>
1196
- <div
1197
- class="paragraph"
1198
- data-perseus-paragraph-index="1"
1199
- >
1200
- <div
1201
- class="paragraph"
1202
- >
1203
- <strong>
1204
- Draw the image of quadrilateral
1205
- <span
1206
- style="white-space: nowrap;"
1207
- >
1208
- <span />
1209
- <span
1210
- class="mock-TeX"
1211
- >
1212
- TREK
1213
- </span>
1214
- <span />
1215
- </span>
1216
- under a dilation whose center is
1217
- <span
1218
- style="white-space: nowrap;"
1219
- >
1220
- <span />
1221
- <span
1222
- class="mock-TeX"
1223
- >
1224
- P
1225
- </span>
1226
- <span />
1227
- </span>
1228
- and scale factor is
1229
- <span
1230
- style="white-space: nowrap;"
1231
- >
1232
- <span />
1233
- <span
1234
- class="mock-TeX"
1235
- >
1236
- 3
1237
- </span>
1238
- <span />
1239
- </span>
1240
- .
1241
- </strong>
1242
-
1243
- </div>
1244
- </div>
1245
- <div
1246
- class="paragraph"
1247
- data-perseus-paragraph-index="2"
1248
- >
1249
- <div
1250
- class="paragraph"
1251
- >
1252
- <div
1253
- class="perseus-widget-container widget-nohighlight widget-block"
1254
- >
1255
- <div
1256
- class="perseus-widget perseus-widget-interactive-graph"
1257
- style="width: 400px; height: 400px;"
1258
- >
1259
- <div
1260
- class="graphie-container above-scratchpad"
1261
- style="width: 400px; height: 400px;"
1262
- >
1263
- <div
1264
- class="unresponsive-svg-image"
1265
- style="width: 425px; height: 425px;"
1266
- >
1267
- <span
1268
- style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute; min-width: 20px; display: flex; justify-content: center; align-content: center;"
1269
- >
1270
- <div
1271
- class="default_xu2jcg-o_O-spinnerContainer_agrn11"
1272
- >
1273
- <svg
1274
- height="48"
1275
- viewBox="0 0 48 48"
1276
- width="48"
1277
- xmlns="http://www.w3.org/2000/svg"
1278
- >
1279
- <path
1280
- class="loadingSpinner_1dvgeb3-o_O-inlineStyles_1kzk0y9"
1281
- d="M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z"
1282
- fill-rule="nonzero"
1283
- />
1284
- </svg>
1285
- </div>
1286
- </span>
1287
- </div>
1288
- <div
1289
- class="graphie"
1290
- style="position: relative; width: 400px; height: 400px;"
1291
- >
1292
- <svg
1293
- height="400"
1294
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
1295
- version="1.1"
1296
- width="400"
1297
- xmlns="http://www.w3.org/2000/svg"
1298
- >
1299
- <desc
1300
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1301
- >
1302
- Created with Raphaël
1303
- </desc>
1304
- <defs
1305
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1306
- />
1307
- <rect
1308
- fill="#000000"
1309
- height="400"
1310
- opacity="0"
1311
- r="0"
1312
- rx="0"
1313
- ry="0"
1314
- stroke="#000"
1315
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0;"
1316
- width="400"
1317
- x="0"
1318
- y="0"
1319
- />
1320
- <path
1321
- d="M116.66666666666667,266.6666666666667L266.6666666666667,16.666666666666668L266.6666666666667,266.6666666666667L216.66666666666669,216.66666666666669Z"
1322
- fill="#000000"
1323
- opacity="0"
1324
- stroke="#000000"
1325
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1326
- />
1327
- </svg>
1328
- <svg
1329
- height="400"
1330
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1331
- version="1.1"
1332
- width="400"
1333
- xmlns="http://www.w3.org/2000/svg"
1334
- >
1335
- <desc
1336
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1337
- >
1338
- Created with Raphaël
1339
- </desc>
1340
- <defs
1341
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1342
- />
1343
- <image
1344
- height="40"
1345
- href="https://ka-perseus-graphie.s3.amazonaws.com/b1452c0d79fd0f7ff4c3af9488474a0a0decb361.png"
1346
- opacity="0.5"
1347
- preserveAspectRatio="none"
1348
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0.5;"
1349
- width="40"
1350
- x="360"
1351
- y="360"
1352
- />
1353
- <path
1354
- d="M116.66666666666667,266.6666666666667L266.6666666666667,16.666666666666668L266.6666666666667,266.6666666666667L216.66666666666669,216.66666666666669Z"
1355
- fill="#71b307"
1356
- fill-opacity="0"
1357
- stroke="#71b307"
1358
- stroke-width="2"
1359
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 2; fill-opacity: 0;"
1360
- />
1361
- </svg>
1362
- <div
1363
- style="font-style: italic; font-weight: bold; font-size: 32px; width: 100%; height: 100%; text-align: center; background-color: white; position: absolute; z-index: 1; transition: opacity .25s ease-in-out; opacity: 0.5;"
1364
- >
1365
- <span
1366
- style="position: relative; top: 25%;"
1367
- >
1368
- Click to add vertices
1369
- </span>
1370
- </div>
1371
- <div
1372
- style="position: absolute; left: 0px; top: 0px;"
1373
- >
1374
- <div
1375
- style="position: absolute; width: 26px; height: 26px; left: 103.66666666666667px; top: 253.66666666666669px; transform: translateX(0px) translateY(0px) translateZ(0);"
1376
- >
1377
- <svg
1378
- height="26"
1379
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1380
- version="1.1"
1381
- width="26"
1382
- xmlns="http://www.w3.org/2000/svg"
1383
- >
1384
- <desc
1385
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1386
- >
1387
- Created with Raphaël
1388
- </desc>
1389
- <defs
1390
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1391
- />
1392
- <ellipse
1393
- cx="NaN"
1394
- cy="NaN"
1395
- fill="#71b307"
1396
- r="NaN"
1397
- rx="4"
1398
- ry="4"
1399
- stroke="#71b307"
1400
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1401
- transform=""
1402
- />
1403
- </svg>
1404
- </div>
1405
- <div
1406
- style="position: absolute; width: 26px; height: 26px; left: 253.66666666666669px; top: 3.666666666666668px; transform: translateX(0px) translateY(0px) translateZ(0);"
1407
- >
1408
- <svg
1409
- height="26"
1410
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1411
- version="1.1"
1412
- width="26"
1413
- xmlns="http://www.w3.org/2000/svg"
1414
- >
1415
- <desc
1416
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1417
- >
1418
- Created with Raphaël
1419
- </desc>
1420
- <defs
1421
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1422
- />
1423
- <ellipse
1424
- cx="NaN"
1425
- cy="NaN"
1426
- fill="#71b307"
1427
- r="NaN"
1428
- rx="4"
1429
- ry="4"
1430
- stroke="#71b307"
1431
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1432
- transform=""
1433
- />
1434
- </svg>
1435
- </div>
1436
- <div
1437
- style="position: absolute; width: 26px; height: 26px; left: 253.66666666666669px; top: 253.66666666666669px; transform: translateX(0px) translateY(0px) translateZ(0);"
1438
- >
1439
- <svg
1440
- height="26"
1441
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1442
- version="1.1"
1443
- width="26"
1444
- xmlns="http://www.w3.org/2000/svg"
1445
- >
1446
- <desc
1447
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1448
- >
1449
- Created with Raphaël
1450
- </desc>
1451
- <defs
1452
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1453
- />
1454
- <ellipse
1455
- cx="NaN"
1456
- cy="NaN"
1457
- fill="#71b307"
1458
- r="NaN"
1459
- rx="4"
1460
- ry="4"
1461
- stroke="#71b307"
1462
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1463
- transform=""
1464
- />
1465
- </svg>
1466
- </div>
1467
- <div
1468
- style="position: absolute; width: 26px; height: 26px; left: 203.66666666666669px; top: 203.66666666666669px; transform: translateX(0px) translateY(0px) translateZ(0);"
1469
- >
1470
- <svg
1471
- height="26"
1472
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1473
- version="1.1"
1474
- width="26"
1475
- xmlns="http://www.w3.org/2000/svg"
1476
- >
1477
- <desc
1478
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1479
- >
1480
- Created with Raphaël
1481
- </desc>
1482
- <defs
1483
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1484
- />
1485
- <ellipse
1486
- cx="NaN"
1487
- cy="NaN"
1488
- fill="#71b307"
1489
- r="NaN"
1490
- rx="4"
1491
- ry="4"
1492
- stroke="#71b307"
1493
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1494
- transform=""
1495
- />
1496
- </svg>
1497
- </div>
1498
- </div>
1499
- <div
1500
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
1501
- >
1502
- <div
1503
- data-interactive-kind-for-testing="movable-point"
1504
- style="position: absolute; width: 48px; height: 48px; left: 92.66666666666667px; top: 242.66666666666669px; transform: translateX(0px) translateY(0px) translateZ(0);"
1505
- >
1506
- <svg
1507
- height="48"
1508
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1509
- version="1.1"
1510
- width="48"
1511
- xmlns="http://www.w3.org/2000/svg"
1512
- >
1513
- <desc
1514
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1515
- >
1516
- Created with Raphaël
1517
- </desc>
1518
- <defs
1519
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1520
- />
1521
- <ellipse
1522
- cx="24"
1523
- cy="24"
1524
- fill="#000000"
1525
- opacity="0"
1526
- rx="24"
1527
- ry="24"
1528
- stroke="#000"
1529
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1530
- />
1531
- </svg>
1532
- </div>
1533
- <div
1534
- data-interactive-kind-for-testing="movable-point"
1535
- style="position: absolute; width: 48px; height: 48px; left: 242.66666666666669px; top: -7.333333333333332px; transform: translateX(0px) translateY(0px) translateZ(0);"
1536
- >
1537
- <svg
1538
- height="48"
1539
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1540
- version="1.1"
1541
- width="48"
1542
- xmlns="http://www.w3.org/2000/svg"
1543
- >
1544
- <desc
1545
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1546
- >
1547
- Created with Raphaël
1548
- </desc>
1549
- <defs
1550
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1551
- />
1552
- <ellipse
1553
- cx="24"
1554
- cy="24"
1555
- fill="#000000"
1556
- opacity="0"
1557
- rx="24"
1558
- ry="24"
1559
- stroke="#000"
1560
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1561
- />
1562
- </svg>
1563
- </div>
1564
- <div
1565
- data-interactive-kind-for-testing="movable-point"
1566
- style="position: absolute; width: 48px; height: 48px; left: 242.66666666666669px; top: 242.66666666666669px; transform: translateX(0px) translateY(0px) translateZ(0);"
1567
- >
1568
- <svg
1569
- height="48"
1570
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1571
- version="1.1"
1572
- width="48"
1573
- xmlns="http://www.w3.org/2000/svg"
1574
- >
1575
- <desc
1576
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1577
- >
1578
- Created with Raphaël
1579
- </desc>
1580
- <defs
1581
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1582
- />
1583
- <ellipse
1584
- cx="24"
1585
- cy="24"
1586
- fill="#000000"
1587
- opacity="0"
1588
- rx="24"
1589
- ry="24"
1590
- stroke="#000"
1591
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1592
- />
1593
- </svg>
1594
- </div>
1595
- <div
1596
- data-interactive-kind-for-testing="movable-point"
1597
- style="position: absolute; width: 48px; height: 48px; left: 192.66666666666669px; top: 192.66666666666669px; transform: translateX(0px) translateY(0px) translateZ(0);"
1598
- >
1599
- <svg
1600
- height="48"
1601
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1602
- version="1.1"
1603
- width="48"
1604
- xmlns="http://www.w3.org/2000/svg"
1605
- >
1606
- <desc
1607
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1608
- >
1609
- Created with Raphaël
1610
- </desc>
1611
- <defs
1612
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1613
- />
1614
- <ellipse
1615
- cx="24"
1616
- cy="24"
1617
- fill="#000000"
1618
- opacity="0"
1619
- rx="24"
1620
- ry="24"
1621
- stroke="#000"
1622
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1623
- />
1624
- </svg>
1625
- </div>
1626
- </div>
1627
- <span
1628
- class="graphie-label"
1629
- data-math-formula=""
1630
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1631
- >
1632
- <span
1633
- class="tex-holder"
1634
- />
1635
- </span>
1636
- <span
1637
- class="graphie-label"
1638
- data-math-formula=""
1639
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1640
- >
1641
- <span
1642
- class="tex-holder"
1643
- />
1644
- </span>
1645
- <span
1646
- class="graphie-label"
1647
- data-math-formula=""
1648
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1649
- >
1650
- <span
1651
- class="tex-holder"
1652
- />
1653
- </span>
1654
- <span
1655
- class="graphie-label"
1656
- data-math-formula=""
1657
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1658
- >
1659
- <span
1660
- class="tex-holder"
1661
- />
1662
- </span>
1663
- <span
1664
- class="graphie-label"
1665
- data-math-formula=""
1666
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1667
- >
1668
- <span
1669
- class="tex-holder"
1670
- />
1671
- </span>
1672
- <span
1673
- class="graphie-label"
1674
- data-math-formula=""
1675
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1676
- >
1677
- <span
1678
- class="tex-holder"
1679
- />
1680
- </span>
1681
- <span
1682
- class="graphie-label"
1683
- data-math-formula=""
1684
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1685
- >
1686
- <span
1687
- class="tex-holder"
1688
- />
1689
- </span>
1690
- <span
1691
- class="graphie-label"
1692
- data-math-formula=""
1693
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 266.6666666666667px; fill: none; stroke: #6495ED;"
1694
- >
1695
- <span
1696
- class="tex-holder"
1697
- />
1698
- </span>
1699
- </div>
1700
- </div>
1701
- </div>
1702
- </div>
1703
- </div>
1704
- </div>
1705
- </div>
1706
- </div>
1707
- `;
1708
-
1709
- exports[`interactive-graph widget question Shoud render predictably: first render 1`] = `
1710
- <div>
1711
- <div
1712
- class="perseus-renderer perseus-renderer-responsive"
1713
- >
1714
- <div
1715
- class="paragraph"
1716
- data-perseus-paragraph-index="0"
1717
- >
1718
- <div
1719
- class="paragraph"
1720
- >
1721
- <strong>
1722
- Drag the vertices of the triangle below to draw a right triangle with side lengths
1723
- <span
1724
- style="white-space: nowrap;"
1725
- >
1726
- <span />
1727
- <span
1728
- class="mock-TeX"
1729
- >
1730
- 3
1731
- </span>
1732
- <span />
1733
- </span>
1734
- ,
1735
- <span
1736
- style="white-space: nowrap;"
1737
- >
1738
- <span />
1739
- <span
1740
- class="mock-TeX"
1741
- >
1742
- 4
1743
- </span>
1744
- <span />
1745
- </span>
1746
- , and
1747
- <span
1748
- style="white-space: nowrap;"
1749
- >
1750
- <span />
1751
- <span
1752
- class="mock-TeX"
1753
- >
1754
- 5
1755
- </span>
1756
- <span />
1757
- </span>
1758
- .
1759
- </strong>
1760
-
1761
-
1762
- <div
1763
- class="perseus-widget-container widget-nohighlight widget-block"
1764
- >
1765
- <div
1766
- class="perseus-widget perseus-widget-interactive-graph"
1767
- style="width: 400px; height: 400px;"
1768
- >
1769
- <div
1770
- class="graphie-container above-scratchpad"
1771
- style="width: 400px; height: 400px;"
1772
- >
1773
- <div
1774
- class="graphie"
1775
- style="position: relative; width: 400px; height: 400px;"
1776
- >
1777
- <svg
1778
- height="400"
1779
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
1780
- version="1.1"
1781
- width="400"
1782
- xmlns="http://www.w3.org/2000/svg"
1783
- >
1784
- <desc
1785
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1786
- >
1787
- Created with Raphaël
1788
- </desc>
1789
- <defs
1790
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1791
- />
1792
- <path
1793
- d="M257.14285714285717,228.57142857142858L200,114.28571428571429L142.85714285714286,228.57142857142858Z"
1794
- fill="#000000"
1795
- opacity="0"
1796
- stroke="#000000"
1797
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1798
- />
1799
- </svg>
1800
- <svg
1801
- height="400"
1802
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1803
- version="1.1"
1804
- width="400"
1805
- xmlns="http://www.w3.org/2000/svg"
1806
- >
1807
- <desc
1808
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1809
- >
1810
- Created with Raphaël
1811
- </desc>
1812
- <defs
1813
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1814
- />
1815
- <path
1816
- d="M257.14285714285717,228.57142857142858L200,114.28571428571429L142.85714285714286,228.57142857142858Z"
1817
- fill="#71b307"
1818
- fill-opacity="0"
1819
- stroke="#71b307"
1820
- stroke-width="2"
1821
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 2; fill-opacity: 0;"
1822
- />
1823
- </svg>
1824
- <div
1825
- style="position: absolute; left: 0px; top: 0px;"
1826
- >
1827
- <div
1828
- style="position: absolute; width: 26px; height: 26px; left: 244.14285714285717px; top: 215.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
1829
- >
1830
- <svg
1831
- height="26"
1832
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1833
- version="1.1"
1834
- width="26"
1835
- xmlns="http://www.w3.org/2000/svg"
1836
- >
1837
- <desc
1838
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1839
- >
1840
- Created with Raphaël
1841
- </desc>
1842
- <defs
1843
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1844
- />
1845
- <ellipse
1846
- cx="NaN"
1847
- cy="NaN"
1848
- fill="#71b307"
1849
- r="NaN"
1850
- rx="4"
1851
- ry="4"
1852
- stroke="#71b307"
1853
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1854
- transform=""
1855
- />
1856
- </svg>
1857
- </div>
1858
- <div
1859
- style="position: absolute; width: 26px; height: 26px; left: 187px; top: 101.28571428571429px; transform: translateX(0px) translateY(0px) translateZ(0);"
1860
- >
1861
- <svg
1862
- height="26"
1863
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1864
- version="1.1"
1865
- width="26"
1866
- xmlns="http://www.w3.org/2000/svg"
1867
- >
1868
- <desc
1869
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1870
- >
1871
- Created with Raphaël
1872
- </desc>
1873
- <defs
1874
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1875
- />
1876
- <ellipse
1877
- cx="NaN"
1878
- cy="NaN"
1879
- fill="#71b307"
1880
- r="NaN"
1881
- rx="4"
1882
- ry="4"
1883
- stroke="#71b307"
1884
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1885
- transform=""
1886
- />
1887
- </svg>
1888
- </div>
1889
- <div
1890
- style="position: absolute; width: 26px; height: 26px; left: 129.85714285714286px; top: 215.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
1891
- >
1892
- <svg
1893
- height="26"
1894
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1895
- version="1.1"
1896
- width="26"
1897
- xmlns="http://www.w3.org/2000/svg"
1898
- >
1899
- <desc
1900
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1901
- >
1902
- Created with Raphaël
1903
- </desc>
1904
- <defs
1905
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1906
- />
1907
- <ellipse
1908
- cx="NaN"
1909
- cy="NaN"
1910
- fill="#71b307"
1911
- r="NaN"
1912
- rx="4"
1913
- ry="4"
1914
- stroke="#71b307"
1915
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1916
- transform=""
1917
- />
1918
- </svg>
1919
- </div>
1920
- </div>
1921
- <div
1922
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
1923
- >
1924
- <div
1925
- data-interactive-kind-for-testing="movable-point"
1926
- style="position: absolute; width: 48px; height: 48px; left: 233.14285714285717px; top: 204.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
1927
- >
1928
- <svg
1929
- height="48"
1930
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1931
- version="1.1"
1932
- width="48"
1933
- xmlns="http://www.w3.org/2000/svg"
1934
- >
1935
- <desc
1936
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1937
- >
1938
- Created with Raphaël
1939
- </desc>
1940
- <defs
1941
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1942
- />
1943
- <ellipse
1944
- cx="24"
1945
- cy="24"
1946
- fill="#000000"
1947
- opacity="0"
1948
- rx="24"
1949
- ry="24"
1950
- stroke="#000"
1951
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1952
- />
1953
- </svg>
1954
- </div>
1955
- <div
1956
- data-interactive-kind-for-testing="movable-point"
1957
- style="position: absolute; width: 48px; height: 48px; left: 176px; top: 90.28571428571429px; transform: translateX(0px) translateY(0px) translateZ(0);"
1958
- >
1959
- <svg
1960
- height="48"
1961
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1962
- version="1.1"
1963
- width="48"
1964
- xmlns="http://www.w3.org/2000/svg"
1965
- >
1966
- <desc
1967
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1968
- >
1969
- Created with Raphaël
1970
- </desc>
1971
- <defs
1972
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1973
- />
1974
- <ellipse
1975
- cx="24"
1976
- cy="24"
1977
- fill="#000000"
1978
- opacity="0"
1979
- rx="24"
1980
- ry="24"
1981
- stroke="#000"
1982
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
1983
- />
1984
- </svg>
1985
- </div>
1986
- <div
1987
- data-interactive-kind-for-testing="movable-point"
1988
- style="position: absolute; width: 48px; height: 48px; left: 118.85714285714286px; top: 204.57142857142858px; transform: translateX(0px) translateY(0px) translateZ(0);"
1989
- >
1990
- <svg
1991
- height="48"
1992
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1993
- version="1.1"
1994
- width="48"
1995
- xmlns="http://www.w3.org/2000/svg"
1996
- >
1997
- <desc
1998
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
1999
- >
2000
- Created with Raphaël
2001
- </desc>
2002
- <defs
2003
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2004
- />
2005
- <ellipse
2006
- cx="24"
2007
- cy="24"
2008
- fill="#000000"
2009
- opacity="0"
2010
- rx="24"
2011
- ry="24"
2012
- stroke="#000"
2013
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
2014
- />
2015
- </svg>
2016
- </div>
2017
- </div>
2018
- <span
2019
- class="graphie-label"
2020
- data-math-formula=""
2021
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 57.142857142857146px; top: 342.8571428571429px; fill: none; stroke: #6495ED;"
2022
- >
2023
- <span
2024
- class="tex-holder"
2025
- />
2026
- </span>
2027
- <span
2028
- class="graphie-label"
2029
- data-math-formula=""
2030
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 57.142857142857146px; top: 342.8571428571429px; fill: none; stroke: #6495ED;"
2031
- >
2032
- <span
2033
- class="tex-holder"
2034
- />
2035
- </span>
2036
- <span
2037
- class="graphie-label"
2038
- data-math-formula=""
2039
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 57.142857142857146px; top: 342.8571428571429px; fill: none; stroke: #6495ED;"
2040
- >
2041
- <span
2042
- class="tex-holder"
2043
- />
2044
- </span>
2045
- <span
2046
- class="graphie-label"
2047
- data-math-formula="\\approx 2.2"
2048
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 246.45997239142687px; top: 162.4842995185723px; fill: none; stroke: #6495ED;"
2049
- >
2050
- <span
2051
- class="tex-holder"
2052
- />
2053
- </span>
2054
- <span
2055
- class="graphie-label"
2056
- data-math-formula="\\approx 2.2"
2057
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 153.54002760857313px; top: 162.48429951857227px; fill: none; stroke: #6495ED;"
2058
- >
2059
- <span
2060
- class="tex-holder"
2061
- />
2062
- </span>
2063
- <span
2064
- class="graphie-label"
2065
- data-math-formula="2.0"
2066
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 248.57142857142856px; fill: none; stroke: #6495ED;"
2067
- >
2068
- <span
2069
- class="tex-holder"
2070
- />
2071
- </span>
2072
- </div>
2073
- </div>
2074
- </div>
2075
- </div>
2076
-
2077
- </div>
2078
- </div>
2079
- </div>
2080
- </div>
2081
- `;
2082
-
2083
- exports[`interactive-graph widget question Shoud render predictably: first render 2`] = `
2084
- <div>
2085
- <div
2086
- class="perseus-renderer perseus-renderer-responsive"
2087
- >
2088
- <div
2089
- class="paragraph"
2090
- data-perseus-paragraph-index="0"
2091
- >
2092
- <div
2093
- class="paragraph"
2094
- >
2095
- <strong>
2096
- Plot the image of triangle
2097
- <span
2098
- style="white-space: nowrap;"
2099
- >
2100
- <span />
2101
- <span
2102
- class="mock-TeX"
2103
- >
2104
- \\triangle ABC
2105
- </span>
2106
- <span />
2107
- </span>
2108
- under a reflection across line
2109
- <span
2110
- style="white-space: nowrap;"
2111
- >
2112
- <span />
2113
- <span
2114
- class="mock-TeX"
2115
- >
2116
- \\ell
2117
- </span>
2118
- <span />
2119
- </span>
2120
- .
2121
- </strong>
2122
- </div>
2123
- </div>
2124
- <div
2125
- class="paragraph"
2126
- data-perseus-paragraph-index="1"
2127
- >
2128
- <div
2129
- class="paragraph"
2130
- >
2131
- <div
2132
- class="perseus-widget-container widget-nohighlight widget-block"
2133
- >
2134
- <div
2135
- class="perseus-widget perseus-widget-interactive-graph"
2136
- style="width: 400px; height: 400px;"
2137
- >
2138
- <div
2139
- class="graphie-container above-scratchpad"
2140
- style="width: 400px; height: 400px;"
2141
- >
2142
- <div
2143
- class="unresponsive-svg-image"
2144
- style="width: 400px; height: 400px;"
2145
- >
2146
- <span
2147
- style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute; min-width: 20px; display: flex; justify-content: center; align-content: center;"
2148
- >
2149
- <div
2150
- class="default_xu2jcg-o_O-spinnerContainer_agrn11"
2151
- >
2152
- <svg
2153
- height="48"
2154
- viewBox="0 0 48 48"
2155
- width="48"
2156
- xmlns="http://www.w3.org/2000/svg"
2157
- >
2158
- <path
2159
- class="loadingSpinner_1dvgeb3-o_O-inlineStyles_1kzk0y9"
2160
- d="M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z"
2161
- fill-rule="nonzero"
2162
- />
2163
- </svg>
2164
- </div>
2165
- </span>
2166
- </div>
2167
- <div
2168
- class="graphie"
2169
- style="position: relative; width: 400px; height: 400px;"
2170
- >
2171
- <svg
2172
- height="400"
2173
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
2174
- version="1.1"
2175
- width="400"
2176
- xmlns="http://www.w3.org/2000/svg"
2177
- >
2178
- <desc
2179
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2180
- >
2181
- Created with Raphaël
2182
- </desc>
2183
- <defs
2184
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2185
- />
2186
- <path
2187
- d="M275,250L200,125L125,250Z"
2188
- fill="#000000"
2189
- opacity="0"
2190
- stroke="#000000"
2191
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
2192
- />
2193
- </svg>
2194
- <svg
2195
- height="400"
2196
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2197
- version="1.1"
2198
- width="400"
2199
- xmlns="http://www.w3.org/2000/svg"
2200
- >
2201
- <desc
2202
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2203
- >
2204
- Created with Raphaël
2205
- </desc>
2206
- <defs
2207
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2208
- />
2209
- <path
2210
- d="M275,250L200,125L125,250Z"
2211
- fill="#71b307"
2212
- fill-opacity="0"
2213
- stroke="#71b307"
2214
- stroke-width="2"
2215
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 2; fill-opacity: 0;"
2216
- />
2217
- </svg>
2218
- <div
2219
- style="position: absolute; left: 0px; top: 0px;"
2220
- >
2221
- <div
2222
- style="position: absolute; width: 26px; height: 26px; left: 262px; top: 237px; transform: translateX(0px) translateY(0px) translateZ(0);"
2223
- >
2224
- <svg
2225
- height="26"
2226
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2227
- version="1.1"
2228
- width="26"
2229
- xmlns="http://www.w3.org/2000/svg"
2230
- >
2231
- <desc
2232
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2233
- >
2234
- Created with Raphaël
2235
- </desc>
2236
- <defs
2237
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2238
- />
2239
- <ellipse
2240
- cx="NaN"
2241
- cy="NaN"
2242
- fill="#71b307"
2243
- r="NaN"
2244
- rx="4"
2245
- ry="4"
2246
- stroke="#71b307"
2247
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2248
- transform=""
2249
- />
2250
- </svg>
2251
- </div>
2252
- <div
2253
- style="position: absolute; width: 26px; height: 26px; left: 187px; top: 112px; transform: translateX(0px) translateY(0px) translateZ(0);"
2254
- >
2255
- <svg
2256
- height="26"
2257
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2258
- version="1.1"
2259
- width="26"
2260
- xmlns="http://www.w3.org/2000/svg"
2261
- >
2262
- <desc
2263
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2264
- >
2265
- Created with Raphaël
2266
- </desc>
2267
- <defs
2268
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2269
- />
2270
- <ellipse
2271
- cx="NaN"
2272
- cy="NaN"
2273
- fill="#71b307"
2274
- r="NaN"
2275
- rx="4"
2276
- ry="4"
2277
- stroke="#71b307"
2278
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2279
- transform=""
2280
- />
2281
- </svg>
2282
- </div>
2283
- <div
2284
- style="position: absolute; width: 26px; height: 26px; left: 112px; top: 237px; transform: translateX(0px) translateY(0px) translateZ(0);"
2285
- >
2286
- <svg
2287
- height="26"
2288
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2289
- version="1.1"
2290
- width="26"
2291
- xmlns="http://www.w3.org/2000/svg"
2292
- >
2293
- <desc
2294
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2295
- >
2296
- Created with Raphaël
2297
- </desc>
2298
- <defs
2299
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2300
- />
2301
- <ellipse
2302
- cx="NaN"
2303
- cy="NaN"
2304
- fill="#71b307"
2305
- r="NaN"
2306
- rx="4"
2307
- ry="4"
2308
- stroke="#71b307"
2309
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2310
- transform=""
2311
- />
2312
- </svg>
2313
- </div>
2314
- </div>
2315
- <div
2316
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
2317
- >
2318
- <div
2319
- data-interactive-kind-for-testing="movable-point"
2320
- style="position: absolute; width: 48px; height: 48px; left: 251px; top: 226px; transform: translateX(0px) translateY(0px) translateZ(0);"
2321
- >
2322
- <svg
2323
- height="48"
2324
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2325
- version="1.1"
2326
- width="48"
2327
- xmlns="http://www.w3.org/2000/svg"
2328
- >
2329
- <desc
2330
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2331
- >
2332
- Created with Raphaël
2333
- </desc>
2334
- <defs
2335
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2336
- />
2337
- <ellipse
2338
- cx="24"
2339
- cy="24"
2340
- fill="#000000"
2341
- opacity="0"
2342
- rx="24"
2343
- ry="24"
2344
- stroke="#000"
2345
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
2346
- />
2347
- </svg>
2348
- </div>
2349
- <div
2350
- data-interactive-kind-for-testing="movable-point"
2351
- style="position: absolute; width: 48px; height: 48px; left: 176px; top: 101px; transform: translateX(0px) translateY(0px) translateZ(0);"
2352
- >
2353
- <svg
2354
- height="48"
2355
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2356
- version="1.1"
2357
- width="48"
2358
- xmlns="http://www.w3.org/2000/svg"
2359
- >
2360
- <desc
2361
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2362
- >
2363
- Created with Raphaël
2364
- </desc>
2365
- <defs
2366
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2367
- />
2368
- <ellipse
2369
- cx="24"
2370
- cy="24"
2371
- fill="#000000"
2372
- opacity="0"
2373
- rx="24"
2374
- ry="24"
2375
- stroke="#000"
2376
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
2377
- />
2378
- </svg>
2379
- </div>
2380
- <div
2381
- data-interactive-kind-for-testing="movable-point"
2382
- style="position: absolute; width: 48px; height: 48px; left: 101px; top: 226px; transform: translateX(0px) translateY(0px) translateZ(0);"
2383
- >
2384
- <svg
2385
- height="48"
2386
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2387
- version="1.1"
2388
- width="48"
2389
- xmlns="http://www.w3.org/2000/svg"
2390
- >
2391
- <desc
2392
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2393
- >
2394
- Created with Raphaël
2395
- </desc>
2396
- <defs
2397
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2398
- />
2399
- <ellipse
2400
- cx="24"
2401
- cy="24"
2402
- fill="#000000"
2403
- opacity="0"
2404
- rx="24"
2405
- ry="24"
2406
- stroke="#000"
2407
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
2408
- />
2409
- </svg>
2410
- </div>
2411
- </div>
2412
- <span
2413
- class="graphie-label"
2414
- data-math-formula=""
2415
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
2416
- >
2417
- <span
2418
- class="tex-holder"
2419
- />
2420
- </span>
2421
- <span
2422
- class="graphie-label"
2423
- data-math-formula=""
2424
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
2425
- >
2426
- <span
2427
- class="tex-holder"
2428
- />
2429
- </span>
2430
- <span
2431
- class="graphie-label"
2432
- data-math-formula=""
2433
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
2434
- >
2435
- <span
2436
- class="tex-holder"
2437
- />
2438
- </span>
2439
- <span
2440
- class="graphie-label"
2441
- data-math-formula=""
2442
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
2443
- >
2444
- <span
2445
- class="tex-holder"
2446
- />
2447
- </span>
2448
- <span
2449
- class="graphie-label"
2450
- data-math-formula=""
2451
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
2452
- >
2453
- <span
2454
- class="tex-holder"
2455
- />
2456
- </span>
2457
- <span
2458
- class="graphie-label"
2459
- data-math-formula=""
2460
- style="position: absolute; padding: 7px; color: rgb(100, 149, 237); left: 200px; top: 200px; fill: none; stroke: #6495ED;"
2461
- >
2462
- <span
2463
- class="tex-holder"
2464
- />
2465
- </span>
2466
- </div>
2467
- </div>
2468
- </div>
2469
- </div>
2470
- </div>
2471
- </div>
2472
- </div>
2473
- </div>
2474
- `;
2475
-
2476
- exports[`interactive-graph widget question Shoud render predictably: first render 3`] = `
2477
- <div>
2478
- <div
2479
- class="perseus-renderer perseus-renderer-responsive"
2480
- >
2481
- <div
2482
- class="paragraph"
2483
- data-perseus-paragraph-index="0"
2484
- >
2485
- <div
2486
- class="paragraph"
2487
- >
2488
- We want to find the zeros of this polynomial:
2489
- </div>
2490
- </div>
2491
- <div
2492
- class="paragraph perseus-paragraph-centered"
2493
- data-perseus-paragraph-index="1"
2494
- >
2495
- <div
2496
- class="perseus-block-math"
2497
- >
2498
- <div
2499
- class="perseus-block-math-inner"
2500
- style="overflow-x: auto; overflow-y: hidden; padding-top: 10px; padding-bottom: 10px; margin-top: -10px; margin-bottom: -10px;"
2501
- >
2502
- <span
2503
- class="mock-TeX"
2504
- >
2505
- p(x)=x(2x+5)(x+1)
2506
- </span>
2507
- </div>
2508
- </div>
2509
- </div>
2510
- <div
2511
- class="paragraph"
2512
- data-perseus-paragraph-index="2"
2513
- >
2514
- <div
2515
- class="paragraph"
2516
- >
2517
- <strong>
2518
- Plot all the zeros (
2519
- <span
2520
- style="white-space: nowrap;"
2521
- >
2522
- <span />
2523
- <span
2524
- class="mock-TeX"
2525
- >
2526
- x
2527
- </span>
2528
- <span />
2529
- </span>
2530
- -intercepts) of the polynomial in the interactive graph.
2531
- </strong>
2532
- </div>
2533
- </div>
2534
- <div
2535
- class="paragraph"
2536
- data-perseus-paragraph-index="3"
2537
- >
2538
- <div
2539
- class="paragraph"
2540
- >
2541
- <div
2542
- class="perseus-widget-container widget-nohighlight widget-block"
2543
- >
2544
- <div
2545
- class="perseus-widget perseus-widget-interactive-graph"
2546
- style="width: 400px; height: 400px;"
2547
- >
2548
- <div
2549
- class="graphie-container above-scratchpad"
2550
- style="width: 400px; height: 400px;"
2551
- >
2552
- <div
2553
- class="unresponsive-svg-image"
2554
- style="width: 425px; height: 425px;"
2555
- >
2556
- <span
2557
- style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute; min-width: 20px; display: flex; justify-content: center; align-content: center;"
2558
- >
2559
- <div
2560
- class="default_xu2jcg-o_O-spinnerContainer_agrn11"
2561
- >
2562
- <svg
2563
- height="48"
2564
- viewBox="0 0 48 48"
2565
- width="48"
2566
- xmlns="http://www.w3.org/2000/svg"
2567
- >
2568
- <path
2569
- class="loadingSpinner_1dvgeb3-o_O-inlineStyles_1kzk0y9"
2570
- d="M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z"
2571
- fill-rule="nonzero"
2572
- />
2573
- </svg>
2574
- </div>
2575
- </span>
2576
- </div>
2577
- <div
2578
- class="graphie"
2579
- style="position: relative; width: 400px; height: 400px;"
2580
- >
2581
- <svg
2582
- height="400"
2583
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
2584
- version="1.1"
2585
- width="400"
2586
- xmlns="http://www.w3.org/2000/svg"
2587
- >
2588
- <desc
2589
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2590
- >
2591
- Created with Raphaël
2592
- </desc>
2593
- <defs
2594
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2595
- />
2596
- <rect
2597
- fill="#000000"
2598
- height="400"
2599
- opacity="0"
2600
- r="0"
2601
- rx="0"
2602
- ry="0"
2603
- stroke="#000"
2604
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0;"
2605
- width="400"
2606
- x="0"
2607
- y="0"
2608
- />
2609
- </svg>
2610
- <svg
2611
- height="400"
2612
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2613
- version="1.1"
2614
- width="400"
2615
- xmlns="http://www.w3.org/2000/svg"
2616
- >
2617
- <desc
2618
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2619
- >
2620
- Created with Raphaël
2621
- </desc>
2622
- <defs
2623
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2624
- />
2625
- <image
2626
- height="40"
2627
- href="https://ka-perseus-graphie.s3.amazonaws.com/b1452c0d79fd0f7ff4c3af9488474a0a0decb361.png"
2628
- opacity="0.5"
2629
- preserveAspectRatio="none"
2630
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0.5;"
2631
- width="40"
2632
- x="360"
2633
- y="360"
2634
- />
2635
- </svg>
2636
- <div
2637
- style="font-style: italic; font-weight: bold; font-size: 32px; width: 100%; height: 100%; text-align: center; background-color: white; position: absolute; z-index: 1; transition: opacity .25s ease-in-out; opacity: 0.5;"
2638
- >
2639
- <span
2640
- style="position: relative; top: 25%;"
2641
- >
2642
- Click to add points
2643
- </span>
2644
- </div>
2645
- <div
2646
- style="position: absolute; left: 0px; top: 0px;"
2647
- />
2648
- <div
2649
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
2650
- />
2651
- </div>
2652
- </div>
2653
- </div>
2654
- </div>
2655
- </div>
2656
- </div>
2657
- </div>
2658
- </div>
2659
- `;
2660
-
2661
- exports[`interactive-graph widget question Shoud render predictably: first render 4`] = `
2662
- <div>
2663
- <div
2664
- class="perseus-renderer perseus-renderer-responsive"
2665
- >
2666
- <div
2667
- class="paragraph"
2668
- data-perseus-paragraph-index="0"
2669
- >
2670
- <div
2671
- class="paragraph"
2672
- >
2673
- The graph below contains quadrilateral
2674
- <span
2675
- style="white-space: nowrap;"
2676
- >
2677
- <span />
2678
- <span
2679
- class="mock-TeX"
2680
- >
2681
- TREK
2682
- </span>
2683
- <span />
2684
- </span>
2685
- and the point
2686
- <span
2687
- style="white-space: nowrap;"
2688
- >
2689
- <span />
2690
- <span
2691
- class="mock-TeX"
2692
- >
2693
- P(-8,-6)
2694
- </span>
2695
- <span />
2696
- </span>
2697
- .
2698
- </div>
2699
- </div>
2700
- <div
2701
- class="paragraph"
2702
- data-perseus-paragraph-index="1"
2703
- >
2704
- <div
2705
- class="paragraph"
2706
- >
2707
- <strong>
2708
- Draw the image of quadrilateral
2709
- <span
2710
- style="white-space: nowrap;"
2711
- >
2712
- <span />
2713
- <span
2714
- class="mock-TeX"
2715
- >
2716
- TREK
2717
- </span>
2718
- <span />
2719
- </span>
2720
- under a dilation whose center is
2721
- <span
2722
- style="white-space: nowrap;"
2723
- >
2724
- <span />
2725
- <span
2726
- class="mock-TeX"
2727
- >
2728
- P
2729
- </span>
2730
- <span />
2731
- </span>
2732
- and scale factor is
2733
- <span
2734
- style="white-space: nowrap;"
2735
- >
2736
- <span />
2737
- <span
2738
- class="mock-TeX"
2739
- >
2740
- 3
2741
- </span>
2742
- <span />
2743
- </span>
2744
- .
2745
- </strong>
2746
-
2747
- </div>
2748
- </div>
2749
- <div
2750
- class="paragraph"
2751
- data-perseus-paragraph-index="2"
2752
- >
2753
- <div
2754
- class="paragraph"
2755
- >
2756
- <div
2757
- class="perseus-widget-container widget-nohighlight widget-block"
2758
- >
2759
- <div
2760
- class="perseus-widget perseus-widget-interactive-graph"
2761
- style="width: 400px; height: 400px;"
2762
- >
2763
- <div
2764
- class="graphie-container above-scratchpad"
2765
- style="width: 400px; height: 400px;"
2766
- >
2767
- <div
2768
- class="unresponsive-svg-image"
2769
- style="width: 425px; height: 425px;"
2770
- >
2771
- <span
2772
- style="top: 0px; left: 0px; width: 100%; height: 100%; position: absolute; min-width: 20px; display: flex; justify-content: center; align-content: center;"
2773
- >
2774
- <div
2775
- class="default_xu2jcg-o_O-spinnerContainer_agrn11"
2776
- >
2777
- <svg
2778
- height="48"
2779
- viewBox="0 0 48 48"
2780
- width="48"
2781
- xmlns="http://www.w3.org/2000/svg"
2782
- >
2783
- <path
2784
- class="loadingSpinner_1dvgeb3-o_O-inlineStyles_1kzk0y9"
2785
- d="M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z"
2786
- fill-rule="nonzero"
2787
- />
2788
- </svg>
2789
- </div>
2790
- </span>
2791
- </div>
2792
- <div
2793
- class="graphie"
2794
- style="position: relative; width: 400px; height: 400px;"
2795
- >
2796
- <svg
2797
- height="400"
2798
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); z-index: 2;"
2799
- version="1.1"
2800
- width="400"
2801
- xmlns="http://www.w3.org/2000/svg"
2802
- >
2803
- <desc
2804
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2805
- >
2806
- Created with Raphaël
2807
- </desc>
2808
- <defs
2809
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2810
- />
2811
- <rect
2812
- fill="#000000"
2813
- height="400"
2814
- opacity="0"
2815
- r="0"
2816
- rx="0"
2817
- ry="0"
2818
- stroke="#000"
2819
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0;"
2820
- width="400"
2821
- x="0"
2822
- y="0"
2823
- />
2824
- <path
2825
- d="M0,0"
2826
- fill="#000000"
2827
- opacity="0"
2828
- stroke="#000000"
2829
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0; cursor: move;"
2830
- />
2831
- </svg>
2832
- <svg
2833
- height="400"
2834
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2835
- version="1.1"
2836
- width="400"
2837
- xmlns="http://www.w3.org/2000/svg"
2838
- >
2839
- <desc
2840
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2841
- >
2842
- Created with Raphaël
2843
- </desc>
2844
- <defs
2845
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
2846
- />
2847
- <image
2848
- height="40"
2849
- href="https://ka-perseus-graphie.s3.amazonaws.com/b1452c0d79fd0f7ff4c3af9488474a0a0decb361.png"
2850
- opacity="0.5"
2851
- preserveAspectRatio="none"
2852
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0.5;"
2853
- width="40"
2854
- x="360"
2855
- y="360"
2856
- />
2857
- <path
2858
- d="M0,0"
2859
- fill="#71b307"
2860
- fill-opacity="0"
2861
- stroke="#71b307"
2862
- stroke-width="2"
2863
- style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); stroke-width: 2; fill-opacity: 0;"
2864
- />
2865
- </svg>
2866
- <div
2867
- style="font-style: italic; font-weight: bold; font-size: 32px; width: 100%; height: 100%; text-align: center; background-color: white; position: absolute; z-index: 1; transition: opacity .25s ease-in-out; opacity: 0.5;"
2868
- >
2869
- <span
2870
- style="position: relative; top: 25%;"
2871
- >
2872
- Click to add vertices
2873
- </span>
2874
- </div>
2875
- <div
2876
- style="position: absolute; left: 0px; top: 0px;"
2877
- />
2878
- <div
2879
- style="position: absolute; left: 0px; top: 0px; z-index: 2;"
2880
- />
2881
- </div>
2882
- </div>
2883
- </div>
2884
- </div>
2885
- </div>
2886
- </div>
2887
- </div>
2888
- </div>
2889
- `;