jssm 5.104.2 → 5.112.3
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/.gitattributes +17 -6
- package/.log-progress.json +9 -0
- package/CHANGELOG.md +130 -45
- package/CLAUDE.md +11 -0
- package/MIGRATING-jssm-viz.md +67 -0
- package/README.md +179 -882
- package/dist/es6/fsl_parser.js +1 -1
- package/dist/es6/jssm.d.ts +773 -39
- package/dist/es6/jssm.js +921 -89
- package/dist/es6/jssm_arrow.js +24 -0
- package/dist/es6/jssm_compiler.d.ts +17 -2
- package/dist/es6/jssm_compiler.js +17 -3
- package/dist/es6/jssm_constants.d.ts +27 -0
- package/dist/es6/jssm_constants.js +27 -0
- package/dist/es6/jssm_error.d.ts +19 -0
- package/dist/es6/jssm_error.js +19 -0
- package/dist/es6/jssm_theme.d.ts +11 -0
- package/dist/es6/jssm_theme.js +11 -0
- package/dist/es6/jssm_types.d.ts +29 -3
- package/dist/es6/jssm_util.d.ts +161 -9
- package/dist/es6/jssm_util.js +174 -17
- package/dist/es6/jssm_viz.d.ts +175 -0
- package/dist/es6/jssm_viz.js +560 -0
- package/dist/es6/jssm_viz_colors.d.ts +63 -0
- package/dist/es6/jssm_viz_colors.js +63 -0
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -0
- package/dist/jssm.es5.nonmin.cjs +2201 -870
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm.es6.nonmin.cjs +2200 -871
- package/dist/jssm_viz.cjs +1 -0
- package/dist/{jssm.es5.iife.nonmin.cjs → jssm_viz.es5.iife.nonmin.cjs} +2589 -1090
- package/dist/jssm_viz.es5.nonmin.cjs +24674 -0
- package/dist/jssm_viz.es6.nonmin.cjs +24661 -0
- package/dist/jssm_viz.iife.cjs +1 -0
- package/dist/jssm_viz.mjs +1 -0
- package/jest-dragon.config.cjs +4 -1
- package/jest-spec.config.cjs +9 -6
- package/jest-stoch.config.cjs +4 -1
- package/jest-unicode.config.cjs +4 -1
- package/jssm.es5.d.cts +950 -41
- package/jssm.es6.d.ts +950 -41
- package/jssm_viz.es5.d.cts +2127 -0
- package/jssm_viz.es6.d.ts +2127 -0
- package/log-progress.data.json +28 -0
- package/package.json +56 -23
- package/rollup.config.viz.es5.js +46 -0
- package/rollup.config.viz.es6.js +46 -0
- package/rollup.config.viz.iife.js +36 -0
- package/typedoc-options.cjs +4 -3
- package/dist/jssm.es5.iife.cjs +0 -1
- package/fsl_parser.d.ts +0 -6
- package/jssm.d.ts +0 -1141
- package/jssm_arrow.d.ts +0 -53
- package/jssm_compiler.d.ts +0 -135
- package/jssm_constants.d.ts +0 -5
- package/jssm_error.d.ts +0 -8
- package/jssm_theme.d.ts +0 -4
- package/jssm_types.d.ts +0 -378
- package/jssm_util.d.ts +0 -106
- package/version.d.ts +0 -2
package/jssm_util.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/*******
|
|
2
|
-
*
|
|
3
|
-
* Predicate for validating an array for uniqueness. Not generally meant for
|
|
4
|
-
* external use.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
declare function arr_uniq_p<T>(el: T, i: number, source: T[]): boolean;
|
|
8
|
-
declare const array_box_if_string: (n: any) => any;
|
|
9
|
-
declare const weighted_rand_select: Function;
|
|
10
|
-
/*******
|
|
11
|
-
*
|
|
12
|
-
* Returns, for a non-negative integer argument `n`, the series `[0 .. n]`.
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import { seq } from './jssm';
|
|
16
|
-
*
|
|
17
|
-
* seq(5); // [0, 1, 2, 3, 4]
|
|
18
|
-
* seq(0); // []
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
declare function seq(n: number): number[];
|
|
23
|
-
/*******
|
|
24
|
-
*
|
|
25
|
-
* Returns the histograph of an array as a `Map`. Makes no attempt to cope
|
|
26
|
-
* with deep equality; will fail for complex contents, as such.
|
|
27
|
-
*
|
|
28
|
-
* ```typescript
|
|
29
|
-
* import { histograph } from './jssm';
|
|
30
|
-
*
|
|
31
|
-
* histograph( [0, 0, 1, 1, 2, 2, 1] ); // Map()
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
declare const histograph: Function;
|
|
36
|
-
declare const weighted_sample_select: Function;
|
|
37
|
-
declare const weighted_histo_key: Function;
|
|
38
|
-
/*******
|
|
39
|
-
*
|
|
40
|
-
* Internal method generating names for edges for the hook lookup map. Not
|
|
41
|
-
* meant for external use.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
declare function name_bind_prop_and_state(prop: string, state: string): string;
|
|
45
|
-
/*******
|
|
46
|
-
*
|
|
47
|
-
* Internal method generating names for edges for the hook lookup map. Not
|
|
48
|
-
* meant for external use.
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
declare const hook_name: (from: string, to: string) => string;
|
|
52
|
-
/*******
|
|
53
|
-
*
|
|
54
|
-
* Internal method generating names for actions for the hook lookup map. Not
|
|
55
|
-
* meant for external use.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
declare const named_hook_name: (from: string, to: string, action: string) => string;
|
|
59
|
-
/*******
|
|
60
|
-
*
|
|
61
|
-
* Creates a SplitMix32 random generator. Used by the randomness test suite.
|
|
62
|
-
*
|
|
63
|
-
* Sourced from `bryc`: https://github.com/bryc/code/blob/master/jshash/PRNGs.md#splitmix32
|
|
64
|
-
*
|
|
65
|
-
* Replaces the Mulberry generator, which was found to have problems
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
declare function gen_splitmix32(a?: number | undefined): () => number;
|
|
69
|
-
/*******
|
|
70
|
-
*
|
|
71
|
-
* Reduces an array to its unique contents. Compares with `===` and makes no
|
|
72
|
-
* effort to deep-compare contents; two matching arrays or objects contained
|
|
73
|
-
* will be treated as distinct, according to javascript rules. This also means
|
|
74
|
-
* that `NaNs` will be ***dropped***, because they do not self-compare.
|
|
75
|
-
*
|
|
76
|
-
* ```typescript
|
|
77
|
-
* unique( [] ); // []
|
|
78
|
-
* unique( [0,0] ); // [0]
|
|
79
|
-
* unique( [0,1,2, 0,1,2, 0,1,2] ); // [0,1,2]
|
|
80
|
-
* unique( [ [1], [1] ] ); // [ [1], [1] ] because arrays don't match
|
|
81
|
-
* unique( [0,NaN,2] ); // [0,2]
|
|
82
|
-
* ```
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
declare const unique: <T>(arr?: T[]) => T[];
|
|
86
|
-
/*******
|
|
87
|
-
*
|
|
88
|
-
* Lists all repeated items in an array along with their counts. Subject to
|
|
89
|
-
* matching rules of Map. `NaN` is manually removed because of conflict rules
|
|
90
|
-
* around {@link unique}. Because these are compared with `===` and because
|
|
91
|
-
* arrays and objects never match that way unless they're the same object,
|
|
92
|
-
* arrays and objects are never considered repeats.
|
|
93
|
-
*
|
|
94
|
-
* ```typescript
|
|
95
|
-
* find_repeated<string>([ ]); // []
|
|
96
|
-
* find_repeated<string>([ "one" ]); // []
|
|
97
|
-
* find_repeated<string>([ "one", "two" ]); // []
|
|
98
|
-
* find_repeated<string>([ "one", "one" ]); // [ ["one", 2] ]
|
|
99
|
-
* find_repeated<string>([ "one", "two", "one" ]); // [ ["one", 2] ]
|
|
100
|
-
* find_repeated<number>([ 0, NaN, 0, NaN ]); // [ [0, 2] ]
|
|
101
|
-
* ```
|
|
102
|
-
*
|
|
103
|
-
*/
|
|
104
|
-
declare function find_repeated<T>(arr: T[]): [T, number][];
|
|
105
|
-
declare function sleep(ms: number): Promise<unknown>;
|
|
106
|
-
export { seq, unique, find_repeated, arr_uniq_p, histograph, weighted_histo_key, weighted_rand_select, weighted_sample_select, array_box_if_string, name_bind_prop_and_state, hook_name, named_hook_name, gen_splitmix32, sleep };
|
package/version.d.ts
DELETED