Repository navigation
Releases
v0.19.5
v0.19.4
This version is a PATCH: the repository moved to metrograph-labs. The fields repository and homepage of package.json and the links of the README name the new repository. The code does not change.
v0.19.3
This version is a PATCH: three private functions use their home, and the range of a dependency goes up. No output changes.
The nearest point of a segment comes from its home
- The router
adamusesnearestOnSegmentof@mark1russell7/layout-contractfor the point of a leg nearest to a point. nearestOnLineofsbebusesnearestOnSegmentfor each leg. Its choice between the legs does not change.- The error of a clothoid fit uses
pointSegmentDistancefor the distance to each leg of the dense polyline. - Each of the three copies had the float formula of the home. Thus each route, each curve and each record has the same bytes.
- The range of
@mark1russell7/layout-contractis^0.10.6, the first version withnearestOnSegment. - The roadmap item NEAREST-COPIES moves the other five copies.
v0.19.2
This version is a PATCH: it adds two functions and their types. No output changes.
Two measures of the joins
- The new function
falseJoins(graph, routes, options)gives the measure B12: the share of the ink where edges of two groups or more read as one line. - A point of a leg is a false join when edges of two group keys draw the leg.
- A point is also a false join when a parallel leg of a different key is nearer than
nearand its projection covers the point. - The group key of an edge comes from the option
rule, with the defaultbyCollection. An edge without a key is a group alone. - The options
nearandmaxAnglehave the defaults ofrouteSeparation: 4 units and 5 degrees. - The result has the share, the length of the false joins, the ink and the values of each edge.
- The new function
curveAgreement(routes, curve, options)gives the measure C12: the gap between the drawn curves of routes on a run of points that they share. - The parameter
curvegives the drawn curve of a route, for example withcurveOf. - The result has the count of the runs, their length and the length that the function read. It also has the length with a gap above
apart, the share and the largest gap. - A count of 0 tells that the routes share no run. Thus a gate can tell "no read" from a good value.
- The defaults are 1 unit for
apart, 0.25 fortoleranceand 1 unit forstep. The optionendskeeps the ends of each run out of the read. - No suite, no screen and no gate reads the two measures.
measureQualityand the typeQualitydo not change. - The note on the measures has the rows B12 and C12.
v0.19.1
This version is a PATCH: it adds an optional method, a type and an export. No output changes.
A session of a router
- The type
Routerhas a new optional methodsession(graph). It gives aRouterSessionwithroute(edges)anddispose(). session.route(edges)gives the result ofrouter.route({ ...graph, edges }): the same routes, the same points and the same notes.- The session of
cornersRouterkeeps the obstacles and the corner graph of the nodes. A route of a few edges among many nodes does not make them again. - The new function
routerSession(router, graph)gives the session of each router. A router without the method gets a session with no kept work. - A copy of a router of
cornersRouterwith a differentroute, for examplewithRepair(router), gets a session with no kept work. Thus it keeps its own results. - The session holds a snapshot of the nodes. A change of a node needs a new session.
- A test compares the session with the plain route on 350 sets of edges for 10 sets of options of
corners, and on 105 sets for 3 other routers. - The script
scripts/session-time.tstimes the plain route and the session for 2 edges among 400, 800 and 2000 nodes. The workflowRecordsstarts it.
The stamps of a long session
- A grid and the search of a corner graph mark their entries with a stamp. Each query takes the next stamp, and a mark is a 32-bit value.
- A session keeps its grids and its corner graphs for each route, so a stamp can come to the largest 32-bit value.
- At that value, a grid and a search set their marks to 0 and start again at the stamp 1. The cost is one test for each query.
- Without this new start, a grid gives an item more than one time after 2^31 queries, and a search does not end after 2^31 searches.
- The search of
SoftGraphhas the same stamps and the same new start. No session keeps aSoftGraph. - A test lowers the limit, so that one session comes to it many times. Each result keeps the value, the bytes and the work of the default limit.
v0.19.0
The release train changes the range of @mark1russell7/rigor-generators, @mark1russell7/rigor-statistics to a version outside the old range. The public types name @mark1russell7/rigor-generators, @mark1russell7/rigor-statistics, so its new version outside the old range can change them.
Breaking
- The range
^0.1.1of@mark1russell7/rigor-generatorsindependenciesdoes not hold0.2.0, so it changes. - The range
^0.1.22of@mark1russell7/rigor-statisticsindependenciesdoes not hold0.2.10, so it changes.
v0.18.0
The release train changes the range of @mark1russell7/layout-contract to a version outside the old range. The public types name @mark1russell7/layout-contract, so its new version outside the old range can change them.
Breaking
- The range
^0.5.1of@mark1russell7/layout-contractindependenciesdoes not hold0.10.0, so it changes.
v0.17.1
This version is a PATCH: it adds an export and an optional parameter. No output changes.
The pick of a level
itemSizes(levels, side)takes an optional side,long(the default) orshort. The typeItemSidenames the two values.- The new function
pickLevelOf(levels, scale, options)picks a level from the levels themselves. Its options are the thresholds ofpickLevel,sideandminItems. - With
minItems, the search from fine to coarse stops at a level with fewer items. When no level passes, the pick is the coarsest level with enough items. - Without
sideandminItems,pickLevelOfgives the result ofpickLevel. A test compares a rule with one threshold on 400 random sets of levels.
v0.17.0
This version is a MINOR before 1.0, because default routes of sectionsRouter change. The public API does not change.
Routes that change
- A way through the hubs that goes through a box gives way to the direct way, when the direct way goes through no box (SITE-HUB-THROUGH).
- The way goes through a box when a piece between two hubs has no way. A step from a plug into a box does too.
- The options
margin: 20, stretch: 3, cap: 6move 4 of 6,307 routes of 84 boards. Theirroute.throughgoes from 296 to 292. - With the default options, no route of these boards moves. The option
outSteps: falsekeeps the routes of 0.16.0.
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.