jssm 5.63.0 → 5.64.2
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/es6/jssm.d.ts +2 -1
- package/dist/es6/jssm.js +2 -1
- package/dist/es6/jssm_constants.d.ts +4 -0
- package/dist/es6/jssm_constants.js +93 -0
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs.js +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/jssm.d.ts +2 -1
- package/jssm_constants.d.ts +4 -0
- package/package.json +3 -2
package/dist/es6/jssm.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare type StateType = string;
|
|
|
2
2
|
import { JssmGenericState, JssmGenericConfig, JssmTransition, JssmTransitionList, // JssmTransitionRule,
|
|
3
3
|
JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmArrow, JssmArrowDirection, JssmArrowKind, JssmLayout, FslDirection, FslTheme, HookDescription, HookHandler } from './jssm_types';
|
|
4
4
|
import { seq, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key } from './jssm_util';
|
|
5
|
+
import { shapes, gviz_shapes, named_colors } from './jssm_constants';
|
|
5
6
|
import { version } from './version';
|
|
6
7
|
declare function arrow_direction(arrow: JssmArrow): JssmArrowDirection;
|
|
7
8
|
declare function arrow_left_kind(arrow: JssmArrow): JssmArrowKind;
|
|
@@ -130,4 +131,4 @@ declare class Machine<mDT> {
|
|
|
130
131
|
}
|
|
131
132
|
declare function sm<mDT>(template_strings: TemplateStringsArray, ...remainder: any[]): Machine<mDT>;
|
|
132
133
|
declare function from<mDT>(MachineAsString: string, ExtraConstructorFields?: Partial<JssmGenericConfig<mDT>> | undefined): Machine<mDT>;
|
|
133
|
-
export { version, transfer_state_properties, Machine, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key };
|
|
134
|
+
export { version, transfer_state_properties, Machine, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes, named_colors };
|
package/dist/es6/jssm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// whargarbl lots of these return arrays could/should be sets
|
|
2
2
|
import { reduce as reduce_to_639 } from 'reduce-to-639-1';
|
|
3
3
|
import { seq, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key, array_box_if_string, hook_name, named_hook_name } from './jssm_util';
|
|
4
|
+
import { shapes, gviz_shapes, named_colors } from './jssm_constants';
|
|
4
5
|
import { parse } from './jssm-dot';
|
|
5
6
|
import { version } from './version'; // replaced from package.js in build
|
|
6
7
|
import { JssmError } from './jssm_error';
|
|
@@ -1040,4 +1041,4 @@ function from(MachineAsString, ExtraConstructorFields) {
|
|
|
1040
1041
|
}
|
|
1041
1042
|
export { version, transfer_state_properties, Machine, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind,
|
|
1042
1043
|
// WHARGARBL TODO these should be exported to a utility library
|
|
1043
|
-
seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key };
|
|
1044
|
+
seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes, named_colors };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const gviz_shapes = [
|
|
2
|
+
"box3d",
|
|
3
|
+
"polygon",
|
|
4
|
+
"ellipse",
|
|
5
|
+
"oval",
|
|
6
|
+
"circle",
|
|
7
|
+
"point",
|
|
8
|
+
"egg",
|
|
9
|
+
"triangle",
|
|
10
|
+
"plaintext",
|
|
11
|
+
"plain",
|
|
12
|
+
"diamond",
|
|
13
|
+
"trapezium",
|
|
14
|
+
"parallelogram",
|
|
15
|
+
"house",
|
|
16
|
+
"pentagon",
|
|
17
|
+
"hexagon",
|
|
18
|
+
"septagon",
|
|
19
|
+
"octagon",
|
|
20
|
+
"doublecircle",
|
|
21
|
+
"doubleoctagon",
|
|
22
|
+
"tripleoctagon",
|
|
23
|
+
"invtriangle",
|
|
24
|
+
"invtrapezium",
|
|
25
|
+
"invhouse",
|
|
26
|
+
"Mdiamond",
|
|
27
|
+
"Msquare",
|
|
28
|
+
"Mcircle",
|
|
29
|
+
"rectangle",
|
|
30
|
+
"rect",
|
|
31
|
+
"square",
|
|
32
|
+
"star",
|
|
33
|
+
"none",
|
|
34
|
+
"underline",
|
|
35
|
+
"cylinder",
|
|
36
|
+
"note",
|
|
37
|
+
"tab",
|
|
38
|
+
"folder",
|
|
39
|
+
"box",
|
|
40
|
+
"component",
|
|
41
|
+
"promoter",
|
|
42
|
+
"cds",
|
|
43
|
+
"terminator",
|
|
44
|
+
"utr",
|
|
45
|
+
"primersite",
|
|
46
|
+
"restrictionsite",
|
|
47
|
+
"fivepoverhang",
|
|
48
|
+
"threepoverhang",
|
|
49
|
+
"noverhang",
|
|
50
|
+
"assembly",
|
|
51
|
+
"signature",
|
|
52
|
+
"insulator",
|
|
53
|
+
"ribosite",
|
|
54
|
+
"rnastab",
|
|
55
|
+
"proteasesite",
|
|
56
|
+
"proteinstab",
|
|
57
|
+
"rpromoter",
|
|
58
|
+
"rarrow",
|
|
59
|
+
"larrow",
|
|
60
|
+
"lpromoter",
|
|
61
|
+
"record"
|
|
62
|
+
];
|
|
63
|
+
const shapes = gviz_shapes;
|
|
64
|
+
const named_colors = [
|
|
65
|
+
"AliceBlue", "AntiqueWhite", "Aqua", "Aquamarine", "Azure", "Beige",
|
|
66
|
+
"Bisque", "Black", "BlanchedAlmond", "Blue", "BlueViolet", "Brown",
|
|
67
|
+
"BurlyWood", "CadetBlue", "Chartreuse", "Chocolate", "Coral",
|
|
68
|
+
"CornflowerBlue", "Cornsilk", "Crimson", "Cyan", "DarkBlue", "DarkCyan",
|
|
69
|
+
"DarkGoldenRod", "DarkGray", "DarkGrey", "DarkGreen", "DarkKhaki",
|
|
70
|
+
"DarkMagenta", "DarkOliveGreen", "Darkorange", "DarkOrchid", "DarkRed",
|
|
71
|
+
"DarkSalmon", "DarkSeaGreen", "DarkSlateBlue", "DarkSlateGray",
|
|
72
|
+
"DarkSlateGrey", "DarkTurquoise", "DarkViolet", "DeepPink", "DeepSkyBlue",
|
|
73
|
+
"DimGray", "DimGrey", "DodgerBlue", "FireBrick", "FloralWhite", "ForestGreen",
|
|
74
|
+
"Fuchsia", "Gainsboro", "GhostWhite", "Gold", "GoldenRod", "Gray", "Grey",
|
|
75
|
+
"Green", "GreenYellow", "HoneyDew", "HotPink", "IndianRed", "Indigo", "Ivory",
|
|
76
|
+
"Khaki", "Lavender", "LavenderBlush", "LawnGreen", "LemonChiffon",
|
|
77
|
+
"LightBlue", "LightCoral", "LightCyan", "LightGoldenRodYellow", "LightGray",
|
|
78
|
+
"LightGrey", "LightGreen", "LightPink", "LightSalmon", "LightSeaGreen",
|
|
79
|
+
"LightSkyBlue", "LightSlateGray", "LightSlateGrey", "LightSteelBlue",
|
|
80
|
+
"LightYellow", "Lime", "LimeGreen", "Linen", "Magenta", "Maroon",
|
|
81
|
+
"MediumAquaMarine", "MediumBlue", "MediumOrchid", "MediumPurple",
|
|
82
|
+
"MediumSeaGreen", "MediumSlateBlue", "MediumSpringGreen", "MediumTurquoise",
|
|
83
|
+
"MediumVioletRed", "MidnightBlue", "MintCream", "MistyRose", "Moccasin",
|
|
84
|
+
"NavajoWhite", "Navy", "OldLace", "Olive", "OliveDrab", "Orange", "OrangeRed",
|
|
85
|
+
"Orchid", "PaleGoldenRod", "PaleGreen", "PaleTurquoise", "PaleVioletRed",
|
|
86
|
+
"PapayaWhip", "PeachPuff", "Peru", "Pink", "Plum", "PowderBlue", "Purple",
|
|
87
|
+
"Red", "RosyBrown", "RoyalBlue", "SaddleBrown", "Salmon", "SandyBrown",
|
|
88
|
+
"SeaGreen", "SeaShell", "Sienna", "Silver", "SkyBlue", "SlateBlue",
|
|
89
|
+
"SlateGray", "SlateGrey", "Snow", "SpringGreen", "SteelBlue", "Tan", "Teal",
|
|
90
|
+
"Thistle", "Tomato", "Turquoise", "Violet", "Wheat", "White", "WhiteSmoke",
|
|
91
|
+
"Yellow", "YellowGreen"
|
|
92
|
+
];
|
|
93
|
+
export { gviz_shapes, shapes, named_colors };
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.
|
|
1
|
+
const version = "5.64.2";
|
|
2
2
|
export { version };
|