@rnacanvas/app-object 3.4.1 → 3.5.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.
@@ -2,6 +2,7 @@ import { Drawing } from '@rnacanvas/draw';
2
2
  import { HorizontalScrollbar, VerticalScrollbar } from '@rnacanvas/scrollbars';
3
3
  import { Scrollbars } from '@rnacanvas/scrollbars';
4
4
  import { DrawingView } from './DrawingView';
5
+ import { EventfulSet } from '@rnacanvas/utilities';
5
6
  /**
6
7
  * An RNAcanvas app object that can be included as a component of a web page / app.
7
8
  */
@@ -41,6 +42,21 @@ export declare class RNAcanvas {
41
42
  */
42
43
  readonly drawingView: DrawingView;
43
44
  private dotBracketDrawer;
45
+ /**
46
+ * The set of SVG elements in the drawing of the app that are currently selected.
47
+ */
48
+ readonly selectedSVGElements: EventfulSet<SVGGraphicsElement>;
49
+ /**
50
+ * A drawing overlaid and sized to match the main drawing of the app.
51
+ *
52
+ * Can be used for highlightings of SVG elements (such as the currently selected SVG elements).
53
+ */
54
+ private readonly overlaidDrawing;
55
+ /**
56
+ * Highlightings of the currently selected SVG elements in the drawing of the app.
57
+ */
58
+ private readonly selectedSVGElementHighlightings;
59
+ private readonly clickSelectTool;
44
60
  constructor();
45
61
  /**
46
62
  * Appends the DOM node of the app object to the given container node.
@@ -1 +1 @@
1
- {"version":3,"file":"RNAcanvas.d.ts","sourceRoot":"","sources":["../src/RNAcanvas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C;;GAEG;AACH,qBAAa,SAAS;IACpB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAE9B;;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