Skip to content

Releases

v0.2.8

Choose a tag to compare

@github-actions github-actions released this 24 Nov 18:11
906d06d

This version is a patch with no code change. The repository moved to metrograph-labs. The fields repository, homepage and bugs of package.json and the links of the README name the new repository.

v0.2.7

Choose a tag to compare

@github-actions github-actions released this 24 Nov 06:55
5fc7387

This version is a patch. It adds the option graphRouter of layout. A graph router routes all edges together, with all boxes in view. Without the option, each layout stays the same.

  • The new option graphRouter takes an object with a route function. The function gets all boxes and all edges, and gives a route for each edge. The router cornersRouter of @mark1russell7/highways has this shape. ireko has no dependency on highways.
  • The new types GraphRouter, GraphRouterInput, GraphRouterResult, GraphNode, GraphEdge, GraphBox and GraphRoute tell the shape.
  • The graph router operates after the router of the option router. Its routes replace the first routes, and the bounds grow to hold them.
  • The obstacles are all boxes, also the containers. A root in the nested mode is not an obstacle. An edge between a container and a box inside it keeps its first route.
  • A route that goes through a box gives the new warning EDGE_THROUGH_BOX, with the boxes in its detail. The ends of the edge and the containers that hold an end do not count.
  • A graph router that throws, or a missing or bad route, gives ROUTER_FAILED. Then the edge keeps its first route.
  • The gzip size of layout goes from 18.05 kB to 18.57 kB. The size limits of the entries that hold the engine go up by 0.5 kB.

v0.2.6

Choose a tag to compare

@github-actions github-actions released this 23 Nov 01:21
4c1aefb

This version is a patch. It adds arrowheads and solid extra edges to the SVG export. It also gives fitText and the SVG export labels with more than one line.

  • The new option arrows of toSVG gives each edge an arrowhead at its target. The default is false.
  • The arrowhead has the color of its edge: the color edge of the theme, or extraEdge for an extra edge.
  • The new option dashes of toSVG draws the extra edges with solid lines when it is false. The default is true, and the extra edges have dashes, as in 0.2.5.
  • A label with line breaks (\n) has one line for each part. fitText makes the box as wide as the widest line, and as high as all the lines.
  • toSVG draws each line of such a label at the center of the box, with the line height of fitText.
  • In 0.2.5, fitText measured such a label as one line, and toSVG drew it on one line. A label with no line break gets the same box and the same SVG as in 0.2.5.
  • The live renderers mountSvg, mountDom and mountCanvas draw each label on one line, as before.

v0.2.5

Choose a tag to compare

@github-actions github-actions released this 18 Nov 15:01
1fe71cd

This version is a patch. It makes relaxForces faster for 200 boxes or more, and it adds the option theta to relaxForces and to the strategy force. With the default of the option, each layout stays the same.

  • relaxForces keeps the positions in typed lists of numbers, and the separation passes find the near boxes with a grid. The positions are the positions of 0.2.4, bit for bit. A test compares the function with the steps of 0.2.4 on random inputs.
  • The new option theta is a number from 0 to MAX_THETA, which is 1. The default is 0. Then the repulsion reads each pair of boxes, as in 0.2.4, and its time grows with the square of the number of boxes.
  • With a theta of more than 0, a far group of boxes repels a box as one box. This is the method of Barnes and Hut. The time of the repulsion then grows approximately as the number of boxes times its logarithm. A usual value is 0.9.
  • With a theta of more than 0, the positions are near the positions of a theta of 0, but they are not the same. No two boxes are nearer than the margin, as before.
  • The layout schema of the strategy force has the field theta, and the builder force accepts it. ireko/strategies/force exports the constant MAX_THETA.
  • theta is a field of the types RelaxOptions and ForceOptions. relaxForces, a layout document and the builder use the default, so they need no change. Code that makes a full value of one of these types by hand must add theta: 0.
  • The gzip size of ireko/strategies/force goes from 2.75 kB to 4.50 kB, and its size limit goes from 3.2 kB to 4.7 kB. The size of each other entry does not change.
  • The new workflow bench-relax.yml measures relaxForces against 0.2.4 on pictures of 50 to 1600 boxes, each arm in a fresh process. It fails when the default gives a different position.
  • The first job of the workflow measured 7 rounds on an AMD EPYC 7763 with Node.js 24.22. Each number below is the median time divided by the median time of 0.2.4.
  • With the default, the number is 0.94 at 200 boxes, 0.86 at 400 boxes, 0.76 at 800 boxes and 0.73 at 1600 boxes.
  • With a theta of 0.9, the number is 0.69 at 200 boxes, 0.49 at 400 boxes, 0.28 at 800 boxes and 0.18 at 1600 boxes.
  • At 100 boxes or fewer, the first use in a new process is slower than 0.2.4. It adds approximately 10 ms at 50 boxes (34 ms before) and 5 ms at 100 boxes (65 ms before).
  • The build bundles @mark1russell7/text 0.0.15 (before, 0.0.5). The bundled code is the same. Thus only the files of ireko/strategies/force are different from 0.2.4.

Runtime dependencies: no change against 0.2.4 (none). @mark1russell7/text ^0.0.15 is a dev dependency, and the build bundles it.

v0.2.4

Choose a tag to compare

@github-actions github-actions released this 17 Nov 22:16
c8c1da7

This version is a patch. It changes no export, no type and no layout. Its change is inside the build of ireko/svg.

  • The source map of ireko/svg names the bundled @mark1russell7/text by its path in node_modules. Before, the path was in the pnpm store, and that path contains the version of the package. Thus each update of the dev dependency changed a shipped file, also when the code was the same.
  • The smoke test of the tarball fails when a source map names a path in the pnpm store.

Runtime dependencies: no change against 0.2.3 (none).

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 13 Nov 08:00
5c0268b

This version is a patch. It changes no export, no type and no layout. Its change is inside the build of ireko/svg.

  • The build bundles @mark1russell7/text 0.0.5 (before, 0.0.2). The escape of the text of an SVG is the same, but the source map of the bundle changes.

Runtime dependencies: no change against 0.2.2 (none). @mark1russell7/text ^0.0.5 is a dev dependency, and the build bundles it.

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 09 Nov 08:56
383c0f0

This version is a patch. It changes no export, no type and no layout. Its change is inside the build of ireko/svg.

  • The escape of the text of an SVG comes from escapeAttribute of @mark1russell7/text, the home of the escape functions. The build bundles it.
  • The SVG output is the same: &, <, >, " and ' in place of the five characters.

Runtime dependencies: no change against 0.2.1 (none). @mark1russell7/text ^0.0.2 is a dev dependency, and the build bundles it.

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 08 Nov 10:20
62b17cc

This version is a patch. It corrects an error, and it adds the issue code NON_FINITE. Each layout of finite numbers stays the same.

  • Each size of a node was valid, but a sum of very large sizes can overflow. Then layout threw a RangeError, also without the strict mode. Version 0.1.3 and later had this error.
  • In this version, layout does not throw for it. It gives the finding NON_FINITE with the severity error. The detail has the field and the phase.
  • The engine uses a finite value in its place. It is 0 for a position, the size of the node for its box, and 1 for a scale.
  • When the grid fallback cannot arrange the children, each child goes to the origin of the node.
  • The union of two far boxes can be wider than the largest number. Then the value of bounds is 0, with a NON_FINITE finding without a node.
  • Thus each number of a layout is finite. With strict: true, layout throws an IrekoError for this finding, as for each other error.
  • The check adds approximately 0.33 kB gzip to each entry with layout. The gzip size of layout goes from 17.72 kB to 18.05 kB. The size limits of layout, the core, ireko/shapes, ireko/react and ireko/xyflow go up by 0.4 kB.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 08:03
1897b09

This version is a minor version. It changes no API. The layout of a graph with crossed edges in the strategy layers can change.

  • A long edge in the strategy layers gets a virtual node in each layer between its ends. Thus the barycenter ordering also counts the long edges.
  • The ordering counts the crossings after each pass, and it keeps the order with the fewest crossings. Thus a pass does not make the order worse.
  • Each example of the gallery keeps its layout: the golden files do not change.
  • A dependency map of 250 boxes and 293 edges had 3710 crossings of its routed edges with 0.1.5. With 0.2.0, it has 2010.
  • The crossing reduction adds approximately 0.4 kB gzip to each entry with the strategy layers. The gzip size of layout goes from 17.34 kB to 17.72 kB. The size limits of layout, the core, ireko/shapes, ireko/react and ireko/xyflow go up by 0.3 kB to 0.5 kB.

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 04 Nov 11:46
e1f766d

This version is a patch. It changes no API, and each layout stays the same.

  • The five generated modules (measure, place, shape, grid and radial) come from one commit of Vex. The new CI job bytes holds each file equal to its print.
  • Old and new files gave the same values on 128,508 calls, with 0 differences. The calls include each side of 256 children, up to 9,000 children.
  • The radial strategy takes 11 % to 12 % less time for a layout of 1,111 or 11,111 nodes. One call takes 37 % less time at 12 children, 52 % less at 200 and 6 % less at 1,000.
  • One call of grid takes 3 % to 5 % less time, but a full layout shows no change. The time of measure, place and shape stays inside the check that compares a file with a copy of itself.
  • The gzip size of layout goes from 17,095 B to 17,337 B in ireko, and from 18,986 B to 19,229 B in ireko/shapes.
  • The size limits do not change.