Skip to content

v0.16.1

Choose a tag to compare

@github-actions github-actions released this 09 Nov 07:15
4df6107

This version is a PATCH before 1.0: it adds two strategies, a new optional field and new exports. The default routes do not change.

Strategies

  • The curve strategy elastic (NAT-026) is an elastic band on the polyline of a route. Springs pull the band taut, and the boxes near it push it away. A spline goes through the band.
  • When a route has no band, elastic gives the spline of the polyline with the plug normals. Thus the curve leaves along the normal of each plug.
  • The plug strategy charges (RULE-054) pushes the free plugs of a side apart as equal charges. A spring pulls each plug to the place of facing.
  • routeSpace has 10 plug options. The record space-size/1 counts 1016275071962 base configs.

The rules of a curve

  • A curve strategy can declare curveRules: g1 for a curve with no kink, and normals for a curve that leaves along the plug normals.
  • The bench checks the rules C1 and C10 of each strategy that declares them. Before, the bench checked a fixed list of names. Thus a variant of a screen got no check.
  • The built-in curves declare the rules that the fixed list gave them. The results of the bench do not change.

Exports

  • elasticCurve, relaxBand, ELASTIC_DEFAULTS, ElasticOptions and ElasticStrategyOptions.
  • chargeEnds, chargePlugs, CHARGE_DEFAULTS and ChargeOptions.
  • CurveRules, and the optional field curveRules of Strategy and StrategyDefinition.