Repository navigation
v0.2.1
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
layoutthrew aRangeError, also without the strict mode. Version 0.1.3 and later had this error. - In this version,
layoutdoes not throw for it. It gives the findingNON_FINITEwith the severityerror. Thedetailhas 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
boundsis 0, with aNON_FINITEfinding without a node. - Thus each number of a layout is finite. With
strict: true,layoutthrows anIrekoErrorfor this finding, as for each other error. - The check adds approximately 0.33 kB gzip to each entry with
layout. The gzip size oflayoutgoes from 17.72 kB to 18.05 kB. The size limits oflayout, the core,ireko/shapes,ireko/reactandireko/xyflowgo up by 0.4 kB.