Repository navigation
v0.16.1
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,
elasticgives 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 offacing. routeSpacehas 10 plug options. The recordspace-size/1counts 1016275071962 base configs.
The rules of a curve
- A curve strategy can declare
curveRules:g1for a curve with no kink, andnormalsfor 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,ElasticOptionsandElasticStrategyOptions.chargeEnds,chargePlugs,CHARGE_DEFAULTSandChargeOptions.CurveRules, and the optional fieldcurveRulesofStrategyandStrategyDefinition.