@tempots/dom 28.1.4 → 28.2.0
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/index.cjs +1 -1
- package/index.js +179 -158
- package/package.json +1 -1
- package/renderable/attribute.d.ts +73 -28
- package/renderable/element.d.ts +14 -0
- package/std/signal-utils.d.ts +18 -0
- package/types/mathml-attributes.d.ts +25 -0
- package/types/mathml-tags.d.ts +14 -0
package/package.json
CHANGED
|
@@ -483,32 +483,77 @@ export declare const svgAttr: {
|
|
|
483
483
|
* @public
|
|
484
484
|
*/
|
|
485
485
|
export declare const mathAttr: {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
486
|
+
accent: (value: NValue<string>) => Renderable;
|
|
487
|
+
accentunder: (value: NValue<string>) => Renderable;
|
|
488
|
+
actiontype: (value: NValue<string>) => Renderable;
|
|
489
|
+
align: (value: NValue<string>) => Renderable;
|
|
490
|
+
background: (value: NValue<string>) => Renderable;
|
|
491
|
+
base: (value: NValue<string>) => Renderable;
|
|
492
|
+
bevelled: (value: NValue<string>) => Renderable;
|
|
493
|
+
charalign: (value: NValue<string>) => Renderable;
|
|
494
|
+
class: (value: NValue<string>) => Renderable;
|
|
495
|
+
close: (value: NValue<string>) => Renderable;
|
|
496
|
+
color: (value: NValue<string>) => Renderable;
|
|
497
|
+
columnalign: (value: NValue<string>) => Renderable;
|
|
498
|
+
columnlines: (value: NValue<string>) => Renderable;
|
|
499
|
+
columnspacing: (value: NValue<string>) => Renderable;
|
|
500
|
+
columnspan: (value: NValue<string>) => Renderable;
|
|
501
|
+
columnwidth: (value: NValue<string>) => Renderable;
|
|
502
|
+
crossout: (value: NValue<string>) => Renderable;
|
|
503
|
+
definitionurl: (value: NValue<string>) => Renderable;
|
|
504
|
+
denomsalign: (value: NValue<string>) => Renderable;
|
|
505
|
+
depth: (value: NValue<string>) => Renderable;
|
|
506
|
+
dir: (value: NValue<string>) => Renderable;
|
|
507
|
+
display: (value: NValue<string>) => Renderable;
|
|
508
|
+
displaystyle: (value: NValue<string>) => Renderable;
|
|
509
|
+
edge: (value: NValue<string>) => Renderable;
|
|
510
|
+
equalcolumns: (value: NValue<string>) => Renderable;
|
|
511
|
+
equalrows: (value: NValue<string>) => Renderable;
|
|
512
|
+
fence: (value: NValue<string>) => Renderable;
|
|
513
|
+
fontstyle: (value: NValue<string>) => Renderable;
|
|
514
|
+
fontweight: (value: NValue<string>) => Renderable;
|
|
515
|
+
form: (value: NValue<string>) => Renderable;
|
|
516
|
+
frame: (value: NValue<string>) => Renderable;
|
|
517
|
+
height: (value: NValue<string>) => Renderable;
|
|
518
|
+
href: (value: NValue<string>) => Renderable;
|
|
519
|
+
id: (value: NValue<string>) => Renderable;
|
|
520
|
+
largeop: (value: NValue<string>) => Renderable;
|
|
521
|
+
length: (value: NValue<string>) => Renderable;
|
|
522
|
+
linebreak: (value: NValue<string>) => Renderable;
|
|
523
|
+
linethickness: (value: NValue<string>) => Renderable;
|
|
524
|
+
longdivstyle: (value: NValue<string>) => Renderable;
|
|
525
|
+
lspace: (value: NValue<string>) => Renderable;
|
|
526
|
+
mathbackground: (value: NValue<string>) => Renderable;
|
|
527
|
+
mathcolor: (value: NValue<string>) => Renderable;
|
|
528
|
+
mathdepth: (value: NValue<string>) => Renderable;
|
|
529
|
+
mathsize: (value: NValue<string>) => Renderable;
|
|
530
|
+
mathvariant: (value: NValue<string>) => Renderable;
|
|
531
|
+
maxsize: (value: NValue<string>) => Renderable;
|
|
532
|
+
minsize: (value: NValue<string>) => Renderable;
|
|
533
|
+
movablelimits: (value: NValue<string>) => Renderable;
|
|
534
|
+
notation: (value: NValue<string>) => Renderable;
|
|
535
|
+
numalign: (value: NValue<string>) => Renderable;
|
|
536
|
+
open: (value: NValue<string>) => Renderable;
|
|
537
|
+
other: (value: NValue<string>) => Renderable;
|
|
538
|
+
rowalign: (value: NValue<string>) => Renderable;
|
|
539
|
+
rowlines: (value: NValue<string>) => Renderable;
|
|
540
|
+
rowspacing: (value: NValue<string>) => Renderable;
|
|
541
|
+
rowspan: (value: NValue<string>) => Renderable;
|
|
542
|
+
rspace: (value: NValue<string>) => Renderable;
|
|
543
|
+
scriptlevel: (value: NValue<string>) => Renderable;
|
|
544
|
+
scriptminsize: (value: NValue<string>) => Renderable;
|
|
545
|
+
scriptsizemultiplier: (value: NValue<string>) => Renderable;
|
|
546
|
+
selection: (value: NValue<string>) => Renderable;
|
|
547
|
+
separator: (value: NValue<string>) => Renderable;
|
|
548
|
+
stackalign: (value: NValue<string>) => Renderable;
|
|
549
|
+
stretchy: (value: NValue<string>) => Renderable;
|
|
550
|
+
style: (value: NValue<string>) => Renderable;
|
|
551
|
+
subscriptshift: (value: NValue<string>) => Renderable;
|
|
552
|
+
superscriptshift: (value: NValue<string>) => Renderable;
|
|
553
|
+
symmetric: (value: NValue<string>) => Renderable;
|
|
554
|
+
type: (value: NValue<string>) => Renderable;
|
|
555
|
+
valign: (value: NValue<string>) => Renderable;
|
|
556
|
+
voffset: (value: NValue<string>) => Renderable;
|
|
557
|
+
width: (value: NValue<string>) => Renderable;
|
|
558
|
+
xref: (value: NValue<string>) => Renderable;
|
|
514
559
|
};
|
package/renderable/element.d.ts
CHANGED
|
@@ -252,12 +252,19 @@ export declare const svg: {
|
|
|
252
252
|
* @public
|
|
253
253
|
*/
|
|
254
254
|
export declare const math: {
|
|
255
|
+
annotation_xml: (...children: TNode[]) => Renderable;
|
|
256
|
+
annotation: (...children: TNode[]) => Renderable;
|
|
255
257
|
maction: (...children: TNode[]) => Renderable;
|
|
258
|
+
maligngroup: (...children: TNode[]) => Renderable;
|
|
259
|
+
malignmark: (...children: TNode[]) => Renderable;
|
|
256
260
|
math: (...children: TNode[]) => Renderable;
|
|
257
261
|
merror: (...children: TNode[]) => Renderable;
|
|
258
262
|
mfenced: (...children: TNode[]) => Renderable;
|
|
259
263
|
mfrac: (...children: TNode[]) => Renderable;
|
|
264
|
+
mglyph: (...children: TNode[]) => Renderable;
|
|
260
265
|
mi: (...children: TNode[]) => Renderable;
|
|
266
|
+
mlabeledtr: (...children: TNode[]) => Renderable;
|
|
267
|
+
mlongdiv: (...children: TNode[]) => Renderable;
|
|
261
268
|
mmultiscripts: (...children: TNode[]) => Renderable;
|
|
262
269
|
mn: (...children: TNode[]) => Renderable;
|
|
263
270
|
mo: (...children: TNode[]) => Renderable;
|
|
@@ -267,8 +274,14 @@ export declare const math: {
|
|
|
267
274
|
mroot: (...children: TNode[]) => Renderable;
|
|
268
275
|
mrow: (...children: TNode[]) => Renderable;
|
|
269
276
|
ms: (...children: TNode[]) => Renderable;
|
|
277
|
+
mscarries: (...children: TNode[]) => Renderable;
|
|
278
|
+
mscarry: (...children: TNode[]) => Renderable;
|
|
279
|
+
msgroup: (...children: TNode[]) => Renderable;
|
|
280
|
+
msline: (...children: TNode[]) => Renderable;
|
|
270
281
|
mspace: (...children: TNode[]) => Renderable;
|
|
271
282
|
msqrt: (...children: TNode[]) => Renderable;
|
|
283
|
+
msrow: (...children: TNode[]) => Renderable;
|
|
284
|
+
mstack: (...children: TNode[]) => Renderable;
|
|
272
285
|
mstyle: (...children: TNode[]) => Renderable;
|
|
273
286
|
msub: (...children: TNode[]) => Renderable;
|
|
274
287
|
msubsup: (...children: TNode[]) => Renderable;
|
|
@@ -279,5 +292,6 @@ export declare const math: {
|
|
|
279
292
|
mtr: (...children: TNode[]) => Renderable;
|
|
280
293
|
munder: (...children: TNode[]) => Renderable;
|
|
281
294
|
munderover: (...children: TNode[]) => Renderable;
|
|
295
|
+
none: (...children: TNode[]) => Renderable;
|
|
282
296
|
semantics: (...children: TNode[]) => Renderable;
|
|
283
297
|
};
|
package/std/signal-utils.d.ts
CHANGED
|
@@ -224,4 +224,22 @@ export declare const animateSignal: <T>(signal: Signal<T>, options?: AnimateSign
|
|
|
224
224
|
* @public
|
|
225
225
|
*/
|
|
226
226
|
export declare const computedRecord: <T extends Record<string, Value<unknown>>, O>(record: T, fn: (value: RemoveSignals<T>) => O) => Computed<O>;
|
|
227
|
+
/**
|
|
228
|
+
* Merges a record of signals and literals into a single signal.
|
|
229
|
+
*
|
|
230
|
+
* @typeParam T - The type of the record containing signals and literals.
|
|
231
|
+
* @param options - The record containing signals and literals.
|
|
232
|
+
* @returns - The merged signal.
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
227
235
|
export declare const merge: <T extends Record<string, Value<unknown>>>(options: T) => Signal<{ [K in keyof T]: GetValueType<T[K]>; }>;
|
|
236
|
+
/**
|
|
237
|
+
* Delays the value of a signal by a specified amount of time.
|
|
238
|
+
*
|
|
239
|
+
* @typeParam T - The type of the signal value.
|
|
240
|
+
* @param signal - The signal to delay.
|
|
241
|
+
* @param ms - The amount of time to delay the signal in milliseconds.
|
|
242
|
+
* @returns - The delayed signal.
|
|
243
|
+
* @public
|
|
244
|
+
*/
|
|
245
|
+
export declare const delaySignal: <T>(signal: Signal<T>, ms: number | ((value: T) => number)) => Signal<T>;
|
|
@@ -6,15 +6,23 @@
|
|
|
6
6
|
export type MathMLAttributes = {
|
|
7
7
|
accent: string;
|
|
8
8
|
accentunder: string;
|
|
9
|
+
actiontype: string;
|
|
9
10
|
align: string;
|
|
11
|
+
background: string;
|
|
12
|
+
base: string;
|
|
10
13
|
bevelled: string;
|
|
14
|
+
charalign: string;
|
|
15
|
+
class: string;
|
|
11
16
|
close: string;
|
|
17
|
+
color: string;
|
|
12
18
|
columnalign: string;
|
|
13
19
|
columnlines: string;
|
|
14
20
|
columnspacing: string;
|
|
15
21
|
columnspan: string;
|
|
16
22
|
columnwidth: string;
|
|
17
23
|
crossout: string;
|
|
24
|
+
definitionurl: string;
|
|
25
|
+
denomsalign: string;
|
|
18
26
|
depth: string;
|
|
19
27
|
dir: string;
|
|
20
28
|
display: string;
|
|
@@ -25,12 +33,20 @@ export type MathMLAttributes = {
|
|
|
25
33
|
fence: string;
|
|
26
34
|
fontstyle: string;
|
|
27
35
|
fontweight: string;
|
|
36
|
+
form: string;
|
|
28
37
|
frame: string;
|
|
29
38
|
height: string;
|
|
39
|
+
href: string;
|
|
40
|
+
id: string;
|
|
41
|
+
largeop: string;
|
|
42
|
+
length: string;
|
|
43
|
+
linebreak: string;
|
|
30
44
|
linethickness: string;
|
|
45
|
+
longdivstyle: string;
|
|
31
46
|
lspace: string;
|
|
32
47
|
mathbackground: string;
|
|
33
48
|
mathcolor: string;
|
|
49
|
+
mathdepth: string;
|
|
34
50
|
mathsize: string;
|
|
35
51
|
mathvariant: string;
|
|
36
52
|
maxsize: string;
|
|
@@ -39,17 +55,26 @@ export type MathMLAttributes = {
|
|
|
39
55
|
notation: string;
|
|
40
56
|
numalign: string;
|
|
41
57
|
open: string;
|
|
58
|
+
other: string;
|
|
42
59
|
rowalign: string;
|
|
43
60
|
rowlines: string;
|
|
44
61
|
rowspacing: string;
|
|
45
62
|
rowspan: string;
|
|
46
63
|
rspace: string;
|
|
64
|
+
scriptlevel: string;
|
|
65
|
+
scriptminsize: string;
|
|
66
|
+
scriptsizemultiplier: string;
|
|
47
67
|
selection: string;
|
|
48
68
|
separator: string;
|
|
69
|
+
stackalign: string;
|
|
49
70
|
stretchy: string;
|
|
71
|
+
style: string;
|
|
50
72
|
subscriptshift: string;
|
|
51
73
|
superscriptshift: string;
|
|
52
74
|
symmetric: string;
|
|
75
|
+
type: string;
|
|
76
|
+
valign: string;
|
|
53
77
|
voffset: string;
|
|
54
78
|
width: string;
|
|
79
|
+
xref: string;
|
|
55
80
|
};
|
package/types/mathml-tags.d.ts
CHANGED
|
@@ -3,12 +3,19 @@
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export type MathMLTags = {
|
|
6
|
+
annotation_xml: MathMLElement;
|
|
7
|
+
annotation: MathMLElement;
|
|
6
8
|
maction: MathMLElement;
|
|
9
|
+
maligngroup: MathMLElement;
|
|
10
|
+
malignmark: MathMLElement;
|
|
7
11
|
math: MathMLElement;
|
|
8
12
|
merror: MathMLElement;
|
|
9
13
|
mfenced: MathMLElement;
|
|
10
14
|
mfrac: MathMLElement;
|
|
15
|
+
mglyph: MathMLElement;
|
|
11
16
|
mi: MathMLElement;
|
|
17
|
+
mlabeledtr: MathMLElement;
|
|
18
|
+
mlongdiv: MathMLElement;
|
|
12
19
|
mmultiscripts: MathMLElement;
|
|
13
20
|
mn: MathMLElement;
|
|
14
21
|
mo: MathMLElement;
|
|
@@ -18,8 +25,14 @@ export type MathMLTags = {
|
|
|
18
25
|
mroot: MathMLElement;
|
|
19
26
|
mrow: MathMLElement;
|
|
20
27
|
ms: MathMLElement;
|
|
28
|
+
mscarries: MathMLElement;
|
|
29
|
+
mscarry: MathMLElement;
|
|
30
|
+
msgroup: MathMLElement;
|
|
31
|
+
msline: MathMLElement;
|
|
21
32
|
mspace: MathMLElement;
|
|
22
33
|
msqrt: MathMLElement;
|
|
34
|
+
msrow: MathMLElement;
|
|
35
|
+
mstack: MathMLElement;
|
|
23
36
|
mstyle: MathMLElement;
|
|
24
37
|
msub: MathMLElement;
|
|
25
38
|
msubsup: MathMLElement;
|
|
@@ -30,5 +43,6 @@ export type MathMLTags = {
|
|
|
30
43
|
mtr: MathMLElement;
|
|
31
44
|
munder: MathMLElement;
|
|
32
45
|
munderover: MathMLElement;
|
|
46
|
+
none: MathMLElement;
|
|
33
47
|
semantics: MathMLElement;
|
|
34
48
|
};
|