@markerjs/markerjs3 3.0.0 → 3.0.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
@@ -703,6 +703,18 @@ declare class LinearMarkerBase extends MarkerBase {
703
703
  * Visible visual of the marker.
704
704
  */
705
705
  protected visibleVisual: SVGGraphicsElement | undefined;
706
+ /**
707
+ * Line visual of the marker.
708
+ */
709
+ protected lineVisual: SVGGraphicsElement | undefined;
710
+ /**
711
+ * Start terminator (ending) visual of the marker.
712
+ */
713
+ protected startTerminatorVisual: SVGGraphicsElement | undefined;
714
+ /**
715
+ * End terminator (ending) visual of the marker.
716
+ */
717
+ protected endTerminatorVisual: SVGGraphicsElement | undefined;
706
718
  protected applyStrokeColor(): void;
707
719
  protected applyStrokeWidth(): void;
708
720
  protected applyStrokeDasharray(): void;
@@ -710,13 +722,23 @@ declare class LinearMarkerBase extends MarkerBase {
710
722
  constructor(container: SVGGElement);
711
723
  ownsTarget(el: EventTarget): boolean;
712
724
  /**
713
- * The path representing the marker visual.
725
+ * The path representing the line part of the marker visual.
714
726
  *
715
727
  * When implemented in derived class should return SVG path for the marker.
716
728
  *
717
729
  * @returns SVG path for the marker.
718
730
  */
719
731
  protected getPath(): string;
732
+ /**
733
+ * The path representing the start terminator (ending) part of the marker visual.
734
+ * @returns SVG path
735
+ */
736
+ protected getStartTerminatorPath(): string;
737
+ /**
738
+ * The path representing the end terminator (ending) part of the marker visual.
739
+ * @returns SVG path
740
+ */
741
+ protected getEndTerminatorPath(): string;
720
742
  /**
721
743
  * Creates marker's visual.
722
744
  */
@@ -775,7 +797,9 @@ declare class ArrowMarker extends LineMarker {
775
797
  get arrowType(): ArrowType;
776
798
  set arrowType(value: ArrowType);
777
799
  constructor(container: SVGGElement);
778
- protected getPath(): string;
800
+ private getArrowProperties;
801
+ protected getStartTerminatorPath(): string;
802
+ protected getEndTerminatorPath(): string;
779
803
  protected applyStrokeWidth(): void;
780
804
  getState(): ArrowMarkerState;
781
805
  restoreState(state: MarkerBaseState): void;
@@ -793,7 +817,9 @@ declare class MeasurementMarker extends LineMarker {
793
817
  static typeName: string;
794
818
  static title: string;
795
819
  constructor(container: SVGGElement);
796
- protected getPath(): string;
820
+ protected getStartTerminatorPath(): string;
821
+ protected getEndTerminatorPath(): string;
822
+ private getTerminatorProperties;
797
823
  protected applyStrokeWidth(): void;
798
824
  }
799
825