portograph 0.0.0-stage → 0.2.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/LICENSE +202 -0
- package/README.md +233 -2
- package/bin/cli.mjs +256 -0
- package/bin/compute.mjs +177 -0
- package/bin/font-check.d.mts +4 -0
- package/bin/font-check.mjs +58 -0
- package/bin/portograph.mjs +23 -0
- package/dist/cli.d.cts +109 -0
- package/dist/cli.d.ts +109 -0
- package/dist/geometry/index.d.cts +14 -0
- package/dist/geometry/index.d.ts +14 -0
- package/dist/geometry/oriented.d.cts +34 -0
- package/dist/geometry/oriented.d.ts +34 -0
- package/dist/geometry/planar.d.cts +69 -0
- package/dist/geometry/planar.d.ts +69 -0
- package/dist/index.cjs +20 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1 -0
- package/dist/internal.d.cts +73 -0
- package/dist/internal.d.ts +73 -0
- package/dist/layout/alignment-targets.d.cts +76 -0
- package/dist/layout/alignment-targets.d.ts +76 -0
- package/dist/layout/approach.d.cts +13 -0
- package/dist/layout/approach.d.ts +13 -0
- package/dist/layout/attempt-counters.d.cts +117 -0
- package/dist/layout/attempt-counters.d.ts +117 -0
- package/dist/layout/attempt-ledger.d.cts +31 -0
- package/dist/layout/attempt-ledger.d.ts +31 -0
- package/dist/layout/attempt-timings.d.cts +41 -0
- package/dist/layout/attempt-timings.d.ts +41 -0
- package/dist/layout/bands.d.cts +348 -0
- package/dist/layout/bands.d.ts +348 -0
- package/dist/layout/bar-width.d.cts +9 -0
- package/dist/layout/bar-width.d.ts +9 -0
- package/dist/layout/bars.d.cts +26 -0
- package/dist/layout/bars.d.ts +26 -0
- package/dist/layout/block-checks.d.cts +5 -0
- package/dist/layout/block-checks.d.ts +5 -0
- package/dist/layout/box-writers.d.cts +53 -0
- package/dist/layout/box-writers.d.ts +53 -0
- package/dist/layout/bundle-channel.d.cts +8 -0
- package/dist/layout/bundle-channel.d.ts +8 -0
- package/dist/layout/bundle-geometry.d.cts +163 -0
- package/dist/layout/bundle-geometry.d.ts +163 -0
- package/dist/layout/bundle-junctions.d.cts +41 -0
- package/dist/layout/bundle-junctions.d.ts +41 -0
- package/dist/layout/bundle-merge.d.cts +4 -0
- package/dist/layout/bundle-merge.d.ts +4 -0
- package/dist/layout/bundle-need.d.cts +23 -0
- package/dist/layout/bundle-need.d.ts +23 -0
- package/dist/layout/bundle-order.d.cts +10 -0
- package/dist/layout/bundle-order.d.ts +10 -0
- package/dist/layout/bundle-paths.d.cts +33 -0
- package/dist/layout/bundle-paths.d.ts +33 -0
- package/dist/layout/bundles.d.cts +5 -0
- package/dist/layout/bundles.d.ts +5 -0
- package/dist/layout/bus-room.d.cts +48 -0
- package/dist/layout/bus-room.d.ts +48 -0
- package/dist/layout/bus.d.cts +100 -0
- package/dist/layout/bus.d.ts +100 -0
- package/dist/layout/centre.d.cts +108 -0
- package/dist/layout/centre.d.ts +108 -0
- package/dist/layout/chord-boxes.d.cts +9 -0
- package/dist/layout/chord-boxes.d.ts +9 -0
- package/dist/layout/chord-clear.d.cts +32 -0
- package/dist/layout/chord-clear.d.ts +32 -0
- package/dist/layout/close-up.d.cts +37 -0
- package/dist/layout/close-up.d.ts +37 -0
- package/dist/layout/column-arrangement.d.cts +37 -0
- package/dist/layout/column-arrangement.d.ts +37 -0
- package/dist/layout/columns.d.cts +240 -0
- package/dist/layout/columns.d.ts +240 -0
- package/dist/layout/constraints/catalogue.d.cts +25 -0
- package/dist/layout/constraints/catalogue.d.ts +25 -0
- package/dist/layout/constraints/evaluate.d.cts +24 -0
- package/dist/layout/constraints/evaluate.d.ts +24 -0
- package/dist/layout/constraints/index.d.cts +8 -0
- package/dist/layout/constraints/index.d.ts +8 -0
- package/dist/layout/constraints/separation.d.cts +33 -0
- package/dist/layout/constraints/separation.d.ts +33 -0
- package/dist/layout/constraints/types.d.cts +65 -0
- package/dist/layout/constraints/types.d.ts +65 -0
- package/dist/layout/corridor-order.d.cts +61 -0
- package/dist/layout/corridor-order.d.ts +61 -0
- package/dist/layout/course-bypass.d.cts +63 -0
- package/dist/layout/course-bypass.d.ts +63 -0
- package/dist/layout/course-gap.d.cts +54 -0
- package/dist/layout/course-gap.d.ts +54 -0
- package/dist/layout/course-lanes.d.cts +79 -0
- package/dist/layout/course-lanes.d.ts +79 -0
- package/dist/layout/course-measure.d.cts +114 -0
- package/dist/layout/course-measure.d.ts +114 -0
- package/dist/layout/course-plan.d.cts +22 -0
- package/dist/layout/course-plan.d.ts +22 -0
- package/dist/layout/course-rows.d.cts +51 -0
- package/dist/layout/course-rows.d.ts +51 -0
- package/dist/layout/courses.d.cts +31 -0
- package/dist/layout/courses.d.ts +31 -0
- package/dist/layout/decide.d.cts +123 -0
- package/dist/layout/decide.d.ts +123 -0
- package/dist/layout/diagonal-text.d.cts +49 -0
- package/dist/layout/diagonal-text.d.ts +49 -0
- package/dist/layout/direct-families.d.cts +91 -0
- package/dist/layout/direct-families.d.ts +91 -0
- package/dist/layout/elk-graph.d.cts +36 -0
- package/dist/layout/elk-graph.d.ts +36 -0
- package/dist/layout/elk-worker.d.cts +34 -0
- package/dist/layout/elk-worker.d.ts +34 -0
- package/dist/layout/end-trim.d.cts +41 -0
- package/dist/layout/end-trim.d.ts +41 -0
- package/dist/layout/face-centre.d.cts +25 -0
- package/dist/layout/face-centre.d.ts +25 -0
- package/dist/layout/fan-admission.d.cts +47 -0
- package/dist/layout/fan-admission.d.ts +47 -0
- package/dist/layout/fan-spread.d.cts +43 -0
- package/dist/layout/fan-spread.d.ts +43 -0
- package/dist/layout/feed-order.d.cts +53 -0
- package/dist/layout/feed-order.d.ts +53 -0
- package/dist/layout/feed-split.d.cts +34 -0
- package/dist/layout/feed-split.d.ts +34 -0
- package/dist/layout/flanks.d.cts +21 -0
- package/dist/layout/flanks.d.ts +21 -0
- package/dist/layout/frame-paths.d.cts +209 -0
- package/dist/layout/frame-paths.d.ts +209 -0
- package/dist/layout/frames.d.cts +112 -0
- package/dist/layout/frames.d.ts +112 -0
- package/dist/layout/gap-band.d.cts +10 -0
- package/dist/layout/gap-band.d.ts +10 -0
- package/dist/layout/gap-plan.d.cts +229 -0
- package/dist/layout/gap-plan.d.ts +229 -0
- package/dist/layout/gap-room.d.cts +71 -0
- package/dist/layout/gap-room.d.ts +71 -0
- package/dist/layout/gap-runs.d.cts +95 -0
- package/dist/layout/gap-runs.d.ts +95 -0
- package/dist/layout/given-back.d.cts +23 -0
- package/dist/layout/given-back.d.ts +23 -0
- package/dist/layout/grid-chains.d.cts +84 -0
- package/dist/layout/grid-chains.d.ts +84 -0
- package/dist/layout/grid.d.cts +314 -0
- package/dist/layout/grid.d.ts +314 -0
- package/dist/layout/group-exit-check.d.cts +36 -0
- package/dist/layout/group-exit-check.d.ts +36 -0
- package/dist/layout/group-exits.d.cts +53 -0
- package/dist/layout/group-exits.d.ts +53 -0
- package/dist/layout/group-padding.d.cts +6 -0
- package/dist/layout/group-padding.d.ts +6 -0
- package/dist/layout/growth-guard.d.cts +25 -0
- package/dist/layout/growth-guard.d.ts +25 -0
- package/dist/layout/joint-order.d.cts +149 -0
- package/dist/layout/joint-order.d.ts +149 -0
- package/dist/layout/label-room-guard.d.cts +8 -0
- package/dist/layout/label-room-guard.d.ts +8 -0
- package/dist/layout/lane-kind.d.cts +11 -0
- package/dist/layout/lane-kind.d.ts +11 -0
- package/dist/layout/lanes.d.cts +278 -0
- package/dist/layout/lanes.d.ts +278 -0
- package/dist/layout/legend.d.cts +88 -0
- package/dist/layout/legend.d.ts +88 -0
- package/dist/layout/lift-judge.d.cts +28 -0
- package/dist/layout/lift-judge.d.ts +28 -0
- package/dist/layout/lift.d.cts +164 -0
- package/dist/layout/lift.d.ts +164 -0
- package/dist/layout/link-label-geometry.d.cts +32 -0
- package/dist/layout/link-label-geometry.d.ts +32 -0
- package/dist/layout/link-labels.d.cts +129 -0
- package/dist/layout/link-labels.d.ts +129 -0
- package/dist/layout/link-layer.d.cts +6 -0
- package/dist/layout/link-layer.d.ts +6 -0
- package/dist/layout/move-reservations.d.cts +49 -0
- package/dist/layout/move-reservations.d.ts +49 -0
- package/dist/layout/mutation.d.cts +32 -0
- package/dist/layout/mutation.d.ts +32 -0
- package/dist/layout/node-geometry.d.cts +3 -0
- package/dist/layout/node-geometry.d.ts +3 -0
- package/dist/layout/objective.d.cts +232 -0
- package/dist/layout/objective.d.ts +232 -0
- package/dist/layout/overlay-nest.d.cts +27 -0
- package/dist/layout/overlay-nest.d.ts +27 -0
- package/dist/layout/overlay-order.d.cts +140 -0
- package/dist/layout/overlay-order.d.ts +140 -0
- package/dist/layout/overlay-paths.d.cts +303 -0
- package/dist/layout/overlay-paths.d.ts +303 -0
- package/dist/layout/overlay-place.d.cts +99 -0
- package/dist/layout/overlay-place.d.ts +99 -0
- package/dist/layout/overlay-tracks.d.cts +93 -0
- package/dist/layout/overlay-tracks.d.ts +93 -0
- package/dist/layout/overlay-window.d.cts +83 -0
- package/dist/layout/overlay-window.d.ts +83 -0
- package/dist/layout/parallel-sets.d.cts +51 -0
- package/dist/layout/parallel-sets.d.ts +51 -0
- package/dist/layout/parent-stand.d.cts +40 -0
- package/dist/layout/parent-stand.d.ts +40 -0
- package/dist/layout/path-end.d.cts +34 -0
- package/dist/layout/path-end.d.ts +34 -0
- package/dist/layout/peers.d.cts +28 -0
- package/dist/layout/peers.d.ts +28 -0
- package/dist/layout/pill-reach.d.cts +14 -0
- package/dist/layout/pill-reach.d.ts +14 -0
- package/dist/layout/placement-attempt.d.cts +58 -0
- package/dist/layout/placement-attempt.d.ts +58 -0
- package/dist/layout/placement-refusal.d.cts +67 -0
- package/dist/layout/placement-refusal.d.ts +67 -0
- package/dist/layout/port-insets.d.cts +15 -0
- package/dist/layout/port-insets.d.ts +15 -0
- package/dist/layout/port-side.d.cts +8 -0
- package/dist/layout/port-side.d.ts +8 -0
- package/dist/layout/postconditions.d.cts +40 -0
- package/dist/layout/postconditions.d.ts +40 -0
- package/dist/layout/rank-cells.d.cts +24 -0
- package/dist/layout/rank-cells.d.ts +24 -0
- package/dist/layout/rank-input.d.cts +8 -0
- package/dist/layout/rank-input.d.ts +8 -0
- package/dist/layout/ranks.d.cts +36 -0
- package/dist/layout/ranks.d.ts +36 -0
- package/dist/layout/read/arrangement.d.cts +3 -0
- package/dist/layout/read/arrangement.d.ts +3 -0
- package/dist/layout/read/canton.d.cts +48 -0
- package/dist/layout/read/canton.d.ts +48 -0
- package/dist/layout/read/chain.d.cts +11 -0
- package/dist/layout/read/chain.d.ts +11 -0
- package/dist/layout/read/courses.d.cts +67 -0
- package/dist/layout/read/courses.d.ts +67 -0
- package/dist/layout/read/crossings.d.cts +79 -0
- package/dist/layout/read/crossings.d.ts +79 -0
- package/dist/layout/read/feeds.d.cts +53 -0
- package/dist/layout/read/feeds.d.ts +53 -0
- package/dist/layout/read/overlay-straight.d.cts +33 -0
- package/dist/layout/read/overlay-straight.d.ts +33 -0
- package/dist/layout/read/parent-spread.d.cts +13 -0
- package/dist/layout/read/parent-spread.d.ts +13 -0
- package/dist/layout/read/tier.d.cts +19 -0
- package/dist/layout/read/tier.d.ts +19 -0
- package/dist/layout/read/title-edge.d.cts +19 -0
- package/dist/layout/read/title-edge.d.ts +19 -0
- package/dist/layout/rectangle-index.d.cts +33 -0
- package/dist/layout/rectangle-index.d.ts +33 -0
- package/dist/layout/region-rebuild.d.cts +9 -0
- package/dist/layout/region-rebuild.d.ts +9 -0
- package/dist/layout/regions.d.cts +37 -0
- package/dist/layout/regions.d.ts +37 -0
- package/dist/layout/reservation-checks.d.cts +16 -0
- package/dist/layout/reservation-checks.d.ts +16 -0
- package/dist/layout/reservations.d.cts +267 -0
- package/dist/layout/reservations.d.ts +267 -0
- package/dist/layout/row-paths.d.cts +62 -0
- package/dist/layout/row-paths.d.ts +62 -0
- package/dist/layout/rows.d.cts +5 -0
- package/dist/layout/rows.d.ts +5 -0
- package/dist/layout/rule-geometry-hook.d.cts +5 -0
- package/dist/layout/rule-geometry-hook.d.ts +5 -0
- package/dist/layout/run-label-box.d.cts +139 -0
- package/dist/layout/run-label-box.d.ts +139 -0
- package/dist/layout/side-chords.d.cts +55 -0
- package/dist/layout/side-chords.d.ts +55 -0
- package/dist/layout/side-hints.d.cts +34 -0
- package/dist/layout/side-hints.d.ts +34 -0
- package/dist/layout/side-judge.d.cts +65 -0
- package/dist/layout/side-judge.d.ts +65 -0
- package/dist/layout/side-lanes.d.cts +27 -0
- package/dist/layout/side-lanes.d.ts +27 -0
- package/dist/layout/side-measure.d.cts +55 -0
- package/dist/layout/side-measure.d.ts +55 -0
- package/dist/layout/sides-one.d.cts +24 -0
- package/dist/layout/sides-one.d.ts +24 -0
- package/dist/layout/sides-two.d.cts +159 -0
- package/dist/layout/sides-two.d.ts +159 -0
- package/dist/layout/size.d.cts +114 -0
- package/dist/layout/size.d.ts +114 -0
- package/dist/layout/skeleton-geometry.d.cts +38 -0
- package/dist/layout/skeleton-geometry.d.ts +38 -0
- package/dist/layout/skeleton-graph.d.cts +33 -0
- package/dist/layout/skeleton-graph.d.ts +33 -0
- package/dist/layout/skeleton.d.cts +21 -0
- package/dist/layout/skeleton.d.ts +21 -0
- package/dist/layout/solid-blocks.d.cts +24 -0
- package/dist/layout/solid-blocks.d.ts +24 -0
- package/dist/layout/span-judge.d.cts +13 -0
- package/dist/layout/span-judge.d.ts +13 -0
- package/dist/layout/span-lanes.d.cts +37 -0
- package/dist/layout/span-lanes.d.ts +37 -0
- package/dist/layout/span-measure.d.cts +35 -0
- package/dist/layout/span-measure.d.ts +35 -0
- package/dist/layout/stagger.d.cts +40 -0
- package/dist/layout/stagger.d.ts +40 -0
- package/dist/layout/title-room.d.cts +50 -0
- package/dist/layout/title-room.d.ts +50 -0
- package/dist/layout/tolerance.d.cts +60 -0
- package/dist/layout/tolerance.d.ts +60 -0
- package/dist/layout/trial-copy.d.cts +9 -0
- package/dist/layout/trial-copy.d.ts +9 -0
- package/dist/layout/trial-findings.d.cts +25 -0
- package/dist/layout/trial-findings.d.ts +25 -0
- package/dist/layout/trunk.d.cts +69 -0
- package/dist/layout/trunk.d.ts +69 -0
- package/dist/layout/turn-measure.d.cts +42 -0
- package/dist/layout/turn-measure.d.ts +42 -0
- package/dist/layout/turn-order.d.cts +83 -0
- package/dist/layout/turn-order.d.ts +83 -0
- package/dist/migrate/index.d.cts +13 -0
- package/dist/migrate/index.d.ts +13 -0
- package/dist/model/classes.d.cts +21 -0
- package/dist/model/classes.d.ts +21 -0
- package/dist/model/document.d.cts +174 -0
- package/dist/model/document.d.ts +174 -0
- package/dist/model/geometry.d.cts +12 -0
- package/dist/model/geometry.d.ts +12 -0
- package/dist/model/index.d.cts +5 -0
- package/dist/model/index.d.ts +5 -0
- package/dist/model/json-equality.d.cts +2 -0
- package/dist/model/json-equality.d.ts +2 -0
- package/dist/model/layout.d.cts +1142 -0
- package/dist/model/layout.d.ts +1142 -0
- package/dist/model/link-ids.d.cts +16 -0
- package/dist/model/link-ids.d.ts +16 -0
- package/dist/model/model.d.cts +26 -0
- package/dist/model/model.d.ts +26 -0
- package/dist/model/read-cache.d.cts +20 -0
- package/dist/model/read-cache.d.ts +20 -0
- package/dist/node.cjs +43 -0
- package/dist/node.d.cts +6 -0
- package/dist/parse/css.d.cts +2 -0
- package/dist/parse/css.d.ts +2 -0
- package/dist/parse/index.d.cts +23 -0
- package/dist/parse/index.d.ts +23 -0
- package/dist/parse/link-order.d.cts +24 -0
- package/dist/parse/link-order.d.ts +24 -0
- package/dist/parse/validation.d.cts +39 -0
- package/dist/parse/validation.d.ts +39 -0
- package/dist/pipeline/budget.d.cts +28 -0
- package/dist/pipeline/budget.d.ts +28 -0
- package/dist/pipeline/deadline.d.cts +1 -0
- package/dist/pipeline/deadline.d.ts +1 -0
- package/dist/pipeline/driver.d.cts +14 -0
- package/dist/pipeline/driver.d.ts +14 -0
- package/dist/pipeline/env.d.cts +54 -0
- package/dist/pipeline/env.d.ts +54 -0
- package/dist/pipeline/index.d.cts +17 -0
- package/dist/pipeline/index.d.ts +17 -0
- package/dist/pipeline/initial.d.cts +3 -0
- package/dist/pipeline/initial.d.ts +3 -0
- package/dist/pipeline/lift-round.d.cts +9 -0
- package/dist/pipeline/lift-round.d.ts +9 -0
- package/dist/pipeline/limits.d.cts +16 -0
- package/dist/pipeline/limits.d.ts +16 -0
- package/dist/pipeline/options.d.cts +85 -0
- package/dist/pipeline/options.d.ts +85 -0
- package/dist/pipeline/place.d.cts +9 -0
- package/dist/pipeline/place.d.ts +9 -0
- package/dist/pipeline/publish.d.cts +4 -0
- package/dist/pipeline/publish.d.ts +4 -0
- package/dist/pipeline/round.d.cts +86 -0
- package/dist/pipeline/round.d.ts +86 -0
- package/dist/pipeline/rounds.d.cts +85 -0
- package/dist/pipeline/rounds.d.ts +85 -0
- package/dist/pipeline/state.d.cts +46 -0
- package/dist/pipeline/state.d.ts +46 -0
- package/dist/pipeline/width-budget.d.cts +6 -0
- package/dist/pipeline/width-budget.d.ts +6 -0
- package/dist/portograph-avoid-worker.mjs +260 -0
- package/dist/portograph.js +43369 -0
- package/dist/portograph.umd.cjs +154 -0
- package/dist/profiles/network/content.d.cts +29 -0
- package/dist/profiles/network/content.d.ts +29 -0
- package/dist/profiles/network/icons.d.cts +27 -0
- package/dist/profiles/network/icons.d.ts +27 -0
- package/dist/profiles/network/snack.d.cts +50 -0
- package/dist/profiles/network/snack.d.ts +50 -0
- package/dist/profiles/network/theme.d.cts +246 -0
- package/dist/profiles/network/theme.d.ts +246 -0
- package/dist/profiles/network/themes.d.cts +60 -0
- package/dist/profiles/network/themes.d.ts +60 -0
- package/dist/profiles/network/tiers.d.cts +8 -0
- package/dist/profiles/network/tiers.d.ts +8 -0
- package/dist/render/anonymous-end.d.cts +8 -0
- package/dist/render/anonymous-end.d.ts +8 -0
- package/dist/render/author-css.d.cts +9 -0
- package/dist/render/author-css.d.ts +9 -0
- package/dist/render/check-options.d.cts +8 -0
- package/dist/render/check-options.d.ts +8 -0
- package/dist/render/drawio.d.cts +35 -0
- package/dist/render/drawio.d.ts +35 -0
- package/dist/render/frame-order.d.cts +36 -0
- package/dist/render/frame-order.d.ts +36 -0
- package/dist/render/index.d.cts +19 -0
- package/dist/render/index.d.ts +19 -0
- package/dist/render/shared.d.cts +137 -0
- package/dist/render/shared.d.ts +137 -0
- package/dist/render/svg.d.cts +22 -0
- package/dist/render/svg.d.ts +22 -0
- package/dist/render/theme.d.cts +81 -0
- package/dist/render/theme.d.ts +81 -0
- package/dist/render/tooltips.d.cts +11 -0
- package/dist/render/tooltips.d.ts +11 -0
- package/dist/resolve/fan-family.d.cts +19 -0
- package/dist/resolve/fan-family.d.ts +19 -0
- package/dist/resolve/index.d.cts +30 -0
- package/dist/resolve/index.d.ts +30 -0
- package/dist/resolve/mesh-bus.d.cts +19 -0
- package/dist/resolve/mesh-bus.d.ts +19 -0
- package/dist/resolve/solid-blocks.d.cts +2 -0
- package/dist/resolve/solid-blocks.d.ts +2 -0
- package/dist/route/containment.d.cts +8 -0
- package/dist/route/containment.d.ts +8 -0
- package/dist/route/index.d.cts +48 -0
- package/dist/route/index.d.ts +48 -0
- package/dist/route/obstacles.d.cts +59 -0
- package/dist/route/obstacles.d.ts +59 -0
- package/dist/route/paths.d.cts +100 -0
- package/dist/route/paths.d.ts +100 -0
- package/dist/route/plan.d.cts +182 -0
- package/dist/route/plan.d.ts +182 -0
- package/dist/route/reservations.d.cts +15 -0
- package/dist/route/reservations.d.ts +15 -0
- package/dist/route/types.d.cts +59 -0
- package/dist/route/types.d.ts +59 -0
- package/dist/route/validate.d.cts +41 -0
- package/dist/route/validate.d.ts +41 -0
- package/dist/route/worker.d.cts +73 -0
- package/dist/route/worker.d.ts +73 -0
- package/dist/score/counts.d.cts +12 -0
- package/dist/score/counts.d.ts +12 -0
- package/dist/score/gates.d.cts +16 -0
- package/dist/score/gates.d.ts +16 -0
- package/dist/score/geometry.d.cts +2 -0
- package/dist/score/geometry.d.ts +2 -0
- package/dist/score/index.d.cts +5 -0
- package/dist/score/index.d.ts +5 -0
- package/dist/score/metrics.d.cts +7 -0
- package/dist/score/metrics.d.ts +7 -0
- package/dist/score/model.d.cts +76 -0
- package/dist/score/model.d.ts +76 -0
- package/dist/score/types.d.cts +135 -0
- package/dist/score/types.d.ts +135 -0
- package/dist/text/font-metrics.d.cts +9 -0
- package/dist/text/font-metrics.d.ts +9 -0
- package/dist/text/index.d.cts +32 -0
- package/dist/text/index.d.ts +32 -0
- package/dist/theme/content.d.cts +33 -0
- package/dist/theme/content.d.ts +33 -0
- package/dist/theme/geometry.d.cts +81 -0
- package/dist/theme/geometry.d.ts +81 -0
- package/dist/theme/legend.d.cts +26 -0
- package/dist/theme/legend.d.ts +26 -0
- package/dist/warm-elk.cjs +43 -0
- package/package.json +109 -4
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Diagnostic, Layer } from './model/index.js';
|
|
2
|
+
import { ThemeMode } from './profiles/network/theme.js';
|
|
3
|
+
export declare const VERBS: readonly [{
|
|
4
|
+
readonly name: "layout";
|
|
5
|
+
readonly summary: "YAML in, layout JSON out";
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "render";
|
|
8
|
+
readonly summary: "YAML in, SVG plus layout JSON and score out";
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "score";
|
|
11
|
+
readonly summary: "layout JSON in, gates and soft score out";
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "migrate";
|
|
14
|
+
readonly summary: "d3-fd YAML in, schema v2 YAML out";
|
|
15
|
+
}];
|
|
16
|
+
export type Verb = (typeof VERBS)[number]['name'];
|
|
17
|
+
/**
|
|
18
|
+
* Process exit codes.
|
|
19
|
+
*
|
|
20
|
+
* `gateFailure` means a *complete* score report says an enforced gate or assertion failed — the
|
|
21
|
+
* artifacts are still written, because a failing report is the useful output. `inputError` covers
|
|
22
|
+
* usage, unreadable files, invalid YAML or JSON, and the node-count refusal. `processingFailure`
|
|
23
|
+
* covers a command deadline, a missing solver worker or module and any internal pipeline failure:
|
|
24
|
+
* calling one of those an input error would blame the author for the tool's own limit.
|
|
25
|
+
*/
|
|
26
|
+
export declare const EXIT: {
|
|
27
|
+
readonly ok: 0;
|
|
28
|
+
readonly gateFailure: 1;
|
|
29
|
+
readonly inputError: 2;
|
|
30
|
+
readonly processingFailure: 3;
|
|
31
|
+
};
|
|
32
|
+
/** Wall milliseconds a whole command may take before its compute boundary is terminated. */
|
|
33
|
+
export declare const COMMAND_DEADLINE_MS = 120000;
|
|
34
|
+
export declare function isVerb(value: string): value is Verb;
|
|
35
|
+
export declare class UsageError extends Error {
|
|
36
|
+
constructor(message: string);
|
|
37
|
+
}
|
|
38
|
+
/** How diagnostics and status lines reach stderr: a text line each, or one JSON object per line. */
|
|
39
|
+
export declare const DIAGNOSTIC_FORMATS: readonly ["text", "json"];
|
|
40
|
+
export type DiagnosticFormat = (typeof DIAGNOSTIC_FORMATS)[number];
|
|
41
|
+
export interface Command {
|
|
42
|
+
verb: Verb;
|
|
43
|
+
/** A path, or `-` for stdin. */
|
|
44
|
+
input: string;
|
|
45
|
+
/** Absent means the primary artifact goes to stdout; so does `-`, which parsing drops. */
|
|
46
|
+
output?: string;
|
|
47
|
+
/** Absent means `text`. */
|
|
48
|
+
diagnostics?: DiagnosticFormat;
|
|
49
|
+
force: boolean;
|
|
50
|
+
allowGateFailures: boolean;
|
|
51
|
+
/** Keep the wall-clock stage timings in the layout and score JSON. Absent means they are left out, so two runs write the same bytes. */
|
|
52
|
+
timings: boolean;
|
|
53
|
+
/** `render` only. Absent means both families draw and `document.overlays` applies. */
|
|
54
|
+
layers?: Layer[];
|
|
55
|
+
/** `render` only. Absent means SVG. */
|
|
56
|
+
format?: Format;
|
|
57
|
+
/** `render --format drawio` only. Absent means `auto`: every colour as a light/dark pair. */
|
|
58
|
+
theme?: ThemeMode | 'auto';
|
|
59
|
+
/** `render --format drawio` only. Absent means `on-run`. */
|
|
60
|
+
labels?: LabelPlacement;
|
|
61
|
+
/** `render --format drawio` only. Absent means `cisco19`. */
|
|
62
|
+
icons?: IconSet;
|
|
63
|
+
}
|
|
64
|
+
export declare function helpText(): string;
|
|
65
|
+
/** The formats `render` can write. The SVG carries all three palettes; a draw.io file carries one. */
|
|
66
|
+
export declare const FORMATS: readonly ["svg", "drawio"];
|
|
67
|
+
export type Format = (typeof FORMATS)[number];
|
|
68
|
+
/** Where a draw.io link label sits; see `DrawioOptions.labels`. */
|
|
69
|
+
export declare const LABEL_PLACEMENTS: readonly ["on-run", "measured"];
|
|
70
|
+
export type LabelPlacement = (typeof LABEL_PLACEMENTS)[number];
|
|
71
|
+
/** Which glyphs a draw.io export draws; see `DrawioOptions.icons`. */
|
|
72
|
+
export declare const ICON_SETS: readonly ["cisco19", "profile"];
|
|
73
|
+
export type IconSet = (typeof ICON_SETS)[number];
|
|
74
|
+
/**
|
|
75
|
+
* Parse one already-validated verb's arguments. Options and the single input path may come in any
|
|
76
|
+
* order, each option at most once, and an option a verb does not accept is a usage error rather
|
|
77
|
+
* than something quietly ignored.
|
|
78
|
+
*/
|
|
79
|
+
export declare function parseCommand(verb: Verb, args: readonly string[]): Command;
|
|
80
|
+
export declare function sidecarPaths(output: string): {
|
|
81
|
+
layout: string;
|
|
82
|
+
score: string;
|
|
83
|
+
};
|
|
84
|
+
/** Where a diagnostic points in the authored text, as `parseWithDiagnostics` reports it. */
|
|
85
|
+
export interface DiagnosticPlace {
|
|
86
|
+
source: string;
|
|
87
|
+
line: number;
|
|
88
|
+
column: number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* One diagnostic, one stderr line, built from its structured fields. A parse diagnostic keeps its
|
|
92
|
+
* exact JSONPath and, when the place in the text is known, adds `file:line:col` before it; a later
|
|
93
|
+
* stage names the objects it is about, because those have no source path.
|
|
94
|
+
*/
|
|
95
|
+
export declare function formatDiagnostic(diagnostic: Diagnostic & {
|
|
96
|
+
path?: string;
|
|
97
|
+
}, place?: DiagnosticPlace): string;
|
|
98
|
+
/**
|
|
99
|
+
* The same diagnostic as one JSON object, for `--diagnostics json`. The structured fields stay as
|
|
100
|
+
* they are; a place in the authored text is added as `source`, `line` and `column`.
|
|
101
|
+
*/
|
|
102
|
+
export declare function formatDiagnosticJson(diagnostic: Diagnostic & {
|
|
103
|
+
path?: string;
|
|
104
|
+
}, place?: DiagnosticPlace): string;
|
|
105
|
+
/**
|
|
106
|
+
* A status line of the command itself (not a diagnostic of the document) in the chosen format.
|
|
107
|
+
* The text form names severity and code only when `showCode` is set, as the coded failures do.
|
|
108
|
+
*/
|
|
109
|
+
export declare function formatStatus(format: DiagnosticFormat | undefined, severity: 'info' | 'warning' | 'error', code: string, message: string, showCode?: boolean): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Point, Rect, Side, Size } from '../model/geometry.cjs';
|
|
2
|
+
/** Offset is measured from the left on top/bottom, and from the top on left/right. */
|
|
3
|
+
export declare function portAnchor(node: Rect, side: Side, offset: number): Point;
|
|
4
|
+
export interface PortPillPlacement {
|
|
5
|
+
anchor: Point;
|
|
6
|
+
/** Unrotated size; add owner/layer when inserting the pill into LayoutModel. */
|
|
7
|
+
size: Size;
|
|
8
|
+
bounds: Rect;
|
|
9
|
+
textRotation: -90 | 0;
|
|
10
|
+
radius: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function placePortPill(node: Rect, side: Side, offset: number, size: Size): PortPillPlacement;
|
|
13
|
+
/** Pills face along the outward normal, so their unrotated height runs along every side. */
|
|
14
|
+
export declare function portPitch(pills: readonly Size[]): number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Point, Rect, Side, Size } from '../model/geometry.js';
|
|
2
|
+
/** Offset is measured from the left on top/bottom, and from the top on left/right. */
|
|
3
|
+
export declare function portAnchor(node: Rect, side: Side, offset: number): Point;
|
|
4
|
+
export interface PortPillPlacement {
|
|
5
|
+
anchor: Point;
|
|
6
|
+
/** Unrotated size; add owner/layer when inserting the pill into LayoutModel. */
|
|
7
|
+
size: Size;
|
|
8
|
+
bounds: Rect;
|
|
9
|
+
textRotation: -90 | 0;
|
|
10
|
+
radius: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function placePortPill(node: Rect, side: Side, offset: number, size: Size): PortPillPlacement;
|
|
13
|
+
/** Pills face along the outward normal, so their unrotated height runs along every side. */
|
|
14
|
+
export declare function portPitch(pills: readonly Size[]): number;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PathSegment, Point, Rect } from '../model/index.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* A rectangle `width` x `height` turned by `degrees` about `centre` (architecture-2 ticket 20): the area the text of a turned
|
|
4
|
+
* label really occupies. Its upright box is `orientedBounds`.
|
|
5
|
+
*/
|
|
6
|
+
export interface OrientedBox {
|
|
7
|
+
centre: Point;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
degrees: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The area a label is tested by: its stored upright box, or the turned rectangle of a label whose heading is not 0 or ±90.
|
|
14
|
+
* Every predicate below takes either. Two upright boxes go to the `planar.ts` predicates unchanged, so an upright label gives
|
|
15
|
+
* exactly the results it gave before ticket 20.
|
|
16
|
+
*/
|
|
17
|
+
export type Area = Rect | OrientedBox;
|
|
18
|
+
export declare const isOriented: (area: Area) => area is OrientedBox;
|
|
19
|
+
/** The four corners of `box`, in order round the rectangle. */
|
|
20
|
+
export declare function orientedCorners(box: OrientedBox): Point[];
|
|
21
|
+
/** The upright box of `box`. */
|
|
22
|
+
export declare function orientedBounds(box: OrientedBox): Rect;
|
|
23
|
+
/** True when the two areas overlap by more than `EPS` (open overlap, as `rectOverlap`). */
|
|
24
|
+
export declare function areaOverlap(a: Area, b: Area): boolean;
|
|
25
|
+
/** True when segment `s` meets the closed area, contact within `EPS` included (as `segmentRect`). */
|
|
26
|
+
export declare function areaSegment(s: PathSegment, area: Area): boolean;
|
|
27
|
+
/** The distance between two areas, zero when they meet (as `rectDistance`). */
|
|
28
|
+
export declare function areaDistance(a: Area, b: Area): number;
|
|
29
|
+
/** The distance from segment `s` to the area, zero when it meets it (as `segmentRectDistance`). */
|
|
30
|
+
export declare function areaSegmentDistance(s: PathSegment, area: Area): number;
|
|
31
|
+
/** True when every corner of the area lies in `box`, within `EPS`. */
|
|
32
|
+
export declare function areaInside(area: Area, box: Rect): boolean;
|
|
33
|
+
/** The upright box of an area. */
|
|
34
|
+
export declare const areaBounds: (area: Area) => Rect;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PathSegment, Point, Rect } from '../model/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* A rectangle `width` x `height` turned by `degrees` about `centre` (architecture-2 ticket 20): the area the text of a turned
|
|
4
|
+
* label really occupies. Its upright box is `orientedBounds`.
|
|
5
|
+
*/
|
|
6
|
+
export interface OrientedBox {
|
|
7
|
+
centre: Point;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
degrees: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The area a label is tested by: its stored upright box, or the turned rectangle of a label whose heading is not 0 or ±90.
|
|
14
|
+
* Every predicate below takes either. Two upright boxes go to the `planar.ts` predicates unchanged, so an upright label gives
|
|
15
|
+
* exactly the results it gave before ticket 20.
|
|
16
|
+
*/
|
|
17
|
+
export type Area = Rect | OrientedBox;
|
|
18
|
+
export declare const isOriented: (area: Area) => area is OrientedBox;
|
|
19
|
+
/** The four corners of `box`, in order round the rectangle. */
|
|
20
|
+
export declare function orientedCorners(box: OrientedBox): Point[];
|
|
21
|
+
/** The upright box of `box`. */
|
|
22
|
+
export declare function orientedBounds(box: OrientedBox): Rect;
|
|
23
|
+
/** True when the two areas overlap by more than `EPS` (open overlap, as `rectOverlap`). */
|
|
24
|
+
export declare function areaOverlap(a: Area, b: Area): boolean;
|
|
25
|
+
/** True when segment `s` meets the closed area, contact within `EPS` included (as `segmentRect`). */
|
|
26
|
+
export declare function areaSegment(s: PathSegment, area: Area): boolean;
|
|
27
|
+
/** The distance between two areas, zero when they meet (as `rectDistance`). */
|
|
28
|
+
export declare function areaDistance(a: Area, b: Area): number;
|
|
29
|
+
/** The distance from segment `s` to the area, zero when it meets it (as `segmentRectDistance`). */
|
|
30
|
+
export declare function areaSegmentDistance(s: PathSegment, area: Area): number;
|
|
31
|
+
/** True when every corner of the area lies in `box`, within `EPS`. */
|
|
32
|
+
export declare function areaInside(area: Area, box: Rect): boolean;
|
|
33
|
+
/** The upright box of an area. */
|
|
34
|
+
export declare const areaBounds: (area: Area) => Rect;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PathSegment, Point, Rect } from '../model/index.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* The tolerance published geometry is compared at: does this rectangle contain, overlap or touch
|
|
4
|
+
* that one, at a few ULP of a coordinate (stress ticket 13).
|
|
5
|
+
*
|
|
6
|
+
* It is **not** the tolerance placement measures a reservation at. That one is ten times coarser and
|
|
7
|
+
* lives in `src/layout/tolerance.ts` as `PLACEMENT_EPS`, and every comparison of that meaning reads the name. Meeting one of those and this one in the same reading is the
|
|
8
|
+
* trap stress ticket 19 named: two numbers answering two questions, not two opinions about one.
|
|
9
|
+
*/
|
|
10
|
+
export declare const EPS = 1e-7;
|
|
11
|
+
export declare const near: (a: number, b: number) => boolean;
|
|
12
|
+
export declare const samePoint: (a: Point, b: Point) => boolean;
|
|
13
|
+
export declare const right: (r: Rect) => number;
|
|
14
|
+
export declare const bottom: (r: Rect) => number;
|
|
15
|
+
export declare const area: (r: Rect) => number;
|
|
16
|
+
export declare const contains: (outer: Rect, inner: Rect) => boolean;
|
|
17
|
+
export declare const pointRect: (p: Point) => Rect;
|
|
18
|
+
export declare const rectOverlap: (a: Rect, b: Rect) => boolean;
|
|
19
|
+
export declare const rectDistance: (a: Rect, b: Rect) => number;
|
|
20
|
+
export declare const length: (s: PathSegment) => number;
|
|
21
|
+
export declare const bounds: (s: PathSegment) => Rect;
|
|
22
|
+
export declare const horizontal: (s: PathSegment) => boolean;
|
|
23
|
+
export declare const vertical: (s: PathSegment) => boolean;
|
|
24
|
+
export declare function pointSegmentDistance(p: Point, s: PathSegment): number;
|
|
25
|
+
/** Closed rectangle intersection, including boundary contact. */
|
|
26
|
+
export declare function segmentRect(s: PathSegment, r: Rect): boolean;
|
|
27
|
+
export declare function segmentRectDistance(s: PathSegment, r: Rect): number;
|
|
28
|
+
/** A segment by its two ends: a published `PathSegment`, or a piece of a polyline that has no owner yet. */
|
|
29
|
+
export interface Piece {
|
|
30
|
+
from: Point;
|
|
31
|
+
to: Point;
|
|
32
|
+
}
|
|
33
|
+
/** The points of a polyline less each point that is the same point (`samePoint`) as the last one kept: the one "same point" of every turn reader. */
|
|
34
|
+
export declare function distinctPoints(points: readonly Point[]): Point[];
|
|
35
|
+
/**
|
|
36
|
+
* Whether a path turns where piece `b` follows piece `a`: a change of direction, or a reversal. A collinear piece that goes on the same way
|
|
37
|
+
* is no turn, and so is a piece with no length. The test is on the angle, so it does not depend on the drawing's scale: the sine of the
|
|
38
|
+
* angle between the pieces (the determinant over both lengths) above `EPS`, or a cosine below `-EPS`. `EPS` is a dimensionless number here,
|
|
39
|
+
* as in `overlapSegment`; a fixed px-squared bound would call a residue on two long pieces a turn and a real corner of two short ones none.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isTurn(a: Piece, b: Piece): boolean;
|
|
42
|
+
/** The points where a polyline turns (`isTurn`), in order, read on its distinct points (`distinctPoints`). */
|
|
43
|
+
export declare function turnPoints(points: readonly Point[]): Point[];
|
|
44
|
+
/** The turns of a polyline given by its points (CODING_STANDARDS R7: the one bend count of readers and gates). */
|
|
45
|
+
export declare const pointTurns: (points: readonly Point[]) => number;
|
|
46
|
+
/** The points of a path given by its pieces: a path is a chain, each piece starts where the one before ends (`route/validate` checks it). */
|
|
47
|
+
export declare const chainPoints: (pieces: readonly Piece[]) => Point[];
|
|
48
|
+
/** The turns of a path given by its pieces: `pointTurns` of its chain. `pathBends` reads a link with it. */
|
|
49
|
+
export declare const pieceTurns: (pieces: readonly Piece[]) => number;
|
|
50
|
+
export declare function intersection(a: Piece, b: Piece): Point | undefined;
|
|
51
|
+
export declare function segmentDistance(a: PathSegment, b: PathSegment): number;
|
|
52
|
+
export declare function boundingBox(rects: Rect[]): Rect | undefined;
|
|
53
|
+
export declare function overlapSegment(a: PathSegment, b: PathSegment): PathSegment | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Whether a chain of axis-aligned runs ever walks back along a run it already drew. An exact
|
|
56
|
+
* reversal of the step before is only the simplest way to do it: two runs that share a line and
|
|
57
|
+
* overlap retrace each other however many corners lie between them. One interval sweep per exact
|
|
58
|
+
* line answers it for the whole chain, and stays linear however many runs share the line.
|
|
59
|
+
*
|
|
60
|
+
* Two pieces of one route may touch at a bend, never share length. Two lines closer than `EPS` are
|
|
61
|
+
* the same line, so those groups are swept together as well — in real geometry there are none.
|
|
62
|
+
*
|
|
63
|
+
* `route/validate` fails a published path for this, and `layout/overlay-paths` refuses a candidate
|
|
64
|
+
* for it, so the producer and the validator read one rule.
|
|
65
|
+
*/
|
|
66
|
+
export declare function retracingRuns(runs: readonly {
|
|
67
|
+
from: Point;
|
|
68
|
+
to: Point;
|
|
69
|
+
}[]): boolean;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PathSegment, Point, Rect } from '../model/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* The tolerance published geometry is compared at: does this rectangle contain, overlap or touch
|
|
4
|
+
* that one, at a few ULP of a coordinate (stress ticket 13).
|
|
5
|
+
*
|
|
6
|
+
* It is **not** the tolerance placement measures a reservation at. That one is ten times coarser and
|
|
7
|
+
* lives in `src/layout/tolerance.ts` as `PLACEMENT_EPS`, and every comparison of that meaning reads the name. Meeting one of those and this one in the same reading is the
|
|
8
|
+
* trap stress ticket 19 named: two numbers answering two questions, not two opinions about one.
|
|
9
|
+
*/
|
|
10
|
+
export declare const EPS = 1e-7;
|
|
11
|
+
export declare const near: (a: number, b: number) => boolean;
|
|
12
|
+
export declare const samePoint: (a: Point, b: Point) => boolean;
|
|
13
|
+
export declare const right: (r: Rect) => number;
|
|
14
|
+
export declare const bottom: (r: Rect) => number;
|
|
15
|
+
export declare const area: (r: Rect) => number;
|
|
16
|
+
export declare const contains: (outer: Rect, inner: Rect) => boolean;
|
|
17
|
+
export declare const pointRect: (p: Point) => Rect;
|
|
18
|
+
export declare const rectOverlap: (a: Rect, b: Rect) => boolean;
|
|
19
|
+
export declare const rectDistance: (a: Rect, b: Rect) => number;
|
|
20
|
+
export declare const length: (s: PathSegment) => number;
|
|
21
|
+
export declare const bounds: (s: PathSegment) => Rect;
|
|
22
|
+
export declare const horizontal: (s: PathSegment) => boolean;
|
|
23
|
+
export declare const vertical: (s: PathSegment) => boolean;
|
|
24
|
+
export declare function pointSegmentDistance(p: Point, s: PathSegment): number;
|
|
25
|
+
/** Closed rectangle intersection, including boundary contact. */
|
|
26
|
+
export declare function segmentRect(s: PathSegment, r: Rect): boolean;
|
|
27
|
+
export declare function segmentRectDistance(s: PathSegment, r: Rect): number;
|
|
28
|
+
/** A segment by its two ends: a published `PathSegment`, or a piece of a polyline that has no owner yet. */
|
|
29
|
+
export interface Piece {
|
|
30
|
+
from: Point;
|
|
31
|
+
to: Point;
|
|
32
|
+
}
|
|
33
|
+
/** The points of a polyline less each point that is the same point (`samePoint`) as the last one kept: the one "same point" of every turn reader. */
|
|
34
|
+
export declare function distinctPoints(points: readonly Point[]): Point[];
|
|
35
|
+
/**
|
|
36
|
+
* Whether a path turns where piece `b` follows piece `a`: a change of direction, or a reversal. A collinear piece that goes on the same way
|
|
37
|
+
* is no turn, and so is a piece with no length. The test is on the angle, so it does not depend on the drawing's scale: the sine of the
|
|
38
|
+
* angle between the pieces (the determinant over both lengths) above `EPS`, or a cosine below `-EPS`. `EPS` is a dimensionless number here,
|
|
39
|
+
* as in `overlapSegment`; a fixed px-squared bound would call a residue on two long pieces a turn and a real corner of two short ones none.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isTurn(a: Piece, b: Piece): boolean;
|
|
42
|
+
/** The points where a polyline turns (`isTurn`), in order, read on its distinct points (`distinctPoints`). */
|
|
43
|
+
export declare function turnPoints(points: readonly Point[]): Point[];
|
|
44
|
+
/** The turns of a polyline given by its points (CODING_STANDARDS R7: the one bend count of readers and gates). */
|
|
45
|
+
export declare const pointTurns: (points: readonly Point[]) => number;
|
|
46
|
+
/** The points of a path given by its pieces: a path is a chain, each piece starts where the one before ends (`route/validate` checks it). */
|
|
47
|
+
export declare const chainPoints: (pieces: readonly Piece[]) => Point[];
|
|
48
|
+
/** The turns of a path given by its pieces: `pointTurns` of its chain. `pathBends` reads a link with it. */
|
|
49
|
+
export declare const pieceTurns: (pieces: readonly Piece[]) => number;
|
|
50
|
+
export declare function intersection(a: Piece, b: Piece): Point | undefined;
|
|
51
|
+
export declare function segmentDistance(a: PathSegment, b: PathSegment): number;
|
|
52
|
+
export declare function boundingBox(rects: Rect[]): Rect | undefined;
|
|
53
|
+
export declare function overlapSegment(a: PathSegment, b: PathSegment): PathSegment | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Whether a chain of axis-aligned runs ever walks back along a run it already drew. An exact
|
|
56
|
+
* reversal of the step before is only the simplest way to do it: two runs that share a line and
|
|
57
|
+
* overlap retrace each other however many corners lie between them. One interval sweep per exact
|
|
58
|
+
* line answers it for the whole chain, and stays linear however many runs share the line.
|
|
59
|
+
*
|
|
60
|
+
* Two pieces of one route may touch at a bend, never share length. Two lines closer than `EPS` are
|
|
61
|
+
* the same line, so those groups are swept together as well — in real geometry there are none.
|
|
62
|
+
*
|
|
63
|
+
* `route/validate` fails a published path for this, and `layout/overlay-paths` refuses a candidate
|
|
64
|
+
* for it, so the producer and the validator read one rule.
|
|
65
|
+
*/
|
|
66
|
+
export declare function retracingRuns(runs: readonly {
|
|
67
|
+
from: Point;
|
|
68
|
+
to: Point;
|
|
69
|
+
}[]): boolean;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const api = require('./portograph.umd.cjs');
|
|
3
|
+
exports.parse = api.parse;
|
|
4
|
+
exports.parseWithDiagnostics = api.parseWithDiagnostics;
|
|
5
|
+
exports.ParseError = api.ParseError;
|
|
6
|
+
exports.migrate = api.migrate;
|
|
7
|
+
exports.migrateWithDiagnostics = api.migrateWithDiagnostics;
|
|
8
|
+
exports.layout = api.layout;
|
|
9
|
+
exports.createBudget = api.createBudget;
|
|
10
|
+
exports.CommandDeadlineError = api.CommandDeadlineError;
|
|
11
|
+
exports.ResolveError = api.ResolveError;
|
|
12
|
+
exports.createBrowserElkFactory = api.createBrowserElkFactory;
|
|
13
|
+
exports.ElkDeadlineError = api.ElkDeadlineError;
|
|
14
|
+
exports.createBrowserRouteFactory = api.createBrowserRouteFactory;
|
|
15
|
+
exports.RouteDeadlineError = api.RouteDeadlineError;
|
|
16
|
+
exports.restoreFinalLayout = api.restoreFinalLayout;
|
|
17
|
+
exports.serializeLayoutModel = api.serializeLayoutModel;
|
|
18
|
+
exports.score = api.score;
|
|
19
|
+
exports.render = api.render;
|
|
20
|
+
exports.drawio = api.drawio;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* portograph — YAML in, a laid-out diagram (SVG or draw.io) out.
|
|
3
|
+
*
|
|
4
|
+
* The public surface: parse, lay out, score, render. Everything else (the stage functions, the
|
|
5
|
+
* router internals, the theme tables, the CLI contract) lives in `portograph/internal`, which
|
|
6
|
+
* carries no stability promise.
|
|
7
|
+
*
|
|
8
|
+
* Keep every value export in the plain form `export { a, b } from './internal.cjs';`: the build
|
|
9
|
+
* reads this file to write the `dist/index.js` and `dist/index.cjs` entry points.
|
|
10
|
+
*/
|
|
11
|
+
export { parse, parseWithDiagnostics, ParseError } from './internal.cjs';
|
|
12
|
+
export type { ParseOptions, ParseResult, SourceDiagnostic, SourceLocation } from './internal.cjs';
|
|
13
|
+
export { migrate, migrateWithDiagnostics } from './internal.cjs';
|
|
14
|
+
export type { MigrationResult } from './internal.cjs';
|
|
15
|
+
export { layout, createBudget, CommandDeadlineError, ResolveError } from './internal.cjs';
|
|
16
|
+
export type { Budget, LayoutOptions, LayoutProgress } from './internal.cjs';
|
|
17
|
+
export { createBrowserElkFactory, ElkDeadlineError, createBrowserRouteFactory, RouteDeadlineError } from './internal.cjs';
|
|
18
|
+
export type { CreateElkAttempt, CreateRouteAttempt, RouteAssets } from './internal.cjs';
|
|
19
|
+
export { restoreFinalLayout, serializeLayoutModel } from './internal.cjs';
|
|
20
|
+
export type * from './model/index.cjs';
|
|
21
|
+
export { score } from './internal.cjs';
|
|
22
|
+
export type { GateId, GateResult, GateViolation, ScoreAdvisory, ScoreAssertion, ScoreCounters, ScoreCounts, ScoreMetrics, ScoreOptions, ScoreReport, ScoreSnapshot } from './internal.cjs';
|
|
23
|
+
export { render, drawio } from './internal.cjs';
|
|
24
|
+
export type { RenderOptions, DrawioOptions } from './internal.cjs';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* portograph — YAML in, a laid-out diagram (SVG or draw.io) out.
|
|
3
|
+
*
|
|
4
|
+
* The public surface: parse, lay out, score, render. Everything else (the stage functions, the
|
|
5
|
+
* router internals, the theme tables, the CLI contract) lives in `portograph/internal`, which
|
|
6
|
+
* carries no stability promise.
|
|
7
|
+
*
|
|
8
|
+
* Keep every value export in the plain form `export { a, b } from './internal.js';`: the build
|
|
9
|
+
* reads this file to write the `dist/index.js` and `dist/index.cjs` entry points.
|
|
10
|
+
*/
|
|
11
|
+
export { parse, parseWithDiagnostics, ParseError } from './internal.js';
|
|
12
|
+
export type { ParseOptions, ParseResult, SourceDiagnostic, SourceLocation } from './internal.js';
|
|
13
|
+
export { migrate, migrateWithDiagnostics } from './internal.js';
|
|
14
|
+
export type { MigrationResult } from './internal.js';
|
|
15
|
+
export { layout, createBudget, CommandDeadlineError, ResolveError } from './internal.js';
|
|
16
|
+
export type { Budget, LayoutOptions, LayoutProgress } from './internal.js';
|
|
17
|
+
export { createBrowserElkFactory, ElkDeadlineError, createBrowserRouteFactory, RouteDeadlineError } from './internal.js';
|
|
18
|
+
export type { CreateElkAttempt, CreateRouteAttempt, RouteAssets } from './internal.js';
|
|
19
|
+
export { restoreFinalLayout, serializeLayoutModel } from './internal.js';
|
|
20
|
+
export type * from './model/index.js';
|
|
21
|
+
export { score } from './internal.js';
|
|
22
|
+
export type { GateId, GateResult, GateViolation, ScoreAdvisory, ScoreAssertion, ScoreCounters, ScoreCounts, ScoreMetrics, ScoreOptions, ScoreReport, ScoreSnapshot } from './internal.js';
|
|
23
|
+
export { render, drawio } from './internal.js';
|
|
24
|
+
export type { RenderOptions, DrawioOptions } from './internal.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parse, parseWithDiagnostics, ParseError, migrate, migrateWithDiagnostics, layout, createBudget, CommandDeadlineError, ResolveError, createBrowserElkFactory, ElkDeadlineError, createBrowserRouteFactory, RouteDeadlineError, restoreFinalLayout, serializeLayoutModel, score, render, drawio } from './portograph.js';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* portograph/internal — every stage function, helper and table the package contains.
|
|
3
|
+
*
|
|
4
|
+
* No stability promise: the CLI, the tests and the build scripts read this entry. The public
|
|
5
|
+
* surface is `index.ts`.
|
|
6
|
+
*
|
|
7
|
+
* Headless core (ADR-0004): no DOM, no framework. The pipeline
|
|
8
|
+
* `parse → layout → render` lands here ticket by ticket; the layout JSON is a
|
|
9
|
+
* first-class output that `score` and the tests consume.
|
|
10
|
+
*/
|
|
11
|
+
export { VERBS, EXIT, COMMAND_DEADLINE_MS, isVerb, helpText, parseCommand, sidecarPaths, formatDiagnostic, formatDiagnosticJson, formatStatus, UsageError } from './cli.cjs';
|
|
12
|
+
export type { Command, Verb } from './cli.cjs';
|
|
13
|
+
export { layout, createBudget, CommandDeadlineError, UNBOUNDED_BUDGET } from './pipeline/index.cjs';
|
|
14
|
+
export type { Budget, LayoutOptions, LayoutProgress } from './pipeline/index.cjs';
|
|
15
|
+
export { readCacheCounts } from './model/read-cache.cjs';
|
|
16
|
+
export * from './model/index.cjs';
|
|
17
|
+
export * from './text/index.cjs';
|
|
18
|
+
export * from './geometry/index.cjs';
|
|
19
|
+
export * from './parse/index.cjs';
|
|
20
|
+
export * from './migrate/index.cjs';
|
|
21
|
+
export * from './score/index.cjs';
|
|
22
|
+
export { CANVAS_MARGIN, DEFAULT_STROKE_WIDTHS } from './theme/geometry.cjs';
|
|
23
|
+
export { LEGEND_GEOMETRY } from './theme/legend.cjs';
|
|
24
|
+
export { LEGEND_DEFAULT_CLASS, NETWORK_LINK_CLASSES, NETWORK_NODE_CLASSES, NETWORK_PORT_LOOPBACK, NETWORK_PORT_ROLES, NETWORK_PORT_STATUS, NETWORK_THEME, classDisplayLabel, classOrder, nodeClassPaint, nodeClassStyle, portRolePaint } from './profiles/network/theme.cjs';
|
|
25
|
+
export type { FullRamp, HueRamp, LinkClassStyle, Modal, NodeClassStyle, PillPaint, PortRoleStyle, PortStatusStyle, Ramp, ThemeMode, ThemePaint } from './profiles/network/theme.cjs';
|
|
26
|
+
export { DEFAULT_THEME_ID, THEMES, THEME_IDS, findTheme, legendKeyRadius, themeById, themeLinkClass, themePortRole, themeWashFill } from './profiles/network/themes.cjs';
|
|
27
|
+
export type { ClassPaint, Theme } from './profiles/network/themes.cjs';
|
|
28
|
+
export { render, linkVisible, OVERLAY_ENDPOINT_RADIUS } from './render/index.cjs';
|
|
29
|
+
export type { RenderOptions } from './render/index.cjs';
|
|
30
|
+
export { drawio } from './render/drawio.cjs';
|
|
31
|
+
export type { DrawioOptions } from './render/drawio.cjs';
|
|
32
|
+
export * from './resolve/index.cjs';
|
|
33
|
+
export * from './layout/sides-one.cjs';
|
|
34
|
+
export * from './layout/size.cjs';
|
|
35
|
+
export * from './theme/content.cjs';
|
|
36
|
+
export * from './profiles/network/icons.cjs';
|
|
37
|
+
export { skeleton, SkeletonError } from './layout/skeleton.cjs';
|
|
38
|
+
export type { SkeletonOptions } from './layout/skeleton.cjs';
|
|
39
|
+
export { createWorkerElkAttempt, createBrowserElkFactory, runElkAttempt, elkDeadlineMs, ElkDeadlineError } from './layout/elk-worker.cjs';
|
|
40
|
+
export type { ElkAttempt, CreateElkAttempt, ElkWorker, ElkClock } from './layout/elk-worker.cjs';
|
|
41
|
+
export { sidesTwo } from './layout/sides-two.cjs';
|
|
42
|
+
export { rebuildNodeGeometry } from './layout/node-geometry.cjs';
|
|
43
|
+
export { freezePortTopology, restoreLayoutModel, restoreFinalLayout, withLayoutMutation, FINAL_STAGES } from './layout/mutation.cjs';
|
|
44
|
+
export type { PlacementRule } from './layout/mutation.cjs';
|
|
45
|
+
export { rows } from './layout/rows.cjs';
|
|
46
|
+
export { rebuildRowPaths, expectedRowPath, straightCorridorClear, facingPair, rowPathCandidate, STRAIGHT_PATH_CLEARANCE } from './layout/row-paths.cjs';
|
|
47
|
+
export type { FacingPair } from './layout/row-paths.cjs';
|
|
48
|
+
export { lanes, allocateLanes, rebuildLaneExtents, laneWidth, validateLanes } from './layout/lanes.cjs';
|
|
49
|
+
export { allocateGapRuns } from './layout/gap-runs.cjs';
|
|
50
|
+
export type { GapRun } from './layout/gap-runs.cjs';
|
|
51
|
+
export { flanks, alignFlanks, rebuildFlankPaths, flankPair, flankPathCandidate, expectedFlankPath } from './layout/flanks.cjs';
|
|
52
|
+
export { centre, centreDraft, createCentreBudget, selectAnchorTier } from './layout/centre.cjs';
|
|
53
|
+
export type { CentreBudget } from './layout/centre.cjs';
|
|
54
|
+
export { rebuildRegions } from './layout/regions.cjs';
|
|
55
|
+
export { rebuildRegionGeometry } from './layout/region-rebuild.cjs';
|
|
56
|
+
export { bars, shapeBars, rebuildBarDrops, barLink, BAR_PADDING } from './layout/bars.cjs';
|
|
57
|
+
export { bundles, prepareBundleGeometry, rebuildBundlePaths, BundleFeasibilityError } from './layout/bundles.cjs';
|
|
58
|
+
export { bands, GROUP_LABEL_GEOMETRY } from './layout/bands.cjs';
|
|
59
|
+
export { solveTierGaps } from './layout/gap-room.cjs';
|
|
60
|
+
export { linkLabels, produceLinkLabels, validateLinkLabels, overlayDensity, overlayLabelsSuppressed, LINK_LABEL_GEOMETRY, LINK_LABEL_CODES, OVERLAY_LABEL_DENSITY } from './layout/link-labels.cjs';
|
|
61
|
+
export { diagramBounds, drawnBoxes, legendBoxes, legendRequired, legendVariants, paintedSwatch, portRoles, produceLegend } from './layout/legend.cjs';
|
|
62
|
+
export { overlayBlockers, overlayPath, OVERLAY_PILL_CLEARANCE } from './layout/overlay-paths.cjs';
|
|
63
|
+
export type { OverlayBlockers } from './layout/overlay-paths.cjs';
|
|
64
|
+
export { optimizeBundleOrder } from './layout/bundle-order.cjs';
|
|
65
|
+
export type { BundleOrderResult } from './layout/bundle-order.cjs';
|
|
66
|
+
export { route, routeRemainders } from './route/index.cjs';
|
|
67
|
+
export type { RouteOptions } from './route/index.cjs';
|
|
68
|
+
export { batchRequest, placementRuns, plannedRunsOf, planRoute, routeObstacles, nodeClearance, trimChain, stemCheckpoint, TERMINAL_TRIM, ROUTE_PARAMETERS, SHAPE_BUFFER_DISTANCE } from './route/index.cjs';
|
|
69
|
+
export type { LinkPlan, PlacementRuns, PlannedRun, RoutePiece, RoutePlan, RouteObstacle } from './route/index.cjs';
|
|
70
|
+
export { checkpointsHonoured, crossedTiers, simplify, stitchPath, stitchPaths, stubCandidate, lostPlannedRun, preRoute, reservationConflicts, reservedRuns, validateRoutedPaths } from './route/index.cjs';
|
|
71
|
+
export type { ReservationConflict, RoutedLinkPath } from './route/index.cjs';
|
|
72
|
+
export { createBrowserRouteFactory, createRouteFactory, RouteDeadlineError, RouteSession, withRouteSession, systemRouteClock, ROUTE_BUDGET_MS, ROUTE_REQUEST, ROUTE_RESPONSE, ALL_DIRECTIONS, DIRECTION_BITS } from './route/index.cjs';
|
|
73
|
+
export type { CreateRouteAttempt, RouteAssets, RouteAttempt, RouteBatch, RouteCheckpoint, RouteClock, RouteConnector, RouteEndpoint, RoutePin, RouteShape, RouteWorker, RoutedConnector } from './route/index.cjs';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* portograph/internal — every stage function, helper and table the package contains.
|
|
3
|
+
*
|
|
4
|
+
* No stability promise: the CLI, the tests and the build scripts read this entry. The public
|
|
5
|
+
* surface is `index.ts`.
|
|
6
|
+
*
|
|
7
|
+
* Headless core (ADR-0004): no DOM, no framework. The pipeline
|
|
8
|
+
* `parse → layout → render` lands here ticket by ticket; the layout JSON is a
|
|
9
|
+
* first-class output that `score` and the tests consume.
|
|
10
|
+
*/
|
|
11
|
+
export { VERBS, EXIT, COMMAND_DEADLINE_MS, isVerb, helpText, parseCommand, sidecarPaths, formatDiagnostic, formatDiagnosticJson, formatStatus, UsageError } from './cli.js';
|
|
12
|
+
export type { Command, Verb } from './cli.js';
|
|
13
|
+
export { layout, createBudget, CommandDeadlineError, UNBOUNDED_BUDGET } from './pipeline/index.js';
|
|
14
|
+
export type { Budget, LayoutOptions, LayoutProgress } from './pipeline/index.js';
|
|
15
|
+
export { readCacheCounts } from './model/read-cache.js';
|
|
16
|
+
export * from './model/index.js';
|
|
17
|
+
export * from './text/index.js';
|
|
18
|
+
export * from './geometry/index.js';
|
|
19
|
+
export * from './parse/index.js';
|
|
20
|
+
export * from './migrate/index.js';
|
|
21
|
+
export * from './score/index.js';
|
|
22
|
+
export { CANVAS_MARGIN, DEFAULT_STROKE_WIDTHS } from './theme/geometry.js';
|
|
23
|
+
export { LEGEND_GEOMETRY } from './theme/legend.js';
|
|
24
|
+
export { LEGEND_DEFAULT_CLASS, NETWORK_LINK_CLASSES, NETWORK_NODE_CLASSES, NETWORK_PORT_LOOPBACK, NETWORK_PORT_ROLES, NETWORK_PORT_STATUS, NETWORK_THEME, classDisplayLabel, classOrder, nodeClassPaint, nodeClassStyle, portRolePaint } from './profiles/network/theme.js';
|
|
25
|
+
export type { FullRamp, HueRamp, LinkClassStyle, Modal, NodeClassStyle, PillPaint, PortRoleStyle, PortStatusStyle, Ramp, ThemeMode, ThemePaint } from './profiles/network/theme.js';
|
|
26
|
+
export { DEFAULT_THEME_ID, THEMES, THEME_IDS, findTheme, legendKeyRadius, themeById, themeLinkClass, themePortRole, themeWashFill } from './profiles/network/themes.js';
|
|
27
|
+
export type { ClassPaint, Theme } from './profiles/network/themes.js';
|
|
28
|
+
export { render, linkVisible, OVERLAY_ENDPOINT_RADIUS } from './render/index.js';
|
|
29
|
+
export type { RenderOptions } from './render/index.js';
|
|
30
|
+
export { drawio } from './render/drawio.js';
|
|
31
|
+
export type { DrawioOptions } from './render/drawio.js';
|
|
32
|
+
export * from './resolve/index.js';
|
|
33
|
+
export * from './layout/sides-one.js';
|
|
34
|
+
export * from './layout/size.js';
|
|
35
|
+
export * from './theme/content.js';
|
|
36
|
+
export * from './profiles/network/icons.js';
|
|
37
|
+
export { skeleton, SkeletonError } from './layout/skeleton.js';
|
|
38
|
+
export type { SkeletonOptions } from './layout/skeleton.js';
|
|
39
|
+
export { createWorkerElkAttempt, createBrowserElkFactory, runElkAttempt, elkDeadlineMs, ElkDeadlineError } from './layout/elk-worker.js';
|
|
40
|
+
export type { ElkAttempt, CreateElkAttempt, ElkWorker, ElkClock } from './layout/elk-worker.js';
|
|
41
|
+
export { sidesTwo } from './layout/sides-two.js';
|
|
42
|
+
export { rebuildNodeGeometry } from './layout/node-geometry.js';
|
|
43
|
+
export { freezePortTopology, restoreLayoutModel, restoreFinalLayout, withLayoutMutation, FINAL_STAGES } from './layout/mutation.js';
|
|
44
|
+
export type { PlacementRule } from './layout/mutation.js';
|
|
45
|
+
export { rows } from './layout/rows.js';
|
|
46
|
+
export { rebuildRowPaths, expectedRowPath, straightCorridorClear, facingPair, rowPathCandidate, STRAIGHT_PATH_CLEARANCE } from './layout/row-paths.js';
|
|
47
|
+
export type { FacingPair } from './layout/row-paths.js';
|
|
48
|
+
export { lanes, allocateLanes, rebuildLaneExtents, laneWidth, validateLanes } from './layout/lanes.js';
|
|
49
|
+
export { allocateGapRuns } from './layout/gap-runs.js';
|
|
50
|
+
export type { GapRun } from './layout/gap-runs.js';
|
|
51
|
+
export { flanks, alignFlanks, rebuildFlankPaths, flankPair, flankPathCandidate, expectedFlankPath } from './layout/flanks.js';
|
|
52
|
+
export { centre, centreDraft, createCentreBudget, selectAnchorTier } from './layout/centre.js';
|
|
53
|
+
export type { CentreBudget } from './layout/centre.js';
|
|
54
|
+
export { rebuildRegions } from './layout/regions.js';
|
|
55
|
+
export { rebuildRegionGeometry } from './layout/region-rebuild.js';
|
|
56
|
+
export { bars, shapeBars, rebuildBarDrops, barLink, BAR_PADDING } from './layout/bars.js';
|
|
57
|
+
export { bundles, prepareBundleGeometry, rebuildBundlePaths, BundleFeasibilityError } from './layout/bundles.js';
|
|
58
|
+
export { bands, GROUP_LABEL_GEOMETRY } from './layout/bands.js';
|
|
59
|
+
export { solveTierGaps } from './layout/gap-room.js';
|
|
60
|
+
export { linkLabels, produceLinkLabels, validateLinkLabels, overlayDensity, overlayLabelsSuppressed, LINK_LABEL_GEOMETRY, LINK_LABEL_CODES, OVERLAY_LABEL_DENSITY } from './layout/link-labels.js';
|
|
61
|
+
export { diagramBounds, drawnBoxes, legendBoxes, legendRequired, legendVariants, paintedSwatch, portRoles, produceLegend } from './layout/legend.js';
|
|
62
|
+
export { overlayBlockers, overlayPath, OVERLAY_PILL_CLEARANCE } from './layout/overlay-paths.js';
|
|
63
|
+
export type { OverlayBlockers } from './layout/overlay-paths.js';
|
|
64
|
+
export { optimizeBundleOrder } from './layout/bundle-order.js';
|
|
65
|
+
export type { BundleOrderResult } from './layout/bundle-order.js';
|
|
66
|
+
export { route, routeRemainders } from './route/index.js';
|
|
67
|
+
export type { RouteOptions } from './route/index.js';
|
|
68
|
+
export { batchRequest, placementRuns, plannedRunsOf, planRoute, routeObstacles, nodeClearance, trimChain, stemCheckpoint, TERMINAL_TRIM, ROUTE_PARAMETERS, SHAPE_BUFFER_DISTANCE } from './route/index.js';
|
|
69
|
+
export type { LinkPlan, PlacementRuns, PlannedRun, RoutePiece, RoutePlan, RouteObstacle } from './route/index.js';
|
|
70
|
+
export { checkpointsHonoured, crossedTiers, simplify, stitchPath, stitchPaths, stubCandidate, lostPlannedRun, preRoute, reservationConflicts, reservedRuns, validateRoutedPaths } from './route/index.js';
|
|
71
|
+
export type { ReservationConflict, RoutedLinkPath } from './route/index.js';
|
|
72
|
+
export { createBrowserRouteFactory, createRouteFactory, RouteDeadlineError, RouteSession, withRouteSession, systemRouteClock, ROUTE_BUDGET_MS, ROUTE_REQUEST, ROUTE_RESPONSE, ALL_DIRECTIONS, DIRECTION_BITS } from './route/index.js';
|
|
73
|
+
export type { CreateRouteAttempt, RouteAssets, RouteAttempt, RouteBatch, RouteCheckpoint, RouteClock, RouteConnector, RouteEndpoint, RoutePin, RouteShape, RouteWorker, RoutedConnector } from './route/index.js';
|