@rnacanvas/draw 5.3.0 → 5.4.1
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/DotBracketDrawer.d.ts +27 -0
- package/dist/DotBracketDrawer.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Drawing } from './Drawing';
|
|
2
|
+
/**
|
|
3
|
+
* Draws structures expressed in dot-bracket notation on a target drawing.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DotBracketDrawer {
|
|
6
|
+
private targetDrawing;
|
|
7
|
+
constructor(targetDrawing: Drawing);
|
|
8
|
+
/**
|
|
9
|
+
* Draws the specified structure on the target drawing.
|
|
10
|
+
*
|
|
11
|
+
* A nucleobase will be added to the target drawing for each character in the sequence of the structure.
|
|
12
|
+
*
|
|
13
|
+
* A secondary bond will be added to the target drawing for each base-pair expressed in the dot-bracket notation
|
|
14
|
+
* for the structure.
|
|
15
|
+
*
|
|
16
|
+
* Currently, this method is only able to handle simple dot-bracket notation
|
|
17
|
+
* (i.e., that only contains the characters ".", "(", and ")").
|
|
18
|
+
*
|
|
19
|
+
* This method will also radialize the layout of the drawn bases
|
|
20
|
+
* and add a primary bond between each consecutive pair of bases.
|
|
21
|
+
*
|
|
22
|
+
* @param seq The sequence of the structure to draw.
|
|
23
|
+
* @param dotBracket Dot-bracket notation of the base-pairs in the structure to draw.
|
|
24
|
+
*/
|
|
25
|
+
draw(seq: string, dotBracket: string): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=DotBracketDrawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotBracketDrawer.d.ts","sourceRoot":"","sources":["../src/DotBracketDrawer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUzC;;GAEG;AACH,qBAAa,gBAAgB;IACf,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,OAAO;IAE1C;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;CAiB5C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ import { Nucleobase } from '@rnacanvas/draw.bases';
|
|
|
4
4
|
export { Nucleobase };
|
|
5
5
|
import { StraightBond } from '@rnacanvas/draw.bonds';
|
|
6
6
|
export { StraightBond };
|
|
7
|
+
import { DotBracketDrawer } from './DotBracketDrawer';
|
|
8
|
+
export { DotBracketDrawer };
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|