@rnacanvas/draw 2.14.1 → 2.16.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 CHANGED
@@ -26,12 +26,30 @@ export declare class Drawing {
26
26
  * Is the same as the minimum X coordinate of the view box of the SVG document that is the drawing.
27
27
  */
28
28
  get minX(): number;
29
+ /**
30
+ * Sets the minimum X coordinate of the view box of the SVG document that is the drawing.
31
+ *
32
+ * Maintains maximum X coordinate by adjusting the width of the view box.
33
+ *
34
+ * Also maintains the horizontal scaling of the drawing
35
+ * by adjusting the width attribute of the SVG document that is the drawing.
36
+ */
37
+ set minX(minX: number);
29
38
  /**
30
39
  * The maximum X coordinate in the coordinate system of the drawing.
31
40
  *
32
41
  * Is the same as the maximum X coordinate of the view box of the SVG document that is the drawing.
33
42
  */
34
43
  get maxX(): number;
44
+ /**
45
+ * Adjusts the width of the view box of the SVG document that is the drawing
46
+ * to change its maximum X coordinate.
47
+ *
48
+ * Maintains the view box minimum X coordinate.
49
+ *
50
+ * Also maintains the horizontal scaling of the drawing.
51
+ */
52
+ set maxX(maxX: number);
35
53
  /**
36
54
  * The minimum Y coordinate in the coordinate system of the drawing.
37
55
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Drawing.d.ts","sourceRoot":"","sources":["../src/Drawing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,qBAAa,OAAO;IAClB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,gBAAwB;IAExC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI;IAI/B;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAId;;;;OAIG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;OAIG;IACH,IAAI,IAAI,IA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