@rnacanvas/draw 2.22.0 → 2.23.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.
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Nucleobase } from '@rnacanvas/draw.bases';
|
|
2
|
+
/**
|
|
3
|
+
* A drawing of nucleobases.
|
|
4
|
+
*/
|
|
5
|
+
export declare class BasesDrawing {
|
|
6
|
+
private svgDoc;
|
|
7
|
+
/**
|
|
8
|
+
* This class wraps an elements drawing.
|
|
9
|
+
*/
|
|
10
|
+
private elementsDrawing;
|
|
11
|
+
/**
|
|
12
|
+
* @param svgDoc The SVG document that is the drawing.
|
|
13
|
+
* @param bases The nucleobases in the drawing.
|
|
14
|
+
*/
|
|
15
|
+
constructor(svgDoc: SVGSVGElement, bases: Nucleobase[]);
|
|
16
|
+
/**
|
|
17
|
+
* The nucleobases in the drawing.
|
|
18
|
+
*
|
|
19
|
+
* The ordering of nucleobases in this array is the ordering of nucleobases in the drawing.
|
|
20
|
+
*/
|
|
21
|
+
get bases(): Nucleobase[];
|
|
22
|
+
/**
|
|
23
|
+
* Appends the given nucleobase to the drawing
|
|
24
|
+
* (i.e., appends it to the SVG document that is the drawing
|
|
25
|
+
* and appends the nucleobase to the array of nucleobases).
|
|
26
|
+
*/
|
|
27
|
+
append(b: Nucleobase): void;
|
|
28
|
+
/**
|
|
29
|
+
* Creates and appends a nucleobase to the drawing with the specified text content.
|
|
30
|
+
*
|
|
31
|
+
* Returns the added nucleobase.
|
|
32
|
+
*/
|
|
33
|
+
add(textContent: string): Nucleobase;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=BasesDrawing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasesDrawing.d.ts","sourceRoot":"","sources":["../src/BasesDrawing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAInD;;GAEG;AACH,qBAAa,YAAY;IAUX,OAAO,CAAC,MAAM;IAT1B;;OAEG;IACH,OAAO,CAAC,eAAe,CAA8B;IAErD;;;OAGG;gBACiB,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE;IAI9D;;;;OAIG;IACH,IAAI,KAAK,iBAER;IAED;;;;OAIG;IACH,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAK3B;;;;OAIG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU;CAOrC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DrawingElement } from './ElementsDrawing';
|
|
2
|
+
/**
|
|
3
|
+
* A bond between two bases.
|
|
4
|
+
*/
|
|
5
|
+
export interface Bond extends DrawingElement {
|
|
6
|
+
base1: DrawingElement;
|
|
7
|
+
base2: DrawingElement;
|
|
8
|
+
remove(): void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A drawing of bonds.
|
|
12
|
+
*/
|
|
13
|
+
export declare class BondsDrawing<T extends Bond> {
|
|
14
|
+
private svgDoc;
|
|
15
|
+
bonds: T[];
|
|
16
|
+
/**
|
|
17
|
+
* This class wraps an elements drawing.
|
|
18
|
+
*/
|
|
19
|
+
private elementsDrawing;
|
|
20
|
+
constructor(svgDoc: SVGSVGElement, bonds: T[]);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=BondsDrawing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BondsDrawing.d.ts","sourceRoot":"","sources":["../src/BondsDrawing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,IAAK,SAAQ,cAAc;IAC1C,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,cAAc,CAAC;IAEtB,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,YAAY,CAAC,CAAC,SAAS,IAAI;IAM1B,OAAO,CAAC,MAAM;IAAwB,KAAK,EAAE,CAAC,EAAE;IAL5D;;OAEG;IACH,OAAO,CAAC,eAAe,CAAqB;gBAExB,MAAM,EAAE,aAAa,EAAS,KAAK,EAAE,CAAC,EAAE;CAa7D"}
|