@rnacanvas/draw 2.21.4 → 2.22.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.
|
@@ -16,9 +16,9 @@ export interface DrawingElement {
|
|
|
16
16
|
*
|
|
17
17
|
* This class uses mutation observers to do so.
|
|
18
18
|
*/
|
|
19
|
-
export declare class ElementsDrawing {
|
|
19
|
+
export declare class ElementsDrawing<T extends DrawingElement> {
|
|
20
20
|
private svgDoc;
|
|
21
|
-
elements:
|
|
21
|
+
elements: T[];
|
|
22
22
|
/**
|
|
23
23
|
* This class will automatically remove elements from the elements array
|
|
24
24
|
* when they are removed from the SVG document that is the drawing.
|
|
@@ -26,6 +26,6 @@ export declare class ElementsDrawing {
|
|
|
26
26
|
* @param svgDoc The SVG document that is the drawing.
|
|
27
27
|
* @param elements The elements in the drawing.
|
|
28
28
|
*/
|
|
29
|
-
constructor(svgDoc: SVGSVGElement, elements:
|
|
29
|
+
constructor(svgDoc: SVGSVGElement, elements: T[]);
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=ElementsDrawing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementsDrawing.d.ts","sourceRoot":"","sources":["../src/ElementsDrawing.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC;CACtC;AAED;;;;;;;GAOG;AACH,qBAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"ElementsDrawing.d.ts","sourceRoot":"","sources":["../src/ElementsDrawing.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC;CACtC;AAED;;;;;;;GAOG;AACH,qBAAa,eAAe,CAAC,CAAC,SAAS,cAAc;IAQvC,OAAO,CAAC,MAAM;IAAwB,QAAQ,EAAE,CAAC,EAAE;IAP/D;;;;;;OAMG;gBACiB,MAAM,EAAE,aAAa,EAAS,QAAQ,EAAE,CAAC,EAAE;CAShE"}
|