@rnacanvas/draw.bases.bonds 14.0.1 → 14.0.3

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,37 @@
1
+ import { MoveToSegment } from './MoveToSegment';
2
+ import { TrailingSegment } from './TrailingSegment';
3
+ import type { FinitePoint } from '@rnacanvas/points.oopified';
4
+ /**
5
+ * Represents an SVG path definition for a curved bond.
6
+ */
7
+ export declare class CurvedPathD {
8
+ #private;
9
+ constructor(d: string);
10
+ get segments(): [MoveToSegment, TrailingSegment, ...TrailingSegment[]];
11
+ /**
12
+ * All points defining the SVG path definition.
13
+ */
14
+ get definingPoints(): FinitePoint[];
15
+ get startPoint(): FinitePoint;
16
+ /**
17
+ * All points defining the SVG path definition except for the start point and end point.
18
+ */
19
+ get interveningPoints(): FinitePoint[];
20
+ /**
21
+ * All control points in the SVG path definition.
22
+ */
23
+ get controlPoints(): FinitePoint[];
24
+ get endPoint(): FinitePoint;
25
+ toString(): string;
26
+ /**
27
+ * The `dragPoint` is the point at which dragging was initiated from
28
+ * (e.g., the point on the curve that was clicked on at the start of dragging).
29
+ */
30
+ drag(x: number, y: number, options: {
31
+ dragPoint: {
32
+ x: number;
33
+ y: number;
34
+ };
35
+ }): void;
36
+ }
37
+ //# sourceMappingURL=CurvedPathD.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurvedPathD.d.ts","sourceRoot":"","sources":["../src/CurvedPathD.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAM9D;;GAEG;AACH,qBAAa,WAAW;;gBAKV,CAAC,EAAE,MAAM;IAsBrB,IAAI,QAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,EAAE,GAAG,eAAe,EAAE,CAAC,CAMrE;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,WAAW,EAAE,CAKlC;IAED,IAAI,UAAU,IAAI,WAAW,CAE5B;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,WAAW,EAAE,CAKrC;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,WAAW,EAAE,CAEjC;IAED,IAAI,QAAQ,IAAI,WAAW,CAM1B;IAED,QAAQ,IAAI,MAAM;IAIlB;;;OAGG;IACH,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,SAAS,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI;CAenF"}
@@ -0,0 +1,13 @@
1
+ import type { SVGCommand } from 'svg-pathdata';
2
+ import { FinitePoint } from '@rnacanvas/points.oopified';
3
+ /**
4
+ * A segment that comes after at least one previous segment in an SVG path definition (for a curved bond).
5
+ */
6
+ export declare class TrailingSegment {
7
+ controlPoints: FinitePoint[];
8
+ readonly endPoint: FinitePoint;
9
+ static from(command: SVGCommand): TrailingSegment | never;
10
+ constructor(controlPoints: FinitePoint[], endPoint: FinitePoint);
11
+ toString(): string;
12
+ }
13
+ //# sourceMappingURL=TrailingSegment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrailingSegment.d.ts","sourceRoot":"","sources":["../src/TrailingSegment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD;;GAEG;AACH,qBAAa,eAAe;IAyBP,aAAa,EAAE,WAAW,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,WAAW;IAxB/E,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,GAAG,eAAe,GAAG,KAAK;gBAwBtC,aAAa,EAAE,WAAW,EAAE,EAAW,QAAQ,EAAE,WAAW;IAE/E,QAAQ,IAAI,MAAM;CAoBnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnacanvas/draw.bases.bonds",
3
- "version": "14.0.1",
3
+ "version": "14.0.3",
4
4
  "description": "Draw bonds between bases",
5
5
  "repository": {
6
6
  "type": "git",