jssm 5.63.0 → 5.64.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,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 } 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 };
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 } 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 };
@@ -0,0 +1,3 @@
1
+ declare const gviz_shapes: string[];
2
+ declare const shapes: string[];
3
+ export { gviz_shapes, shapes };
@@ -0,0 +1,64 @@
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
+ export { gviz_shapes, shapes };
@@ -1,2 +1,2 @@
1
- const version = "5.63.0";
1
+ const version = "5.64.0";
2
2
  export { version };