@doenet/doenetml 0.6.0-alpha4 → 0.6.0-alpha5
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/dist/{ActionButtonGroup-31bfb1b3.js → ActionButtonGroup-cce60f98.js} +15 -16
- package/dist/{ToggleButton-0de1d1ad.js → ToggleButton-67a72bb5.js} +7 -8
- package/dist/alert-33a70a3d.js +12 -0
- package/dist/{angle-6303c120.js → angle-27255fe0.js} +4 -7
- package/dist/{answer-b6e2b76b.js → answer-2afd88fa.js} +22 -24
- package/dist/{asList-f29800e2.js → asList-b1a434a8.js} +5 -7
- package/dist/blockQuote-8da178e1.js +22 -0
- package/dist/boolean-b742fe48.js +12 -0
- package/dist/{booleanInput-aa010bde.js → booleanInput-9a61bf21.js} +13 -15
- package/dist/booleanInput.css +1 -0
- package/dist/{button-11f3ce47.js → button-0f49bac0.js} +15 -18
- package/dist/c-f11cfb55.js +12 -0
- package/dist/callAction-45217748.js +12 -0
- package/dist/{cell-c960b90f.js → cell-0e133fa0.js} +5 -7
- package/dist/{chart-023bde15.js → chart-3fb05dec.js} +15 -17
- package/dist/{choiceInput-de46af5c.js → choiceInput-06f9fe0d.js} +42 -43
- package/dist/choiceInput.css +1 -0
- package/dist/{circle-f81b0ce2.js → circle-58b448e4.js} +4 -7
- package/dist/{cobwebPolyline-36398f33.js → cobwebPolyline-97c318ac.js} +4 -7
- package/dist/{codeEditor-fd87d345.js → codeEditor-a6457ef2.js} +19 -21
- package/dist/{codeViewer-c43574e8.js → codeViewer-861c4813.js} +7 -9
- package/dist/containerBlock-c729c3c7.js +22 -0
- package/dist/containerInline-5f5c3422.js +12 -0
- package/dist/{contentBrowser-a8846036.js → contentBrowser-df4ee62e.js} +14 -16
- package/dist/{contentPicker-5d94aee4.js → contentPicker-d3e4b364.js} +9 -11
- package/dist/{curve-3c32f52c.js → curve-17572fc3.js} +4 -7
- package/dist/doenetml.js +15 -18
- package/dist/ellipsis-28863ba2.js +12 -0
- package/dist/em-65a27a36.js +12 -0
- package/dist/{embed-d76b6d41.js → embed-b47e5ea5.js} +9 -11
- package/dist/{feedback-ba6007b5.js → feedback-3bbde9f2.js} +16 -18
- package/dist/{figure-dba5c46d.js → figure-7d10aba0.js} +3 -5
- package/dist/{footnote-2d1dd0b3.js → footnote-c70ce2c5.js} +7 -9
- package/dist/{graph-6d43a295.js → graph-d69449f2.js} +1 -3
- package/dist/{hint-49a1f4dd.js → hint-c8e96cfa.js} +19 -21
- package/dist/{image-08c5648a.js → image-19660806.js} +4 -6
- package/dist/{index-44cba13f.js → index-7481592c.js} +1 -1
- package/dist/{index-1fe56d63.js → index-7912373f.js} +89788 -88658
- package/dist/{index-89409889.js → index-9317ebc1.js} +1 -1
- package/dist/index.css +1 -0
- package/dist/{label-c4255bb7.js → label-b9c6a62a.js} +19 -22
- package/dist/{legend-8a6252a7.js → legend-1fd4a6df.js} +8 -11
- package/dist/{line-d1d8ea00.js → line-d9273eb3.js} +17 -20
- package/dist/{lineSegment-15ae7c77.js → lineSegment-d8c96e17.js} +4 -7
- package/dist/{list-7404c656.js → list-f0b49f78.js} +11 -13
- package/dist/{lq-5ade7be1.js → lq-90e8a033.js} +1 -3
- package/dist/lsq-8cac08e0.js +9 -0
- package/dist/{math-f332495e.js → math-8f654445.js} +4 -7
- package/dist/{mathInput-dba9b45f.js → mathInput-dbd1ba40.js} +6 -9
- package/dist/mathInput.css +1 -0
- package/dist/{mathInputog-4d940ee5.js → mathInputog-6d84c7f3.js} +2 -3
- package/dist/{mathList-40fa12ed.js → mathList-b458bb31.js} +9 -11
- package/dist/{matrixInput-88797a87.js → matrixInput-f651b375.js} +6 -9
- package/dist/mdash-6806bcce.js +9 -0
- package/dist/nbsp-fcc79f6e.js +9 -0
- package/dist/ndash-c720354c.js +9 -0
- package/dist/{number-3bbc6035.js → number-79d34feb.js} +4 -7
- package/dist/{numberList-1327be8e.js → numberList-d50ce33a.js} +6 -8
- package/dist/{orbitalDiagram-19b6f7cc.js → orbitalDiagram-4b563b6b.js} +32 -34
- package/dist/{orbitalDiagramInput-3338fef1.js → orbitalDiagramInput-76732581.js} +11 -13
- package/dist/p-5232cada.js +22 -0
- package/dist/{paginatorControls-fa58eb04.js → paginatorControls-b70730d0.js} +4 -6
- package/dist/{pegboard-a1474de3.js → pegboard-79f9c901.js} +14 -17
- package/dist/{point-1a6406f1.js → point-d3f0e709.js} +4 -7
- package/dist/{polygon-beb8998f.js → polygon-451f6aab.js} +4 -7
- package/dist/{polyline-6909b72f.js → polyline-b8610944.js} +4 -7
- package/dist/pre-f5c6b49a.js +22 -0
- package/dist/q-ea153de6.js +14 -0
- package/dist/{ray-924469a6.js → ray-8ebc8e35.js} +19 -22
- package/dist/{ref-c04324bd.js → ref-3f4e54aa.js} +18 -20
- package/dist/{regionBetweenCurveXAxis-88c574b3.js → regionBetweenCurveXAxis-fa31ef83.js} +9 -12
- package/dist/{renderDoenetML-30a09380.js → renderDoenetML-5fbe5a5f.js} +4 -6
- package/dist/{row-9d0dd9b6.js → row-3a111c29.js} +5 -7
- package/dist/{rq-8871d38f.js → rq-be748d03.js} +3 -5
- package/dist/rsq-2ec34103.js +9 -0
- package/dist/{section-62b11261.js → section-5a53d600.js} +32 -34
- package/dist/{sideBySide-f4409af1.js → sideBySide-8b21239b.js} +7 -9
- package/dist/{slider-d2d21eec.js → slider-bc9bd636.js} +36 -38
- package/dist/{solution-24ca310d.js → solution-61675899.js} +26 -28
- package/dist/{spreadsheet-b22ce017.js → spreadsheet-8f61699e.js} +2 -2
- package/dist/spreadsheet.css +41 -0
- package/dist/sq-08ee83a3.js +14 -0
- package/dist/{subsetOfRealsInput-f1530700.js → subsetOfRealsInput-a151c105.js} +46 -48
- package/dist/{summaryStatistics-5328d69f.js → summaryStatistics-dc26ed99.js} +6 -8
- package/dist/{table-f0250db5.js → table-48b11b9c.js} +9 -11
- package/dist/{tabular-14305157.js → tabular-f3c4f0f4.js} +7 -9
- package/dist/tag-7ef067e8.js +17 -0
- package/dist/{text-7df7d444.js → text-bc66e68e.js} +50 -53
- package/dist/{textInput-abbe8a72.js → textInput-cb97b103.js} +28 -30
- package/dist/textList-4fa2b394.js +20 -0
- package/dist/{triggerSet-88520bfe.js → triggerSet-47fe087c.js} +7 -9
- package/dist/updateValue-2620a937.js +20 -0
- package/dist/{vector-3d487c1f.js → vector-1aaf00e9.js} +4 -7
- package/dist/{video-438560fd.js → video-7b44cfcf.js} +14 -16
- package/package.json +6 -9
- package/dist/alert-2f90cc72.js +0 -14
- package/dist/blockQuote-4be59e9a.js +0 -24
- package/dist/boolean-4cad6c61.js +0 -14
- package/dist/c-0431b8c4.js +0 -14
- package/dist/callAction-845e6eea.js +0 -14
- package/dist/containerBlock-69ae5478.js +0 -24
- package/dist/containerInline-8ec824bc.js +0 -14
- package/dist/doenetml.umd.cjs +0 -20897
- package/dist/ellipsis-fef08d11.js +0 -14
- package/dist/em-e6a08864.js +0 -14
- package/dist/lsq-734012bd.js +0 -11
- package/dist/mathInput-4ed993c7.js +0 -1
- package/dist/mdash-df0e40e7.js +0 -11
- package/dist/nbsp-ab2fca18.js +0 -11
- package/dist/ndash-3b71f713.js +0 -11
- package/dist/p-9d23a34a.js +0 -24
- package/dist/pre-df87553f.js +0 -24
- package/dist/q-146f150b.js +0 -16
- package/dist/rsq-7fff414a.js +0 -11
- package/dist/sq-140828b8.js +0 -16
- package/dist/style.css +0 -41
- package/dist/tag-cd067754.js +0 -19
- package/dist/textList-0afecfe3.js +0 -22
- package/dist/updateValue-b7933086.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as commonjsGlobal, p as browser$1, A as getDefaultExportFromCjs } from "./index-7912373f.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
var reactMathquill$1 = { exports: {} }, reactMathquill_min = { exports: {} };
|
|
4
4
|
/*! For license information please see react-mathquill.min.js.LICENSE.txt */
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:Open Sans;font-style:normal;font-weight:400;src:url(../fonts/files/open-sans-v18-latin-regular.woff2) format("woff2"),url(../fonts/files/open-sans-v18-latin-regular.woff) format("woff")}@font-face{font-family:Open Sans;font-style:italic;font-weight:400;src:url(../fonts/files/open-sans-v18-latin-italic.woff2) format("woff2"),url(../fonts/files/open-sans-v18-latin-italic.woff) format("woff")}@font-face{font-family:Open Sans;font-style:normal;font-weight:700;src:url(../fonts/files/open-sans-v18-latin-700.woff2) format("woff2"),url(../fonts/files/open-sans-v18-latin-700.woff) format("woff")}@font-face{font-family:Open Sans;font-style:normal;font-weight:300;src:url(../fonts/files/open-sans-v18-latin-light.woff2) format("woff2"),url(../fonts/files/open-sans-v18-latin-light.woff) format("woff")}@font-face{font-family:Open Sans;font-style:italic;font-weight:300;src:url(../fonts/files/open-sans-v18-latin-light-italic.woff2) format("woff2"),url(../fonts/files/open-sans-v18-latin-light-italic.woff) format("woff")}@font-face{font-family:Open Sans;font-style:italic;font-weight:700;src:url(../fonts/files/open-sans-v18-latin-700italic.woff2) format("woff2"),url(../fonts/files/open-sans-v18-latin-700italic.woff) format("woff")}html{font-family:Open Sans!important;--menuWidth: 220px;--mainBlue: #1a5a99;--lightBlue: hsl(209, 54%, 82%);--solidLightBlue: #8fb8de;--mainGray: #e3e3e3;--donutBody: #eea177;--donutTopping: #6d4445;--mainBorder: 2px solid black;--mainBorderRadius: 5px;--mainRed: #c1292e;--lightRed: hsl(0, 54%, 82%);--mainGreen: #459152;--canvas: white;--canvastext: black;--lightGreen: #a6f19f;--lightYellow: #f5ed85;--whiteBlankLink: #6d4445;--mainYellow: #94610a;--mainPurple: #4a03d9}[data-theme=dark]{font-family:Open Sans!important;--menuWidth: 220px;--mainBlue: #1a5a99;--lightBlue: hsl(209, 54%, 82%);--solidLightBlue: #1a5a99;--mainGray: #a9a9a9;--donutBody: #eea177;--donutTopping: #6d4445;--mainBorder: 2px solid white;--mainBorderRadius: 5px;--mainRed: #c1292e;--lightRed: hsl(0, 54%, 82%);--mainGreen: #459152;--canvas: #121212;--canvastext: white;--lightGreen: #a6f19f;--lightYellow: #f5ed85;--whiteBlankLink: #a9abe5;--mainYellow: #efab34;--mainPurple: #4a03d9}.doenet-viewer{font-family:Open Sans!important;color:var(--canvastext)}.doenet-viewer h1{font-size:2em;font-weight:700}.doenet-viewer h2{font-size:1.5em;font-weight:700;margin-block-start:.83em;margin-block-end:.83em}.doenet-viewer h3{font-size:1.17em;font-weight:700;margin-block-start:1em;margin-block-end:1em}.doenet-viewer h4{font-weight:700;margin-block-start:1.33em;margin-block-end:1.33em}.doenet-viewer h5{font-size:.83em;font-weight:700;margin-block-start:1.67em;margin-block-end:1.67em}.doenet-viewer p{margin-block-start:1em;margin-block-end:1em}.doenet-viewer input{box-sizing:content-box;padding:2px 1px}div.jxgbox input{border-width:2px}div.jxgbox button{margin:0;border-radius:var(--mainBorderRadius);border-width:2px;border-color:var(--mainBlue);border-style:solid;padding:1px 6px;background-color:var(--mainBlue);color:#fff}div.jxgbox button:hover{background-color:var(--lightBlue);color:#000;border-color:var(--lightBlue)}div.jxgbox input[type=checkbox]{margin:3px 3px 3px 4px;height:18px;width:18px}.jxgbox{position:relative;overflow:hidden;background-color:#fff;border-style:solid;border-width:1px;border-color:#356aa0;border-radius:10px;margin:0;-webkit-border-radius:10px;-ms-touch-action:none}.jxgbox svg text{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.JXGtext{font-family:Courier,monospace;background-color:transparent;padding:0;margin:0}.JXGinfobox{border-style:none;border-width:0;border-color:#000}.jxgbox :focus{outline-width:.5px;outline-style:dotted}.JXG_navigation{position:absolute;right:5px;bottom:5px;z-index:100;background-color:transparent;padding:2px;font-size:14px;cursor:pointer}.JXG_navigation_button{color:#666}.JXG_navigation_button:hover{border-radius:2px;background:rgba(184,184,184,.5)}.JXG_navigation_button svg{top:.2em;position:relative;padding:0}.JXG_wrap_private:-moz-full-screen{background-color:#ccc;padding:0;width:100%;height:100%}.JXG_wrap_private:-webkit-full-screen{background-color:#ccc;padding:0;width:100%;height:100%}.JXG_wrap_private:fullscreen{background-color:#ccc;padding:0;width:100%;height:100%}.JXG_wrap_private:-ms-fullscreen{background-color:#ccc;padding:0;width:100%;height:100%}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { u as le, d as ce, e as ie, C as H, g as I, j as F, t as ae, M as se } from "./index-
|
|
1
|
+
import { u as le, d as ce, e as ie, C as H, g as I, j as F, t as ae, M as se } from "./index-7912373f.js";
|
|
2
2
|
import ue, { useRef as l, useContext as de, useEffect as W } from "react";
|
|
3
|
-
import { BoardContext as fe, TEXT_LAYER_OFFSET as q } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const ve = ue.memo(function K(Q) {
|
|
3
|
+
import { BoardContext as fe, TEXT_LAYER_OFFSET as q } from "./graph-d69449f2.js";
|
|
4
|
+
const ye = ue.memo(function K(Q) {
|
|
8
5
|
let { name: S, id: D, SVs: r, children: he, actions: u, callAction: d } = le(Q);
|
|
9
6
|
K.ignoreActionsWithoutCore = () => !0;
|
|
10
7
|
let e = l(null), _ = l(null), A = l(null);
|
|
11
8
|
const t = de(fe);
|
|
12
|
-
let
|
|
9
|
+
let y = l(null), P = l(null), L = l(!1), X = l(!1), s = l(!1), f = l(null), h = l(null), B = l(null), j = l(null), b = l(!1), v = l(!1);
|
|
13
10
|
b.current = r.fixed, v.current = !r.draggable || r.fixLocation || r.fixed;
|
|
14
11
|
const C = ce(ie);
|
|
15
12
|
W(() => () => {
|
|
@@ -18,14 +15,14 @@ const ve = ue.memo(function K(Q) {
|
|
|
18
15
|
t && t.on("move", N);
|
|
19
16
|
}, [t]);
|
|
20
17
|
function Z() {
|
|
21
|
-
let i = C === "dark" ? r.selectedStyle.textColorDarkMode : r.selectedStyle.textColor, a = C === "dark" ? r.selectedStyle.backgroundColorDarkMode : r.selectedStyle.backgroundColor,
|
|
22
|
-
a && (
|
|
18
|
+
let i = C === "dark" ? r.selectedStyle.textColorDarkMode : r.selectedStyle.textColor, a = C === "dark" ? r.selectedStyle.backgroundColorDarkMode : r.selectedStyle.backgroundColor, m = "";
|
|
19
|
+
a && (m += `background-color: ${a}`);
|
|
23
20
|
let p = {
|
|
24
21
|
visible: !r.hidden,
|
|
25
22
|
fixed: b.current,
|
|
26
23
|
layer: 10 * r.layer + q,
|
|
27
|
-
cssStyle:
|
|
28
|
-
highlightCssStyle:
|
|
24
|
+
cssStyle: m,
|
|
25
|
+
highlightCssStyle: m,
|
|
29
26
|
strokeColor: i,
|
|
30
27
|
strokeOpacity: 1,
|
|
31
28
|
highlightStrokeColor: i,
|
|
@@ -35,11 +32,11 @@ const ve = ue.memo(function K(Q) {
|
|
|
35
32
|
parse: !1
|
|
36
33
|
}, c;
|
|
37
34
|
try {
|
|
38
|
-
let n = H.fromAst(r.anchor),
|
|
35
|
+
let n = H.fromAst(r.anchor), g = [
|
|
39
36
|
n.get_component(0).evaluate_to_constant(),
|
|
40
37
|
n.get_component(1).evaluate_to_constant()
|
|
41
38
|
];
|
|
42
|
-
Number.isFinite(
|
|
39
|
+
Number.isFinite(g[0]) || (g[0] = 0, p.visible = !1), Number.isFinite(g[1]) || (g[1] = 0, p.visible = !1), c = t.create("point", g, {
|
|
43
40
|
visible: !1
|
|
44
41
|
});
|
|
45
42
|
} catch {
|
|
@@ -56,7 +53,7 @@ const ve = ue.memo(function K(Q) {
|
|
|
56
53
|
p
|
|
57
54
|
);
|
|
58
55
|
o.isDraggable = !v.current, o.on("down", function(n) {
|
|
59
|
-
|
|
56
|
+
y.current = [n.x, n.y], P.current = [...c.coords.scrCoords], s.current = !1, L.current = !0, X.current = !1, b.current || d({
|
|
60
57
|
action: u.labelFocused,
|
|
61
58
|
args: { name: S }
|
|
62
59
|
// send name so get original name if adapted
|
|
@@ -88,16 +85,16 @@ const ve = ue.memo(function K(Q) {
|
|
|
88
85
|
}
|
|
89
86
|
}), s.current = !1);
|
|
90
87
|
}), o.on("drag", function(n) {
|
|
91
|
-
let
|
|
92
|
-
(!
|
|
88
|
+
let g = n.type === "pointermove";
|
|
89
|
+
(!g || Math.abs(n.x - y.current[0]) > 0.1 || Math.abs(n.y - y.current[1]) > 0.1) && (s.current = !0);
|
|
93
90
|
let [O, w, E, G] = t.getBoundingBox(), U = o.size[0] / t.unitX, Y = o.size[1] / t.unitY, z = A.current[0], V = A.current[1], M = 0;
|
|
94
91
|
z === "middle" ? M = -U / 2 : z === "right" && (M = -U);
|
|
95
92
|
let R = 0;
|
|
96
93
|
V === "middle" ? R = -Y / 2 : V === "top" && (R = -Y);
|
|
97
94
|
let re = O + 0.04 * (E - O) - M - U, te = E - 0.04 * (E - O) - M, ne = G + 0.04 * (w - G) - R - Y, oe = w - 0.04 * (w - G) - R;
|
|
98
|
-
if (
|
|
95
|
+
if (g) {
|
|
99
96
|
var $ = t.origin.scrCoords;
|
|
100
|
-
f.current = (P.current[1] + n.x -
|
|
97
|
+
f.current = (P.current[1] + n.x - y.current[0] - $[1]) / t.unitX, h.current = ($[2] - (P.current[2] + n.y - y.current[1])) / t.unitY;
|
|
101
98
|
} else
|
|
102
99
|
f.current = c.X() + o.relativeCoords.usrCoords[1], h.current = c.Y() + o.relativeCoords.usrCoords[2];
|
|
103
100
|
f.current = Math.min(
|
|
@@ -135,7 +132,7 @@ const ve = ue.memo(function K(Q) {
|
|
|
135
132
|
}, 1e3);
|
|
136
133
|
}
|
|
137
134
|
function N(i) {
|
|
138
|
-
L.current && (Math.abs(i.x -
|
|
135
|
+
L.current && (Math.abs(i.x - y.current[0]) > 0.1 || Math.abs(i.y - y.current[1]) > 0.1) && (X.current = !0);
|
|
139
136
|
}
|
|
140
137
|
function ee() {
|
|
141
138
|
e.current.off("drag"), e.current.off("down"), e.current.off("hit"), e.current.off("up"), e.current.off("keyfocusout"), e.current.off("keydown"), t.removeObject(e.current), e.current = null;
|
|
@@ -167,8 +164,8 @@ const ve = ue.memo(function K(Q) {
|
|
|
167
164
|
e.current.visProp.visible = a, e.current.visPropCalc.visible = a, o && e.current.setAttribute({ visible: a });
|
|
168
165
|
} else
|
|
169
166
|
e.current.visProp.visible = !1, e.current.visPropCalc.visible = !1;
|
|
170
|
-
let
|
|
171
|
-
e.current.visProp.layer !==
|
|
167
|
+
let m = 10 * r.layer + q;
|
|
168
|
+
e.current.visProp.layer !== m && e.current.setAttribute({ layer: m });
|
|
172
169
|
let c = C === "dark" ? r.selectedStyle.textColorDarkMode : r.selectedStyle.textColor, k = C === "dark" ? r.selectedStyle.backgroundColorDarkMode : r.selectedStyle.backgroundColor, x = "";
|
|
173
170
|
if (k ? x += `background-color: ${k}` : x += "background-color: transparent", e.current.visProp.strokecolor !== c && (e.current.visProp.strokecolor = c, e.current.visProp.highlightstrokecolor = c), e.current.visProp.cssstyle !== x && (e.current.visProp.cssstyle = x, e.current.visProp.highlightcssstyle = x), e.current.visProp.highlight = !v.current, e.current.visProp.fixed = b.current, e.current.isDraggable = !v.current, e.current.needsUpdate = !0, r.positionFromAnchor !== j.current) {
|
|
174
171
|
let { anchorx: o, anchory: n } = I(
|
|
@@ -192,5 +189,5 @@ const ve = ue.memo(function K(Q) {
|
|
|
192
189
|
] });
|
|
193
190
|
});
|
|
194
191
|
export {
|
|
195
|
-
|
|
192
|
+
ye as default
|
|
196
193
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { u as L, q as J, j as
|
|
1
|
+
import { u as L, q as J, j as g } from "./index-7912373f.js";
|
|
2
2
|
import Y, { useContext as j, useRef as S, useEffect as G } from "react";
|
|
3
|
-
import { BoardContext as w } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const H = Y.memo(function(k) {
|
|
3
|
+
import { BoardContext as w } from "./graph-d69449f2.js";
|
|
4
|
+
const N = Y.memo(function(k) {
|
|
8
5
|
let { name: W, id: _, SVs: n } = L(k);
|
|
9
6
|
const a = j(w);
|
|
10
7
|
let c = S([]), d = S([]), E = S(null), b = S(null), U = S(null);
|
|
@@ -12,7 +9,7 @@ const H = Y.memo(function(k) {
|
|
|
12
9
|
v();
|
|
13
10
|
}, []);
|
|
14
11
|
function B() {
|
|
15
|
-
let { xmin: f, xmax:
|
|
12
|
+
let { xmin: f, xmax: m, ymin: x, ymax: y } = n.graphLimits, o = (y - x) * 0.06, i = (m - f) * 0.05, C = (m - f) * 0.02, t = f + (m - f) * 0.05, O;
|
|
16
13
|
n.position.slice(0, 5) === "upper" ? O = x + (y - x) * 0.95 : O = x + (y - x) * 0.05 + o * n.legendElements.length;
|
|
17
14
|
let R = n.position.slice(n.position.length - 5, n.position.length) === "right";
|
|
18
15
|
c.current = [], d.current = [];
|
|
@@ -33,7 +30,7 @@ const H = Y.memo(function(k) {
|
|
|
33
30
|
}
|
|
34
31
|
u /= a.unitX, R && (t = Math.max(
|
|
35
32
|
t,
|
|
36
|
-
|
|
33
|
+
m - i - 3 * C - u
|
|
37
34
|
));
|
|
38
35
|
for (let [s, e] of n.legendElements.entries()) {
|
|
39
36
|
let r = O - s * o;
|
|
@@ -109,7 +106,7 @@ const H = Y.memo(function(k) {
|
|
|
109
106
|
u = Math.max(u, s.rendNode.offsetWidth);
|
|
110
107
|
u /= a.unitX, t = Math.max(
|
|
111
108
|
t,
|
|
112
|
-
|
|
109
|
+
m - i - 3 * C - u
|
|
113
110
|
);
|
|
114
111
|
for (let [s, e] of c.current.entries()) {
|
|
115
112
|
let r = O - s * o;
|
|
@@ -158,7 +155,7 @@ const H = Y.memo(function(k) {
|
|
|
158
155
|
a.removeObject(f);
|
|
159
156
|
c.current = [], d.current = [];
|
|
160
157
|
}
|
|
161
|
-
return a ? ((!J(E.current, n.legendElements) || !J(U.current, n.graphLimits) || b.current !== n.position) && (c.current.length > 0 && v(), B()), E.current = [...n.legendElements], U.current = Object.assign({}, n.graphLimits), b.current = n.position, /* @__PURE__ */
|
|
158
|
+
return a ? ((!J(E.current, n.legendElements) || !J(U.current, n.graphLimits) || b.current !== n.position) && (c.current.length > 0 && v(), B()), E.current = [...n.legendElements], U.current = Object.assign({}, n.graphLimits), b.current = n.position, /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsx("a", { name: _ }) })) : n.hidden ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsx("a", { name: _ }) });
|
|
162
159
|
});
|
|
163
160
|
function X(h) {
|
|
164
161
|
return h === "dashed" ? 2 : h === "solid" ? 0 : h === "dotted" ? 1 : 0;
|
|
@@ -167,5 +164,5 @@ function M(h) {
|
|
|
167
164
|
return h === "triangle" ? "triangleup" : h;
|
|
168
165
|
}
|
|
169
166
|
export {
|
|
170
|
-
|
|
167
|
+
N as default
|
|
171
168
|
};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { u as N, d as I, e as V, j as g, t as q, M as z } from "./index-
|
|
1
|
+
import { u as N, d as I, e as V, j as g, t as q, M as z } from "./index-7912373f.js";
|
|
2
2
|
import K, { useContext as Q, useRef as l, useEffect as A } from "react";
|
|
3
|
-
import { BoardContext as Z, LINE_LAYER_OFFSET as E } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const oe = K.memo(function m(S) {
|
|
3
|
+
import { BoardContext as Z, LINE_LAYER_OFFSET as E } from "./graph-d69449f2.js";
|
|
4
|
+
const re = K.memo(function m(S) {
|
|
8
5
|
var J;
|
|
9
6
|
let { name: v, id: L, SVs: e, actions: s, callAction: c } = N(S);
|
|
10
7
|
m.ignoreActionsWithoutCore = () => !0;
|
|
11
8
|
const a = Q(Z);
|
|
12
|
-
let t = l({}), y = l(null), k = l(null), w = l(!1), O = l(!1),
|
|
9
|
+
let t = l({}), y = l(null), k = l(null), w = l(!1), O = l(!1), p = l(!1), R = l(null), _ = l(null), u = l(null), D = l(null), P = l(!1), x = l(!1), F = l(!1);
|
|
13
10
|
D.current = e.numericalPoints, P.current = e.fixed, x.current = !e.draggable || e.fixLocation || e.fixed, F.current = e.switchable && !e.fixed;
|
|
14
11
|
const M = I(V);
|
|
15
12
|
A(() => () => {
|
|
@@ -55,10 +52,10 @@ const oe = K.memo(function m(S) {
|
|
|
55
52
|
let X = [[...e.numericalPoints[0]], [...e.numericalPoints[1]]], i = a.create("line", X, f);
|
|
56
53
|
i.isDraggable = !x.current, i.on("drag", function(r) {
|
|
57
54
|
let n = r.type === "pointermove";
|
|
58
|
-
if ((!n || Math.abs(r.x - y.current[0]) > 0.1 || Math.abs(r.y - y.current[1]) > 0.1) && (
|
|
55
|
+
if ((!n || Math.abs(r.x - y.current[0]) > 0.1 || Math.abs(r.y - y.current[1]) > 0.1) && (p.current = !0), u.current = [], n) {
|
|
59
56
|
var o = a.origin.scrCoords;
|
|
60
|
-
for (let
|
|
61
|
-
let T = (k.current[
|
|
57
|
+
for (let h = 0; h < 2; h++) {
|
|
58
|
+
let T = (k.current[h][1] + r.x - y.current[0] - o[1]) / a.unitX, H = (o[2] - (k.current[h][2] + r.y - y.current[1])) / a.unitY;
|
|
62
59
|
u.current.push([T, H]);
|
|
63
60
|
}
|
|
64
61
|
} else
|
|
@@ -85,7 +82,7 @@ const oe = K.memo(function m(S) {
|
|
|
85
82
|
D.current[1]
|
|
86
83
|
);
|
|
87
84
|
}), i.on("up", function(r) {
|
|
88
|
-
|
|
85
|
+
p.current ? c({
|
|
89
86
|
action: s.moveLine,
|
|
90
87
|
args: {
|
|
91
88
|
point1coords: u.current[0],
|
|
@@ -103,15 +100,15 @@ const oe = K.memo(function m(S) {
|
|
|
103
100
|
// send name so get original name if adapted
|
|
104
101
|
})), w.current = !1;
|
|
105
102
|
}), i.on("keyfocusout", function(r) {
|
|
106
|
-
|
|
103
|
+
p.current && (c({
|
|
107
104
|
action: s.moveLine,
|
|
108
105
|
args: {
|
|
109
106
|
point1coords: u.current[0],
|
|
110
107
|
point2coords: u.current[1]
|
|
111
108
|
}
|
|
112
|
-
}),
|
|
109
|
+
}), p.current = !1);
|
|
113
110
|
}), i.on("down", function(r) {
|
|
114
|
-
|
|
111
|
+
p.current = !1, y.current = [r.x, r.y], k.current = [
|
|
115
112
|
[...i.point1.coords.scrCoords],
|
|
116
113
|
[...i.point2.coords.scrCoords]
|
|
117
114
|
], w.current = !0, O.current = !1, P.current || c({
|
|
@@ -120,7 +117,7 @@ const oe = K.memo(function m(S) {
|
|
|
120
117
|
// send name so get original name if adapted
|
|
121
118
|
});
|
|
122
119
|
}), i.on("hit", function(r) {
|
|
123
|
-
|
|
120
|
+
p.current = !1, k.current = [
|
|
124
121
|
[...i.point1.coords.scrCoords],
|
|
125
122
|
[...i.point2.coords.scrCoords]
|
|
126
123
|
], c({
|
|
@@ -129,13 +126,13 @@ const oe = K.memo(function m(S) {
|
|
|
129
126
|
// send name so get original name if adapted
|
|
130
127
|
});
|
|
131
128
|
}), i.on("keydown", function(r) {
|
|
132
|
-
r.key === "Enter" && (
|
|
129
|
+
r.key === "Enter" && (p.current && (c({
|
|
133
130
|
action: s.moveLine,
|
|
134
131
|
args: {
|
|
135
132
|
point1coords: u.current[0],
|
|
136
133
|
point2coords: u.current[1]
|
|
137
134
|
}
|
|
138
|
-
}),
|
|
135
|
+
}), p.current = !1), F.current ? (c({
|
|
139
136
|
action: s.switchLine
|
|
140
137
|
}), c({
|
|
141
138
|
action: s.lineClicked,
|
|
@@ -186,8 +183,8 @@ const oe = K.memo(function m(S) {
|
|
|
186
183
|
let r = e.labelForGraph !== "";
|
|
187
184
|
if (r != R.current && (t.current.setAttribute({ withlabel: r }), R.current = r), t.current.needsUpdate = !0, t.current.update(), t.current.hasLabel)
|
|
188
185
|
if (t.current.label.needsUpdate = !0, e.applyStyleToLabel ? t.current.label.visProp.strokecolor = i : t.current.label.visProp.strokecolor = "var(--canvastext)", e.labelPosition !== _.current) {
|
|
189
|
-
let n, o,
|
|
190
|
-
e.labelPosition === "upperright" ? (
|
|
186
|
+
let n, o, h;
|
|
187
|
+
e.labelPosition === "upperright" ? (h = [5, 5], n = "left", o = "bottom") : e.labelPosition === "upperleft" ? (h = [-5, 5], n = "right", o = "bottom") : e.labelPosition === "lowerright" ? (h = [5, -5], n = "left", o = "top") : (h = [-5, -5], n = "right", o = "top"), t.current.label.visProp.anchorx = n, t.current.label.visProp.anchory = o, t.current.label.visProp.offset = h, _.current = e.labelPosition, t.current.label.fullUpdate();
|
|
191
188
|
} else
|
|
192
189
|
t.current.label.update();
|
|
193
190
|
a.updateRenderer();
|
|
@@ -206,5 +203,5 @@ function W(m, S) {
|
|
|
206
203
|
return m === "dashed" || S ? 2 : m === "solid" ? 0 : m === "dotted" ? 1 : 0;
|
|
207
204
|
}
|
|
208
205
|
export {
|
|
209
|
-
|
|
206
|
+
re as default
|
|
210
207
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { u as N, d as q, e as z, j as L } from "./index-
|
|
1
|
+
import { u as N, d as q, e as z, j as L } from "./index-7912373f.js";
|
|
2
2
|
import K, { useContext as Q, useRef as p, useEffect as W } from "react";
|
|
3
|
-
import { BoardContext as Z, LINE_LAYER_OFFSET as B, VERTEX_LAYER_OFFSET as I } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const ie = K.memo(function w(V) {
|
|
3
|
+
import { BoardContext as Z, LINE_LAYER_OFFSET as B, VERTEX_LAYER_OFFSET as I } from "./graph-d69449f2.js";
|
|
4
|
+
const te = K.memo(function w(V) {
|
|
8
5
|
let { name: h, id: M, SVs: r, actions: i, sourceOfUpdate: R, callAction: l } = N(V);
|
|
9
6
|
w.ignoreActionsWithoutCore = () => !0;
|
|
10
7
|
const c = Q(Z);
|
|
@@ -328,5 +325,5 @@ function T(w) {
|
|
|
328
325
|
return w === "solid" ? 0 : w === "dashed" ? 2 : w === "dotted" ? 1 : 0;
|
|
329
326
|
}
|
|
330
327
|
export {
|
|
331
|
-
|
|
328
|
+
te as default
|
|
332
329
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { u as c, j as r, V as a } from "./index-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let { name: y, id: l, SVs: i, children: s, actions: m, callAction: o } = c(d), t = (e) => {
|
|
7
|
-
o({
|
|
1
|
+
import { u as c, j as r, V as a } from "./index-7912373f.js";
|
|
2
|
+
import f, { useEffect as h } from "react";
|
|
3
|
+
const j = f.memo(function(d) {
|
|
4
|
+
let { name: y, id: l, SVs: i, children: s, actions: m, callAction: u } = c(d), t = (e) => {
|
|
5
|
+
u({
|
|
8
6
|
action: m.recordVisibilityChange,
|
|
9
7
|
args: { isVisible: e }
|
|
10
8
|
});
|
|
11
9
|
};
|
|
12
|
-
if (
|
|
13
|
-
|
|
10
|
+
if (h(() => () => {
|
|
11
|
+
u({
|
|
14
12
|
action: m.recordVisibilityChange,
|
|
15
13
|
args: { isVisible: !1 }
|
|
16
14
|
});
|
|
@@ -37,12 +35,12 @@ const V = p.memo(function(d) {
|
|
|
37
35
|
] }) }) });
|
|
38
36
|
} else {
|
|
39
37
|
let e;
|
|
40
|
-
return i.marker && (e = i.marker.toLowerCase(),
|
|
38
|
+
return i.marker && (e = i.marker.toLowerCase(), o.includes(e) || (e = null)), e || (e = n.unnumbered[(i.level - 1) % n.unnumbered.length]), /* @__PURE__ */ r.jsx(a, { partialVisibility: !0, onChange: t, children: /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("ul", { id: l, style: { listStyleType: e }, children: [
|
|
41
39
|
/* @__PURE__ */ r.jsx("a", { name: l }),
|
|
42
40
|
s
|
|
43
41
|
] }) }) });
|
|
44
42
|
}
|
|
45
|
-
}),
|
|
43
|
+
}), o = ["disc", "circle", "square"], n = {
|
|
46
44
|
numbered: [
|
|
47
45
|
"decimal",
|
|
48
46
|
"lower-alpha",
|
|
@@ -50,8 +48,8 @@ const V = p.memo(function(d) {
|
|
|
50
48
|
"upper-alpha",
|
|
51
49
|
"upper-roman"
|
|
52
50
|
],
|
|
53
|
-
unnumbered:
|
|
51
|
+
unnumbered: o
|
|
54
52
|
};
|
|
55
53
|
export {
|
|
56
|
-
|
|
54
|
+
j as default
|
|
57
55
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { u as n, j as e } from "./index-
|
|
1
|
+
import { u as n, j as e } from "./index-7912373f.js";
|
|
2
2
|
import o from "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
import "styled-components";
|
|
5
3
|
const l = o.memo(function(t) {
|
|
6
4
|
let { SVs: r } = n(t, !1);
|
|
7
5
|
return r.hidden ? null : /* @__PURE__ */ e.jsx(e.Fragment, { children: "“" });
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { u as de, d as fe, e as he, C as Z, g as ee, j as l, k as ge, t as me, M as W } from "./index-
|
|
1
|
+
import { u as de, d as fe, e as he, C as Z, g as ee, j as l, k as ge, t as me, M as W } from "./index-7912373f.js";
|
|
2
2
|
import pe, { useRef as s, useContext as xe, useEffect as re } from "react";
|
|
3
|
-
import { BoardContext as ye, TEXT_LAYER_OFFSET as te } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const Ae = pe.memo(function ne(oe) {
|
|
3
|
+
import { BoardContext as ye, TEXT_LAYER_OFFSET as te } from "./graph-d69449f2.js";
|
|
4
|
+
const ke = pe.memo(function ne(oe) {
|
|
8
5
|
let { name: F, id: b, SVs: e, actions: m, sourceOfUpdate: Ce, callAction: p } = de(oe);
|
|
9
6
|
ne.ignoreActionsWithoutCore = () => !0;
|
|
10
7
|
let r = s(null), R = s(null), X = s(null);
|
|
@@ -215,5 +212,5 @@ const Ae = pe.memo(function ne(oe) {
|
|
|
215
212
|
] });
|
|
216
213
|
});
|
|
217
214
|
export {
|
|
218
|
-
|
|
215
|
+
ke as default
|
|
219
216
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { u as $, R as w, r as q,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "react-dom";
|
|
7
|
-
W.addStyles();
|
|
8
|
-
const x = re.button`
|
|
1
|
+
import { u as $, R as w, r as q, v as z, w as H, d as E, x as J, y as X, j as a, F as g, f as Q, a as Y, b as Z, c as ee, s as te, M as ae } from "./index-7912373f.js";
|
|
2
|
+
import re, { useState as A, useRef as b } from "react";
|
|
3
|
+
import { r as W } from "./index-9317ebc1.js";
|
|
4
|
+
/* empty css */W.addStyles();
|
|
5
|
+
const x = te.button`
|
|
9
6
|
position: relative;
|
|
10
7
|
width: 24px;
|
|
11
8
|
height: 24px;
|
|
@@ -163,7 +160,7 @@ function ne(P) {
|
|
|
163
160
|
] }));
|
|
164
161
|
}
|
|
165
162
|
let C = e.label;
|
|
166
|
-
return e.labelHasLatex && (C = /* @__PURE__ */ a.jsx(
|
|
163
|
+
return e.labelHasLatex && (C = /* @__PURE__ */ a.jsx(ae, { hideUntilTypeset: "first", inline: !0, dynamic: !0, children: C })), /* @__PURE__ */ a.jsxs(re.Fragment, { children: [
|
|
167
164
|
/* @__PURE__ */ a.jsx("a", { name: i }),
|
|
168
165
|
/* @__PURE__ */ a.jsxs("span", { id: i, children: [
|
|
169
166
|
/* @__PURE__ */ a.jsxs("label", { style: { display: "inline-flex", maxWidth: "100%" }, children: [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mathInputWrapper{cursor:pointer;margin:0 4px 4px;display:inline}td.matrixCell div.mathInputWrapper{margin:1px}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
2
|
var m = (n, e, t) => e in n ? p(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var d = (n, e, t) => (m(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import {
|
|
4
|
+
import { D as x, E as f, C as v, j as a, F as h, f as S, a as V, b as D, c as g } from "./index-7912373f.js";
|
|
5
5
|
import y from "react";
|
|
6
6
|
import l from "react-dom";
|
|
7
|
-
import "
|
|
8
|
-
import { m as u } from "./index-89409889.js";
|
|
7
|
+
import { m as u } from "./index-9317ebc1.js";
|
|
9
8
|
u.addStyles();
|
|
10
9
|
let b = u.EditableMathField;
|
|
11
10
|
class F {
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { u as d, j as e, M as h } from "./index-
|
|
1
|
+
import { u as d, j as e, M as h } from "./index-7912373f.js";
|
|
2
2
|
import r from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let { name: x, id: t, SVs: i, children: n } = d(s);
|
|
7
|
-
if (i.hidden)
|
|
3
|
+
const j = r.memo(function(a) {
|
|
4
|
+
let { name: x, id: t, SVs: s, children: n } = d(a);
|
|
5
|
+
if (s.hidden)
|
|
8
6
|
return null;
|
|
9
|
-
if (n.length === 0 &&
|
|
7
|
+
if (n.length === 0 && s.latex)
|
|
10
8
|
return /* @__PURE__ */ e.jsxs(r.Fragment, { children: [
|
|
11
9
|
/* @__PURE__ */ e.jsx("a", { name: t }),
|
|
12
|
-
/* @__PURE__ */ e.jsx("span", { id: t, children: /* @__PURE__ */ e.jsx(h, { hideUntilTypeset: "first", inline: !0, dynamic: !0, children: "\\(" +
|
|
10
|
+
/* @__PURE__ */ e.jsx("span", { id: t, children: /* @__PURE__ */ e.jsx(h, { hideUntilTypeset: "first", inline: !0, dynamic: !0, children: "\\(" + s.latex + "\\)" }) })
|
|
13
11
|
] }, t);
|
|
14
12
|
if (n.length === 0)
|
|
15
13
|
return /* @__PURE__ */ e.jsx(r.Fragment, {}, t);
|
|
16
|
-
let
|
|
14
|
+
let i = n.slice(1).reduce((l, m) => [...l, ", ", m], [n[0]]);
|
|
17
15
|
return /* @__PURE__ */ e.jsxs(r.Fragment, { children: [
|
|
18
16
|
/* @__PURE__ */ e.jsx("a", { name: t }),
|
|
19
|
-
/* @__PURE__ */ e.jsx("span", { id: t, children:
|
|
17
|
+
/* @__PURE__ */ e.jsx("span", { id: t, children: i })
|
|
20
18
|
] }, t);
|
|
21
19
|
});
|
|
22
20
|
export {
|
|
23
|
-
|
|
21
|
+
j as default
|
|
24
22
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { u as k, j as e, F as m, f as A, a as R, b as _, c as B,
|
|
1
|
+
import { u as k, j as e, F as m, f as A, a as R, b as _, c as B, G as p, s as j } from "./index-7912373f.js";
|
|
2
2
|
import b, { useRef as I } from "react";
|
|
3
|
-
import { A as C } from "./ActionButtonGroup-
|
|
4
|
-
|
|
5
|
-
import "./mathInput-4ed993c7.js";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const S = j.div`
|
|
3
|
+
import { A as C } from "./ActionButtonGroup-cce60f98.js";
|
|
4
|
+
/* empty css */const S = j.div`
|
|
8
5
|
position: relative;
|
|
9
6
|
margin: 6px;
|
|
10
7
|
display: inline-block;
|
|
@@ -53,8 +50,8 @@ const S = j.div`
|
|
|
53
50
|
background-color: var(--lightBlue);
|
|
54
51
|
color: black;
|
|
55
52
|
}
|
|
56
|
-
`,
|
|
57
|
-
let { name:
|
|
53
|
+
`, P = b.memo(function(y) {
|
|
54
|
+
let { name: V, id: n, SVs: t, actions: s, children: w, callAction: a } = k(y), l = I(null);
|
|
58
55
|
function v() {
|
|
59
56
|
l.current = "unvalidated", (t.valueHasBeenValidated || t.numAttemptsLeft < 1) && (t.creditAchieved === 1 ? l.current = "correct" : t.creditAchieved === 0 ? l.current = "incorrect" : l.current = "partialcorrect");
|
|
60
57
|
}
|
|
@@ -204,5 +201,5 @@ const S = j.div`
|
|
|
204
201
|
] });
|
|
205
202
|
});
|
|
206
203
|
export {
|
|
207
|
-
|
|
204
|
+
P as default
|
|
208
205
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { u as ce, d as ie, e as le, C as $, g as H, j as b, t as ue, M as se } from "./index-
|
|
1
|
+
import { u as ce, d as ie, e as le, C as $, g as H, j as b, t as ue, M as se } from "./index-7912373f.js";
|
|
2
2
|
import ae, { useRef as c, useContext as de, useEffect as I } from "react";
|
|
3
|
-
import { BoardContext as fe, TEXT_LAYER_OFFSET as W } from "./graph-
|
|
4
|
-
|
|
5
|
-
import "styled-components";
|
|
6
|
-
import "./css-ab4d83ca.js";
|
|
7
|
-
const ve = ae.memo(function q(K) {
|
|
3
|
+
import { BoardContext as fe, TEXT_LAYER_OFFSET as W } from "./graph-d69449f2.js";
|
|
4
|
+
const ge = ae.memo(function q(K) {
|
|
8
5
|
let { name: _, id: R, SVs: r, actions: a, sourceOfUpdate: he, callAction: d } = ce(K);
|
|
9
6
|
q.ignoreActionsWithoutCore = () => !0;
|
|
10
7
|
let e = c(null), A = c(null), P = c(null);
|
|
@@ -189,5 +186,5 @@ const ve = ae.memo(function q(K) {
|
|
|
189
186
|
] });
|
|
190
187
|
});
|
|
191
188
|
export {
|
|
192
|
-
|
|
189
|
+
ge as default
|
|
193
190
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { u
|
|
1
|
+
import { u, j as t } from "./index-7912373f.js";
|
|
2
2
|
import r from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const f = r.memo(function(i) {
|
|
6
|
-
let { name: d, id: e, SVs: s, children: n } = o(i);
|
|
3
|
+
const h = r.memo(function(a) {
|
|
4
|
+
let { name: x, id: e, SVs: s, children: n } = u(a);
|
|
7
5
|
if (s.hidden)
|
|
8
6
|
return null;
|
|
9
7
|
if (n.length === 0 && s.text)
|
|
@@ -13,12 +11,12 @@ const f = r.memo(function(i) {
|
|
|
13
11
|
] }, e);
|
|
14
12
|
if (n.length === 0)
|
|
15
13
|
return /* @__PURE__ */ t.jsx(r.Fragment, {}, e);
|
|
16
|
-
let
|
|
14
|
+
let i = n.slice(1).reduce((m, l) => [...m, ", ", l], [n[0]]);
|
|
17
15
|
return /* @__PURE__ */ t.jsxs(r.Fragment, { children: [
|
|
18
16
|
/* @__PURE__ */ t.jsx("a", { name: e }),
|
|
19
|
-
/* @__PURE__ */ t.jsx("span", { id: e, children:
|
|
17
|
+
/* @__PURE__ */ t.jsx("span", { id: e, children: i })
|
|
20
18
|
] }, e);
|
|
21
19
|
});
|
|
22
20
|
export {
|
|
23
|
-
|
|
21
|
+
h as default
|
|
24
22
|
};
|