Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

SVGElement: Node
bezierEndControlPt: PointF2D
bezierEndPt: PointF2D
bezierStartControlPt: PointF2D
bezierStartPt: PointF2D
graceEnd: boolean
graceStart: boolean
placement: PlacementEnum
slur: Slur
staffEntries: GraphicalStaffEntry[] = []
degreesToRadiansFactor: number = ...

Methods

  • calculateAngles(minAngle: number, startLineSlope: number, endLineSlope: number, maxAngle: number): { endAngle: number; startAngle: number }
  • This method calculates the angles for the Curve's Tangent Lines.

    Parameters

    • minAngle: number
    • startLineSlope: number
    • endLineSlope: number
    • maxAngle: number

    Returns { endAngle: number; startAngle: number }

    • endAngle: number
    • startAngle: number
  • calculateControlPoints(endX: number, startAngle: number, endAngle: number, points: PointF2D[], heightWidthRatio: number, startY: number, endY: number): { endControlPoint: PointF2D; startControlPoint: PointF2D }
  • calculateCurvePointAtIndex(relativePosition: number): PointF2D
  • calculateHeightWidthRatio(endX: number, points: PointF2D[]): number
  • This method calculates the HeightWidthRatio between the MaxYpoint (from the points between StartPoint and EndPoint) and the X-distance from StartPoint to EndPoint.

    Parameters

    Returns number

  • calculateTranslatedAndRotatedPointListAbove(points: PointF2D[], startX: number, startY: number, rotationMatrix: Matrix2D): PointF2D[]
  • calculateTranslatedAndRotatedPointListBelow(points: PointF2D[], startX: number, startY: number, rotationMatrix: Matrix2D): PointF2D[]
  • getPointListMaxY(points: PointF2D[]): number

Generated using TypeDoc