@doenet/doenetml 0.7.21-dev.415 → 0.7.21-dev.416
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AnswerResponseButton-CsMwAC3t.js → AnswerResponseButton-Dd0HJDB-.js} +2 -2
- package/{Description-B_KGuyjX.js → Description-CeSquB0w.js} +1 -1
- package/{GraphFrame-BCe-sXyY.js → GraphFrame-7iZnp0Pp.js} +2 -2
- package/{JSXGraphRenderer-CTbAGksr.js → JSXGraphRenderer-CH3Etvtx.js} +1 -1
- package/{NonInlineMediaWrapper-DqUh14n5.js → NonInlineMediaWrapper-BPKCeJoI.js} +1 -1
- package/Viewer/renderers/lineSegment.d.ts.map +1 -1
- package/Viewer/renderers/polyline.d.ts.map +1 -1
- package/Viewer/renderers/utils/buildGraphicalAttributes.d.ts +28 -0
- package/Viewer/renderers/utils/buildGraphicalAttributes.d.ts.map +1 -1
- package/Viewer/renderers/utils/buildGraphicalAttributes.test.d.ts +2 -0
- package/Viewer/renderers/utils/buildGraphicalAttributes.test.d.ts.map +1 -0
- package/Viewer/renderers/vector.d.ts.map +1 -1
- package/{_error-8CVqZvs9.js → _error-BpXkUOcQ.js} +2 -2
- package/{alert-CnVNVwp0.js → alert-Dl4SKpDl.js} +3 -3
- package/{angle-DtykfDvk.js → angle-CHPAoa9_.js} +6 -6
- package/{answer-D8_55NUB.js → answer-BfTY7xDk.js} +5 -5
- package/{asList-Cvb4HFYc.js → asList-CIPYtO56.js} +2 -2
- package/{blockQuote-CD7LAibH.js → blockQuote-eD4WN8NB.js} +3 -3
- package/{boolean-i9xt_Fyy.js → boolean-AcXpBTjc.js} +2 -2
- package/{booleanInput-DxN2aj4D.js → booleanInput-D1KVVjD0.js} +6 -6
- package/{br-Ch6INIwC.js → br-sGi9NZV-.js} +2 -2
- package/{buildGraphicalAttributes-C7PtyKL7.js → buildGraphicalAttributes-0RNcbd2S.js} +22 -2
- package/{button-B5SnRU2e.js → button-zm1xKQ6P.js} +4 -4
- package/{c-DArDpN4A.js → c-CS1KT-i7.js} +3 -3
- package/{cell-BFX6fxf0.js → cell-DOy9dHlG.js} +3 -3
- package/{choiceInput-DXKjyCqp.js → choiceInput-BGjmqGv1.js} +4 -4
- package/{circle-AbQzXEA5.js → circle-CdXs4vCM.js} +7 -7
- package/{cobwebPolyline-CB6cVyKX.js → cobwebPolyline-nbaAuj6B.js} +4 -4
- package/{codeEditor-D0vhTs3g.js → codeEditor-AH1NzGY5.js} +2 -2
- package/{composites-BY7-JuTc.js → composites-_Ju1qHUH.js} +1 -1
- package/{containerBlock-Cm-kBh3q.js → containerBlock-BJZA-hug.js} +4 -4
- package/{containerInline-CcOaOhs8.js → containerInline-CErx1TlK.js} +4 -4
- package/{curve-CdVn_xI2.js → curve-CtGjIZZT.js} +4 -4
- package/{doenetml-RwjW6x7w.js → doenetml-CKC903On.js} +5 -5
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-DVinv6-1.js → ellipsis-DfMIkq56.js} +2 -2
- package/{em-B8Bn3iQ8.js → em-C68xPdDA.js} +3 -3
- package/{embed-CCP_3Jzm.js → embed-EmlL532k.js} +2 -2
- package/{feedback-C7b_K-S3.js → feedback-BWaksokN.js} +4 -4
- package/{figure-vxfnUy1i.js → figure-DNohFiU-.js} +3 -3
- package/{fillPatterns-Cwsbhubm.js → fillPatterns-BC4vIjlx.js} +1 -1
- package/{footnote-DniX_WDV.js → footnote-C3cESiVn.js} +3 -3
- package/{fractionInput-Byd4TDY-.js → fractionInput-CbT0Fr4D.js} +4 -4
- package/{graph-BpbjUn8w.js → graph-Shoc8JnU.js} +6 -6
- package/{hint-BSyMGzDu.js → hint-CNCxpEVu.js} +4 -4
- package/{hr-Dv_52Wxd.js → hr-DccnD0xy.js} +2 -2
- package/{image-CDzqgIV7.js → image-DKmanipP.js} +7 -7
- package/{index-Ci4K0tDE.js → index-dmesrz8k.js} +1 -1
- package/{index.es-BCeR6l3D.js → index.es-DEgUxk1r.js} +1 -1
- package/index.js +1 -1
- package/{label-BpLxA1Ur.js → label-iXHeUsem.js} +6 -6
- package/{labelWithLatex-CsOmIYzz.js → labelWithLatex-DtXSmigp.js} +1 -1
- package/{legend-ZPzJ1SLv.js → legend-P8bA66Pn.js} +4 -4
- package/{line-B1QiilgT.js → line-DVW3oKW5.js} +7 -7
- package/{lineFamilyDragHandlers-DVSxZbFk.js → lineFamilyDragHandlers-Clzykt4r.js} +1 -1
- package/{lineSegment-CT3KASYT.js → lineSegment-CMfI8CzX.js} +14 -18
- package/{list-CseGxUq-.js → list-D_mXsSXQ.js} +4 -4
- package/{lq-CAAidAOg.js → lq-CyXQKGzw.js} +2 -2
- package/{lsq-B28Z8bv3.js → lsq-CKkVotjY.js} +2 -2
- package/{markupRenderer-BtKUERzJ.js → markupRenderer-D1tNv_Bq.js} +1 -1
- package/{math-BREIxh-E.js → math-DcMrHfiM.js} +6 -6
- package/{mathInput-BkKkb63g.js → mathInput-CM0oZNJB.js} +7 -7
- package/{matrixInput-BNWpketN.js → matrixInput-FuKpVk_a.js} +4 -4
- package/{mdash-9jp_u7Un.js → mdash-BABxuRC_.js} +2 -2
- package/{nbsp-C8hCQ6TS.js → nbsp-CUYTxD8h.js} +2 -2
- package/{ndash-CmJAVnNq.js → ndash-B-SHbaFG.js} +2 -2
- package/{number-r1umcD9p.js → number-BluUugiB.js} +6 -6
- package/{orbitalDiagram-CaNwebaQ.js → orbitalDiagram-CcsEMNH5.js} +2 -2
- package/{orbitalDiagramInput-B5JhTAdB.js → orbitalDiagramInput-BaR6FltQ.js} +2 -2
- package/{p-DP7YNDfx.js → p-DMbbK7I1.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-B-qNFkKU.js → paginatorControls-B-F1HpS4.js} +2 -2
- package/{pegboard-D7nAJ6RY.js → pegboard-BGC31Eyq.js} +4 -4
- package/{point-C59ja3n2.js → point-BT1XGRo9.js} +6 -6
- package/{polygon-CT-ARozK.js → polygon-Cfu9QrkP.js} +7 -7
- package/{polyline-DeGq7WP0.js → polyline-san0khs-.js} +9 -15
- package/{pre-BHH6fa9U.js → pre-BHN7blJZ.js} +3 -3
- package/{prefigure-BnSkAPHE.js → prefigure-C7f9UcnA.js} +1 -1
- package/{pretzel-CC5NgapN.js → pretzel-CmIYOB8F.js} +4 -4
- package/{q-CcNznZUD.js → q-tXX3oDTu.js} +3 -3
- package/{ray-D1b2GIcp.js → ray-BMK7xaAg.js} +6 -6
- package/{ref-OLToqdQ5.js → ref-65DT_x0u.js} +2 -2
- package/{regionBetweenCurveXAxis-PPEOPw8t.js → regionBetweenCurveXAxis-BsTsPQRg.js} +5 -5
- package/{regionBetweenCurves-DOtEzJak.js → regionBetweenCurves-C_M-pjuM.js} +5 -5
- package/{row-D42z_svT.js → row-DKwY5fZc.js} +2 -2
- package/{rq-DdecWWBG.js → rq-aLJVzNtD.js} +2 -2
- package/{rsq-D2qKFBXV.js → rsq-Bi1u3srM.js} +2 -2
- package/{section-AwW9I9a-.js → section-C_bOjYSJ.js} +5 -5
- package/{sha256-Bzrm4-tO-BHq68al3.js → sha256-Bzrm4-tO-BdovCL5S.js} +1 -1
- package/{sideBySide-BE1-5d7U.js → sideBySide-C5qw_QnB.js} +2 -2
- package/{slider-B92oejpK.js → slider-CikiyeRf.js} +3 -3
- package/{solution-DuvHYP7q.js → solution-DiHy7pvG.js} +4 -4
- package/{spreadsheet-CYi5VTRB.js → spreadsheet-B389Kps5.js} +2 -2
- package/{sq-CGmtbJG8.js → sq-BhDFF5Cb.js} +3 -3
- package/{subsetOfRealsInput-Dof9pDQJ.js → subsetOfRealsInput-9DbCcLIh.js} +2 -2
- package/{summaryStatistics-CHLmwy4B.js → summaryStatistics-DqJOzS1v.js} +2 -2
- package/{table-Ds4FsDXG.js → table-DgP2sNth.js} +2 -2
- package/{tabular-D93ZooVU.js → tabular-CqOenfoA.js} +2 -2
- package/{tag-CQG7jGLX.js → tag-B2133YF1.js} +2 -2
- package/{text-Cs4GBrRa.js → text-Glel7vRT.js} +6 -6
- package/{textInput-D08eVSJy.js → textInput-fbHYsYbe.js} +6 -6
- package/{tooltip-provider-mEVAI_oo.js → tooltip-provider-uV4ynrST.js} +1 -1
- package/{useAnchoredGraphDragHandler-CE3goik5.js → useAnchoredGraphDragHandler-CKCVFGYp.js} +1 -1
- package/useDoenetRenderer-B-lvSi_Q.js +114 -0
- package/{useSubmitActionWithDelay-Bl1nM1Rc.js → useSubmitActionWithDelay-DhUttTXy.js} +2 -2
- package/{vector-DTjqdT0D.js → vector-B1xF7lTk.js} +10 -16
- package/{video-Bj4ChYgg.js → video-DgvfU8N7.js} +4 -4
- package/useDoenetRenderer-BUPvEAwn.js +0 -114
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { q as DocContext, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as DocContext, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { s as syncLayer, r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, e as syncLineStrokeStyle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
3
|
+
import { s as syncLayer, r as removeJXGEventHandlers, j as jxg, g as syncVisPropValues, e as syncLineStrokeStyle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Shoc8JnU.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-Clzykt4r.js";
|
|
7
7
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
8
8
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
9
9
|
import { a as resolveLineColor, d as resolveHandleColor } from "./styleColors-Cknqcr0q.js";
|
|
10
10
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
11
11
|
import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
|
|
12
|
-
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-
|
|
12
|
+
import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-0RNcbd2S.js";
|
|
13
13
|
const polyline = React__default.memo(function Polyline(props) {
|
|
14
14
|
let { componentIdx, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
15
15
|
Polyline.ignoreActionsWithoutCore = () => true;
|
|
@@ -68,16 +68,10 @@ const polyline = React__default.memo(function Polyline(props) {
|
|
|
68
68
|
visible: !SVs.hidden && validCoords,
|
|
69
69
|
lineCap: "butt"
|
|
70
70
|
};
|
|
71
|
-
jsxPointAttributes.current =
|
|
72
|
-
|
|
73
|
-
fixed: false,
|
|
74
|
-
highlight: true,
|
|
75
|
-
withLabel: false,
|
|
76
|
-
fillColor: "none",
|
|
77
|
-
strokeColor: "none",
|
|
78
|
-
highlightStrokeColor: "none",
|
|
79
|
-
highlightFillColor: resolveHandleColor(darkMode),
|
|
71
|
+
jsxPointAttributes.current = buildDragHandleAttributes({
|
|
72
|
+
elementAttributes: jsxPolylineAttributes,
|
|
80
73
|
layer: 10 * SVs.layer + VERTEX_LAYER_OFFSET,
|
|
74
|
+
darkMode,
|
|
81
75
|
showInfoBox: SVs.showCoordsWhenDragging
|
|
82
76
|
});
|
|
83
77
|
if (verticesFixed.current || SVs.hidden || !validCoords) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-_Ju1qHUH.js";
|
|
5
5
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
6
6
|
const pre = React__default.memo(function Pre(props) {
|
|
7
7
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
3
|
const __vite_import_meta_env__ = { "VITE_PREFIGURE_MODULE_URL": "https://cdn.jsdelivr.net/npm/@doenet/prefigure@latest/prefigure.js" };
|
|
4
4
|
const DEFAULT_PREFIGURE_BUILD_ENDPOINT = "https://prefigure.doenet.org/build";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, w as useContentT, x as useRecordVisibilityChanges, q as DocContext, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, w as useContentT, x as useRecordVisibilityChanges, q as DocContext, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { A as AnswerResponseButton } from "./AnswerResponseButton-
|
|
5
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-Dd0HJDB-.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DhUttTXy.js";
|
|
6
6
|
const pretzel = React__default.memo(function Pretzel(props) {
|
|
7
7
|
let {
|
|
8
8
|
componentIdx,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { r as renderMarkupBody } from "./markupRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-D1tNv_Bq.js";
|
|
5
5
|
const q = React__default.memo(function Q(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { q as DocContext, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as DocContext, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, h as syncLineFamilyVisibility, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
7
|
-
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-
|
|
3
|
+
import { j as jxg, h as syncLineFamilyVisibility, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Shoc8JnU.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-Clzykt4r.js";
|
|
7
|
+
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-0RNcbd2S.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
10
10
|
import { a as resolveLineColor } from "./styleColors-Cknqcr0q.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as DocContext, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as DocContext, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
const ref = React__default.memo(function Ref(props) {
|
|
5
5
|
const { id, SVs, children, requestScrollTo } = useDoenetRenderer(props);
|
|
6
6
|
const { doenetViewerUrl } = useContext(DocContext) || {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { q as DocContext, A as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as DocContext, A as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
3
|
+
import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Shoc8JnU.js";
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-BC4vIjlx.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-Cknqcr0q.js";
|
|
8
8
|
const regionBetweenCurveXAxis = React__default.memo(function RegionBetweenCurveXAxis(props) {
|
|
9
9
|
let { id, SVs } = useDoenetRenderer(props);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { q as DocContext, A as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as DocContext, A as createFunctionFromDefinition, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-Shoc8JnU.js";
|
|
5
5
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
6
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
6
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-BC4vIjlx.js";
|
|
7
7
|
import { b as resolveCanvasColor } from "./styleColors-Cknqcr0q.js";
|
|
8
|
-
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
8
|
+
import { b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
9
9
|
const regionBetweenCurves = React__default.memo(function RegionBetweenCurves(props) {
|
|
10
10
|
let { id, SVs } = useDoenetRenderer(props);
|
|
11
11
|
RegionBetweenCurves.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
const row = React__default.memo(function Row(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
const rq = React__default.memo(function Rq(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
const rsq = React__default.memo(function Rsq(props) {
|
|
5
5
|
let { SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useT, w as useContentT, q as DocContext, z as cesc, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, w as useContentT, q as DocContext, z as cesc, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { F as FontAwesomeIcon } from "./index.es-DEgUxk1r.js";
|
|
4
4
|
import { f as faCaretDown, a as faCaretRight } from "./index-BDlitCgu.js";
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
6
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
7
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-_Ju1qHUH.js";
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DhUttTXy.js";
|
|
8
8
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
9
9
|
const section = React__default.memo(function Section(props) {
|
|
10
10
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
5
5
|
function isWhitespaceTextChild(child) {
|
|
6
6
|
return typeof child === "string" && child.trim() === "";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useT, p as jsxRuntimeExports, K as ActionButtonGroup, L as ActionButton, y as Context } from "./doenetml-
|
|
1
|
+
import { u as useT, p as jsxRuntimeExports, K as ActionButtonGroup, L as ActionButton, y as Context } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
|
-
import { r as renderLabelWithLatex } from "./labelWithLatex-
|
|
5
|
+
import { r as renderLabelWithLatex } from "./labelWithLatex-DtXSmigp.js";
|
|
6
6
|
let round_to_decimals = (x, n) => {
|
|
7
7
|
try {
|
|
8
8
|
return Context.round_numbers_to_decimals(x, n).tree;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useT, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
|
+
import { F as FontAwesomeIcon } from "./index.es-DEgUxk1r.js";
|
|
5
5
|
import { c as faPuzzlePiece } from "./index-BDlitCgu.js";
|
|
6
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
6
|
+
import { a as addCommasForCompositeRanges } from "./composites-_Ju1qHUH.js";
|
|
7
7
|
import { c as clickToToggleLabel } from "./disclosure-axyZa36E.js";
|
|
8
8
|
const solution = React__default.memo(function Solution(props) {
|
|
9
9
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as DocContext, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as DocContext, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { forwardRef, useId, useRef, useCallback, useMemo, useEffect, Children, useImperativeHandle, Fragment, createContext as createContext$1, useContext, useState } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
import require$$2 from "react-dom";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
6
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { r as renderMarkupBody } from "./markupRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-D1tNv_Bq.js";
|
|
5
5
|
const sq = React__default.memo(function Sq(props) {
|
|
6
6
|
const { SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, x as useRecordVisibilityChanges, p as jsxRuntimeExports, O as ToggleButtonGroup, T as ToggleButton, K as ActionButtonGroup, L as ActionButton } from "./doenetml-
|
|
1
|
+
import { u as useT, x as useRecordVisibilityChanges, p as jsxRuntimeExports, O as ToggleButtonGroup, T as ToggleButton, K as ActionButtonGroup, L as ActionButton } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
const subsetOfRealsInput = React__default.memo(function subsetOfReals(props) {
|
|
5
5
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props, false);
|
|
6
6
|
let [mode, setMode] = useState("add remove points");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useT, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useT, x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
const summaryStatistics = React__default.memo(function SummaryStatistics(props) {
|
|
6
6
|
let { id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
const table = React__default.memo(function Table(props) {
|
|
5
5
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
6
6
|
const ref = useRef(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
6
6
|
const tabular = React__default.memo(function Tabular(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
const tag = React__default.memo(function Tag(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { q as DocContext, y as Context, p as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-
|
|
1
|
+
import { q as DocContext, y as Context, p as jsxRuntimeExports, t as textRendererStyle } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useRef, useContext } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-
|
|
5
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
4
|
+
import { BoardContext, TEXT_LAYER_OFFSET } from "./graph-Shoc8JnU.js";
|
|
5
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BGjmqGv1.js";
|
|
8
8
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
9
9
|
import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
|
|
10
|
-
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-
|
|
10
|
+
import { d as detachAnchoredGraphElement, a as attachAnchoredGraphDragHandlers } from "./useAnchoredGraphDragHandler-CKCVFGYp.js";
|
|
11
11
|
const text = React__default.memo(function Text(props) {
|
|
12
12
|
let { componentIdx, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
13
13
|
Text.ignoreActionsWithoutCore = () => true;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { w as useContentT, y as Context, p as jsxRuntimeExports, M as MathJax } from "./doenetml-
|
|
1
|
+
import { w as useContentT, y as Context, p as jsxRuntimeExports, M as MathJax } from "./doenetml-CKC903On.js";
|
|
2
2
|
import { useState, useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
5
5
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
6
|
-
import { BoardContext } from "./graph-
|
|
6
|
+
import { BoardContext } from "./graph-Shoc8JnU.js";
|
|
7
7
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
8
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
9
|
-
import { D as DescriptionPopover } from "./Description-
|
|
8
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-DhUttTXy.js";
|
|
9
|
+
import { D as DescriptionPopover } from "./Description-CeSquB0w.js";
|
|
10
10
|
import { a as addValidationStateToShortDescription } from "./validationState-DI_lxk1a.js";
|
|
11
11
|
function TextInput(props) {
|
|
12
12
|
let { id, SVs, children, actions, ignoreUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as createStoreContext, a8 as HovercardScopedContextProvider, a9 as HovercardContextProvider, aa as createDialogComponent, R as forwardRef, S as createElement, U as createHook, W as invariant, ab as useWrapElement, p as jsxRuntimeExports, X as useStoreState, ac as useHovercard, ad as isFalsyBooleanCallback, ae as contains, af as sync, ag as chain, ah as useEvent, ai as useHovercardAnchor, aj as createStore, ak as createHovercardStore, al as defaultValue, am as useStore, an as useStoreProps, ao as useHovercardStoreProps } from "./doenetml-
|
|
1
|
+
import { a7 as createStoreContext, a8 as HovercardScopedContextProvider, a9 as HovercardContextProvider, aa as createDialogComponent, R as forwardRef, S as createElement, U as createHook, W as invariant, ab as useWrapElement, p as jsxRuntimeExports, X as useStoreState, ac as useHovercard, ad as isFalsyBooleanCallback, ae as contains, af as sync, ag as chain, ah as useEvent, ai as useHovercardAnchor, aj as createStore, ak as createHovercardStore, al as defaultValue, am as useStore, an as useStoreProps, ao as useHovercardStoreProps } from "./doenetml-CKC903On.js";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
const ctx = createStoreContext([HovercardContextProvider], [HovercardScopedContextProvider]);
|
|
4
4
|
const useTooltipProviderContext = ctx.useProviderContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-
|
|
1
|
+
import { r as removeJXGEventHandlers, L as LINE_FAMILY_EVENTS, j as jxg } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
2
2
|
import { e as exceededDragThreshold, p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
3
3
|
function attachAnchoredGraphDragHandlers(params) {
|
|
4
4
|
const {
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { F as useAppSelector, G as mainSlice, H as renderersLoadComponent, _ as __variableDynamicImportRuntimeHelper } from "./doenetml-CKC903On.js";
|
|
2
|
+
import React__default, { useState, useEffect } from "react";
|
|
3
|
+
function useDoenetRenderer(props, initializeChildrenOnConstruction = true) {
|
|
4
|
+
const actions = props.componentInstructions.actions;
|
|
5
|
+
const componentIdx = props.componentInstructions.componentIdx;
|
|
6
|
+
const effectiveIdx = props.componentInstructions.effectiveIdx;
|
|
7
|
+
const id = props.componentInstructions.id;
|
|
8
|
+
const rendererName = props.coreId + componentIdx;
|
|
9
|
+
const [renderersToLoad, setRenderersToLoad] = useState({});
|
|
10
|
+
const componentInfo = useAppSelector(
|
|
11
|
+
(state) => mainSlice.selectors.componentInfo(state)[rendererName]
|
|
12
|
+
);
|
|
13
|
+
const {
|
|
14
|
+
stateValues,
|
|
15
|
+
sourceOfUpdate = {},
|
|
16
|
+
ignoreUpdate,
|
|
17
|
+
childrenInstructions,
|
|
18
|
+
prefixForIds
|
|
19
|
+
} = componentInfo || {
|
|
20
|
+
stateValues: {},
|
|
21
|
+
sourceOfUpdate: {},
|
|
22
|
+
ignoreUpdate: false,
|
|
23
|
+
childrenInstructions: [],
|
|
24
|
+
prefixForIds: ""
|
|
25
|
+
};
|
|
26
|
+
let children = [];
|
|
27
|
+
const loadMoreRenderers = Object.keys(renderersToLoad).length === 0;
|
|
28
|
+
for (let childInstructions of childrenInstructions) {
|
|
29
|
+
let child = createChildFromInstructions(
|
|
30
|
+
childInstructions,
|
|
31
|
+
loadMoreRenderers
|
|
32
|
+
);
|
|
33
|
+
children.push(child);
|
|
34
|
+
}
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
const entries = Object.entries(renderersToLoad);
|
|
37
|
+
if (entries.length > 0) {
|
|
38
|
+
const names = entries.map(([name]) => name);
|
|
39
|
+
const loaders = entries.map(([, loader]) => loader);
|
|
40
|
+
renderersLoadComponent(loaders, names).then(
|
|
41
|
+
({ rendererClasses: newRendererClasses }) => {
|
|
42
|
+
Object.assign(props.rendererClasses, newRendererClasses);
|
|
43
|
+
setRenderersToLoad({});
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}, [renderersToLoad, props.rendererClasses]);
|
|
48
|
+
function createChildFromInstructions(childInstructions, loadMoreRenderers2) {
|
|
49
|
+
if (typeof childInstructions === "string" || childInstructions === null) {
|
|
50
|
+
return childInstructions;
|
|
51
|
+
}
|
|
52
|
+
let propsForChild = {
|
|
53
|
+
key: props.coreId + childInstructions.componentIdx,
|
|
54
|
+
componentInstructions: childInstructions,
|
|
55
|
+
rendererClasses: props.rendererClasses,
|
|
56
|
+
coreId: props.coreId,
|
|
57
|
+
docId: props.docId,
|
|
58
|
+
activityId: props.activityId,
|
|
59
|
+
callAction: props.callAction,
|
|
60
|
+
fetchExternalDoenetML: props.fetchExternalDoenetML,
|
|
61
|
+
requestScrollTo: props.requestScrollTo,
|
|
62
|
+
flags: props.flags
|
|
63
|
+
};
|
|
64
|
+
let rendererClass = props.rendererClasses[childInstructions.rendererType];
|
|
65
|
+
if (!rendererClass) {
|
|
66
|
+
if (loadMoreRenderers2) {
|
|
67
|
+
setRenderersToLoad((old) => {
|
|
68
|
+
let rendererLoaders = { ...old };
|
|
69
|
+
if (!(childInstructions.rendererType in rendererLoaders)) {
|
|
70
|
+
rendererLoaders[childInstructions.rendererType] = () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-7iZnp0Pp.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-CH3Etvtx.js").then((n) => n.m), "./renderers/_error.tsx": () => import("./_error-BpXkUOcQ.js"), "./renderers/alert.tsx": () => import("./alert-Dl4SKpDl.js"), "./renderers/angle.tsx": () => import("./angle-CHPAoa9_.js"), "./renderers/answer.tsx": () => import("./answer-BfTY7xDk.js"), "./renderers/asList.tsx": () => import("./asList-CIPYtO56.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-eD4WN8NB.js"), "./renderers/boolean.tsx": () => import("./boolean-AcXpBTjc.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-D1KVVjD0.js"), "./renderers/br.tsx": () => import("./br-sGi9NZV-.js"), "./renderers/button.tsx": () => import("./button-zm1xKQ6P.js"), "./renderers/c.tsx": () => import("./c-CS1KT-i7.js"), "./renderers/cell.tsx": () => import("./cell-DOy9dHlG.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BGjmqGv1.js"), "./renderers/circle.tsx": () => import("./circle-CdXs4vCM.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-nbaAuj6B.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-AH1NzGY5.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BJZA-hug.js"), "./renderers/containerInline.tsx": () => import("./containerInline-CErx1TlK.js"), "./renderers/curve.tsx": () => import("./curve-CtGjIZZT.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-DfMIkq56.js"), "./renderers/em.tsx": () => import("./em-C68xPdDA.js"), "./renderers/embed.tsx": () => import("./embed-EmlL532k.js"), "./renderers/feedback.tsx": () => import("./feedback-BWaksokN.js"), "./renderers/figure.tsx": () => import("./figure-DNohFiU-.js"), "./renderers/footnote.tsx": () => import("./footnote-C3cESiVn.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-CbT0Fr4D.js"), "./renderers/graph.tsx": () => import("./graph-Shoc8JnU.js"), "./renderers/hint.tsx": () => import("./hint-CNCxpEVu.js"), "./renderers/hr.tsx": () => import("./hr-DccnD0xy.js"), "./renderers/image.tsx": () => import("./image-DKmanipP.js"), "./renderers/label.tsx": () => import("./label-iXHeUsem.js"), "./renderers/legend.tsx": () => import("./legend-P8bA66Pn.js"), "./renderers/line.tsx": () => import("./line-DVW3oKW5.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-CMfI8CzX.js"), "./renderers/list.tsx": () => import("./list-D_mXsSXQ.js"), "./renderers/lq.tsx": () => import("./lq-CyXQKGzw.js"), "./renderers/lsq.tsx": () => import("./lsq-CKkVotjY.js"), "./renderers/math.tsx": () => import("./math-DcMrHfiM.js"), "./renderers/mathInput.tsx": () => import("./mathInput-CM0oZNJB.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-FuKpVk_a.js"), "./renderers/mdash.tsx": () => import("./mdash-BABxuRC_.js"), "./renderers/nbsp.tsx": () => import("./nbsp-CUYTxD8h.js"), "./renderers/ndash.tsx": () => import("./ndash-B-SHbaFG.js"), "./renderers/number.tsx": () => import("./number-BluUugiB.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-CcsEMNH5.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-BaR6FltQ.js"), "./renderers/p.tsx": () => import("./p-DMbbK7I1.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-B-F1HpS4.js"), "./renderers/pegboard.tsx": () => import("./pegboard-BGC31Eyq.js"), "./renderers/point.tsx": () => import("./point-BT1XGRo9.js"), "./renderers/polygon.tsx": () => import("./polygon-Cfu9QrkP.js"), "./renderers/polyline.tsx": () => import("./polyline-san0khs-.js"), "./renderers/pre.tsx": () => import("./pre-BHN7blJZ.js"), "./renderers/prefigure.tsx": () => import("./prefigure-C7f9UcnA.js"), "./renderers/pretzel.tsx": () => import("./pretzel-CmIYOB8F.js"), "./renderers/q.tsx": () => import("./q-tXX3oDTu.js"), "./renderers/ray.tsx": () => import("./ray-BMK7xaAg.js"), "./renderers/ref.tsx": () => import("./ref-65DT_x0u.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BsTsPQRg.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-C_M-pjuM.js"), "./renderers/row.tsx": () => import("./row-DKwY5fZc.js"), "./renderers/rq.tsx": () => import("./rq-aLJVzNtD.js"), "./renderers/rsq.tsx": () => import("./rsq-Bi1u3srM.js"), "./renderers/section.tsx": () => import("./section-C_bOjYSJ.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-C5qw_QnB.js"), "./renderers/slider.tsx": () => import("./slider-CikiyeRf.js"), "./renderers/solution.tsx": () => import("./solution-DiHy7pvG.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-B389Kps5.js"), "./renderers/sq.tsx": () => import("./sq-BhDFF5Cb.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-9DbCcLIh.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-DqJOzS1v.js"), "./renderers/table.tsx": () => import("./table-DgP2sNth.js"), "./renderers/tabular.tsx": () => import("./tabular-CqOenfoA.js"), "./renderers/tag.tsx": () => import("./tag-B2133YF1.js"), "./renderers/text.tsx": () => import("./text-Glel7vRT.js"), "./renderers/textInput.tsx": () => import("./textInput-fbHYsYbe.js"), "./renderers/vector.tsx": () => import("./vector-B1xF7lTk.js"), "./renderers/video.tsx": () => import("./video-DgvfU8N7.js") }), `./renderers/${childInstructions.rendererType}.tsx`, 3);
|
|
71
|
+
}
|
|
72
|
+
return rendererLoaders;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
let child = React__default.createElement(rendererClass, propsForChild);
|
|
78
|
+
return child;
|
|
79
|
+
}
|
|
80
|
+
let rendererType = props.componentInstructions.rendererType;
|
|
81
|
+
const callAction = (argObj) => {
|
|
82
|
+
if (!argObj.componentIdx) {
|
|
83
|
+
argObj = { ...argObj };
|
|
84
|
+
argObj.componentIdx = componentIdx;
|
|
85
|
+
}
|
|
86
|
+
if (!argObj.rendererType) {
|
|
87
|
+
argObj = { ...argObj };
|
|
88
|
+
argObj.rendererType = rendererType;
|
|
89
|
+
}
|
|
90
|
+
return props.callAction(argObj);
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
componentIdx: effectiveIdx,
|
|
94
|
+
id: prefixForIds + id,
|
|
95
|
+
SVs: stateValues,
|
|
96
|
+
docId: props.docId,
|
|
97
|
+
activityId: props.activityId,
|
|
98
|
+
actions,
|
|
99
|
+
children,
|
|
100
|
+
sourceOfUpdate,
|
|
101
|
+
ignoreUpdate,
|
|
102
|
+
rendererName,
|
|
103
|
+
initializeChildren: () => {
|
|
104
|
+
},
|
|
105
|
+
callAction,
|
|
106
|
+
doenetViewerUrl: props.doenetViewerUrl,
|
|
107
|
+
fetchExternalDoenetML: props.fetchExternalDoenetML,
|
|
108
|
+
requestScrollTo: props.requestScrollTo,
|
|
109
|
+
flags: props.flags
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
useDoenetRenderer as u
|
|
114
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as jsxRuntimeExports } from "./doenetml-
|
|
2
|
-
import { F as FontAwesomeIcon } from "./index.es-
|
|
1
|
+
import { p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
|
+
import { F as FontAwesomeIcon } from "./index.es-DEgUxk1r.js";
|
|
3
3
|
import { d as faSpinner, e as faLevelDownAlt, g as faCheck, h as faTimes, i as faCloud } from "./index-BDlitCgu.js";
|
|
4
4
|
import React__default, { useCallback } from "react";
|
|
5
5
|
function calculateValidationState(SVs) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { q as DocContext, p as jsxRuntimeExports, t as textRendererStyle, v as DynamicMath } from "./doenetml-
|
|
1
|
+
import { q as DocContext, p as jsxRuntimeExports, t as textRendererStyle, v as DynamicMath } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, g as syncVisPropValues, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-
|
|
6
|
-
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-
|
|
7
|
-
import { ChoiceInputInlineContext } from "./choiceInput-
|
|
8
|
-
import { a as buildLineLikeAttributes } from "./buildGraphicalAttributes-
|
|
3
|
+
import { j as jxg, s as syncLayer, g as syncVisPropValues, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, i as applyLineFamilyLabelPlacement, k as buildLineFamilyLabelAttributes, d as attachLabelHoverHighlight, c as computeLabelMaskCssStyle, l as stabilizeInitialLineFamilyLabelPlacement, r as removeJXGEventHandlers } from "./JSXGraphRenderer-CH3Etvtx.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-Shoc8JnU.js";
|
|
6
|
+
import { u as useSourceNavigation, a as attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-Clzykt4r.js";
|
|
7
|
+
import { ChoiceInputInlineContext } from "./choiceInput-BGjmqGv1.js";
|
|
8
|
+
import { a as buildLineLikeAttributes, c as buildDragHandleAttributes } from "./buildGraphicalAttributes-0RNcbd2S.js";
|
|
9
9
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
10
10
|
import { p as pointerEventToUserCoords } from "./dragThreshold-DuSSFrIU.js";
|
|
11
11
|
import { a as resolveLineColor, d as resolveHandleColor } from "./styleColors-Cknqcr0q.js";
|
|
@@ -71,16 +71,10 @@ const vector = React__default.memo(function Vector(props) {
|
|
|
71
71
|
[...SVs.numericalEndpoints[0]],
|
|
72
72
|
[...SVs.numericalEndpoints[1]]
|
|
73
73
|
];
|
|
74
|
-
let jsxPointAttributes =
|
|
75
|
-
|
|
76
|
-
withLabel: false,
|
|
77
|
-
fixed: false,
|
|
78
|
-
highlight: true,
|
|
79
|
-
fillColor: "none",
|
|
80
|
-
strokeColor: "none",
|
|
81
|
-
highlightStrokeColor: "none",
|
|
82
|
-
highlightFillColor: resolveHandleColor(darkMode),
|
|
74
|
+
let jsxPointAttributes = buildDragHandleAttributes({
|
|
75
|
+
elementAttributes: jsxVectorAttributes,
|
|
83
76
|
layer: pointLayer,
|
|
77
|
+
darkMode,
|
|
84
78
|
showInfoBox: SVs.showCoordsWhenDragging
|
|
85
79
|
});
|
|
86
80
|
let tailPointAttributes = Object.assign({}, jsxPointAttributes);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { x as useRecordVisibilityChanges, p as jsxRuntimeExports } from "./doenetml-CKC903On.js";
|
|
2
2
|
import React__default, { useState, useEffect, useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-B-lvSi_Q.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
|
-
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-
|
|
5
|
+
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-CeSquB0w.js";
|
|
6
6
|
import { g as getNonInlineMediaLayoutStyles } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
7
|
-
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-
|
|
7
|
+
import { N as NonInlineMediaWrapper } from "./NonInlineMediaWrapper-BPKCeJoI.js";
|
|
8
8
|
const YT_API_SRC = "https://www.youtube.com/iframe_api";
|
|
9
9
|
const listeners = /* @__PURE__ */ new Set();
|
|
10
10
|
let installed = false;
|