@knowvah/dot-engine 2.3.1 → 2.4.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/arith.d.ts +12 -0
- package/dist/common/arith.d.ts.map +1 -1
- package/dist/common/edge-in-box.d.ts +31 -0
- package/dist/common/edge-in-box.d.ts.map +1 -0
- package/dist/common/htmltable-emit.d.ts +1 -1
- package/dist/common/htmltable-emit.d.ts.map +1 -1
- package/dist/common/make-label.d.ts +3 -1
- package/dist/common/make-label.d.ts.map +1 -1
- package/dist/common/poly-gencode.d.ts +12 -1
- package/dist/common/poly-gencode.d.ts.map +1 -1
- package/dist/gvc/device.d.ts.map +1 -1
- package/dist/gvc/emit-gates.d.ts +35 -0
- package/dist/gvc/emit-gates.d.ts.map +1 -0
- package/dist/gvc/job.d.ts +4 -0
- package/dist/gvc/job.d.ts.map +1 -1
- package/dist/gvc/viewport.d.ts +13 -0
- package/dist/gvc/viewport.d.ts.map +1 -1
- package/dist/index.js +813 -542
- package/dist/index.js.map +4 -4
- package/dist/layout/circo/blockpath.d.ts +1 -38
- package/dist/layout/circo/blockpath.d.ts.map +1 -1
- package/dist/layout/circo/crossings.d.ts +59 -0
- package/dist/layout/circo/crossings.d.ts.map +1 -0
- package/dist/layout/dot/edge-route-chain.d.ts +5 -3
- package/dist/layout/dot/edge-route-chain.d.ts.map +1 -1
- package/dist/layout/dot/edge-route.d.ts.map +1 -1
- package/dist/layout/dot/index.d.ts +10 -2
- package/dist/layout/dot/index.d.ts.map +1 -1
- package/dist/layout/dot/ortho-adapter.d.ts +6 -2
- package/dist/layout/dot/ortho-adapter.d.ts.map +1 -1
- package/dist/layout/dot/pack-components.d.ts +4 -1
- package/dist/layout/dot/pack-components.d.ts.map +1 -1
- package/dist/layout/dot/splines-flat-multi.d.ts +4 -4
- package/dist/layout/dot/splines-flat.d.ts +1 -11
- package/dist/layout/dot/splines-flat.d.ts.map +1 -1
- package/dist/layout/dot/splines-route.d.ts.map +1 -1
- package/dist/layout/neato/constraint-adjust.d.ts +32 -0
- package/dist/layout/neato/constraint-adjust.d.ts.map +1 -1
- package/dist/layout/neato/multispline.d.ts.map +1 -1
- package/dist/layout/neato/splines.d.ts.map +1 -1
- package/dist/layout/pack/poly-place.d.ts.map +1 -1
- package/dist/layout/sfdp/__fixtures__/pcp-rotate-native.d.ts +23 -0
- package/dist/layout/sfdp/__fixtures__/pcp-rotate-native.d.ts.map +1 -0
- package/dist/layout/sfdp/spring-driver.d.ts +6 -0
- package/dist/layout/sfdp/spring-driver.d.ts.map +1 -1
- package/dist/ortho/index.d.ts +4 -1
- package/dist/ortho/index.d.ts.map +1 -1
- package/dist/ortho/maze.d.ts +5 -2
- package/dist/ortho/maze.d.ts.map +1 -1
- package/dist/ortho/partition.d.ts +8 -1
- package/dist/ortho/partition.d.ts.map +1 -1
- package/dist/ortho/trap-segment.d.ts +2 -1
- package/dist/ortho/trap-segment.d.ts.map +1 -1
- package/dist/ortho/trapezoid.d.ts.map +1 -1
- package/dist/parser/index.d.ts +0 -7
- package/dist/parser/index.d.ts.map +1 -1
- package/dist/parser/number-scan.d.ts +31 -0
- package/dist/parser/number-scan.d.ts.map +1 -0
- package/dist/render/dot/edge-draw.d.ts +12 -0
- package/dist/render/dot/edge-draw.d.ts.map +1 -1
- package/dist/render/svg-graph.d.ts +6 -5
- package/dist/render/svg-graph.d.ts.map +1 -1
- package/dist/render/svg.d.ts +2 -21
- package/dist/render/svg.d.ts.map +1 -1
- package/dist/render.js +813 -542
- package/dist/render.js.map +4 -4
- package/dist/xdot/parse.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/arith.ts +25 -0
- package/src/common/edge-in-box.ts +54 -0
- package/src/common/graph-init.ts +3 -3
- package/src/common/htmltable-emit.ts +4 -2
- package/src/common/make-label.ts +3 -1
- package/src/common/poly-gencode.ts +18 -4
- package/src/gvc/device.ts +8 -41
- package/src/gvc/edge-labels.ts +30 -13
- package/src/gvc/emit-gates.ts +89 -0
- package/src/gvc/job.ts +4 -0
- package/src/gvc/viewport.ts +29 -0
- package/src/layout/circo/blockpath.ts +6 -125
- package/src/layout/circo/crossings.ts +171 -0
- package/src/layout/dot/__fixtures__/2784.dot +1 -0
- package/src/layout/dot/__fixtures__/2784.native-16.1.svg +48 -0
- package/src/layout/dot/edge-route-chain.ts +11 -5
- package/src/layout/dot/edge-route.ts +2 -1
- package/src/layout/dot/index.ts +14 -4
- package/src/layout/dot/ortho-adapter.ts +7 -3
- package/src/layout/dot/pack-components.ts +11 -4
- package/src/layout/dot/splines-flat-multi.ts +4 -4
- package/src/layout/dot/splines-flat.ts +5 -32
- package/src/layout/dot/splines-route.ts +10 -2
- package/src/layout/dot/splines.ts +6 -6
- package/src/layout/neato/constraint-adjust.ts +10 -4
- package/src/layout/neato/multispline.ts +26 -9
- package/src/layout/neato/splines.ts +7 -7
- package/src/layout/pack/poly-place.ts +9 -2
- package/src/layout/sfdp/__fixtures__/pcp-rotate-native.ts +94 -0
- package/src/layout/sfdp/spring-driver.ts +45 -13
- package/src/ortho/index.ts +22 -13
- package/src/ortho/maze.ts +8 -2
- package/src/ortho/partition.ts +17 -2
- package/src/ortho/trap-segment.ts +47 -24
- package/src/ortho/trapezoid.ts +24 -15
- package/src/parser/dot.js +334 -343
- package/src/parser/dot.pegjs +19 -5
- package/src/parser/index.ts +15 -0
- package/src/parser/number-scan.ts +118 -0
- package/src/render/dot/edge-draw.ts +25 -0
- package/src/render/svg-graph.ts +77 -47
- package/src/render/svg-helpers.ts +2 -2
- package/src/render/svg.ts +4 -41
- package/src/xdot/parse.ts +19 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* scan.l's chkNum diagnostics. The NUMBER regexp allows one trailing '.' or
|
|
3
|
+
* LETTER so the lexer can catch a number run into a name (`00splines`) or a
|
|
4
|
+
* second dot (`1.2.3`); chkNum then warns and yyless() hands the last
|
|
5
|
+
* character back, splitting the text into two tokens. The PEG grammar already
|
|
6
|
+
* yields the split tokens; this pass reproduces the warnings, which a
|
|
7
|
+
* backtracking PEG action would emit unreliably (an alternative that fails
|
|
8
|
+
* after matching a number would re-run it).
|
|
9
|
+
*
|
|
10
|
+
* The walk runs over Stripper output (comments and string interiors blanked,
|
|
11
|
+
* same length, newlines kept), lexing the INITIAL-state tokens that can
|
|
12
|
+
* contain or abut a number: NAME, NUMBER, and the `--` / `->` edge operators.
|
|
13
|
+
*
|
|
14
|
+
* @see lib/cgraph/scan.l:106-110 (LETTER, DIGIT, NAME, NUMBER), :135, chkNum
|
|
15
|
+
*/
|
|
16
|
+
/** One chkNum warning: the matched NUMBER text and its line. */
|
|
17
|
+
export interface NumberAmbiguity {
|
|
18
|
+
text: string;
|
|
19
|
+
line: number;
|
|
20
|
+
offset: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Every badly delimited NUMBER in `src`, in lexing order. `stripped` is
|
|
24
|
+
* Stripper.strip(src) (same length); tokens are lexed from it, lines are
|
|
25
|
+
* counted in `src` (the stripper blanks newlines inside comments and strings,
|
|
26
|
+
* which scan.l still counts). @see lib/cgraph/scan.l:chkNum
|
|
27
|
+
*/
|
|
28
|
+
export declare function scanNumberAmbiguities(src: string, stripped: string): NumberAmbiguity[];
|
|
29
|
+
/** agwarningf text for one chkNum ambiguity; a parsed string is "input". */
|
|
30
|
+
export declare function numberAmbiguityMessage(a: NumberAmbiguity): string;
|
|
31
|
+
//# sourceMappingURL=number-scan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-scan.d.ts","sourceRoot":"","sources":["../../src/parser/number-scan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,gEAAgE;AAChE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAsED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,CAatF;AAED,4EAA4E;AAC5E,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,eAAe,GAAG,MAAM,CAEjE"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @see lib/common/emit.c:2389 multicolor · :2422 tapered · :2583 ortho
|
|
9
9
|
*/
|
|
10
10
|
import type { Edge } from '../../model/edge.js';
|
|
11
|
+
import type { Point } from '../../model/geom.js';
|
|
11
12
|
import type { Bezier } from '../../model/geom.js';
|
|
12
13
|
import type { ArrowDrawOp } from '../../common/arrows-types.js';
|
|
13
14
|
import type { RenderJob } from '../../gvc/job.js';
|
|
@@ -19,6 +20,17 @@ export declare abstract class EdgeDrawBase extends DotWriterBase {
|
|
|
19
20
|
protected penwidth: number[];
|
|
20
21
|
protected abstract styleOp(job: RenderJob): string;
|
|
21
22
|
protected abstract penOp(job: RenderJob): string;
|
|
23
|
+
abstract polyline(pts: Point[], job: RenderJob): void;
|
|
24
|
+
/**
|
|
25
|
+
* emit_attachment's draw calls (decorate=true): gvrender_set_style with the
|
|
26
|
+
* default line style sets the obj's rawstyle/pen/penwidth (setlinewidth 1),
|
|
27
|
+
* gvrender_set_pencolor sets the pen to the label fontcolor (first entry of
|
|
28
|
+
* a color list), then gvrender_polyline → xdot_polyline emits the style ops
|
|
29
|
+
* (`S 5 -solid`; setlinewidth is filtered), the pen color and `L 3`.
|
|
30
|
+
* @see lib/common/emit.c:emit_attachment (1886-1893)
|
|
31
|
+
* @see lib/gvc/gvrender.c:gvrender_set_style / gvrender_set_pencolor
|
|
32
|
+
*/
|
|
33
|
+
attachmentPolyline(pts: Point[], pencolor: string, job: RenderJob): void;
|
|
22
34
|
/**
|
|
23
35
|
* The plain single-colour spline branch of beginEdge — lifted verbatim so the
|
|
24
36
|
* four-way spline-kind chain above stays readable; no branch was reordered or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-draw.d.ts","sourceRoot":"","sources":["../../../src/render/dot/edge-draw.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"edge-draw.d.ts","sourceRoot":"","sources":["../../../src/render/dot/edge-draw.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAU7C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAmC7C,gFAAgF;AAChF,8BAAsB,YAAa,SAAQ,aAAa;IACtD,6EAA6E;IAC7E,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAyB;IACrD,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM;IAClD,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM;IAChD,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI;IAErD;;;;;;;;OAQG;IACH,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI;IAWxE;;;;;;OAMG;IACH,SAAS,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,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) only in the common no-margin case.
|
|
18
18
|
*/
|
|
19
|
-
export declare function emitSvgTag(job: RenderJob): void;
|
|
19
|
+
export declare function emitSvgTag(job: RenderJob, svgid?: string | undefined): void;
|
|
20
20
|
/**
|
|
21
21
|
* Emit the graph `<g>` open tag with y-flip transform.
|
|
22
22
|
*
|
|
@@ -46,17 +46,18 @@ export declare function emitGraphTitle(g: Graph, job: RenderJob): void;
|
|
|
46
46
|
*/
|
|
47
47
|
export declare function resolveGraphBgcolor(bgcolorAttr: string | undefined): string;
|
|
48
48
|
/**
|
|
49
|
-
* Emit background polygon covering the
|
|
49
|
+
* Emit background polygon covering the page clip box (C gvrender_box over
|
|
50
|
+
* job->clip — bb ± pad as setup_page evaluates it, see setupPageClip).
|
|
50
51
|
*
|
|
51
52
|
* Omits the polygon entirely when resolvedColor is the transparent sentinel.
|
|
52
53
|
* Coordinates are in the group's local frame (y-flipped via devscale.y=-1):
|
|
53
|
-
* x: [
|
|
54
|
-
* y (flipped): [-
|
|
54
|
+
* x: [clip.ll.x, clip.ur.x]
|
|
55
|
+
* y (flipped): [-clip.ur.y, -clip.ll.y]
|
|
55
56
|
*
|
|
56
57
|
* @see plugin/core/gvrender_core_svg.c:svg_begin_page
|
|
57
58
|
* @see lib/common/emit.c:emit_background:1476
|
|
58
59
|
*/
|
|
59
|
-
export declare function emitGraphBackground(
|
|
60
|
+
export declare function emitGraphBackground(clip: Box, resolvedColor: string, job: RenderJob): void;
|
|
60
61
|
/**
|
|
61
62
|
* Emit SVG prologue, padded `<svg>` tag, graph `<g>` with y-flip transform,
|
|
62
63
|
* and background polygon (color resolved from bgcolor attr).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg-graph.d.ts","sourceRoot":"","sources":["../../src/render/svg-graph.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,GAAG,EAAS,MAA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AG,EAAE,SAAS,GAAG,IAAI,CAiC3D;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI,CAEhE;AAED,qDAAqD;AACrD,wBAAgB,UAAU,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAE/C;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI,CAEhE;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAEhD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAEhD"}
|
package/dist/render/svg.d.ts
CHANGED
|
@@ -20,27 +20,8 @@ import type { Point, Box } from '../model/geom.js';
|
|
|
20
20
|
import type { TextSpan } from '../common/emit-types.js';
|
|
21
21
|
import type { RendererPlugin, LabelType } from '../gvc/context.js';
|
|
22
22
|
import type { RenderJob } from '../gvc/job.js';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* C's gvrender defers the `<g>` until a draw op, so an edge whose content falls
|
|
26
|
-
* entirely outside the clip emits no group (emit.c:edge_in_box tests each piece
|
|
27
|
-
* vs job->clip via boxf_overlap/overlap_label).
|
|
28
|
-
*
|
|
29
|
-
* The only piece that can legitimately fall OUTSIDE the clip on this corpus is a
|
|
30
|
-
* degenerate labeled-flat label: it is spline-less, so map_edge leaves it at its
|
|
31
|
-
* internal (un-normalized) x-frame position while the clip is the final frame.
|
|
32
|
-
* The `overlapLabel` test on the main label reproduces C's draw-iff-overlap for
|
|
33
|
-
* exactly that case — on-canvas (2368) → drawn; off-canvas (2368_1, negative
|
|
34
|
-
* un-normalized x) → suppressed. A present spline always lies within the clip
|
|
35
|
-
* (GD_bb contains it), and head/tail/xlabels are positioned at on-canvas
|
|
36
|
-
* endpoints, so those keep their existing unconditional triggers — adding an
|
|
37
|
-
* overlap test there only risks suppressing legitimately-drawn content (it
|
|
38
|
-
* regressed neato/circo edges whose spl.bb is computed differently). The `set`
|
|
39
|
-
* guard on the main label is kept: the port retains an unplaced (`pos=0,0`,
|
|
40
|
-
* `set=false`) label on merged back-edges where C has none.
|
|
41
|
-
* @see lib/common/emit.c:edge_in_box, lib/common/utils.c:overlap_label
|
|
42
|
-
*/
|
|
43
|
-
export declare function edgeHasDrawableContent(e: Edge, clip: Box): boolean;
|
|
23
|
+
import { edgeHasDrawableContent } from '../common/edge-in-box.js';
|
|
24
|
+
export { edgeHasDrawableContent };
|
|
44
25
|
export declare class SvgRenderer implements RendererPlugin {
|
|
45
26
|
readonly type = "svg";
|
|
46
27
|
/** @see plugin/core/gvplugin_core.c registration table */
|
package/dist/render/svg.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/render/svg.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,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,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/render/svg.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,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,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,E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