@pie-lib/math-input-mathlive 1.1.5-beta.9 → 2.0.1-next.20261107131445
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/README.md +84 -109
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/horizontal-keypad.d.ts +22 -0
- package/dist/horizontal-keypad.js +54 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +12 -0
- package/dist/keypad/index.d.ts +40 -0
- package/dist/keypad/index.js +245 -0
- package/dist/keypad/keys-layout.d.ts +7 -0
- package/dist/keypad/keys-layout.js +5 -0
- package/dist/keys/basic-operators.d.ts +5 -0
- package/dist/keys/basic-operators.js +30 -0
- package/dist/keys/chars.d.ts +5 -0
- package/dist/keys/comparison.d.ts +4 -0
- package/dist/keys/comparison.js +32 -0
- package/dist/keys/constants.d.ts +4 -0
- package/dist/keys/constants.js +35 -0
- package/dist/keys/digits.d.ts +15 -0
- package/dist/keys/digits.js +34 -0
- package/dist/keys/edit.d.ts +6 -0
- package/dist/keys/edit.js +9 -0
- package/dist/keys/exponent.d.ts +4 -0
- package/dist/keys/exponent.js +28 -0
- package/dist/keys/fractions.d.ts +3 -0
- package/dist/keys/fractions.js +27 -0
- package/dist/keys/geometry.d.ts +23 -0
- package/dist/keys/geometry.js +127 -0
- package/dist/keys/grades.d.ts +9 -0
- package/dist/keys/grades.js +414 -0
- package/dist/keys/index.d.ts +6 -0
- package/dist/keys/index.js +50 -0
- package/dist/keys/log.d.ts +3 -0
- package/dist/keys/log.js +25 -0
- package/dist/keys/logic.d.ts +2 -0
- package/dist/keys/logic.js +13 -0
- package/dist/keys/matrices.d.ts +2 -0
- package/dist/keys/matrices.js +17 -0
- package/dist/keys/misc.d.ts +10 -0
- package/dist/keys/misc.js +60 -0
- package/dist/keys/navigation.d.ts +2 -0
- package/dist/keys/navigation.js +13 -0
- package/dist/keys/operators.d.ts +1 -0
- package/dist/keys/operators.js +11 -0
- package/dist/keys/statistics.d.ts +5 -0
- package/dist/keys/statistics.js +38 -0
- package/dist/keys/sub-sup.d.ts +2 -0
- package/dist/keys/sub-sup.js +17 -0
- package/dist/keys/trigonometry.d.ts +6 -0
- package/dist/keys/trigonometry.js +43 -0
- package/dist/keys/utils.d.ts +5 -0
- package/dist/keys/utils.js +24 -0
- package/dist/keys/vars.d.ts +3 -0
- package/dist/keys/vars.js +22 -0
- package/dist/latex-bridge.d.ts +197 -0
- package/dist/latex-bridge.js +210 -0
- package/dist/longdiv.d.ts +24 -0
- package/dist/longdiv.js +43 -0
- package/dist/math-input.d.ts +26 -0
- package/dist/math-input.js +74 -0
- package/dist/mathlive-instance.d.ts +221 -0
- package/dist/mathlive-instance.js +159 -0
- package/dist/mf/common-styles.d.ts +594 -0
- package/dist/mf/common-styles.js +80 -0
- package/dist/mf/field-label.d.ts +16 -0
- package/dist/mf/field-label.js +13 -0
- package/dist/mf/index.d.ts +4 -0
- package/dist/mf/index.js +21 -0
- package/dist/mf/input.d.ts +94 -0
- package/dist/mf/input.js +127 -0
- package/dist/mf/static.d.ts +143 -0
- package/dist/mf/static.js +230 -0
- package/dist/selection.d.ts +43 -0
- package/dist/selection.js +39 -0
- package/package.json +32 -18
- package/lib/__tests__/composites.test.js +0 -255
- package/lib/__tests__/drop-in-compat.test.js +0 -133
- package/lib/__tests__/embedded-fonts.test.js +0 -121
- package/lib/__tests__/index.test.js +0 -118
- package/lib/__tests__/input-imperative.test.js +0 -155
- package/lib/__tests__/keypad-label.test.js +0 -231
- package/lib/__tests__/keypad-render.test.js +0 -206
- package/lib/__tests__/latex-bridge.test.js +0 -386
- package/lib/__tests__/mathlive-instance.test.js +0 -419
- package/lib/__tests__/mount-race.test.js +0 -218
- package/lib/__tests__/static-prompts.test.js +0 -405
- package/lib/__tests__/tmp-markup.test.js +0 -26
- package/lib/horizontal-keypad.js +0 -101
- package/lib/horizontal-keypad.js.map +0 -1
- package/lib/index.js +0 -143
- package/lib/index.js.map +0 -1
- package/lib/keypad/index.js +0 -431
- package/lib/keypad/index.js.map +0 -1
- package/lib/keypad/keys-layout.js +0 -22
- package/lib/keypad/keys-layout.js.map +0 -1
- package/lib/keys/basic-operators.js +0 -33
- package/lib/keys/basic-operators.js.map +0 -1
- package/lib/keys/chars.js +0 -12
- package/lib/keys/chars.js.map +0 -1
- package/lib/keys/comparison.js +0 -39
- package/lib/keys/comparison.js.map +0 -1
- package/lib/keys/constants.js +0 -37
- package/lib/keys/constants.js.map +0 -1
- package/lib/keys/digits.js +0 -46
- package/lib/keys/digits.js.map +0 -1
- package/lib/keys/edit.js +0 -14
- package/lib/keys/edit.js.map +0 -1
- package/lib/keys/exponent.js +0 -30
- package/lib/keys/exponent.js.map +0 -1
- package/lib/keys/fractions.js +0 -29
- package/lib/keys/fractions.js.map +0 -1
- package/lib/keys/geometry.js +0 -143
- package/lib/keys/geometry.js.map +0 -1
- package/lib/keys/grades.js +0 -259
- package/lib/keys/grades.js.map +0 -1
- package/lib/keys/index.js +0 -35
- package/lib/keys/index.js.map +0 -1
- package/lib/keys/log.js +0 -27
- package/lib/keys/log.js.map +0 -1
- package/lib/keys/logic.js +0 -19
- package/lib/keys/logic.js.map +0 -1
- package/lib/keys/matrices.js +0 -19
- package/lib/keys/matrices.js.map +0 -1
- package/lib/keys/misc.js +0 -69
- package/lib/keys/misc.js.map +0 -1
- package/lib/keys/navigation.js +0 -20
- package/lib/keys/navigation.js.map +0 -1
- package/lib/keys/operators.js +0 -15
- package/lib/keys/operators.js.map +0 -1
- package/lib/keys/statistics.js +0 -40
- package/lib/keys/statistics.js.map +0 -1
- package/lib/keys/sub-sup.js +0 -19
- package/lib/keys/sub-sup.js.map +0 -1
- package/lib/keys/trigonometry.js +0 -45
- package/lib/keys/trigonometry.js.map +0 -1
- package/lib/keys/utils.js +0 -87
- package/lib/keys/utils.js.map +0 -1
- package/lib/keys/vars.js +0 -24
- package/lib/keys/vars.js.map +0 -1
- package/lib/latex-bridge.js +0 -508
- package/lib/latex-bridge.js.map +0 -1
- package/lib/math-input.js +0 -143
- package/lib/math-input.js.map +0 -1
- package/lib/mathlive-instance.js +0 -585
- package/lib/mathlive-instance.js.map +0 -1
- package/lib/mf/common-styles.js +0 -203
- package/lib/mf/common-styles.js.map +0 -1
- package/lib/mf/index.js +0 -84
- package/lib/mf/index.js.map +0 -1
- package/lib/mf/input.js +0 -364
- package/lib/mf/input.js.map +0 -1
- package/lib/mf/static.js +0 -500
- package/lib/mf/static.js.map +0 -1
- package/src/__tests__/composites.test.jsx +0 -220
- package/src/__tests__/drop-in-compat.test.jsx +0 -112
- package/src/__tests__/index.test.jsx +0 -109
- package/src/__tests__/input-imperative.test.jsx +0 -144
- package/src/__tests__/keypad-label.test.jsx +0 -283
- package/src/__tests__/keypad-render.test.jsx +0 -123
- package/src/__tests__/latex-bridge.test.js +0 -389
- package/src/__tests__/mathlive-instance.test.js +0 -418
- package/src/__tests__/mount-race.test.jsx +0 -142
- package/src/__tests__/static-prompts.test.jsx +0 -364
- package/src/horizontal-keypad.jsx +0 -73
- package/src/index.jsx +0 -63
- package/src/keypad/index.jsx +0 -386
- package/src/keypad/keys-layout.js +0 -16
- package/src/keys/basic-operators.js +0 -32
- package/src/keys/chars.js +0 -5
- package/src/keys/comparison.js +0 -28
- package/src/keys/constants.js +0 -35
- package/src/keys/digits.js +0 -40
- package/src/keys/edit.js +0 -3
- package/src/keys/exponent.js +0 -28
- package/src/keys/fractions.js +0 -26
- package/src/keys/geometry.js +0 -149
- package/src/keys/grades.js +0 -367
- package/src/keys/index.js +0 -20
- package/src/keys/log.js +0 -22
- package/src/keys/logic.js +0 -15
- package/src/keys/matrices.js +0 -15
- package/src/keys/misc.js +0 -71
- package/src/keys/navigation.js +0 -8
- package/src/keys/operators.js +0 -10
- package/src/keys/statistics.js +0 -38
- package/src/keys/sub-sup.js +0 -15
- package/src/keys/trigonometry.js +0 -15
- package/src/keys/utils.js +0 -66
- package/src/keys/vars.js +0 -19
- package/src/latex-bridge.js +0 -524
- package/src/math-input.jsx +0 -115
- package/src/mathlive-instance.js +0 -582
- package/src/mf/common-styles.js +0 -210
- package/src/mf/index.js +0 -30
- package/src/mf/input.jsx +0 -319
- package/src/mf/static.jsx +0 -479
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import { comparison_exports as e, greaterThan as t, greaterThanEqual as n, lessThan as r, lessThanEqual as i } from "./comparison.js";
|
|
2
|
+
import { theta as a, vars_exports as ee, x as o, y as s } from "./vars.js";
|
|
3
|
+
import { blankOverBlank as c, fractions_exports as te, xBlankBlank as l, xOverBlank as u } from "./fractions.js";
|
|
4
|
+
import { exponent_exports as ne, nthRoot as d, squareRoot as f, squared as p, xToPowerOfN as m } from "./exponent.js";
|
|
5
|
+
import { absValue as h, brackets as g, misc_exports as re, notEqual as _, notSimilar as ie, parenthesis as v, percentage as ae, plusMinus as y } from "./misc.js";
|
|
6
|
+
import { constants_exports as oe, eulers as se, halfInfinity as ce, infinity as le, pi as b } from "./constants.js";
|
|
7
|
+
import { cos as x, cot as S, csc as C, sec as w, sin as T, tan as E, trigonometry_exports as ue } from "./trigonometry.js";
|
|
8
|
+
import { angle as D, congruentTo as de, degree as O, doublePrimeArcSecond as fe, geometry_exports as pe, leftArrow as me, leftrightArrow as he, measureOfAngle as ge, notCongruentTo as _e, overArc as k, overLeftRightArrow as A, overRightArrow as j, overline as M, parallel as N, perpindicular as P, primeArcminute as F, rightArrow as I, similarTo as ve, square as ye, triangle as L } from "./geometry.js";
|
|
9
|
+
import { circleDot as R, operators_exports as be } from "./operators.js";
|
|
10
|
+
import { ln as z, log as B, logSubscript as V, log_exports as xe } from "./log.js";
|
|
11
|
+
import { sub_sup_exports as Se, subscript as H } from "./sub-sup.js";
|
|
12
|
+
import { mu as U, sigma as W, smallSigma as G, statistics_exports as Ce, xBar as we, yBar as Te } from "./statistics.js";
|
|
13
|
+
import { basic_operators_exports as Ee, divide as De, minus as K, multiply as Oe } from "./basic-operators.js";
|
|
14
|
+
import { matrices_exports as ke } from "./matrices.js";
|
|
15
|
+
import q from "./digits.js";
|
|
16
|
+
import { longDivision as J, therefore as Ae } from "./logic.js";
|
|
17
|
+
import { left as Y, right as X } from "./navigation.js";
|
|
18
|
+
import { del as Z } from "./edit.js";
|
|
19
|
+
//#region src/keys/grades.ts
|
|
20
|
+
var Q = [
|
|
21
|
+
[
|
|
22
|
+
c,
|
|
23
|
+
ae,
|
|
24
|
+
o,
|
|
25
|
+
p,
|
|
26
|
+
f
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
R,
|
|
30
|
+
s,
|
|
31
|
+
H,
|
|
32
|
+
m,
|
|
33
|
+
d
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
y,
|
|
37
|
+
r,
|
|
38
|
+
t,
|
|
39
|
+
i,
|
|
40
|
+
n
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
b,
|
|
44
|
+
a,
|
|
45
|
+
v,
|
|
46
|
+
g,
|
|
47
|
+
h
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
_,
|
|
51
|
+
T,
|
|
52
|
+
x,
|
|
53
|
+
E,
|
|
54
|
+
O
|
|
55
|
+
]
|
|
56
|
+
], je = (() => {
|
|
57
|
+
let e = [...Q.map((e) => [...e])];
|
|
58
|
+
return e[0].push({
|
|
59
|
+
name: "i",
|
|
60
|
+
latex: "i",
|
|
61
|
+
write: "i"
|
|
62
|
+
}), e[1].push(B), e[2].push(V), e[3].push(z), e[4].push(se), e;
|
|
63
|
+
})(), Me = (() => {
|
|
64
|
+
let e = [...Q.map((e) => [...e])];
|
|
65
|
+
return e[0].push(U), e[1].push(we), e[2].push(Te), e[3].push(W), e[4].push(G), e;
|
|
66
|
+
})(), $ = [
|
|
67
|
+
{
|
|
68
|
+
predicate: (e) => e >= 3 && e <= 5,
|
|
69
|
+
set: [
|
|
70
|
+
[r, t],
|
|
71
|
+
[u, l],
|
|
72
|
+
[o, J],
|
|
73
|
+
[p, m]
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
predicate: (e) => e >= 6 && e <= 7,
|
|
78
|
+
set: [
|
|
79
|
+
[
|
|
80
|
+
O,
|
|
81
|
+
r,
|
|
82
|
+
t
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
R,
|
|
86
|
+
i,
|
|
87
|
+
n
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
o,
|
|
91
|
+
s,
|
|
92
|
+
p,
|
|
93
|
+
m
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
y,
|
|
97
|
+
u,
|
|
98
|
+
l,
|
|
99
|
+
f
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
b,
|
|
103
|
+
v,
|
|
104
|
+
h,
|
|
105
|
+
d
|
|
106
|
+
]
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
predicate: (e) => e >= 8 || e === "HS",
|
|
111
|
+
set: Q
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
predicate: "non-negative-integers",
|
|
115
|
+
set: [
|
|
116
|
+
[
|
|
117
|
+
q.seven,
|
|
118
|
+
q.eight,
|
|
119
|
+
q.nine
|
|
120
|
+
],
|
|
121
|
+
[
|
|
122
|
+
q.four,
|
|
123
|
+
q.five,
|
|
124
|
+
q.six
|
|
125
|
+
],
|
|
126
|
+
[
|
|
127
|
+
q.one,
|
|
128
|
+
q.two,
|
|
129
|
+
q.three
|
|
130
|
+
],
|
|
131
|
+
[
|
|
132
|
+
q.zero,
|
|
133
|
+
{
|
|
134
|
+
name: "",
|
|
135
|
+
latex: "",
|
|
136
|
+
write: ""
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "",
|
|
140
|
+
latex: "",
|
|
141
|
+
write: ""
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
Y,
|
|
146
|
+
X,
|
|
147
|
+
Z
|
|
148
|
+
]
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
predicate: "integers",
|
|
153
|
+
set: [
|
|
154
|
+
[
|
|
155
|
+
q.seven,
|
|
156
|
+
q.eight,
|
|
157
|
+
q.nine
|
|
158
|
+
],
|
|
159
|
+
[
|
|
160
|
+
q.four,
|
|
161
|
+
q.five,
|
|
162
|
+
q.six
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
q.one,
|
|
166
|
+
q.two,
|
|
167
|
+
q.three
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
q.zero,
|
|
171
|
+
{
|
|
172
|
+
name: "",
|
|
173
|
+
latex: "",
|
|
174
|
+
write: ""
|
|
175
|
+
},
|
|
176
|
+
K
|
|
177
|
+
],
|
|
178
|
+
[
|
|
179
|
+
Y,
|
|
180
|
+
X,
|
|
181
|
+
Z
|
|
182
|
+
]
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
predicate: "decimals",
|
|
187
|
+
set: [
|
|
188
|
+
[
|
|
189
|
+
q.seven,
|
|
190
|
+
q.eight,
|
|
191
|
+
q.nine
|
|
192
|
+
],
|
|
193
|
+
[
|
|
194
|
+
q.four,
|
|
195
|
+
q.five,
|
|
196
|
+
q.six
|
|
197
|
+
],
|
|
198
|
+
[
|
|
199
|
+
q.one,
|
|
200
|
+
q.two,
|
|
201
|
+
q.three
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
q.zero,
|
|
205
|
+
q.decimalPoint,
|
|
206
|
+
K
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
Y,
|
|
210
|
+
X,
|
|
211
|
+
Z
|
|
212
|
+
]
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
predicate: "fractions",
|
|
217
|
+
set: [
|
|
218
|
+
[
|
|
219
|
+
q.seven,
|
|
220
|
+
q.eight,
|
|
221
|
+
q.nine
|
|
222
|
+
],
|
|
223
|
+
[
|
|
224
|
+
q.four,
|
|
225
|
+
q.five,
|
|
226
|
+
q.six
|
|
227
|
+
],
|
|
228
|
+
[
|
|
229
|
+
q.one,
|
|
230
|
+
q.two,
|
|
231
|
+
q.three
|
|
232
|
+
],
|
|
233
|
+
[
|
|
234
|
+
q.zero,
|
|
235
|
+
c,
|
|
236
|
+
K
|
|
237
|
+
],
|
|
238
|
+
[
|
|
239
|
+
Y,
|
|
240
|
+
X,
|
|
241
|
+
Z
|
|
242
|
+
]
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
predicate: "geometry",
|
|
247
|
+
set: [
|
|
248
|
+
[
|
|
249
|
+
c,
|
|
250
|
+
O,
|
|
251
|
+
F,
|
|
252
|
+
fe,
|
|
253
|
+
de,
|
|
254
|
+
ve
|
|
255
|
+
],
|
|
256
|
+
[
|
|
257
|
+
R,
|
|
258
|
+
D,
|
|
259
|
+
ge,
|
|
260
|
+
L,
|
|
261
|
+
_e,
|
|
262
|
+
ie
|
|
263
|
+
],
|
|
264
|
+
[
|
|
265
|
+
T,
|
|
266
|
+
x,
|
|
267
|
+
E,
|
|
268
|
+
b,
|
|
269
|
+
f,
|
|
270
|
+
d
|
|
271
|
+
],
|
|
272
|
+
[
|
|
273
|
+
C,
|
|
274
|
+
w,
|
|
275
|
+
S,
|
|
276
|
+
a,
|
|
277
|
+
H,
|
|
278
|
+
m
|
|
279
|
+
],
|
|
280
|
+
[
|
|
281
|
+
M,
|
|
282
|
+
j,
|
|
283
|
+
A,
|
|
284
|
+
k,
|
|
285
|
+
P,
|
|
286
|
+
N
|
|
287
|
+
]
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
predicate: "advanced-algebra",
|
|
292
|
+
set: je
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
predicate: "statistics",
|
|
296
|
+
set: Me
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
predicate: "item-authoring",
|
|
300
|
+
set: [
|
|
301
|
+
[
|
|
302
|
+
De,
|
|
303
|
+
c,
|
|
304
|
+
J,
|
|
305
|
+
ce,
|
|
306
|
+
p,
|
|
307
|
+
f,
|
|
308
|
+
M,
|
|
309
|
+
j,
|
|
310
|
+
A,
|
|
311
|
+
B
|
|
312
|
+
],
|
|
313
|
+
[
|
|
314
|
+
Oe,
|
|
315
|
+
R,
|
|
316
|
+
{
|
|
317
|
+
name: "",
|
|
318
|
+
latex: "",
|
|
319
|
+
write: ""
|
|
320
|
+
},
|
|
321
|
+
H,
|
|
322
|
+
m,
|
|
323
|
+
d,
|
|
324
|
+
P,
|
|
325
|
+
N,
|
|
326
|
+
k,
|
|
327
|
+
V
|
|
328
|
+
],
|
|
329
|
+
[
|
|
330
|
+
y,
|
|
331
|
+
b,
|
|
332
|
+
a,
|
|
333
|
+
O,
|
|
334
|
+
D,
|
|
335
|
+
me,
|
|
336
|
+
I,
|
|
337
|
+
L,
|
|
338
|
+
ye,
|
|
339
|
+
z
|
|
340
|
+
],
|
|
341
|
+
[
|
|
342
|
+
_,
|
|
343
|
+
h,
|
|
344
|
+
G,
|
|
345
|
+
U,
|
|
346
|
+
Ae,
|
|
347
|
+
W,
|
|
348
|
+
he,
|
|
349
|
+
T,
|
|
350
|
+
x,
|
|
351
|
+
E
|
|
352
|
+
],
|
|
353
|
+
[
|
|
354
|
+
i,
|
|
355
|
+
n,
|
|
356
|
+
{
|
|
357
|
+
name: "",
|
|
358
|
+
latex: "",
|
|
359
|
+
write: ""
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: "",
|
|
363
|
+
latex: "",
|
|
364
|
+
write: ""
|
|
365
|
+
},
|
|
366
|
+
le,
|
|
367
|
+
{
|
|
368
|
+
name: "",
|
|
369
|
+
latex: "",
|
|
370
|
+
write: ""
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "",
|
|
374
|
+
latex: "",
|
|
375
|
+
write: ""
|
|
376
|
+
},
|
|
377
|
+
C,
|
|
378
|
+
w,
|
|
379
|
+
S
|
|
380
|
+
]
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
predicate: (e) => e >= 1 && e <= 2,
|
|
385
|
+
set: []
|
|
386
|
+
}
|
|
387
|
+
], Ne = (e) => {
|
|
388
|
+
let t = parseInt(e, 10);
|
|
389
|
+
if (e = isNaN(t) ? e : t, !e) return [];
|
|
390
|
+
let n = $.find((t) => typeof t.predicate == "string" ? t.predicate === e : t.predicate(e));
|
|
391
|
+
if (n) return n.set || [];
|
|
392
|
+
if (e !== "language") return $[2].set;
|
|
393
|
+
}, Pe = [
|
|
394
|
+
...Object.values(Ee),
|
|
395
|
+
...Object.values(e),
|
|
396
|
+
...Object.values(oe),
|
|
397
|
+
...Object.values(q),
|
|
398
|
+
...Object.values(ne),
|
|
399
|
+
...Object.values(te),
|
|
400
|
+
...Object.values(pe),
|
|
401
|
+
...Object.values(xe),
|
|
402
|
+
...Object.values(ke),
|
|
403
|
+
...Object.values(re),
|
|
404
|
+
...Object.values(be),
|
|
405
|
+
...Object.values(Ce),
|
|
406
|
+
...Object.values(Se),
|
|
407
|
+
...Object.values(ue),
|
|
408
|
+
...Object.values(ee)
|
|
409
|
+
], Fe = (e) => (e || []).map((e) => {
|
|
410
|
+
let { latex: t } = e, n = (Pe || []).find((e) => t === e.latex || t === e.write || t === e.command || t === e.otherNotation);
|
|
411
|
+
return t && n || e;
|
|
412
|
+
});
|
|
413
|
+
//#endregion
|
|
414
|
+
export { $ as gradeSets, Ne as keysForGrade, Fe as normalizeAdditionalKeys };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { comparison_exports as t } from "./comparison.js";
|
|
3
|
+
import { fractions_exports as n } from "./fractions.js";
|
|
4
|
+
import { exponent_exports as r } from "./exponent.js";
|
|
5
|
+
import { misc_exports as i } from "./misc.js";
|
|
6
|
+
import { divide as a, equals as o, minus as s, multiply as c, plus as l } from "./basic-operators.js";
|
|
7
|
+
import u from "./digits.js";
|
|
8
|
+
import { left as d, right as f } from "./navigation.js";
|
|
9
|
+
import { del as p } from "./edit.js";
|
|
10
|
+
//#region src/keys/index.ts
|
|
11
|
+
var m = /* @__PURE__ */ e({
|
|
12
|
+
baseSet: () => D,
|
|
13
|
+
comparison: () => t,
|
|
14
|
+
exponent: () => r,
|
|
15
|
+
fractions: () => n,
|
|
16
|
+
misc: () => i
|
|
17
|
+
}), { one: h, two: g, three: _, four: v, five: y, six: b, seven: x, eight: S, nine: C, zero: w, comma: T, decimalPoint: E } = u, D = [
|
|
18
|
+
[
|
|
19
|
+
x,
|
|
20
|
+
S,
|
|
21
|
+
C,
|
|
22
|
+
a
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
v,
|
|
26
|
+
y,
|
|
27
|
+
b,
|
|
28
|
+
c
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
h,
|
|
32
|
+
g,
|
|
33
|
+
_,
|
|
34
|
+
s
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
w,
|
|
38
|
+
E,
|
|
39
|
+
T,
|
|
40
|
+
l
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
d,
|
|
44
|
+
f,
|
|
45
|
+
p,
|
|
46
|
+
o
|
|
47
|
+
]
|
|
48
|
+
];
|
|
49
|
+
//#endregion
|
|
50
|
+
export { D as baseSet, t as comparison, r as exponent, n as fractions, m as keys_exports, i as misc };
|
package/dist/keys/log.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { mkSet as t } from "./utils.js";
|
|
3
|
+
//#region src/keys/log.ts
|
|
4
|
+
var n = /* @__PURE__ */ e({
|
|
5
|
+
ln: () => o,
|
|
6
|
+
log: () => i,
|
|
7
|
+
logSubscript: () => a
|
|
8
|
+
}), r = t("log"), i = r({
|
|
9
|
+
name: "Log",
|
|
10
|
+
label: "log",
|
|
11
|
+
command: "\\log",
|
|
12
|
+
latex: "\\log"
|
|
13
|
+
}), a = r({
|
|
14
|
+
name: "log base n",
|
|
15
|
+
label: "log s",
|
|
16
|
+
latex: "\\log_{}",
|
|
17
|
+
command: ["\\log", "_"]
|
|
18
|
+
}), o = r({
|
|
19
|
+
name: "natural log",
|
|
20
|
+
label: "ln",
|
|
21
|
+
command: "\\ln",
|
|
22
|
+
latex: "\\ln"
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { o as ln, i as log, a as logSubscript, n as log_exports };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { mkSet as e } from "./utils.js";
|
|
2
|
+
//#region src/keys/logic.ts
|
|
3
|
+
var t = e("logic"), n = t({
|
|
4
|
+
name: "Therefore",
|
|
5
|
+
label: "∴",
|
|
6
|
+
write: "∴"
|
|
7
|
+
}), r = t({
|
|
8
|
+
name: "Long division",
|
|
9
|
+
latex: "\\longdiv{}",
|
|
10
|
+
command: "\\longdiv"
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as longDivision, n as therefore };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { mkSet as t } from "./utils.js";
|
|
3
|
+
//#region src/keys/matrices.ts
|
|
4
|
+
var n = /* @__PURE__ */ e({
|
|
5
|
+
doubleCellMatrix: () => a,
|
|
6
|
+
singleCellMatrix: () => i
|
|
7
|
+
}), r = t("matrices"), i = r({
|
|
8
|
+
name: "Single Cell Matrix",
|
|
9
|
+
label: "[ ]",
|
|
10
|
+
write: "\\begin{pmatrix}\\end{pmatrix}"
|
|
11
|
+
}), a = r({
|
|
12
|
+
name: "Double Cell Matrix",
|
|
13
|
+
label: "[ ] [ ] \\\\newline [ ] [ ]",
|
|
14
|
+
write: "\\begin{bmatrix}&\\\\&\\end{bmatrix}"
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { a as doubleCellMatrix, n as matrices_exports, i as singleCellMatrix };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const plusMinus: any;
|
|
2
|
+
export declare const absValue: any;
|
|
3
|
+
export declare const parenthesis: any;
|
|
4
|
+
export declare const brackets: any;
|
|
5
|
+
export declare const percentage: any;
|
|
6
|
+
export declare const approx: any;
|
|
7
|
+
export declare const nApprox: any;
|
|
8
|
+
export declare const notEqual: any;
|
|
9
|
+
export declare const similar: any;
|
|
10
|
+
export declare const notSimilar: any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { mkSet as t } from "./utils.js";
|
|
3
|
+
//#region src/keys/misc.ts
|
|
4
|
+
var n = /* @__PURE__ */ e({
|
|
5
|
+
absValue: () => a,
|
|
6
|
+
approx: () => l,
|
|
7
|
+
brackets: () => s,
|
|
8
|
+
nApprox: () => u,
|
|
9
|
+
notEqual: () => d,
|
|
10
|
+
notSimilar: () => p,
|
|
11
|
+
parenthesis: () => o,
|
|
12
|
+
percentage: () => c,
|
|
13
|
+
plusMinus: () => i,
|
|
14
|
+
similar: () => f
|
|
15
|
+
}), r = t("misc"), i = r({
|
|
16
|
+
name: "Plus or Minus",
|
|
17
|
+
latex: "\\pm",
|
|
18
|
+
write: "\\pm"
|
|
19
|
+
}), a = r({
|
|
20
|
+
name: "Absolute Value",
|
|
21
|
+
latex: "\\abs{}",
|
|
22
|
+
symbol: "| |",
|
|
23
|
+
command: "|"
|
|
24
|
+
}), o = r({
|
|
25
|
+
name: "Parenthesis",
|
|
26
|
+
latex: "\\left(\\right)",
|
|
27
|
+
symbol: "( )",
|
|
28
|
+
command: "("
|
|
29
|
+
}), s = r({
|
|
30
|
+
name: "Brackets",
|
|
31
|
+
latex: "\\left[\\right]",
|
|
32
|
+
symbol: "[ ]",
|
|
33
|
+
command: "["
|
|
34
|
+
}), c = r({
|
|
35
|
+
name: "Percent",
|
|
36
|
+
latex: "\\%",
|
|
37
|
+
command: "\\%"
|
|
38
|
+
}), l = r({
|
|
39
|
+
latex: "\\approx",
|
|
40
|
+
command: "\\approx",
|
|
41
|
+
ariaLabel: "Approximately equal to"
|
|
42
|
+
}), u = r({
|
|
43
|
+
latex: "\\napprox",
|
|
44
|
+
command: "\\napprox",
|
|
45
|
+
ariaLabel: "Not pproximately equal to"
|
|
46
|
+
}), d = r({
|
|
47
|
+
latex: "\\neq",
|
|
48
|
+
command: "\\neq",
|
|
49
|
+
ariaLabel: "Not equals"
|
|
50
|
+
}), f = r({
|
|
51
|
+
latex: "\\sim",
|
|
52
|
+
command: "\\sim",
|
|
53
|
+
ariaLabel: "Similar"
|
|
54
|
+
}), p = r({
|
|
55
|
+
latex: "\\nsim",
|
|
56
|
+
command: "\\nsim",
|
|
57
|
+
ariaLabel: "Not similar"
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { a as absValue, l as approx, s as brackets, n as misc_exports, u as nApprox, d as notEqual, p as notSimilar, o as parenthesis, c as percentage, i as plusMinus, f as similar };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { mkSet as e } from "./utils.js";
|
|
2
|
+
//#region src/keys/navigation.ts
|
|
3
|
+
var t = e("navigation"), n = t({
|
|
4
|
+
label: "◀",
|
|
5
|
+
keystroke: "Left",
|
|
6
|
+
ariaLabel: "Move cursor left"
|
|
7
|
+
}), r = t({
|
|
8
|
+
label: "▶",
|
|
9
|
+
keystroke: "Right",
|
|
10
|
+
ariaLabel: "Move cursor right"
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as left, r as right };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const circleDot: any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { mkSet as t } from "./utils.js";
|
|
3
|
+
//#region src/keys/operators.ts
|
|
4
|
+
var n = /* @__PURE__ */ e({ circleDot: () => r }), r = t("operators")({
|
|
5
|
+
name: "CircleDot",
|
|
6
|
+
label: "⋅",
|
|
7
|
+
write: "\\cdot",
|
|
8
|
+
ariaLabel: "Dot multiplier"
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as circleDot, n as operators_exports };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { mkSet as t } from "./utils.js";
|
|
3
|
+
//#region src/keys/statistics.ts
|
|
4
|
+
var n = /* @__PURE__ */ e({
|
|
5
|
+
mu: () => o,
|
|
6
|
+
sigma: () => s,
|
|
7
|
+
smallSigma: () => c,
|
|
8
|
+
xBar: () => i,
|
|
9
|
+
yBar: () => a
|
|
10
|
+
}), r = t("statistics"), i = r({
|
|
11
|
+
name: "X Bar",
|
|
12
|
+
label: "x̄",
|
|
13
|
+
latex: "\\overline{x}",
|
|
14
|
+
write: "\\overline{x}"
|
|
15
|
+
}), a = r({
|
|
16
|
+
name: "Y Bar",
|
|
17
|
+
latex: "\\overline{y}",
|
|
18
|
+
write: "\\overline{y}"
|
|
19
|
+
}), o = r({
|
|
20
|
+
name: "mu",
|
|
21
|
+
label: "mu",
|
|
22
|
+
latex: "\\mu",
|
|
23
|
+
write: "\\mu"
|
|
24
|
+
}), s = r({
|
|
25
|
+
name: "Sigma",
|
|
26
|
+
ariaLabel: "Uppercase Sigma",
|
|
27
|
+
label: "\\Sigma",
|
|
28
|
+
latex: "\\Sigma",
|
|
29
|
+
write: "\\Sigma"
|
|
30
|
+
}), c = r({
|
|
31
|
+
name: "sigma",
|
|
32
|
+
ariaLabel: "Lowercase Sigma",
|
|
33
|
+
label: "\\sigma",
|
|
34
|
+
latex: "\\sigma",
|
|
35
|
+
write: "\\sigma"
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { o as mu, s as sigma, c as smallSigma, n as statistics_exports, i as xBar, a as yBar };
|