evCreate API 5.7 Help

EvBezierAttributes Interface

The EvBezierAttributes TS interface defines a blueprint of a JS object that specifies the segments of a Bézier curve item.

Properties

An EvBezierAttributes object has the following properties:

points: EvCoord2D[];

An array of EvCoord2D arrays, an array of 2D coordinates of points that define one or more segments of a Bézier curve item.

Each segment of a Bézier curve is defined by four points specified in the following order:

  • Starting point

  • Weight point 1

  • Weight point 2

  • Endpoint

A weight point defines how far the segment is pulled in its direction.

If the Bézier curve includes multiple segments, the following rules must be met:

  • The total number of the points must be divisible by 4.

  • The coordinates must be the same for:

    • The endpoint of a given segment.

    • The starting point of the segment following the given segment.

Examples

{ [ [400.25000011529437, 390.34611764428263], [400.25000011529437, 390.34611764428263], [722.621521857904, 163.6221302588003], [827.2500001152944, 455.4639528349382], [827.2500001152944, 455.4639528349382], [934.2500001152944, 753.920697458776], [716.2500001152944, 762.6030754841968], [579.2500001152944, 707.2529155721395], [579.2500001152944, 707.2529155721395], [372.25000011529437, 652.9880529132599], [520.4272101761132, 472.9253667957316], [560.2500001152944, 459.8051418476485], [560.2500001152944, 459.8051418476485], [616.2500001152944, 441.3550885436295], [686.2494922662777, 435.3038811774143], [733.2500001152944, 497.7905457088643], [733.2500001152944, 497.7905457088643], [773.2500001152944, 550.9701111145663], [750.2500001152944, 610.6614600393339], [709.2500001152944, 636.708594115596], [709.2500001152944, 636.708594115596], [676.0491705779588, 657.8009467595499], [601.2500001152944, 596.5525957480252], [605.2500001152944, 563.9936781526974], [605.2500001152944, 563.9936781526974], [611.3824536943738, 514.0771654680929], [684.2500001152944, 540.1171385827903], [684.2500001152944, 540.1171385827903] ] }
Bezier curve example with 7 segments and 28 points
30 March 2025