@markerjs/markerjs3 3.0.0-rc.0 → 3.0.0-rc.2

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
@@ -157,6 +157,36 @@ declare class SvgHelper {
157
157
  static createSvgFromString(stringSvg: string): SVGSVGElement;
158
158
  }
159
159
 
160
+ /**
161
+ * Manages commercial licenses.
162
+ * @ignore
163
+ */
164
+ declare class Activator {
165
+ private static keys;
166
+ private static keyAddListeners;
167
+ /**
168
+ * Add a license key
169
+ * @param product product identifier.
170
+ * @param key license key sent to you after purchase.
171
+ */
172
+ static addKey(product: string, key: string): void;
173
+ /**
174
+ * Add a function to be called when license key is added.
175
+ * @param listener
176
+ */
177
+ static addKeyAddListener(listener: () => void): void;
178
+ /**
179
+ * Remove a function called when key is added.
180
+ * @param listener
181
+ */
182
+ static removeKeyAddListener(listener: () => void): void;
183
+ /**
184
+ * Returns true if the product is commercially licensed.
185
+ * @param product product identifier.
186
+ */
187
+ static isLicensed(product: string): boolean;
188
+ }
189
+
160
190
  /**
161
191
  * Represents marker's state used to save and restore state.
162
192
  *
@@ -1213,7 +1243,7 @@ declare class HighlightMarker extends ShapeMarkerBase {
1213
1243
  /**
1214
1244
  * Represents the state of a callout marker.
1215
1245
  */
1216
- interface CalloutMarkerState extends TextMarkerState {
1246
+ interface CalloutMarkerState extends TextMarkerState, ShapeMarkerBaseState {
1217
1247
  /**
1218
1248
  * Coordinates of the position of the tip of the callout.
1219
1249
  */
@@ -2968,4 +2998,4 @@ declare class Renderer {
2968
2998
  rasterize(state: AnnotationState, targetCanvas?: HTMLCanvasElement): Promise<string>;
2969
2999
  }
2970
3000
 
2971
- export { type AnnotationState, ArrowMarker, ArrowMarkerEditor, type ArrowMarkerState, type ArrowType, type BlurHandler, CalloutMarker, CalloutMarkerEditor, type CalloutMarkerState, CaptionFrameMarker, CaptionFrameMarkerEditor, type CaptionFrameMarkerState, CheckImageMarker, CoverMarker, CustomImageMarker, EllipseFrameMarker, EllipseMarker, type FontSize, FrameMarker, FreehandMarker, FreehandMarkerEditor, type FreehandMarkerState, Grip, type GripLocation, HighlightMarker, type IPoint, type ISize, type ITransformMatrix, ImageMarkerBase, type ImageMarkerBaseState, ImageMarkerEditor, type ImageType, LineMarker, LinearMarkerBase, type LinearMarkerBaseState, LinearMarkerEditor, MarkerArea, type MarkerAreaEventData, type MarkerAreaEventMap, type MarkerAreaMode, MarkerBase, MarkerBaseEditor, type MarkerBaseState, type MarkerCreationStyle, type MarkerEditorEventData, type MarkerEditorProperties, type MarkerEditorState, type MarkerStage, MarkerView, type MarkerViewEventData, type MarkerViewEventMap, MeasurementMarker, PolygonMarker, PolygonMarkerEditor, type PolygonMarkerState, RectangularBoxMarkerBase, type RectangularBoxMarkerBaseState, Renderer, ResizeGrip, RotateGrip, ShapeMarkerBase, type ShapeMarkerBaseState, ShapeMarkerEditor, ShapeOutlineMarkerBase, type ShapeOutlineMarkerBaseState, ShapeOutlineMarkerEditor, SvgHelper, TextBlock, TextBlockEditor, type TextChangedHandler, TextMarker, TextMarkerEditor, type TextMarkerState, XImageMarker };
3001
+ export { Activator, type AnnotationState, ArrowMarker, ArrowMarkerEditor, type ArrowMarkerState, type ArrowType, type BlurHandler, CalloutMarker, CalloutMarkerEditor, type CalloutMarkerState, CaptionFrameMarker, CaptionFrameMarkerEditor, type CaptionFrameMarkerState, CheckImageMarker, CoverMarker, CustomImageMarker, EllipseFrameMarker, EllipseMarker, type FontSize, FrameMarker, FreehandMarker, FreehandMarkerEditor, type FreehandMarkerState, Grip, type GripLocation, HighlightMarker, type IPoint, type ISize, type ITransformMatrix, ImageMarkerBase, type ImageMarkerBaseState, ImageMarkerEditor, type ImageType, LineMarker, LinearMarkerBase, type LinearMarkerBaseState, LinearMarkerEditor, MarkerArea, type MarkerAreaEventData, type MarkerAreaEventMap, type MarkerAreaMode, MarkerBase, MarkerBaseEditor, type MarkerBaseState, type MarkerCreationStyle, type MarkerEditorEventData, type MarkerEditorProperties, type MarkerEditorState, type MarkerStage, MarkerView, type MarkerViewEventData, type MarkerViewEventMap, MeasurementMarker, PolygonMarker, PolygonMarkerEditor, type PolygonMarkerState, RectangularBoxMarkerBase, type RectangularBoxMarkerBaseState, Renderer, ResizeGrip, RotateGrip, ShapeMarkerBase, type ShapeMarkerBaseState, ShapeMarkerEditor, ShapeOutlineMarkerBase, type ShapeOutlineMarkerBaseState, ShapeOutlineMarkerEditor, SvgHelper, TextBlock, TextBlockEditor, type TextChangedHandler, TextMarker, TextMarkerEditor, type TextMarkerState, XImageMarker };