@rnacanvas/app-object 3.3.0 → 3.4.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.
- package/dist/RNAcanvas.d.ts +20 -0
- package/dist/RNAcanvas.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/RNAcanvas.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare class RNAcanvas {
|
|
|
40
40
|
* The user's view of the drawing.
|
|
41
41
|
*/
|
|
42
42
|
readonly drawingView: DrawingView;
|
|
43
|
+
private dotBracketDrawer;
|
|
43
44
|
constructor();
|
|
44
45
|
/**
|
|
45
46
|
* Appends the DOM node of the app object to the given container node.
|
|
@@ -51,6 +52,25 @@ export declare class RNAcanvas {
|
|
|
51
52
|
* (Has no effect if the DOM node of the app object had no parent container node to begin with.)
|
|
52
53
|
*/
|
|
53
54
|
remove(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Draws the specified structure (expressed in dot-bracket notation) on the drawing of the app.
|
|
57
|
+
*
|
|
58
|
+
* A nucleobase will be added to the drawing for each character in the sequence of the structure.
|
|
59
|
+
*
|
|
60
|
+
* A secondary bond will be added to the drawing for each base-pair expressed in the dot-bracket notation
|
|
61
|
+
* for the structure.
|
|
62
|
+
*
|
|
63
|
+
* Currently, this method is only able to handle simple dot-bracket notation
|
|
64
|
+
* (i.e., that only contains the characters ".", "(" and ")").
|
|
65
|
+
*
|
|
66
|
+
* A primary bond will also be added between each consecutive pair of bases in the sequence of bases.
|
|
67
|
+
*
|
|
68
|
+
* This method will also radialize the layout of the drawn bases.
|
|
69
|
+
*
|
|
70
|
+
* @param seq The sequence of the structure to draw.
|
|
71
|
+
* @param dotBracket Dot-bracket notation expressing the base-pairs in the structure to draw.
|
|
72
|
+
*/
|
|
73
|
+
drawDotBracket(seq: string, dotBracket: string): void;
|
|
54
74
|
/**
|
|
55
75
|
* The CSS style declaration for the actual DOM node of the app object.
|
|
56
76
|
*/
|
package/dist/RNAcanvas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
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,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C;;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,0BAA0B,EAAE,mBAAmB,CAAC;IAEzD;;OAEG;IACH,QAAQ,CAAC,wBAAwB,EAAE,iBAAiB,CAAC;IAErD;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAElC,OAAO,CAAC,gBAAgB,CAAmB;;IA8B3C;;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;IAIrD;;OAEG;IACH,IAAI,KAAK,wBAER;CACF"}
|