@rnacanvas/app-object 2.0.0 → 3.0.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.
@@ -1,4 +1,5 @@
1
1
  import { Drawing } from '@rnacanvas/draw';
2
+ import { Scrollbars } from '@rnacanvas/scrollbars';
2
3
  /**
3
4
  * An RNAcanvas app object that can be included as a component of a web page / app.
4
5
  */
@@ -21,6 +22,10 @@ export declare class RNAcanvas {
21
22
  * The 2D nucleic acid structure drawing of the app object.
22
23
  */
23
24
  readonly drawing: Drawing;
25
+ /**
26
+ * The scrollbars controlling the user's view of the drawing.
27
+ */
28
+ readonly drawingScrollbars: Scrollbars;
24
29
  constructor();
25
30
  /**
26
31
  * Appends the DOM node of the app object to the given container node.
@@ -32,24 +37,5 @@ export declare class RNAcanvas {
32
37
  * (Has no effect if the DOM node of the app object had no parent container node to begin with.)
33
38
  */
34
39
  remove(): void;
35
- /**
36
- * Draws the structure given in dot-bracket notation.
37
- *
38
- * Will create a nucleobase for each character in the sequence string of the structure.
39
- *
40
- * Will create a secondary bond for each base-pair in the structure.
41
- *
42
- * Will throw if the dot-bracket notation is invalid
43
- * (i.e., contains unmatched upstream and/or downstream partner(s)).
44
- *
45
- * Currently, only simple dot-bracket notation is supported
46
- * (i.e., containing only the characters ".", "(" and ")").
47
- *
48
- * Dot-bracket notation is allowed to be shorter than the sequence length.
49
- *
50
- * @param seq The sequence of the structure.
51
- * @param dotBracket Dot-bracket notation of the base-pairs in the structure.
52
- */
53
- drawDotBracket(seq: string, dotBracket: string): void | never;
54
40
  }
55
41
  //# sourceMappingURL=RNAcanvas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNAcanvas.d.ts","sourceRoot":"","sources":["../src/RNAcanvas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAY1C;;GAEG;AACH,qBAAa,SAAS;IACpB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAE9B;;;;;;OAMG;IACH,OAAO,CAAC,WAAW,CAAiB;IAEpC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;;IAqB1B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI;IAI/B;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAId;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK;CAoB9D"}
1
+ {"version":3,"file":"RNAcanvas.d.ts","sourceRoot":"","sources":["../src/RNAcanvas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;GAEG;AACH,qBAAa,SAAS;IACpB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAE9B;;;;;;OAMG;IACH,OAAO,CAAC,WAAW,CAAiB;IAEpC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC;;IAuBvC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI;IAI/B;;;;OAIG;IACH,MAAM,IAAI,IAAI;CAGf"}