@knowvah/dot-engine 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/graph-init.d.ts.map +1 -1
- package/dist/common/htmltable-emit.d.ts +6 -11
- package/dist/common/htmltable-emit.d.ts.map +1 -1
- package/dist/common/nodeinit.d.ts.map +1 -1
- package/dist/common/poly-gencode.d.ts.map +1 -1
- package/dist/common/poly-init.d.ts +13 -2
- package/dist/common/poly-init.d.ts.map +1 -1
- package/dist/common/safefile.d.ts +23 -0
- package/dist/common/safefile.d.ts.map +1 -0
- package/dist/common/shapes.d.ts +6 -6
- package/dist/common/shapes.d.ts.map +1 -1
- package/dist/gvc/device.d.ts.map +1 -1
- package/dist/gvc/image-type.d.ts +41 -0
- package/dist/gvc/image-type.d.ts.map +1 -0
- package/dist/gvc/render-usershape.d.ts +68 -0
- package/dist/gvc/render-usershape.d.ts.map +1 -0
- package/dist/gvc/usershape.d.ts +23 -1
- package/dist/gvc/usershape.d.ts.map +1 -1
- package/dist/index.js +46393 -44890
- package/dist/index.js.map +4 -4
- package/dist/layout/neato/__fixtures__/quad-prog-vpsc.d.ts +118 -0
- package/dist/layout/neato/__fixtures__/quad-prog-vpsc.d.ts.map +1 -0
- package/dist/layout/neato/__fixtures__/stress-models.d.ts +39 -0
- package/dist/layout/neato/__fixtures__/stress-models.d.ts.map +1 -0
- package/dist/layout/neato/circuit.d.ts +10 -0
- package/dist/layout/neato/circuit.d.ts.map +1 -0
- package/dist/layout/neato/init.d.ts +3 -2
- package/dist/layout/neato/init.d.ts.map +1 -1
- package/dist/layout/neato/ipsep-opts.d.ts +19 -0
- package/dist/layout/neato/ipsep-opts.d.ts.map +1 -0
- package/dist/layout/neato/lu.d.ts +35 -0
- package/dist/layout/neato/lu.d.ts.map +1 -0
- package/dist/layout/neato/matinv.d.ts +8 -0
- package/dist/layout/neato/matinv.d.ts.map +1 -0
- package/dist/layout/neato/quad-prog-vpsc-overlap.d.ts +35 -0
- package/dist/layout/neato/quad-prog-vpsc-overlap.d.ts.map +1 -0
- package/dist/layout/neato/quad-prog-vpsc.d.ts +110 -0
- package/dist/layout/neato/quad-prog-vpsc.d.ts.map +1 -0
- package/dist/layout/neato/start.d.ts +5 -4
- package/dist/layout/neato/start.d.ts.map +1 -1
- package/dist/layout/neato/stress-cola.d.ts +65 -0
- package/dist/layout/neato/stress-cola.d.ts.map +1 -0
- package/dist/layout/neato/stress-kernel.d.ts +0 -2
- package/dist/layout/neato/stress-kernel.d.ts.map +1 -1
- package/dist/layout/neato/stress-models.d.ts +48 -0
- package/dist/layout/neato/stress-models.d.ts.map +1 -0
- package/dist/layout/neato/vpsc-adjust.d.ts +7 -8
- package/dist/layout/neato/vpsc-adjust.d.ts.map +1 -1
- package/dist/render/color-resolve.d.ts +14 -0
- package/dist/render/color-resolve.d.ts.map +1 -1
- package/dist/render/dot/edge-draw.d.ts.map +1 -1
- package/dist/render/dot.d.ts +8 -1
- package/dist/render/dot.d.ts.map +1 -1
- package/dist/render/svg-arrow-ops.d.ts +21 -4
- package/dist/render/svg-arrow-ops.d.ts.map +1 -1
- package/dist/render/svg-edge-arrows.d.ts +3 -3
- package/dist/render/svg-edge-arrows.d.ts.map +1 -1
- package/dist/render/svg-helpers.d.ts +1 -1
- package/dist/render/svg-helpers.d.ts.map +1 -1
- package/dist/render/svg.d.ts.map +1 -1
- package/dist/render.js +8505 -7002
- package/dist/render.js.map +4 -4
- package/package.json +1 -1
- package/src/common/graph-init.ts +4 -2
- package/src/common/htmltable-emit.ts +11 -46
- package/src/common/nodeinit.ts +3 -1
- package/src/common/poly-gencode.ts +53 -3
- package/src/common/poly-init.ts +30 -17
- package/src/common/safefile.ts +74 -0
- package/src/common/shapes.ts +43 -22
- package/src/gvc/__fixtures__/p7/colors/98-point.gv +1 -0
- package/src/gvc/__fixtures__/p7/colors/98-point.json +54 -0
- package/src/gvc/__fixtures__/p7/colors/98-point.json.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/98-point.svg +17 -0
- package/src/gvc/__fixtures__/p7/colors/98-point.svg.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/98-point.xdot +13 -0
- package/src/gvc/__fixtures__/p7/colors/98-point.xdot.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-color.gv +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-color.json +150 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-color.json.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-color.svg +30 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-color.svg.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-color.xdot +22 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-color.xdot.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-red-colon.gv +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-red-colon.json +149 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-red-colon.json.stderr +0 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-red-colon.svg +30 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-red-colon.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-red-colon.xdot +21 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge-red-colon.xdot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge.gv +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge.json +149 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge.json.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge.svg +30 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge.svg.stderr +1 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge.xdot +21 -0
- package/src/gvc/__fixtures__/p7/colors/99-edge.xdot.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/100-rotate.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/100-rotate.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/100-rotate.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.cmapx +2 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.cmapx.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.dot +8 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.dot.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.json +68 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.json.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.plain +3 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.plain.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.svg +18 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.svg.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.xdot +13 -0
- package/src/gvc/__fixtures__/p7/images/101-bad.xdot.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.cmapx +2 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.cmapx.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.dot +8 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.dot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.json +70 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.json.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.plain +3 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.plain.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.xdot +13 -0
- package/src/gvc/__fixtures__/p7/images/101-gif.xdot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.cmapx +2 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.cmapx.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.dot +8 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.dot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.json +70 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.json.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.plain +3 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.plain.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.xdot +13 -0
- package/src/gvc/__fixtures__/p7/images/101-jpg.xdot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-png.cmapx +2 -0
- package/src/gvc/__fixtures__/p7/images/101-png.cmapx.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-png.dot +8 -0
- package/src/gvc/__fixtures__/p7/images/101-png.dot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-png.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/101-png.json +70 -0
- package/src/gvc/__fixtures__/p7/images/101-png.json.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/101-png.plain +3 -0
- package/src/gvc/__fixtures__/p7/images/101-png.plain.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-png.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/101-png.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-png.xdot +13 -0
- package/src/gvc/__fixtures__/p7/images/101-png.xdot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.cmapx +2 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.cmapx.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.dot +8 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.dot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.json +70 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.json.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.plain +3 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.plain.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.xdot +13 -0
- package/src/gvc/__fixtures__/p7/images/101-svg.xdot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.cmapx +2 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.cmapx.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.dot +8 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.dot.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.json +68 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.json.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.plain +3 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.plain.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.svg +18 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.svg.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.xdot +13 -0
- package/src/gvc/__fixtures__/p7/images/101-svgbare.xdot.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-abs.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-abs.svg +18 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-abs.svg.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-abs.xdot +14 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-abs.xdot.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-found.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-found.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-found.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-found.xdot +14 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-found.xdot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-missing.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-missing.svg +18 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-missing.svg.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-missing.xdot +14 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-missing.xdot.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-shapefile.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-shapefile.svg +18 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-shapefile.svg.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-shapefile.xdot +15 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-shapefile.xdot.stderr +2 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-two.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-two.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-two.svg.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-two.xdot +14 -0
- package/src/gvc/__fixtures__/p7/images/102-ip-two.xdot.stderr +0 -0
- package/src/gvc/__fixtures__/p7/images/97-custom.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/97-custom.svg +18 -0
- package/src/gvc/__fixtures__/p7/images/97-custom.svg.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/97-custom.xdot +13 -0
- package/src/gvc/__fixtures__/p7/images/97-custom.xdot.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/97-nosuch-image.gv +1 -0
- package/src/gvc/__fixtures__/p7/images/97-nosuch-image.svg +19 -0
- package/src/gvc/__fixtures__/p7/images/97-nosuch-image.svg.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/97-nosuch-image.xdot +14 -0
- package/src/gvc/__fixtures__/p7/images/97-nosuch-image.xdot.stderr +1 -0
- package/src/gvc/__fixtures__/p7/images/bad.png +1 -0
- package/src/gvc/__fixtures__/p7/images/d/r.png +0 -0
- package/src/gvc/__fixtures__/p7/images/d2/r.png +0 -0
- package/src/gvc/__fixtures__/p7/images/g.gif +0 -0
- package/src/gvc/__fixtures__/p7/images/graphs-val_val.gv +10 -0
- package/src/gvc/__fixtures__/p7/images/graphs-val_val.svg +25 -0
- package/src/gvc/__fixtures__/p7/images/graphs-val_val.svg.stderr +3 -0
- package/src/gvc/__fixtures__/p7/images/graphs-val_val.xdot +30 -0
- package/src/gvc/__fixtures__/p7/images/graphs-val_val.xdot.stderr +3 -0
- package/src/gvc/__fixtures__/p7/images/j.jpg +0 -0
- package/src/gvc/__fixtures__/p7/images/r.png +0 -0
- package/src/gvc/__fixtures__/p7/images/s.svg +2 -0
- package/src/gvc/__fixtures__/p7/images/sb.svg +1 -0
- package/src/gvc/__fixtures__/p7/images/t.png +0 -0
- package/src/gvc/__fixtures__/p7/regen.sh +23 -0
- package/src/gvc/device-cluster.ts +3 -2
- package/src/gvc/device.ts +12 -4
- package/src/gvc/image-type.ts +122 -0
- package/src/gvc/render-usershape.ts +260 -0
- package/src/gvc/usershape.ts +40 -1
- package/src/layout/neato/__fixtures__/ipsep/big-dired.gv +243 -0
- package/src/layout/neato/__fixtures__/ipsep/big-dired.trace +55 -0
- package/src/layout/neato/__fixtures__/ipsep/big-dired.xdot +1832 -0
- package/src/layout/neato/__fixtures__/ipsep/big-dired.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/cluster.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/cluster.trace +95 -0
- package/src/layout/neato/__fixtures__/ipsep/cluster.xdot +58 -0
- package/src/layout/neato/__fixtures__/ipsep/cluster.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-levelsgap.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-levelsgap.trace +40 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-levelsgap.xdot +72 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-levelsgap.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-sep.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-sep.trace +43 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-sep.xdot +72 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier-sep.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier.trace +43 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier.xdot +71 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-hier.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-true.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-true.trace +51 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-true.xdot +71 -0
- package/src/layout/neato/__fixtures__/ipsep/dired-true.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-grid.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-grid.trace +41 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-grid.xdot +77 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-grid.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-k6.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-k6.trace +41 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-k6.xdot +68 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-k6.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand-len.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand-len.trace +42 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand-len.xdot +110 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand-len.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand.trace +49 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand.xdot +108 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-rand.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-tree.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-tree.trace +43 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-tree.xdot +83 -0
- package/src/layout/neato/__fixtures__/ipsep/ipsep-tree.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep-len.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep-len.trace +49 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep-len.xdot +48 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep-len.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep.trace +45 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep.xdot +47 -0
- package/src/layout/neato/__fixtures__/ipsep/kd-ipsep.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/len-dired.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/len-dired.trace +44 -0
- package/src/layout/neato/__fixtures__/ipsep/len-dired.xdot +66 -0
- package/src/layout/neato/__fixtures__/ipsep/len-dired.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/model-circuit.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/model-circuit.trace +46 -0
- package/src/layout/neato/__fixtures__/ipsep/model-circuit.xdot +83 -0
- package/src/layout/neato/__fixtures__/ipsep/model-circuit.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds-len.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds-len.trace +52 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds-len.xdot +72 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds-len.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds.trace +52 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds.xdot +83 -0
- package/src/layout/neato/__fixtures__/ipsep/model-mds.xdot.stderr +2 -0
- package/src/layout/neato/__fixtures__/ipsep/model-subset.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/model-subset.trace +49 -0
- package/src/layout/neato/__fixtures__/ipsep/model-subset.xdot +83 -0
- package/src/layout/neato/__fixtures__/ipsep/model-subset.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-ipsep.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-ipsep.trace +211 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-ipsep.xdot +60 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-ipsep.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-vpsc.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-vpsc.trace +50 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-vpsc.xdot +60 -0
- package/src/layout/neato/__fixtures__/ipsep/overlap-vpsc.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self-dired.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self-dired.trace +51 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self-dired.xdot +72 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self-dired.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self.gv +1 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self.trace +43 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self.xdot +84 -0
- package/src/layout/neato/__fixtures__/ipsep/start-self.xdot.stderr +0 -0
- package/src/layout/neato/__fixtures__/quad-prog-vpsc.ts +109 -0
- package/src/layout/neato/__fixtures__/stress-models.ts +64 -0
- package/src/layout/neato/circuit.ts +31 -0
- package/src/layout/neato/index.ts +2 -2
- package/src/layout/neato/init.ts +25 -34
- package/src/layout/neato/ipsep-opts.ts +158 -0
- package/src/layout/neato/lu.ts +189 -0
- package/src/layout/neato/matinv.ts +37 -0
- package/src/layout/neato/quad-prog-vpsc-overlap.ts +365 -0
- package/src/layout/neato/quad-prog-vpsc.ts +416 -0
- package/src/layout/neato/start.ts +9 -24
- package/src/layout/neato/stress-cola.ts +497 -0
- package/src/layout/neato/stress-kernel.ts +1 -17
- package/src/layout/neato/stress-models.ts +212 -0
- package/src/layout/neato/vpsc-adjust.ts +35 -66
- package/src/render/color-resolve.ts +25 -2
- package/src/render/dot/edge-draw.ts +7 -4
- package/src/render/dot.ts +14 -1
- package/src/render/svg-arrow-ops.ts +35 -19
- package/src/render/svg-edge-arrows.ts +7 -6
- package/src/render/svg-helpers.ts +19 -11
- package/src/render/svg.ts +15 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-init.d.ts","sourceRoot":"","sources":["../../src/common/graph-init.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"graph-init.d.ts","sourceRoot":"","sources":["../../src/common/graph-init.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAe/C,yCAAyC;AACzC,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,yCAAyC;AACzC,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,yCAAyC;AACzC,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,yCAAyC;AACzC,eAAO,MAAM,UAAU,IAAI,CAAC;AAQ5B;;;GAGG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAKzC,8DAA8D;AAC9D,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,SAAS,IAAI,CAAC;AAW3B;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,CAY5C;AA2JD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAuG7D"}
|
|
@@ -29,19 +29,14 @@ export declare function emitHtmlBox(box: Box, pos: Point, renderer: RendererPlug
|
|
|
29
29
|
/** Emit one text run. @see lib/common/htmltable.c:emit_htextspans */
|
|
30
30
|
export declare function emitHtmlLine(line: PlacedLine, pos: Point, renderer: RendererPlugin, job: RenderJob): void;
|
|
31
31
|
/**
|
|
32
|
-
* Emit a placed HTML IMG through the
|
|
32
|
+
* Emit a placed HTML IMG through the shared gvrender_usershape: the cell's
|
|
33
|
+
* content box is the polygon, imagepos is the fixed "mc", and the scale is the
|
|
34
|
+
* IMG's own SCALE, else the object's imagescale (C env->imgscale).
|
|
33
35
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* the result (imagepos "mc" — hardcoded by emit_html_img).
|
|
37
|
-
*
|
|
38
|
-
* SCALE falls back to the object's imagescale attribute (C
|
|
39
|
-
* env->imgscale, default "false") when the IMG has no SCALE attr.
|
|
40
|
-
*
|
|
41
|
-
* @see lib/common/htmltable.c:emit_html_img (line 597)
|
|
42
|
-
* @see lib/gvc/gvrender.c:gvrender_usershape (line 670)
|
|
36
|
+
* @see lib/common/htmltable.c:emit_html_img
|
|
37
|
+
* @see lib/gvc/gvrender.c:gvrender_usershape
|
|
43
38
|
*/
|
|
44
|
-
export declare function emitHtmlImg(img: PlacedImage, pos: Point,
|
|
39
|
+
export declare function emitHtmlImg(img: PlacedImage, pos: Point, _renderer: RendererPlugin, job: RenderJob): void;
|
|
45
40
|
/**
|
|
46
41
|
* Emit one positioned HTML cell.
|
|
47
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"htmltable-emit.d.ts","sourceRoot":"","sources":["../../src/common/htmltable-emit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"htmltable-emit.d.ts","sourceRoot":"","sources":["../../src/common/htmltable-emit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAY1F,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AAgBhE,6DAA6D;AAC7D,wBAAgB,WAAW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E,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA6BnE"}
|
|
@@ -38,10 +38,21 @@ export declare function assignShapeInfo(n: Node, polyDesc: PolygonT): void;
|
|
|
38
38
|
/** Build the node's label via the unified C make_label boundary. */
|
|
39
39
|
export declare function buildNodeLabel(n: Node, g: Graph, measurer: TextMeasurer): void;
|
|
40
40
|
/**
|
|
41
|
-
* poly_init's
|
|
41
|
+
* poly_init's shapefile and `image` warnings, emitted once per layout from
|
|
42
|
+
* common_init_node after the label is made. For a custom shape gvusershape_size
|
|
43
|
+
* fails (the port never sizes shapefiles), so gvusershape_open's "while
|
|
44
|
+
* opening" line precedes the "No or improper shapefile" line. For a non-custom
|
|
45
|
+
* shape's `image=`, the caller-supplied sizer/resolver decides; when it
|
|
46
|
+
* supplies nothing the same pair is emitted.
|
|
47
|
+
* @see lib/common/shapes.c:2027-2046
|
|
48
|
+
*/
|
|
49
|
+
export declare function warnPolyInitImages(n: Node, g: Graph): void;
|
|
50
|
+
/**
|
|
51
|
+
* poly_init's imagesize for a non-usershape's `image=`: gvusershape_size in
|
|
42
52
|
* points plus the fixed 2pt padding, and GD_has_images. Null (C's imagesize 0)
|
|
43
53
|
* when there is no image or the caller supplies no size; the missing-image
|
|
44
|
-
* warning stays in
|
|
54
|
+
* warning stays in warnPolyInitImages. A custom shape's size is never
|
|
55
|
+
* available (the port opens no shapefiles).
|
|
45
56
|
* @see lib/common/shapes.c:2039-2051
|
|
46
57
|
*/
|
|
47
58
|
export declare function nodeImageSize(n: Node, g: Graph): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poly-init.d.ts","sourceRoot":"","sources":["../../src/common/poly-init.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,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;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAgBjE;AAED;;;;;GAKG;AACH,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAS9E;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,CAgB1D;AAUD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAOrF;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAexE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* graph_init's `Gvimagepath = agget(g, "imagepath")`, falling back to
|
|
3
|
+
* `Gvfilepath` (unported: it comes from the command line/environment, so the
|
|
4
|
+
* fallback is NULL).
|
|
5
|
+
* @see lib/common/input.c:graph_init (627-630)
|
|
6
|
+
*/
|
|
7
|
+
export declare function setImagePath(imagepath: string | undefined): void;
|
|
8
|
+
/**
|
|
9
|
+
* The directory list `mkDirlist` builds: the split on PATHSEP, empty tokens
|
|
10
|
+
* included only as `tok` yields them (it yields none for an empty list).
|
|
11
|
+
* @see lib/common/utils.c:mkDirlist
|
|
12
|
+
*/
|
|
13
|
+
export declare function mkDirlist(list: string): string[];
|
|
14
|
+
/**
|
|
15
|
+
* NULL (here null) for a trivial name or one not found along `Gvimagepath`;
|
|
16
|
+
* the name itself when the list is empty or the name is absolute.
|
|
17
|
+
* Unported branches: `HTTPServerEnVar` (SERVER_NAME, always NULL) and
|
|
18
|
+
* `Gvfilepath` (GV_FILE_PATH, a basename search) - the browser has no
|
|
19
|
+
* environment.
|
|
20
|
+
* @see lib/common/utils.c:safefile (253-311)
|
|
21
|
+
*/
|
|
22
|
+
export declare function safefile(filename: string | undefined): string | null;
|
|
23
|
+
//# sourceMappingURL=safefile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safefile.d.ts","sourceRoot":"","sources":["../../src/common/safefile.ts"],"names":[],"mappings":"AA8BA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAEhE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAEhD;AAYD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAMpE"}
|
package/dist/common/shapes.d.ts
CHANGED
|
@@ -23,14 +23,14 @@ export declare const Shapes: readonly ShapeDesc[];
|
|
|
23
23
|
* @see lib/common/shapes.c:Shapes (first entry is default for no such shape)
|
|
24
24
|
*/
|
|
25
25
|
export declare const DEFAULT_SHAPE_NAME = "box";
|
|
26
|
+
/** The name `bind_shape` forces for a shapefile node and `user_shape` accepts. */
|
|
27
|
+
export declare const CUSTOM_SHAPE_NAME = "custom";
|
|
26
28
|
/**
|
|
27
|
-
* Returns the ShapeDesc for the given name (case-sensitive).
|
|
28
|
-
*
|
|
29
|
+
* Returns the ShapeDesc for the given name (case-sensitive). A non-empty
|
|
30
|
+
* shapefile that `safefile` accepts on a non-epsf shape forces
|
|
31
|
+
* `custom`; `custom` and unknown names go to `userShape`.
|
|
29
32
|
*
|
|
30
|
-
*
|
|
31
|
-
* and shapefile branches require a node argument not yet ported.
|
|
32
|
-
*
|
|
33
|
-
* @see lib/common/shapes.c:bind_shape
|
|
33
|
+
* @see lib/common/shapes.c:bind_shape (3970-3989)
|
|
34
34
|
*/
|
|
35
35
|
export declare function bindShape(name: string, shapefile?: string): ShapeDesc;
|
|
36
36
|
//# sourceMappingURL=shapes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shapes.d.ts","sourceRoot":"","sources":["../../src/common/shapes.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAa,KAAK,SAAS,EAAuB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"shapes.d.ts","sourceRoot":"","sources":["../../src/common/shapes.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAa,KAAK,SAAS,EAAuB,MAAM,YAAY,CAAC;AAqE5E;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,SAAS,EA+D7B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAExC,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,WAAW,CAAC;AA6B1C;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CASrE"}
|
package/dist/gvc/device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/gvc/device.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,UAAU,EAAW,MAAM,cAAc,CAAC;AAKnD,OAAO,EAAE,SAAS,EAA0D,MAAM,UAAU,CAAC;AA4B7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E,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CA6BnG;AAqCD,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI,CAyClF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI,CAIzF;AAiGD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI,CAQvF;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,GAAG,MAAM,CAyBtF;AAkCD;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,MAAM,CAkF9F"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Image type sniffing: the magic-byte table and `imagetype` of gvusershape.c,
|
|
3
|
+
* run over the bytes the caller's image resolver supplies (AD-5) instead of a
|
|
4
|
+
* `FILE *`.
|
|
5
|
+
*
|
|
6
|
+
* `ImageType` is an as-const object rather than C's enum / a `const enum`
|
|
7
|
+
* (TS6-forward: `const enum` does not survive declaration boundaries); its
|
|
8
|
+
* members and order are `imagetype_t`.
|
|
9
|
+
*
|
|
10
|
+
* @see lib/common/usershape.h:imagetype_t, lib/gvc/gvusershape.c:55-175
|
|
11
|
+
*/
|
|
12
|
+
/** @see lib/common/usershape.h:24-27 */
|
|
13
|
+
export declare const ImageType: {
|
|
14
|
+
readonly FT_NULL: 0;
|
|
15
|
+
readonly FT_BMP: 1;
|
|
16
|
+
readonly FT_GIF: 2;
|
|
17
|
+
readonly FT_PNG: 3;
|
|
18
|
+
readonly FT_JPEG: 4;
|
|
19
|
+
readonly FT_PDF: 5;
|
|
20
|
+
readonly FT_PS: 6;
|
|
21
|
+
readonly FT_EPS: 7;
|
|
22
|
+
readonly FT_SVG: 8;
|
|
23
|
+
readonly FT_XML: 9;
|
|
24
|
+
readonly FT_RIFF: 10;
|
|
25
|
+
readonly FT_WEBP: 11;
|
|
26
|
+
readonly FT_ICO: 12;
|
|
27
|
+
readonly FT_TIFF: 13;
|
|
28
|
+
};
|
|
29
|
+
export type ImageType = (typeof ImageType)[keyof typeof ImageType];
|
|
30
|
+
/** Result of `imagetype`: `us->type` and `us->stringtype`. */
|
|
31
|
+
export interface ImageTypeResult {
|
|
32
|
+
type: ImageType;
|
|
33
|
+
stringtype: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Sniff the image type from its leading bytes. Fewer than HDRLEN bytes, or no
|
|
37
|
+
* matching template, is FT_NULL with stringtype "(lib)".
|
|
38
|
+
* @see lib/gvc/gvusershape.c:imagetype
|
|
39
|
+
*/
|
|
40
|
+
export declare function imagetype(bytes: Uint8Array): ImageTypeResult;
|
|
41
|
+
//# sourceMappingURL=image-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-type.d.ts","sourceRoot":"","sources":["../../src/gvc/image-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,wCAAwC;AACxC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAeZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAoCnE,8DAA8D;AAC9D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAiCD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,eAAe,CAY5D"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `gvrender_usershape`: fit an image (node `image=`, HTML `<IMG>`) into the
|
|
3
|
+
* bounding box of a polygon according to `imagescale` / `imagepos`, then hand
|
|
4
|
+
* the resulting box to the renderer's loadimage hook (`usershape`).
|
|
5
|
+
*
|
|
6
|
+
* @see lib/gvc/gvrender.c:gvrender_usershape (670-790)
|
|
7
|
+
*/
|
|
8
|
+
import type { Point } from '../model/geom.js';
|
|
9
|
+
import type { RenderJob } from './job.js';
|
|
10
|
+
import { type ImageSizer } from './usershape.js';
|
|
11
|
+
/** @see lib/gvc/gvcjob.h:imagescale_t */
|
|
12
|
+
export declare const ImageScale: {
|
|
13
|
+
readonly False: "false";
|
|
14
|
+
readonly True: "true";
|
|
15
|
+
readonly Width: "width";
|
|
16
|
+
readonly Height: "height";
|
|
17
|
+
readonly Both: "both";
|
|
18
|
+
};
|
|
19
|
+
export type ImageScale = (typeof ImageScale)[keyof typeof ImageScale];
|
|
20
|
+
/** @see lib/gvc/gvcjob.h:imagepos_t */
|
|
21
|
+
export declare const ImagePos: {
|
|
22
|
+
readonly TopLeft: "tl";
|
|
23
|
+
readonly TopCenter: "tc";
|
|
24
|
+
readonly TopRight: "tr";
|
|
25
|
+
readonly MiddleLeft: "ml";
|
|
26
|
+
readonly MiddleCenter: "mc";
|
|
27
|
+
readonly MiddleRight: "mr";
|
|
28
|
+
readonly BottomLeft: "bl";
|
|
29
|
+
readonly BottomCenter: "bc";
|
|
30
|
+
readonly BottomRight: "br";
|
|
31
|
+
};
|
|
32
|
+
export type ImagePos = (typeof ImagePos)[keyof typeof ImagePos];
|
|
33
|
+
/** @see lib/gvc/gvrender.c:get_imagescale */
|
|
34
|
+
export declare function getImagescale(s: string): ImageScale;
|
|
35
|
+
/** @see lib/gvc/gvrender.c:get_imagepos */
|
|
36
|
+
export declare function getImagepos(s: string): ImagePos;
|
|
37
|
+
/**
|
|
38
|
+
* The rendering context's image sizer (the port's gvusershape dictionary),
|
|
39
|
+
* set on the job by `render` beside `imageResolver`; undefined means the
|
|
40
|
+
* global `setImageSizer`.
|
|
41
|
+
*/
|
|
42
|
+
declare module './job.js' {
|
|
43
|
+
interface RenderJob {
|
|
44
|
+
imageSizer?: ImageSizer | undefined;
|
|
45
|
+
/** `job->loadimage.engine` is set (a `gvloadimage_select` succeeded). */
|
|
46
|
+
loadimageEngineSet?: boolean;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The `type` strings `gvloadimage_core.c:gvloadimage_core_types` serves
|
|
51
|
+
* (`<stringtype>:<target>`); the plugin set lacks e.g. `png:json`.
|
|
52
|
+
* @see plugin/core/gvloadimage_core.c:280-335
|
|
53
|
+
*/
|
|
54
|
+
export declare const CORE_LOADIMAGE_TYPES: ReadonlySet<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Scale the image `name` to the bounding box of polygon `a` per `imagescale`,
|
|
57
|
+
* place it per `imagepos`, convert to device coordinates unless the renderer
|
|
58
|
+
* transforms, and pass the box to the renderer's `usershape` (gvloadimage).
|
|
59
|
+
*
|
|
60
|
+
* `gvusershape_find` is "the caller supplies `name`" (sizer or resolver); the
|
|
61
|
+
* `find_user_shape` / `library_shape` branch is a no-op because no renderer
|
|
62
|
+
* has `library_shape`. `filled` is only read by loadimage plugins that paint a
|
|
63
|
+
* background (none of svg/xdot), so it is not forwarded.
|
|
64
|
+
*
|
|
65
|
+
* @see lib/gvc/gvrender.c:gvrender_usershape
|
|
66
|
+
*/
|
|
67
|
+
export declare function gvrenderUsershape(job: RenderJob, name: string, a: readonly Point[], _filled: boolean, imagescale: string, imagepos: string): void;
|
|
68
|
+
//# sourceMappingURL=render-usershape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-usershape.d.ts","sourceRoot":"","sources":["../../src/gvc/render-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izer } from '../common/htmltable-types.js';
|
|
2
2
|
import { type ImageResolver } from './image-resolver.js';
|
|
3
|
+
import { type ImageTypeResult } from './image-type.js';
|
|
3
4
|
export type { ImageSizer } from '../common/htmltable-types.js';
|
|
4
5
|
/**
|
|
5
6
|
* Register (or clear, with null) the global image sizer consulted by
|
|
@@ -24,6 +25,25 @@ export declare const STRERROR_ENOENT = "No such file or directory";
|
|
|
24
25
|
* finding the file.
|
|
25
26
|
*/
|
|
26
27
|
export declare function imageIsSupplied(name: string, sizer?: ImageSizer, resolver?: ImageResolver): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The type `gvusershape_open` sniffs from the bytes the resolver supplies for
|
|
30
|
+
* `name`; null when there are none (a sizer-only image has no type, AD-5).
|
|
31
|
+
* @see lib/gvc/gvusershape.c:gvusershape_open (imagetype)
|
|
32
|
+
*/
|
|
33
|
+
export declare function usershapeType(name: string, resolver?: ImageResolver): ImageTypeResult | null;
|
|
34
|
+
/**
|
|
35
|
+
* The `agwarningf` text for bytes whose magic matches nothing and that name no
|
|
36
|
+
* shape-library member (the port has none).
|
|
37
|
+
* @see lib/gvc/gvusershape.c:gvusershape_open (FT_NULL case)
|
|
38
|
+
*/
|
|
39
|
+
export declare function imageNotFoundWarning(name: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* The first warning `gvusershape_open` prints when it fails for `name`, or
|
|
42
|
+
* null when it succeeds: nothing supplied (the open failure) or resolver
|
|
43
|
+
* bytes of unknown type (FT_NULL).
|
|
44
|
+
* @see lib/gvc/gvusershape.c:gvusershape_open
|
|
45
|
+
*/
|
|
46
|
+
export declare function imageOpenFailure(name: string, sizer?: ImageSizer, resolver?: ImageResolver): string | null;
|
|
27
47
|
/**
|
|
28
48
|
* The `agwarningf` text `gvusershape_file_access` prints when it cannot open
|
|
29
49
|
* `name`. C does not cache a failed open, so every sizing request repeats it.
|
|
@@ -44,9 +64,11 @@ export declare function usershapeDpi(attrs: ReadonlyMap<string, string>): number
|
|
|
44
64
|
* the result is `(int)(px * 72 / dpi)` (the file's own dpi is unknown to a
|
|
45
65
|
* sizer, so `us->dpi` is 0 as for most formats). Null stands for C's (-1,-1):
|
|
46
66
|
* empty name or an image nobody supplies.
|
|
67
|
+
* @param resolver - the caller's resolver, when it has one; bytes it supplies
|
|
68
|
+
* with unknown magic make the open fail (no size).
|
|
47
69
|
* @see lib/gvc/gvusershape.c:gvusershape_size, gvusershape_size_dpi
|
|
48
70
|
*/
|
|
49
|
-
export declare function usershapeSizePts(name: string | undefined, dpi: number, sizer?: ImageSizer): {
|
|
71
|
+
export declare function usershapeSizePts(name: string | undefined, dpi: number, sizer?: ImageSizer, resolver?: ImageResolver): {
|
|
50
72
|
x: number;
|
|
51
73
|
y: number;
|
|
52
74
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usershape.d.ts","sourceRoot":"","sources":["../../src/gvc/usershape.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzE,YAAY,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI/D;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,CAK5D;AAED,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAE1E;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,aAAa,GAAG,OAAO,CAGnG;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAA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