@doenet/doenetml 0.7.20-dev.334 → 0.7.20-dev.335
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-Gvhmmj9A.js → AnswerResponseButton-Bb2BI_rl.js} +2 -2
- package/{Description-B0pkxmYM.js → Description-X0wbmle2.js} +1 -1
- package/{GraphFrame-ZF35-YCf.js → GraphFrame-D0SsTifD.js} +2 -2
- package/{JSXGraphRenderer-ClyyL_2A.js → JSXGraphRenderer-WH0QKyTO.js} +1 -1
- package/{NonInlineMediaWrapper-ULod_asW.js → NonInlineMediaWrapper-BwSgbGOA.js} +1 -1
- package/Viewer/renderers/angle.d.ts.map +1 -1
- package/Viewer/renderers/circle.d.ts.map +1 -1
- package/Viewer/renderers/polygon.d.ts.map +1 -1
- package/Viewer/renderers/regionBetweenCurveXAxis.d.ts.map +1 -1
- package/Viewer/renderers/regionBetweenCurves.d.ts.map +1 -1
- package/Viewer/renderers/utils/fillPatterns.d.ts +35 -11
- package/Viewer/renderers/utils/fillPatterns.d.ts.map +1 -1
- package/Viewer/renderers/utils/styleColors.d.ts +12 -0
- package/Viewer/renderers/utils/styleColors.d.ts.map +1 -1
- package/{_error-e2DvTR_-.js → _error-IQ9UNo67.js} +2 -2
- package/{alert-CiDph-qI.js → alert-CGC3bff7.js} +3 -3
- package/{angle-BO-faJS7.js → angle-DHh7zuz0.js} +9 -7
- package/{answer-BAfMeEuz.js → answer-BRsvUVeb.js} +5 -5
- package/{asList-kgA-OT8n.js → asList-BDTqMh8x.js} +2 -2
- package/{blockQuote-CItqFOqX.js → blockQuote-a_wAKOhU.js} +3 -3
- package/{boolean-BCSLGpJu.js → boolean-DyQyJb0r.js} +2 -2
- package/{booleanInput-u3Zps6Fb.js → booleanInput-BuXBjR85.js} +6 -6
- package/{br-KYVD8qcq.js → br-Cfe4q1oD.js} +2 -2
- package/{buildGraphicalAttributes-WXpVD4ud.js → buildGraphicalAttributes-C7PtyKL7.js} +1 -1
- package/{button-w7VVe654.js → button-BNh32tF9.js} +4 -4
- package/{c-BSP1SVSx.js → c-DR_c8Y0-.js} +3 -3
- package/{cell-CB0DzYcL.js → cell-DaCO5BD5.js} +3 -3
- package/{choiceInput-rMXvVgk1.js → choiceInput-Ck8DVMmG.js} +4 -4
- package/{circle-BeLDrQ8q.js → circle-BZFa865i.js} +9 -7
- package/{cobwebPolyline-BTmHg_rW.js → cobwebPolyline-D5GvgpiH.js} +4 -4
- package/{codeEditor-Ct5C8db2.js → codeEditor-DYVj_Ab-.js} +2 -2
- package/{composites-Dm300CeM.js → composites-XinFoIcx.js} +1 -1
- package/{containerBlock-DIy2KB5D.js → containerBlock-BjigEe4d.js} +4 -4
- package/{containerInline-BmxKUHqq.js → containerInline-ByxuSmSL.js} +4 -4
- package/{curve-DmoNrVfA.js → curve-A385radh.js} +5 -5
- package/{doenetml-BKWgWWIN.js → doenetml-CLvAz_2Y.js} +4 -4
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +2 -2
- package/{ellipsis-scY2XC69.js → ellipsis-0Rf9uFcz.js} +2 -2
- package/{em-Dnuk5NWT.js → em-C-HqHV4n.js} +3 -3
- package/{embed-Cp--9Yfg.js → embed-BfNzc5Le.js} +2 -2
- package/{feedback-c_A4BreS.js → feedback-DwhXmMSH.js} +4 -4
- package/{figure-jTKaDOz3.js → figure-7Xi2fQSv.js} +3 -3
- package/{fillPatterns-D3zaP49I.js → fillPatterns-xFNXM2wi.js} +55 -10
- package/{footnote-CUHggjY3.js → footnote-B6OpfKj6.js} +3 -3
- package/{fractionInput-DETXKhQJ.js → fractionInput-D1xTeDSb.js} +4 -4
- package/{graph-CIVVSnH7.js → graph-DwiumKgy.js} +6 -6
- package/{hint-CdmNr5z6.js → hint-BAGwv27L.js} +4 -4
- package/{hr-D_9e0dVs.js → hr-Aj-J3kTg.js} +2 -2
- package/{image-BE89vcic.js → image-DkVGJkU9.js} +7 -7
- package/{index-BG3VxTKI.js → index-DOvVPLCZ.js} +1 -1
- package/{index.es-75dsQOf4.js → index.es-RhJQkW78.js} +1 -1
- package/index.js +1 -1
- package/{label-_U3xA-Bt.js → label-t5QOz3hz.js} +6 -6
- package/{labelWithLatex-BdorE1Ba.js → labelWithLatex-DGChcqLA.js} +1 -1
- package/{legend-CZGk-DEr.js → legend-GzOZUocx.js} +4 -4
- package/{line-DB_1uxnA.js → line-BeQtVGs_.js} +7 -7
- package/{lineSegment-Bo4V-Ids.js → lineSegment-oIe7WXtR.js} +6 -6
- package/{list-BbIsQlsb.js → list-x28rSefl.js} +4 -4
- package/{lq-BwD76zkS.js → lq-8l0sDOr8.js} +2 -2
- package/{lsq-C7B2cqLf.js → lsq-CZFG7Nl5.js} +2 -2
- package/{markupRenderer-Say_o9uX.js → markupRenderer-WCkpS3Xg.js} +1 -1
- package/{math-DU-09uBw.js → math-BMR5AiER.js} +6 -6
- package/{mathInput-B7nN2ol0.js → mathInput-DS_W_e8n.js} +7 -7
- package/{matrixInput-C3JylJ_O.js → matrixInput-DmrPKznJ.js} +4 -4
- package/{mdash-D3PcaUii.js → mdash-Bu1Q1ekL.js} +2 -2
- package/{nbsp-B_XH-l5k.js → nbsp-DVm0h4-x.js} +2 -2
- package/{ndash-DaNmR36W.js → ndash-DdGtnsQK.js} +2 -2
- package/{number-YvxsR4BL.js → number-CfeeIc74.js} +6 -6
- package/{orbitalDiagram-CmTWXDzB.js → orbitalDiagram-DEDYTOaB.js} +2 -2
- package/{orbitalDiagramInput-Cy_7ng8s.js → orbitalDiagramInput-CX08AX-x.js} +2 -2
- package/{p-DA_rzyWJ.js → p-yQIjH8Fa.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-BBPqx8C9.js → paginatorControls-FHx8dyK2.js} +2 -2
- package/{pegboard-CRZQVxuV.js → pegboard-DOjue_FK.js} +4 -4
- package/{point-ByEbaxWn.js → point-CwMVWF91.js} +6 -6
- package/{polygon-BmdkJEts.js → polygon-DdAM4aKr.js} +9 -7
- package/{polyline-CvqkWn7E.js → polyline-DWOgBzqs.js} +6 -6
- package/{pre-1IrMFXkg.js → pre-BZ7ZCw9Z.js} +3 -3
- package/{prefigure-lmP6VsjT.js → prefigure-DueQF7ys.js} +1 -1
- package/{pretzel-D6WX7Z_y.js → pretzel-ES8Yvo78.js} +4 -4
- package/{q-kRzKxy6K.js → q-xpEgI0-d.js} +3 -3
- package/{ray-DgnftbwK.js → ray-BNmkEcDJ.js} +6 -6
- package/{ref-ChyMLX-H.js → ref-CK0oY9LN.js} +2 -2
- package/{regionBetweenCurveXAxis-BBAp-W44.js → regionBetweenCurveXAxis-BDAOPDMD.js} +8 -5
- package/{regionBetweenCurves-FuodCBzl.js → regionBetweenCurves-DdPYLipw.js} +8 -5
- package/{row-CBcYGCtp.js → row-nP0ZhX6Z.js} +2 -2
- package/{rq-qOWxtmZg.js → rq-DLF6CDjv.js} +2 -2
- package/{rsq-C70_1w-v.js → rsq-Jh7GuweM.js} +2 -2
- package/{section-5EiCWYMD.js → section-n-Mv8eqZ.js} +5 -5
- package/{sha256-C0vj3HDn-CCgktFhW.js → sha256-C0vj3HDn-UGyxHwaY.js} +1 -1
- package/{sideBySide-BjpdpZxA.js → sideBySide-DdjzZlgo.js} +2 -2
- package/{slider-C8-N3Zwb.js → slider-BwwfFUMx.js} +3 -3
- package/{solution-nJ9QkZ6m.js → solution-CMJnOEXE.js} +4 -4
- package/{spreadsheet-UGkznEIk.js → spreadsheet-BPeiYRXq.js} +2 -2
- package/{sq-D7ffIkkq.js → sq-f0eKuiZ7.js} +3 -3
- package/{styleColors-DH1y_fdG.js → styleColors-Cknqcr0q.js} +6 -2
- package/{subsetOfRealsInput-Dx1x79Fj.js → subsetOfRealsInput-cPp2Z2Lo.js} +2 -2
- package/{summaryStatistics-CywLC3ub.js → summaryStatistics-_-_4_PVE.js} +2 -2
- package/{table-BhOldp85.js → table-Ctq_Iify.js} +2 -2
- package/{tabular-CHpPJUMK.js → tabular-DQg3Elet.js} +2 -2
- package/{tag-M3xzh0Ga.js → tag-C3cIMi7z.js} +2 -2
- package/{text-B5WNf0j4.js → text-DbQWmZqo.js} +6 -6
- package/{textInput-CAZzwrlH.js → textInput-CJmzQBzV.js} +6 -6
- package/{tooltip-provider-DCm__NtM.js → tooltip-provider-DH2D7lj4.js} +1 -1
- package/{useAnchoredGraphDragHandler-C6vmBXIi.js → useAnchoredGraphDragHandler-jENznKTo.js} +1 -1
- package/useDoenetRenderer-Dxxe3hVm.js +114 -0
- package/{useSubmitActionWithDelay-DFazHOZj.js → useSubmitActionWithDelay-Cf1y_3x3.js} +2 -2
- package/{vector-WRgenjlW.js → vector-B5kimWqF.js} +7 -7
- package/{video-oFHacN2c.js → video-CPqqjP8F.js} +4 -4
- package/useDoenetRenderer-D_88xSdj.js +0 -114
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports, v as Button } from "./doenetml-
|
|
2
|
-
import { T as TooltipProvider, a as TooltipAnchor, b as Tooltip } from "./tooltip-provider-
|
|
1
|
+
import { k as jsxRuntimeExports, v as Button } from "./doenetml-CLvAz_2Y.js";
|
|
2
|
+
import { T as TooltipProvider, a as TooltipAnchor, b as Tooltip } from "./tooltip-provider-DH2D7lj4.js";
|
|
3
3
|
function AnswerResponseButton({
|
|
4
4
|
answerId,
|
|
5
5
|
answerComponentIdx,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as memo, J as forwardRef, K as createElement, L as createHook, N as usePopoverContext, O as invariant, P as useStoreState, Q as getBasePlacement, R as useId, S as useMergeRefs, k as jsxRuntimeExports, U as removeUndefinedValues, V as useSafeLayoutEffect, W as getWindow, X as usePopoverStore, l as DocContext, Y as PopoverDisclosure, Z as MdInfoOutline, $ as Popover } from "./doenetml-
|
|
1
|
+
import { I as memo, J as forwardRef, K as createElement, L as createHook, N as usePopoverContext, O as invariant, P as useStoreState, Q as getBasePlacement, R as useId, S as useMergeRefs, k as jsxRuntimeExports, U as removeUndefinedValues, V as useSafeLayoutEffect, W as getWindow, X as usePopoverStore, l as DocContext, Y as PopoverDisclosure, Z as MdInfoOutline, $ as Popover } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import { useMemo, useState, useRef, useContext } from "react";
|
|
3
3
|
const POPOVER_ARROW_PATH = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z";
|
|
4
4
|
const TagName = "div";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
3
|
-
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-
|
|
3
|
+
import { D as DescriptionPopover, a as DescriptionAsDetails } from "./Description-X0wbmle2.js";
|
|
4
4
|
function GraphFrame({
|
|
5
5
|
id,
|
|
6
6
|
SVs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angle.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/angle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;
|
|
1
|
+
{"version":3,"file":"angle.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/angle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;AAgC9B,wBAiQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/circle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;
|
|
1
|
+
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/circle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;AAyD9B,wBAg1BG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/polygon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;
|
|
1
|
+
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/polygon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;AA6C9B,wBAwpBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regionBetweenCurveXAxis.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/regionBetweenCurveXAxis.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;
|
|
1
|
+
{"version":3,"file":"regionBetweenCurveXAxis.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/regionBetweenCurveXAxis.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;AAyB9B,wBAqOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regionBetweenCurves.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/regionBetweenCurves.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;
|
|
1
|
+
{"version":3,"file":"regionBetweenCurves.d.ts","sourceRoot":"","sources":["../../../src/Viewer/renderers/regionBetweenCurves.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAA0B,EACtB,sBAAsB,EACzB,MAAM,sBAAsB,CAAC;;AAuB9B,wBAySG"}
|
|
@@ -1,22 +1,45 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Inputs (other than the target `<defs>`) that determine a fill pattern's
|
|
3
|
+
* rendered contents, and therefore its cache ID. Bundled into one options
|
|
4
|
+
* object so callers name each field: colors are all strings and opacities are
|
|
5
|
+
* all numbers, so positional arguments would be easy to transpose silently.
|
|
6
|
+
*/
|
|
7
|
+
type PatternFillInputs = {
|
|
8
|
+
boardId: string;
|
|
9
|
+
fillStyle: string;
|
|
10
|
+
fillColor: string;
|
|
11
|
+
fillOpacity: number;
|
|
12
|
+
canvasColor: string;
|
|
13
|
+
fillPatternOpacity: number;
|
|
14
|
+
};
|
|
15
|
+
/** {@link PatternFillInputs} plus the `<defs>` element to inject the pattern into. */
|
|
16
|
+
type PatternInjectionInputs = PatternFillInputs & {
|
|
17
|
+
defsEl: SVGDefsElement | null;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Ensures an SVG `<pattern>` element for the given style + colors + opacities
|
|
21
|
+
* exists in `defsEl`, then returns the `url(#…)` CSS reference string.
|
|
22
|
+
*
|
|
23
|
+
* Each pattern tile has two layers: a background `<rect>` of `canvasColor` at
|
|
24
|
+
* `fillOpacity` (so a patterned shape reads like a translucent solid fill) and
|
|
25
|
+
* a foreground pattern (lines/dots/diamonds) of `fillColor` at
|
|
26
|
+
* `fillPatternOpacity`. Both opacities are baked into the pattern so the
|
|
27
|
+
* referencing element can keep `fillOpacity` at 1 (and drop to 0.5 on
|
|
28
|
+
* highlight, halving both layers together).
|
|
4
29
|
*
|
|
5
30
|
* If `fillStyle` is `"solid"` or unrecognised, returns `fillColor` unchanged
|
|
6
31
|
* so callers can always use the return value as the JSXGraph `fillColor`.
|
|
7
32
|
*/
|
|
8
|
-
export declare function getOrInjectPattern(defsEl
|
|
33
|
+
export declare function getOrInjectPattern({ defsEl, boardId, fillStyle, fillColor, fillOpacity, canvasColor, fillPatternOpacity, }: PatternInjectionInputs): string;
|
|
9
34
|
/**
|
|
10
35
|
* Resolves fill props for patterned SVG fills. When a non-solid pattern is
|
|
11
|
-
* active,
|
|
12
|
-
*
|
|
36
|
+
* active, the pattern bakes in both the background opacity (`fillOpacity`) and
|
|
37
|
+
* the foreground opacity (`fillPatternOpacity`), so the element's own
|
|
38
|
+
* `fillOpacity` is 1 (dropping to 0.5 on highlight to dim both layers). For a
|
|
39
|
+
* `solid` (or unsupported) fill, the plain color and `fillOpacity` are returned
|
|
40
|
+
* unchanged.
|
|
13
41
|
*/
|
|
14
|
-
export declare function getPatternFillAttributes({ defsEl, boardId, fillStyle, fillColor, fillOpacity, fillPatternOpacity, highlightFillOpacity, }: {
|
|
15
|
-
defsEl: SVGDefsElement | null;
|
|
16
|
-
boardId: string;
|
|
17
|
-
fillStyle: string;
|
|
18
|
-
fillColor: string;
|
|
19
|
-
fillOpacity: number;
|
|
42
|
+
export declare function getPatternFillAttributes({ defsEl, boardId, fillStyle, fillColor, fillOpacity, canvasColor, fillPatternOpacity, highlightFillOpacity, }: Omit<PatternInjectionInputs, "fillPatternOpacity"> & {
|
|
20
43
|
fillPatternOpacity?: number;
|
|
21
44
|
highlightFillOpacity?: number;
|
|
22
45
|
}): {
|
|
@@ -25,4 +48,5 @@ export declare function getPatternFillAttributes({ defsEl, boardId, fillStyle, f
|
|
|
25
48
|
highlightFillColor: string;
|
|
26
49
|
highlightFillOpacity: number;
|
|
27
50
|
};
|
|
51
|
+
export {};
|
|
28
52
|
//# sourceMappingURL=fillPatterns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillPatterns.d.ts","sourceRoot":"","sources":["../../../../src/Viewer/renderers/utils/fillPatterns.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fillPatterns.d.ts","sourceRoot":"","sources":["../../../../src/Viewer/renderers/utils/fillPatterns.ts"],"names":[],"mappings":"AAsGA;;;;;GAKG;AACH,KAAK,iBAAiB,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,sFAAsF;AACtF,KAAK,sBAAsB,GAAG,iBAAiB,GAAG;IAC9C,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;CACjC,CAAC;AA2BF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,EAC/B,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAS,EACT,WAAW,EACX,WAAW,EACX,kBAAkB,GACrB,EAAE,sBAAsB,GAAG,MAAM,CAoEjC;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAS,EACT,WAAW,EACX,WAAW,EACX,kBAAsB,EACtB,oBAAwC,GAC3C,EAAE,IAAI,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,GAAG;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC,GAAG;IACA,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;CAChC,CAkBA"}
|
|
@@ -24,4 +24,16 @@ export declare function resolveMarkerColor(style: Pick<ResolvedStyleDefinition,
|
|
|
24
24
|
* the light-mode value regardless of the current theme.
|
|
25
25
|
*/
|
|
26
26
|
export declare function resolveHandleColor(darkMode: DarkMode): string;
|
|
27
|
+
/**
|
|
28
|
+
* The graph canvas background color. Mirrors the `--canvas` CSS variable
|
|
29
|
+
* (white in light mode, `#121212` in dark mode). Used as the background layer
|
|
30
|
+
* behind fill patterns so a patterned shape reads as a translucent solid fill
|
|
31
|
+
* with the pattern drawn on top.
|
|
32
|
+
*
|
|
33
|
+
* Returns a resolved value rather than `var(--canvas)` for the same reason as
|
|
34
|
+
* `resolveHandleColor`: patterns are injected into the board SVG whose theme is
|
|
35
|
+
* driven by an inner wrapper's `data-theme`, so we resolve against `darkMode`
|
|
36
|
+
* directly instead of relying on CSS-variable inheritance.
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveCanvasColor(darkMode: DarkMode): string;
|
|
27
39
|
//# sourceMappingURL=styleColors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleColors.d.ts","sourceRoot":"","sources":["../../../../src/Viewer/renderers/utils/styleColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC5B,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,mBAAmB,CAAC,EACvE,QAAQ,EAAE,QAAQ,GACnB,MAAM,CAER;AAED,wBAAgB,gBAAgB,CAC5B,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,mBAAmB,CAAC,EACvE,QAAQ,EAAE,QAAQ,GACnB,MAAM,CAER;AAED,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,qBAAqB,CAAC,EAC3E,QAAQ,EAAE,QAAQ,GACnB,MAAM,CAER;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE7D"}
|
|
1
|
+
{"version":3,"file":"styleColors.d.ts","sourceRoot":"","sources":["../../../../src/Viewer/renderers/utils/styleColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC5B,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,mBAAmB,CAAC,EACvE,QAAQ,EAAE,QAAQ,GACnB,MAAM,CAER;AAED,wBAAgB,gBAAgB,CAC5B,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,mBAAmB,CAAC,EACvE,QAAQ,EAAE,QAAQ,GACnB,MAAM,CAER;AAED,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,qBAAqB,CAAC,EAC3E,QAAQ,EAAE,QAAQ,GACnB,MAAM,CAER;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE7D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
4
|
const _error = React__default.memo(function Error(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
let displayedMessage = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-XinFoIcx.js";
|
|
5
5
|
const alert = React__default.memo(function Alert(props) {
|
|
6
6
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
if (SVs.hidden) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as DocContext, k as jsxRuntimeExports, t as textRendererStyle, n as DynamicMath } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports, t as textRendererStyle, n as DynamicMath } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, a as syncWithLabelToggle, 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 { ChoiceInputInlineContext } from "./choiceInput-
|
|
7
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
8
|
-
import { r as resolveFillColor, a as resolveLineColor } from "./styleColors-
|
|
3
|
+
import { j as jxg, s as syncLayer, a as syncWithLabelToggle, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-WH0QKyTO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET } from "./graph-DwiumKgy.js";
|
|
6
|
+
import { ChoiceInputInlineContext } from "./choiceInput-Ck8DVMmG.js";
|
|
7
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-xFNXM2wi.js";
|
|
8
|
+
import { r as resolveFillColor, a as resolveLineColor, b as resolveCanvasColor } from "./styleColors-Cknqcr0q.js";
|
|
9
9
|
const angle = React__default.memo(function Angle(props) {
|
|
10
10
|
let { id, SVs } = useDoenetRenderer(props);
|
|
11
11
|
const board = useContext(BoardContext);
|
|
@@ -46,6 +46,7 @@ const angle = React__default.memo(function Angle(props) {
|
|
|
46
46
|
fillStyle: SVs.selectedStyle.fillStyle ?? "solid",
|
|
47
47
|
fillColor: resolveFillColor(SVs.selectedStyle, darkMode),
|
|
48
48
|
fillOpacity: SVs.selectedStyle.fillOpacity,
|
|
49
|
+
canvasColor: resolveCanvasColor(darkMode),
|
|
49
50
|
fillPatternOpacity: SVs.selectedStyle.fillPatternOpacity
|
|
50
51
|
});
|
|
51
52
|
var jsxAngleAttributes = {
|
|
@@ -167,6 +168,7 @@ const angle = React__default.memo(function Angle(props) {
|
|
|
167
168
|
fillStyle: SVs.selectedStyle.fillStyle ?? "solid",
|
|
168
169
|
fillColor: resolveFillColor(SVs.selectedStyle, darkMode),
|
|
169
170
|
fillOpacity: SVs.selectedStyle.fillOpacity,
|
|
171
|
+
canvasColor: resolveCanvasColor(darkMode),
|
|
170
172
|
fillPatternOpacity: SVs.selectedStyle.fillPatternOpacity
|
|
171
173
|
});
|
|
172
174
|
const angleFillColor = fillAttributes.fillColor;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as DocContext, k as jsxRuntimeExports, n as DynamicMath } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports, n as DynamicMath } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { 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-
|
|
6
|
-
import { D as DescriptionPopover } from "./Description-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
|
+
import { A as AnswerResponseButton } from "./AnswerResponseButton-Bb2BI_rl.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-Cf1y_3x3.js";
|
|
6
|
+
import { D as DescriptionPopover } from "./Description-X0wbmle2.js";
|
|
7
7
|
const answer = React__default.memo(function Answer(props) {
|
|
8
8
|
let {
|
|
9
9
|
componentIdx,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
4
|
const asList = React__default.memo(function AsList(props) {
|
|
5
5
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { r as renderMarkupBody } from "./markupRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-WCkpS3Xg.js";
|
|
5
5
|
const blockQuote = React__default.memo(function Container(props) {
|
|
6
6
|
const { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
7
7
|
const ref = useRef(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
4
|
const boolean = React__default.memo(function Boolean(props) {
|
|
5
5
|
let { id, SVs } = useDoenetRenderer(props, false);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { o as Context, k as jsxRuntimeExports, M as MathJax, T as ToggleButton } from "./doenetml-
|
|
1
|
+
import { o as Context, k as jsxRuntimeExports, M as MathJax, T as ToggleButton } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useState, useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext } from "./graph-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-WH0QKyTO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
5
|
+
import { BoardContext } from "./graph-DwiumKgy.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
7
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
8
|
-
import { D as DescriptionPopover } from "./Description-
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-Cf1y_3x3.js";
|
|
8
|
+
import { D as DescriptionPopover } from "./Description-X0wbmle2.js";
|
|
9
9
|
const booleanInput = React__default.memo(function BooleanInput(props) {
|
|
10
10
|
let { id, SVs, children, actions, ignoreUpdate, callAction } = useDoenetRenderer(props);
|
|
11
11
|
BooleanInput.baseStateVariable = "value";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
4
|
const br = React__default.memo(function Br(props) {
|
|
5
5
|
let { id, SVs } = useDoenetRenderer(props);
|
|
6
6
|
if (SVs.hidden) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveLineColor, r as resolveFillColor } from "./styleColors-
|
|
1
|
+
import { a as resolveLineColor, r as resolveFillColor } from "./styleColors-Cknqcr0q.js";
|
|
2
2
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
3
3
|
function buildBaseAttributes({
|
|
4
4
|
SVs,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as Context, p as cesc, k as jsxRuntimeExports, B as Button2 } from "./doenetml-
|
|
1
|
+
import { o as Context, p as cesc, k as jsxRuntimeExports, B as Button2 } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useRef, useContext, useEffect } from "react";
|
|
3
|
-
import { j as jxg } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext } from "./graph-
|
|
3
|
+
import { j as jxg } from "./JSXGraphRenderer-WH0QKyTO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
5
|
+
import { BoardContext } from "./graph-DwiumKgy.js";
|
|
6
6
|
import { g as getPositionFromAnchorByCoordinate, P as POINTER_DRAG_THRESHOLD } from "./graph-W6vrFcBu.js";
|
|
7
7
|
const button = React__default.memo(function ButtonComponent(props) {
|
|
8
8
|
let { id, SVs, actions, callAction } = useDoenetRenderer(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.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-Dxxe3hVm.js";
|
|
4
|
+
import { r as renderMarkupBody } from "./markupRenderer-WCkpS3Xg.js";
|
|
5
5
|
const c = React__default.memo(function C(props) {
|
|
6
6
|
const { id, SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
const body = renderMarkupBody({ SVs, children });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-XinFoIcx.js";
|
|
5
5
|
const cell = React__default.memo(function Cell(props) {
|
|
6
6
|
let { id, SVs, children } = useDoenetRenderer(props);
|
|
7
7
|
if (SVs.hidden) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ao as autoUpdate, l as DocContext, k as jsxRuntimeExports, ap as CANVAS_DARK_MODE_COLOR, M as MathJax } from "./doenetml-
|
|
1
|
+
import { ao as autoUpdate, l as DocContext, k as jsxRuntimeExports, ap as CANVAS_DARK_MODE_COLOR, M as MathJax } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useState, useCallback, forwardRef, useContext, useLayoutEffect, useRef, useMemo, createContext, Component, Fragment, useEffect } from "react";
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
5
5
|
import { a as _objectWithoutPropertiesLoose, _ as _setPrototypeOf, b as _extends } from "./setPrototypeOf-C-47lAIH.js";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
8
|
-
import { D as DescriptionPopover } from "./Description-
|
|
7
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-Cf1y_3x3.js";
|
|
8
|
+
import { D as DescriptionPopover } from "./Description-X0wbmle2.js";
|
|
9
9
|
import { a as addValidationStateToShortDescription } from "./validationState-CVwSJZpB.js";
|
|
10
10
|
import { a as getBlockMarginWithOptionalTopSuppression } from "./nonInlineMediaLayout-CkXHaqzo.js";
|
|
11
11
|
function _typeof(o) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { l as DocContext, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { j as jxg, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight, r as removeJXGEventHandlers } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, POINT_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { j as jxg, s as syncLayer, e as syncLineStrokeStyle, a as syncWithLabelToggle, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight, r as removeJXGEventHandlers } from "./JSXGraphRenderer-WH0QKyTO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
5
|
+
import { BoardContext, POINT_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DwiumKgy.js";
|
|
6
6
|
import { c as characterizeOffGraphPoint, a as characterizeOffGraphCircleArc } from "./offGraphIndicators-CYoqQHuD.js";
|
|
7
7
|
import { n as normalizePointStyle, a as normalizePointSize, b as adjustPointLabelPosition, c as getEffectiveBoundingBox, d as getGraphCornerWithBuffer, e as calculatePointLabelAnchor } from "./graph-W6vrFcBu.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 attachLineFamilyDragHandlers } from "./lineFamilyDragHandlers-tcr76K44.js";
|
|
11
|
-
import { a as resolveLineColor, r as resolveFillColor,
|
|
11
|
+
import { a as resolveLineColor, r as resolveFillColor, c as resolveMarkerColor, b as resolveCanvasColor } from "./styleColors-Cknqcr0q.js";
|
|
12
12
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
13
|
-
import { b as buildFilledShapeAttributes } from "./buildGraphicalAttributes-
|
|
14
|
-
import { g as getPatternFillAttributes } from "./fillPatterns-
|
|
13
|
+
import { b as buildFilledShapeAttributes } from "./buildGraphicalAttributes-C7PtyKL7.js";
|
|
14
|
+
import { g as getPatternFillAttributes } from "./fillPatterns-xFNXM2wi.js";
|
|
15
15
|
import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
|
|
16
16
|
const circle = React__default.memo(function Circle(props) {
|
|
17
17
|
let { componentIdx, id, SVs, actions, callAction } = useDoenetRenderer(props);
|
|
@@ -75,6 +75,7 @@ const circle = React__default.memo(function Circle(props) {
|
|
|
75
75
|
fillStyle: SVs.selectedStyle.fillStyle ?? "solid",
|
|
76
76
|
fillColor: jsxCircleAttributes.fillColor,
|
|
77
77
|
fillOpacity: SVs.selectedStyle.fillOpacity,
|
|
78
|
+
canvasColor: resolveCanvasColor(darkMode),
|
|
78
79
|
fillPatternOpacity: SVs.selectedStyle.fillPatternOpacity,
|
|
79
80
|
highlightFillOpacity: SVs.selectedStyle.fillOpacity * 0.5
|
|
80
81
|
})
|
|
@@ -528,6 +529,7 @@ const circle = React__default.memo(function Circle(props) {
|
|
|
528
529
|
fillStyle: SVs.selectedStyle.fillStyle ?? "solid",
|
|
529
530
|
fillColor: resolvedFillColor,
|
|
530
531
|
fillOpacity: SVs.selectedStyle.fillOpacity,
|
|
532
|
+
canvasColor: resolveCanvasColor(darkMode),
|
|
531
533
|
fillPatternOpacity: SVs.selectedStyle.fillPatternOpacity,
|
|
532
534
|
highlightFillOpacity: SVs.selectedStyle.fillOpacity * 0.5
|
|
533
535
|
}) : {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useContext, useRef } 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, VERTEX_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { j as jxg, b as syncLabelMaskCssStyle, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-WH0QKyTO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
5
|
+
import { BoardContext, LINE_LAYER_OFFSET, VERTEX_LAYER_OFFSET } from "./graph-DwiumKgy.js";
|
|
6
6
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
7
7
|
const cobwebPolyline = React__default.memo(function CobwebPolyline(props) {
|
|
8
8
|
let { componentIdx, id, SVs, actions, sourceOfUpdate, callAction } = useDoenetRenderer(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports, H as EditorViewer } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports, H as EditorViewer } from "./doenetml-CLvAz_2Y.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-Dxxe3hVm.js";
|
|
4
4
|
import { s as sizeToCSS } from "./css-BJLDLYRJ.js";
|
|
5
5
|
function resolveElements(elementOrSelector, scope, selectorCache) {
|
|
6
6
|
if (elementOrSelector == null) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { u as useRecordVisibilityChanges, k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useRef } from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
5
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-XinFoIcx.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-Cf1y_3x3.js";
|
|
6
6
|
const containerBlock = React__default.memo(function Container(props) {
|
|
7
7
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
8
8
|
const ref = useRef(null);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
4
|
-
import { a as addCommasForCompositeRanges } from "./composites-
|
|
5
|
-
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-
|
|
3
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
4
|
+
import { a as addCommasForCompositeRanges } from "./composites-XinFoIcx.js";
|
|
5
|
+
import { c as calculateValidationState, u as useSubmitActionWithDelay, a as createCheckWorkComponent } from "./useSubmitActionWithDelay-Cf1y_3x3.js";
|
|
6
6
|
const containerInline = React__default.memo(function ContainerInline(props) {
|
|
7
7
|
let { id, SVs, children, actions, callAction } = useDoenetRenderer(props);
|
|
8
8
|
if (SVs.hidden) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-
|
|
1
|
+
import { l as DocContext, q as createFunctionFromDefinition, k as jsxRuntimeExports } from "./doenetml-CLvAz_2Y.js";
|
|
2
2
|
import React__default, { useContext, useRef } from "react";
|
|
3
|
-
import { s as syncLayer, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, g as syncVisPropValues, j as jxg, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-
|
|
4
|
-
import { u as useDoenetRenderer } from "./useDoenetRenderer-
|
|
5
|
-
import { BoardContext, VERTEX_LAYER_OFFSET, CONTROL_POINT_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-
|
|
3
|
+
import { s as syncLayer, f as syncLabelStrokeColor, b as syncLabelMaskCssStyle, g as syncVisPropValues, j as jxg, c as computeLabelMaskCssStyle, d as attachLabelHoverHighlight } from "./JSXGraphRenderer-WH0QKyTO.js";
|
|
4
|
+
import { u as useDoenetRenderer } from "./useDoenetRenderer-Dxxe3hVm.js";
|
|
5
|
+
import { BoardContext, VERTEX_LAYER_OFFSET, CONTROL_POINT_LAYER_OFFSET, LINE_LAYER_OFFSET } from "./graph-DwiumKgy.js";
|
|
6
6
|
import { u as usePointerDragState, a as useBoardPointerTracking } from "./useBoardPointerTracking-DV6a8Wvg.js";
|
|
7
|
-
import { a as resolveLineColor,
|
|
7
|
+
import { a as resolveLineColor, d as resolveHandleColor } from "./styleColors-Cknqcr0q.js";
|
|
8
8
|
import { s as styleToDash } from "./styleToDash-DWb71gbd.js";
|
|
9
9
|
import { u as useDraggableRefs, a as useJSXGraphCleanup } from "./useJSXGraphCleanup-CX91oVW8.js";
|
|
10
10
|
const curve = React__default.memo(function Curve(props) {
|
|
@@ -26039,7 +26039,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
26039
26039
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
26040
26040
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
26041
26041
|
} catch (e2) {
|
|
26042
|
-
const sha256 = (await import("./sha256-C0vj3HDn-
|
|
26042
|
+
const sha256 = (await import("./sha256-C0vj3HDn-UGyxHwaY.js").then((n2) => n2.s)).default;
|
|
26043
26043
|
digest = (data2) => sha256(data2, {
|
|
26044
26044
|
asBytes: true
|
|
26045
26045
|
});
|
|
@@ -41973,7 +41973,7 @@ function DocViewer({
|
|
|
41973
41973
|
for (const rendererClassName of coreInfo.current.rendererTypesInDocument) {
|
|
41974
41974
|
rendererClassNames.push(rendererClassName);
|
|
41975
41975
|
rendererLoaders.push(
|
|
41976
|
-
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-
|
|
41976
|
+
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-D0SsTifD.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-WH0QKyTO.js").then((n2) => n2.m), "./renderers/_error.tsx": () => import("./_error-IQ9UNo67.js"), "./renderers/alert.tsx": () => import("./alert-CGC3bff7.js"), "./renderers/angle.tsx": () => import("./angle-DHh7zuz0.js"), "./renderers/answer.tsx": () => import("./answer-BRsvUVeb.js"), "./renderers/asList.tsx": () => import("./asList-BDTqMh8x.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-a_wAKOhU.js"), "./renderers/boolean.tsx": () => import("./boolean-DyQyJb0r.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-BuXBjR85.js"), "./renderers/br.tsx": () => import("./br-Cfe4q1oD.js"), "./renderers/button.tsx": () => import("./button-BNh32tF9.js"), "./renderers/c.tsx": () => import("./c-DR_c8Y0-.js"), "./renderers/cell.tsx": () => import("./cell-DaCO5BD5.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-Ck8DVMmG.js"), "./renderers/circle.tsx": () => import("./circle-BZFa865i.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-D5GvgpiH.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-DYVj_Ab-.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-BjigEe4d.js"), "./renderers/containerInline.tsx": () => import("./containerInline-ByxuSmSL.js"), "./renderers/curve.tsx": () => import("./curve-A385radh.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-0Rf9uFcz.js"), "./renderers/em.tsx": () => import("./em-C-HqHV4n.js"), "./renderers/embed.tsx": () => import("./embed-BfNzc5Le.js"), "./renderers/feedback.tsx": () => import("./feedback-DwhXmMSH.js"), "./renderers/figure.tsx": () => import("./figure-7Xi2fQSv.js"), "./renderers/footnote.tsx": () => import("./footnote-B6OpfKj6.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-D1xTeDSb.js"), "./renderers/graph.tsx": () => import("./graph-DwiumKgy.js"), "./renderers/hint.tsx": () => import("./hint-BAGwv27L.js"), "./renderers/hr.tsx": () => import("./hr-Aj-J3kTg.js"), "./renderers/image.tsx": () => import("./image-DkVGJkU9.js"), "./renderers/label.tsx": () => import("./label-t5QOz3hz.js"), "./renderers/legend.tsx": () => import("./legend-GzOZUocx.js"), "./renderers/line.tsx": () => import("./line-BeQtVGs_.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-oIe7WXtR.js"), "./renderers/list.tsx": () => import("./list-x28rSefl.js"), "./renderers/lq.tsx": () => import("./lq-8l0sDOr8.js"), "./renderers/lsq.tsx": () => import("./lsq-CZFG7Nl5.js"), "./renderers/math.tsx": () => import("./math-BMR5AiER.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DS_W_e8n.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-DmrPKznJ.js"), "./renderers/mdash.tsx": () => import("./mdash-Bu1Q1ekL.js"), "./renderers/nbsp.tsx": () => import("./nbsp-DVm0h4-x.js"), "./renderers/ndash.tsx": () => import("./ndash-DdGtnsQK.js"), "./renderers/number.tsx": () => import("./number-CfeeIc74.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DEDYTOaB.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-CX08AX-x.js"), "./renderers/p.tsx": () => import("./p-yQIjH8Fa.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-FHx8dyK2.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DOjue_FK.js"), "./renderers/point.tsx": () => import("./point-CwMVWF91.js"), "./renderers/polygon.tsx": () => import("./polygon-DdAM4aKr.js"), "./renderers/polyline.tsx": () => import("./polyline-DWOgBzqs.js"), "./renderers/pre.tsx": () => import("./pre-BZ7ZCw9Z.js"), "./renderers/prefigure.tsx": () => import("./prefigure-DueQF7ys.js"), "./renderers/pretzel.tsx": () => import("./pretzel-ES8Yvo78.js"), "./renderers/q.tsx": () => import("./q-xpEgI0-d.js"), "./renderers/ray.tsx": () => import("./ray-BNmkEcDJ.js"), "./renderers/ref.tsx": () => import("./ref-CK0oY9LN.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-BDAOPDMD.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DdPYLipw.js"), "./renderers/row.tsx": () => import("./row-nP0ZhX6Z.js"), "./renderers/rq.tsx": () => import("./rq-DLF6CDjv.js"), "./renderers/rsq.tsx": () => import("./rsq-Jh7GuweM.js"), "./renderers/section.tsx": () => import("./section-n-Mv8eqZ.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-DdjzZlgo.js"), "./renderers/slider.tsx": () => import("./slider-BwwfFUMx.js"), "./renderers/solution.tsx": () => import("./solution-CMJnOEXE.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-BPeiYRXq.js"), "./renderers/sq.tsx": () => import("./sq-f0eKuiZ7.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-cPp2Z2Lo.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-_-_4_PVE.js"), "./renderers/table.tsx": () => import("./table-Ctq_Iify.js"), "./renderers/tabular.tsx": () => import("./tabular-DQg3Elet.js"), "./renderers/tag.tsx": () => import("./tag-C3cIMi7z.js"), "./renderers/text.tsx": () => import("./text-DbQWmZqo.js"), "./renderers/textInput.tsx": () => import("./textInput-CJmzQBzV.js"), "./renderers/vector.tsx": () => import("./vector-B5kimWqF.js"), "./renderers/video.tsx": () => import("./video-CPqqjP8F.js") }), `./renderers/${rendererClassName}.tsx`, 3)
|
|
41977
41977
|
);
|
|
41978
41978
|
}
|
|
41979
41979
|
const documentComponentInstructions = coreInfo.current.documentToRender;
|
|
@@ -203650,10 +203650,10 @@ function EditorFooter({
|
|
|
203650
203650
|
"div",
|
|
203651
203651
|
{
|
|
203652
203652
|
className: "doenetml-version",
|
|
203653
|
-
title: `DoenetML version ${"0.7.20-dev.
|
|
203653
|
+
title: `DoenetML version ${"0.7.20-dev.335"}`,
|
|
203654
203654
|
children: [
|
|
203655
203655
|
"v",
|
|
203656
|
-
"0.7.20-dev.
|
|
203656
|
+
"0.7.20-dev.335"
|
|
203657
203657
|
]
|
|
203658
203658
|
}
|
|
203659
203659
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as doenetGlobalConfig } from "./doenetml-
|
|
2
|
-
import { C, D, a, c, b, d, g, e, m, f, r, s, h } from "./doenetml-
|
|
1
|
+
import { i as doenetGlobalConfig } from "./doenetml-CLvAz_2Y.js";
|
|
2
|
+
import { C, D, a, c, b, d, g, e, m, f, r, s, h } from "./doenetml-CLvAz_2Y.js";
|
|
3
3
|
const workerPath = "./doenetml-worker/index.js";
|
|
4
4
|
function resolveWorkerUrl() {
|
|
5
5
|
try {
|