jssm 5.64.0 → 5.65.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.
@@ -2,7 +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 } from './jssm_constants';
5
+ import { shapes, gviz_shapes, named_colors } from './jssm_constants';
6
6
  import { version } from './version';
7
7
  declare function arrow_direction(arrow: JssmArrow): JssmArrowDirection;
8
8
  declare function arrow_left_kind(arrow: JssmArrow): JssmArrowKind;
@@ -131,4 +131,4 @@ declare class Machine<mDT> {
131
131
  }
132
132
  declare function sm<mDT>(template_strings: TemplateStringsArray, ...remainder: any[]): Machine<mDT>;
133
133
  declare function from<mDT>(MachineAsString: string, ExtraConstructorFields?: Partial<JssmGenericConfig<mDT>> | undefined): Machine<mDT>;
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 };
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,7 +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 } from './jssm_constants';
4
+ import { shapes, gviz_shapes, named_colors } from './jssm_constants';
5
5
  import { parse } from './jssm-dot';
6
6
  import { version } from './version'; // replaced from package.js in build
7
7
  import { JssmError } from './jssm_error';
@@ -1041,4 +1041,4 @@ function from(MachineAsString, ExtraConstructorFields) {
1041
1041
  }
1042
1042
  export { version, transfer_state_properties, Machine, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind,
1043
1043
  // WHARGARBL TODO these should be exported to a utility library
1044
- seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes };
1044
+ seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes, named_colors };
@@ -1,3 +1,4 @@
1
1
  declare const gviz_shapes: string[];
2
2
  declare const shapes: string[];
3
- export { gviz_shapes, shapes };
3
+ declare const named_colors: string[];
4
+ export { gviz_shapes, shapes, named_colors };
@@ -61,4 +61,33 @@ const gviz_shapes = [
61
61
  "record"
62
62
  ];
63
63
  const shapes = gviz_shapes;
64
- export { gviz_shapes, 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 };
@@ -1,2 +1,2 @@
1
- const version = "5.64.0";
1
+ const version = "5.65.0";
2
2
  export { version };