@rnacanvas/code 1.3.0 → 1.5.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/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # Quickstart
2
+
3
+ To draw a structure expressed in dot-bracket notation...
4
+
5
+ ```typescript
6
+ // the structure to draw
7
+ var seq = 'AGAGUAGCAUUCUGCUUUAGACUGUUAACUUUAUGAACCACGCGUGUCACGUGGGGAGAGUUAACAGCGCCC';
8
+ var dotBracket = '(((((((....)))))))...(((((((((((.....(((((.......)))))..))))))))))).....';
9
+
10
+ app.drawDotBracket(seq, dotBracket);
11
+
12
+ // add some extra space around the drawn structure
13
+ // (and ensure that the drawing is big enough to house the drawn structure)
14
+ app.drawing.setPadding(500);
15
+
16
+ // fit the user's view of the drawing to the drawn structure
17
+ app.drawingView.fitToContent();
18
+ ```
package/_config.yml ADDED
@@ -0,0 +1 @@
1
+ theme: jekyll-theme-minimal