@markerjs/markerjs3 3.5.7 → 3.6.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/markerjs3.d.ts CHANGED
@@ -1830,6 +1830,27 @@ declare class MarkerBaseEditor<TMarkerType extends MarkerBase = MarkerBase> {
1830
1830
  * Gets marker's notes.
1831
1831
  */
1832
1832
  get notes(): string | undefined;
1833
+ private _zoomLevel;
1834
+ /**
1835
+ * Returns the current zoom level.
1836
+ *
1837
+ * @remarks
1838
+ * This set by the MarkerArea based on its current zoom level.
1839
+ * It is used to scale the marker editor controls.
1840
+ *
1841
+ * @since 3.6.0
1842
+ */
1843
+ get zoomLevel(): number;
1844
+ /**
1845
+ * Sets the current zoom level.
1846
+ *
1847
+ * @remarks
1848
+ * This set by the MarkerArea based on its current zoom level.
1849
+ * It is used to scale the marker editor controls.
1850
+ *
1851
+ * @since 3.6.0
1852
+ */
1853
+ set zoomLevel(value: number);
1833
1854
  /**
1834
1855
  * Creates a new instance of marker editor.
1835
1856
  *
@@ -2237,6 +2258,7 @@ declare class MarkerArea extends HTMLElement {
2237
2258
  */
2238
2259
  restoreState(state: AnnotationState, addUndoStep?: boolean): void;
2239
2260
  private scaleMarkers;
2261
+ private adjustEditorsZoom;
2240
2262
  /**
2241
2263
  * NOTE:
2242
2264
  *
@@ -2298,10 +2320,31 @@ declare class Grip {
2298
2320
  * Grip's visual element.
2299
2321
  */
2300
2322
  get visual(): SVGGraphicsElement;
2323
+ private _selectorElement?;
2324
+ private _visibleElement?;
2301
2325
  /**
2302
2326
  * Grip's size (radius).
2303
2327
  */
2304
2328
  gripSize: number;
2329
+ private _zoomLevel;
2330
+ /**
2331
+ * Returns the current zoom level.
2332
+ *
2333
+ * @remarks
2334
+ * This set by the MarkerArea based on its current zoom level.
2335
+ *
2336
+ * @since 3.6.0
2337
+ */
2338
+ get zoomLevel(): number;
2339
+ /**
2340
+ * Sets the current zoom level.
2341
+ *
2342
+ * @remarks
2343
+ * This set by the MarkerArea based on its current zoom level.
2344
+ *
2345
+ * @since 3.6.0
2346
+ */
2347
+ set zoomLevel(value: number);
2305
2348
  /**
2306
2349
  * Grip's fill color.
2307
2350
  */
@@ -2318,6 +2361,7 @@ declare class Grip {
2318
2361
  * Creates grip's visual.
2319
2362
  */
2320
2363
  protected createVisual(): void;
2364
+ protected adjustVisual(): void;
2321
2365
  /**
2322
2366
  * Returns true if passed SVG element belongs to the grip. False otherwise.
2323
2367
  *