@markerjs/markerjs3 3.0.1 → 3.1.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 +54 -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
|
@@ -1556,6 +1556,40 @@ declare class CaptionFrameMarker extends TextMarker {
|
|
|
1556
1556
|
scale(scaleX: number, scaleY: number): void;
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
|
+
interface CurveMarkerState extends LinearMarkerBaseState {
|
|
1560
|
+
/**
|
|
1561
|
+
* x coordinate for the curve control point.
|
|
1562
|
+
*/
|
|
1563
|
+
curveX: number;
|
|
1564
|
+
/**
|
|
1565
|
+
* y coordinate for the curve control point.
|
|
1566
|
+
*/
|
|
1567
|
+
curveY: number;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Curve marker represents a curved line.
|
|
1572
|
+
*
|
|
1573
|
+
* @summary Curve marker.
|
|
1574
|
+
* @group Markers
|
|
1575
|
+
*/
|
|
1576
|
+
declare class CurveMarker extends LineMarker {
|
|
1577
|
+
static typeName: string;
|
|
1578
|
+
static title: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* x coordinate for the curve control point.
|
|
1581
|
+
*/
|
|
1582
|
+
curveX: number;
|
|
1583
|
+
/**
|
|
1584
|
+
* y coordinate for the curve control point.
|
|
1585
|
+
*/
|
|
1586
|
+
curveY: number;
|
|
1587
|
+
constructor(container: SVGGElement);
|
|
1588
|
+
protected getPath(): string;
|
|
1589
|
+
getState(): CurveMarkerState;
|
|
1590
|
+
restoreState(state: CurveMarkerState): void;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1559
1593
|
/**
|
|
1560
1594
|
* Properties for marker editor.
|
|
1561
1595
|
*/
|
|
@@ -2369,10 +2403,6 @@ declare class LinearMarkerEditor<TMarkerType extends LinearMarkerBase = LinearMa
|
|
|
2369
2403
|
private manipulationStartY1;
|
|
2370
2404
|
private manipulationStartX2;
|
|
2371
2405
|
private manipulationStartY2;
|
|
2372
|
-
/**
|
|
2373
|
-
* Container for control elements.
|
|
2374
|
-
*/
|
|
2375
|
-
protected controlBox: SVGGElement;
|
|
2376
2406
|
/**
|
|
2377
2407
|
* Container for manipulation grips.
|
|
2378
2408
|
*/
|
|
@@ -2770,6 +2800,25 @@ declare class CaptionFrameMarkerEditor<TMarkerType extends CaptionFrameMarker =
|
|
|
2770
2800
|
protected setSize(): void;
|
|
2771
2801
|
}
|
|
2772
2802
|
|
|
2803
|
+
declare class CurveMarkerEditor<TMarkerType extends CurveMarker = CurveMarker> extends LinearMarkerEditor<TMarkerType> {
|
|
2804
|
+
/**
|
|
2805
|
+
* Curve manipulation grip.
|
|
2806
|
+
*/
|
|
2807
|
+
protected curveGrip?: ResizeGrip;
|
|
2808
|
+
private manipulationStartCurveX;
|
|
2809
|
+
private manipulationStartCurveY;
|
|
2810
|
+
private curveControlLine1?;
|
|
2811
|
+
private curveControlLine2?;
|
|
2812
|
+
ownsTarget(el: EventTarget): boolean;
|
|
2813
|
+
pointerDown(point: IPoint, target?: EventTarget): void;
|
|
2814
|
+
protected resize(point: IPoint): void;
|
|
2815
|
+
manipulate(point: IPoint): void;
|
|
2816
|
+
protected setupControlBox(): void;
|
|
2817
|
+
protected adjustControlBox(): void;
|
|
2818
|
+
protected addControlGrips(): void;
|
|
2819
|
+
protected positionGrips(): void;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2773
2822
|
/**
|
|
2774
2823
|
* Event map for {@link MarkerView}.
|
|
2775
2824
|
*/
|
|
@@ -3082,4 +3131,4 @@ declare class Renderer {
|
|
|
3082
3131
|
rasterize(state: AnnotationState, targetCanvas?: HTMLCanvasElement): Promise<string>;
|
|
3083
3132
|
}
|
|
3084
3133
|
|
|
3085
|
-
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 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 };
|
|
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 };
|