@markerjs/markerjs3 3.6.4 → 3.7.1

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
@@ -1932,6 +1932,26 @@ declare class MarkerBaseEditor<TMarkerType extends MarkerBase = MarkerBase> {
1932
1932
  * Does a check if the state has indeed changed before firing the handler.
1933
1933
  */
1934
1934
  protected stateChanged(): void;
1935
+ /**
1936
+ * Hides all marker's visuals and editor controls.
1937
+ *
1938
+ * @remarks
1939
+ * This could be useful when you want to temporarily hide the marker so you can,
1940
+ * for example, create a new one in the same place. Reveal it later with {@link show}.
1941
+ *
1942
+ * @since 3.7.0
1943
+ */
1944
+ hide(): void;
1945
+ /**
1946
+ * Shows all marker's visuals and editor controls.
1947
+ *
1948
+ * @remarks
1949
+ * This could be useful when you want to temporarily hide the marker (with {@link hide}) so you can,
1950
+ * for example, create a new one in the same place.
1951
+ *
1952
+ * @since 3.7.0
1953
+ */
1954
+ show(): void;
1935
1955
  /**
1936
1956
  * Returns marker's state that can be restored in the future.
1937
1957
  *
@@ -2279,7 +2299,7 @@ declare class MarkerArea extends HTMLElement {
2279
2299
  * Deletes a marker represented by the specified editor.
2280
2300
  * @param markerEditor
2281
2301
  */
2282
- deleteMarker(markerEditor: MarkerBaseEditor): void;
2302
+ deleteMarker(markerEditor: MarkerBaseEditor, suppressUndo?: boolean): void;
2283
2303
  /**
2284
2304
  * Deselects all markers.
2285
2305
  */
@@ -2512,7 +2532,7 @@ declare class RectangularBoxMarkerBaseEditor<TMarkerType extends RectangularBoxM
2512
2532
  /**
2513
2533
  * Container for the marker's editing controls.
2514
2534
  */
2515
- protected controlBox: SVGGElement;
2535
+ protected controlBox?: SVGGElement;
2516
2536
  /**
2517
2537
  * Container for the marker's manipulation grips.
2518
2538
  */
@@ -2533,7 +2553,6 @@ declare class RectangularBoxMarkerBaseEditor<TMarkerType extends RectangularBoxM
2533
2553
  */
2534
2554
  protected activeGrip?: Grip;
2535
2555
  private disableRotation;
2536
- constructor(properties: MarkerEditorProperties<TMarkerType>);
2537
2556
  ownsTarget(el: EventTarget): boolean;
2538
2557
  pointerDown(point: IPoint, target?: EventTarget, ev?: PointerEvent): void;
2539
2558
  /**