@markerjs/markerjs3 3.1.0 → 3.2.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 +78 -5
- package/markerjs3.js +1 -1
- package/markerjs3.js.map +1 -1
- package/package.json +1 -1
- package/umd/markerjs3.js +1 -1
- package/umd/markerjs3.js.map +1 -1
package/markerjs3.d.ts
CHANGED
|
@@ -244,6 +244,13 @@ interface AnnotationState {
|
|
|
244
244
|
* Height of the annotation.
|
|
245
245
|
*/
|
|
246
246
|
height: number;
|
|
247
|
+
/**
|
|
248
|
+
* Default SVG filter to apply to markers in the annotation.
|
|
249
|
+
* (e.g. "drop-shadow(2px 2px 2px black)")
|
|
250
|
+
*
|
|
251
|
+
* @since 3.2.0
|
|
252
|
+
*/
|
|
253
|
+
defaultFilter?: string;
|
|
247
254
|
/**
|
|
248
255
|
* Array of marker states for markers in the annotation.
|
|
249
256
|
*/
|
|
@@ -278,6 +285,16 @@ declare class MarkerBase {
|
|
|
278
285
|
* Returns marker type name for the object instance.
|
|
279
286
|
*/
|
|
280
287
|
get typeName(): string;
|
|
288
|
+
/**
|
|
289
|
+
* Marker type title (display name) used for accessibility and other attributes.
|
|
290
|
+
*/
|
|
291
|
+
static title: string;
|
|
292
|
+
/**
|
|
293
|
+
* When true, the default filter is applied to the marker's visual.
|
|
294
|
+
*
|
|
295
|
+
* @since 3.2.0
|
|
296
|
+
*/
|
|
297
|
+
static applyDefaultFilter: boolean;
|
|
281
298
|
/**
|
|
282
299
|
* SVG container object holding the marker's visual.
|
|
283
300
|
*
|
|
@@ -302,10 +319,6 @@ declare class MarkerBase {
|
|
|
302
319
|
* The default marker size when the marker is created with a click (without dragging).
|
|
303
320
|
*/
|
|
304
321
|
defaultSize: ISize;
|
|
305
|
-
/**
|
|
306
|
-
* Marker type title (display name) used for accessibility and other attributes.
|
|
307
|
-
*/
|
|
308
|
-
static title: string;
|
|
309
322
|
/**
|
|
310
323
|
* Marker lifecycle stage.
|
|
311
324
|
*
|
|
@@ -854,6 +867,7 @@ declare class PolygonMarker extends MarkerBase {
|
|
|
854
867
|
selectorVisualLines: SVGLineElement[];
|
|
855
868
|
visibleVisual: SVGGraphicsElement | undefined;
|
|
856
869
|
protected applyStrokeColor(): void;
|
|
870
|
+
protected applyFillColor(): void;
|
|
857
871
|
protected applyStrokeWidth(): void;
|
|
858
872
|
protected applyStrokeDasharray(): void;
|
|
859
873
|
protected applyOpacity(): void;
|
|
@@ -909,6 +923,7 @@ interface FreehandMarkerState extends MarkerBaseState {
|
|
|
909
923
|
declare class FreehandMarker extends MarkerBase {
|
|
910
924
|
static typeName: string;
|
|
911
925
|
static title: string;
|
|
926
|
+
static applyDefaultFilter: boolean;
|
|
912
927
|
/**
|
|
913
928
|
* Points of the freehand line.
|
|
914
929
|
*/
|
|
@@ -1250,6 +1265,7 @@ declare class TextMarker extends RectangularBoxMarkerBase {
|
|
|
1250
1265
|
declare class CoverMarker extends ShapeMarkerBase {
|
|
1251
1266
|
static typeName: string;
|
|
1252
1267
|
static title: string;
|
|
1268
|
+
static applyDefaultFilter: boolean;
|
|
1253
1269
|
constructor(container: SVGGElement);
|
|
1254
1270
|
protected getPath(width?: number, height?: number): string;
|
|
1255
1271
|
}
|
|
@@ -1263,6 +1279,7 @@ declare class CoverMarker extends ShapeMarkerBase {
|
|
|
1263
1279
|
declare class HighlightMarker extends ShapeMarkerBase {
|
|
1264
1280
|
static typeName: string;
|
|
1265
1281
|
static title: string;
|
|
1282
|
+
static applyDefaultFilter: boolean;
|
|
1266
1283
|
constructor(container: SVGGElement);
|
|
1267
1284
|
protected getPath(width?: number, height?: number): string;
|
|
1268
1285
|
}
|
|
@@ -1590,6 +1607,20 @@ declare class CurveMarker extends LineMarker {
|
|
|
1590
1607
|
restoreState(state: CurveMarkerState): void;
|
|
1591
1608
|
}
|
|
1592
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Highlighter marker imitates a freeform highlighter pen.
|
|
1612
|
+
*
|
|
1613
|
+
* @summary Semi-transparent freeform marker.
|
|
1614
|
+
* @group Markers
|
|
1615
|
+
* @since 3.2.0
|
|
1616
|
+
*/
|
|
1617
|
+
declare class HighlighterMarker extends FreehandMarker {
|
|
1618
|
+
static typeName: string;
|
|
1619
|
+
static title: string;
|
|
1620
|
+
static applyDefaultFilter: boolean;
|
|
1621
|
+
constructor(container: SVGGElement);
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1593
1624
|
/**
|
|
1594
1625
|
* Properties for marker editor.
|
|
1595
1626
|
*/
|
|
@@ -2055,6 +2086,20 @@ declare class MarkerArea extends HTMLElement {
|
|
|
2055
2086
|
private prevPanPoint;
|
|
2056
2087
|
private panTo;
|
|
2057
2088
|
private undoRedoManager;
|
|
2089
|
+
private _defaultFilter?;
|
|
2090
|
+
/**
|
|
2091
|
+
* Returns the default SVG filter for the created markers.
|
|
2092
|
+
*
|
|
2093
|
+
* @since 3.2.0
|
|
2094
|
+
*/
|
|
2095
|
+
get defaultFilter(): string | undefined;
|
|
2096
|
+
/**
|
|
2097
|
+
* Sets the default SVG filter for the created markers
|
|
2098
|
+
* (e.g. "drop-shadow(2px 2px 2px black)").
|
|
2099
|
+
*
|
|
2100
|
+
* @since 3.2.0
|
|
2101
|
+
*/
|
|
2102
|
+
set defaultFilter(value: string | undefined);
|
|
2058
2103
|
constructor();
|
|
2059
2104
|
private connectedCallback;
|
|
2060
2105
|
private disconnectedCallback;
|
|
@@ -2956,6 +3001,20 @@ declare class MarkerView extends HTMLElement {
|
|
|
2956
3001
|
* Sets the current zoom level.
|
|
2957
3002
|
*/
|
|
2958
3003
|
set zoomLevel(value: number);
|
|
3004
|
+
private _defaultFilter?;
|
|
3005
|
+
/**
|
|
3006
|
+
* Returns the default SVG filter for the created markers.
|
|
3007
|
+
*
|
|
3008
|
+
* @since 3.2.0
|
|
3009
|
+
*/
|
|
3010
|
+
get defaultFilter(): string | undefined;
|
|
3011
|
+
/**
|
|
3012
|
+
* Sets the default SVG filter for the created markers
|
|
3013
|
+
* (e.g. "drop-shadow(2px 2px 2px black)").
|
|
3014
|
+
*
|
|
3015
|
+
* @since 3.2.0
|
|
3016
|
+
*/
|
|
3017
|
+
set defaultFilter(value: string | undefined);
|
|
2959
3018
|
private _isInitialized;
|
|
2960
3019
|
constructor();
|
|
2961
3020
|
private connectedCallback;
|
|
@@ -3103,6 +3162,20 @@ declare class Renderer {
|
|
|
3103
3162
|
* Both `width` and `height` have to be set for this to take effect.
|
|
3104
3163
|
*/
|
|
3105
3164
|
height?: number;
|
|
3165
|
+
private _defaultFilter?;
|
|
3166
|
+
/**
|
|
3167
|
+
* Returns the default SVG filter for the created markers.
|
|
3168
|
+
*
|
|
3169
|
+
* @since 3.2.0
|
|
3170
|
+
*/
|
|
3171
|
+
get defaultFilter(): string | undefined;
|
|
3172
|
+
/**
|
|
3173
|
+
* Sets the default SVG filter for the created markers
|
|
3174
|
+
* (e.g. "drop-shadow(2px 2px 2px black)").
|
|
3175
|
+
*
|
|
3176
|
+
* @since 3.2.0
|
|
3177
|
+
*/
|
|
3178
|
+
set defaultFilter(value: string | undefined);
|
|
3106
3179
|
constructor();
|
|
3107
3180
|
private init;
|
|
3108
3181
|
private addMainCanvas;
|
|
@@ -3131,4 +3204,4 @@ declare class Renderer {
|
|
|
3131
3204
|
rasterize(state: AnnotationState, targetCanvas?: HTMLCanvasElement): Promise<string>;
|
|
3132
3205
|
}
|
|
3133
3206
|
|
|
3134
|
-
export { Activator, type AnnotationState, ArrowMarker, ArrowMarkerEditor, type ArrowMarkerState, type ArrowType, type BlurHandler, CalloutMarker, CalloutMarkerEditor, type CalloutMarkerState, CaptionFrameMarker, CaptionFrameMarkerEditor, type CaptionFrameMarkerState, CheckImageMarker, CoverMarker, CurveMarker, CurveMarkerEditor, type CurveMarkerState, 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 MarkerEventData, 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 };
|
|
3207
|
+
export { Activator, type AnnotationState, ArrowMarker, ArrowMarkerEditor, type ArrowMarkerState, type ArrowType, type BlurHandler, CalloutMarker, CalloutMarkerEditor, type CalloutMarkerState, CaptionFrameMarker, CaptionFrameMarkerEditor, type CaptionFrameMarkerState, CheckImageMarker, CoverMarker, CurveMarker, CurveMarkerEditor, type CurveMarkerState, CustomImageMarker, EllipseFrameMarker, EllipseMarker, type FontSize, FrameMarker, FreehandMarker, FreehandMarkerEditor, type FreehandMarkerState, Grip, type GripLocation, HighlightMarker, HighlighterMarker, 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 MarkerEventData, 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 };
|