@rnacanvas/draw 2.23.1 → 2.24.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/Drawing.d.ts +10 -2
- package/dist/Drawing.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/Drawing.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export declare class Drawing {
|
|
|
19
19
|
* Nucleic acid structures are to be drawn on this.
|
|
20
20
|
*/
|
|
21
21
|
readonly domNode: SVGSVGElement;
|
|
22
|
+
private basesDrawing;
|
|
23
|
+
constructor();
|
|
22
24
|
/**
|
|
23
25
|
* Appends the SVG document that is the drawing to the container node.
|
|
24
26
|
*/
|
|
@@ -176,16 +178,22 @@ export declare class Drawing {
|
|
|
176
178
|
*/
|
|
177
179
|
get verticalClientScaling(): number;
|
|
178
180
|
/**
|
|
179
|
-
* All bases in the drawing.
|
|
181
|
+
* All the bases in the drawing.
|
|
180
182
|
*
|
|
181
183
|
* The ordering of bases in this array is the ordering of bases in the drawing itself.
|
|
182
184
|
*/
|
|
183
|
-
allBasesSorted: Nucleobase[];
|
|
185
|
+
get allBasesSorted(): Nucleobase[];
|
|
184
186
|
/**
|
|
185
187
|
* Appends the base both to the SVG document that is the drawing
|
|
186
188
|
* and to the drawing's (ordered) array of nucleobases.
|
|
187
189
|
*/
|
|
188
190
|
appendBase(b: Nucleobase): void;
|
|
191
|
+
/**
|
|
192
|
+
* Creates a new nucleobase with the specified text content and appends it to the drawing.
|
|
193
|
+
*
|
|
194
|
+
* Returns the newly added nucleobase.
|
|
195
|
+
*/
|
|
196
|
+
addBase(textContent: string): Nucleobase;
|
|
189
197
|
/**
|
|
190
198
|
* All primary bonds in the drawing.
|
|
191
199
|
*
|
package/dist/Drawing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawing.d.ts","sourceRoot":"","sources":["../src/Drawing.ts"],"names":[],"mappings":"AAI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