@tscircuit/hypergraph 0.0.39 → 0.0.40
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/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1048,7 +1048,7 @@ var routeSegments = [
|
|
|
1048
1048
|
]
|
|
1049
1049
|
}
|
|
1050
1050
|
];
|
|
1051
|
-
var
|
|
1051
|
+
var viaTile4Regions = {
|
|
1052
1052
|
viasByNet: viasByNet,
|
|
1053
1053
|
routeSegments: routeSegments
|
|
1054
1054
|
};
|
|
@@ -1293,4 +1293,4 @@ declare function generateConvexViaTopologyRegions(opts: {
|
|
|
1293
1293
|
};
|
|
1294
1294
|
};
|
|
1295
1295
|
|
|
1296
|
-
export { type Bounds$2 as Bounds, type BuildOpts, type Candidate, ConnectBuilder, type ConnectOpts, type Connection, type ConnectionId, type ConvexViaGraphFromXYConnectionsResult, type GScore, type GraphEdgeId, type HyperGraph, HyperGraphSolver, type JPort, type JRegion, JUMPER_GRAPH_SOLVER_DEFAULTS, type JumperGraph, JumperGraphSolver, type JumperGraphWithConnections, type NetworkId, type PortAssignment, PortBuilder, type PortData, type PortId, type PortSpread, type Region, RegionBuilder, type RegionData, type RegionId, type RegionPort, type RegionPortAssignment, type RegionRef, type RouteSegment, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SharedBoundary, type SolvedRoute, Topology, TopologyError, VIA_GRAPH_SOLVER_DEFAULTS, type ValidateOpts, type ViaByNet, type ViaData, type ViaGraphFromXYConnectionsResult, ViaGraphSolver, type ViaGraphWithConnections, type ViaTile, type XYConnection, applyTransformToGraph, calculateGraphBounds, convertConnectionsToSerializedConnections, convertHyperGraphToSerializedHyperGraph, createConvexViaGraphFromXYConnections, createGraphWithConnectionsFromBaseGraph, createViaGraphFromXYConnections, createViaGraphWithConnections, generateConvexViaTopologyRegions, generateDefaultViaTopologyGrid, generateDefaultViaTopologyRegions, generateJumperGrid, generateJumperX4Grid, generateViaTopologyGrid, generateViaTopologyRegions, rotateGraph90Degrees, viaTile };
|
|
1296
|
+
export { type Bounds$2 as Bounds, type BuildOpts, type Candidate, ConnectBuilder, type ConnectOpts, type Connection, type ConnectionId, type ConvexViaGraphFromXYConnectionsResult, type GScore, type GraphEdgeId, type HyperGraph, HyperGraphSolver, type JPort, type JRegion, JUMPER_GRAPH_SOLVER_DEFAULTS, type JumperGraph, JumperGraphSolver, type JumperGraphWithConnections, type NetworkId, type PortAssignment, PortBuilder, type PortData, type PortId, type PortSpread, type Region, RegionBuilder, type RegionData, type RegionId, type RegionPort, type RegionPortAssignment, type RegionRef, type RouteSegment, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SharedBoundary, type SolvedRoute, Topology, TopologyError, VIA_GRAPH_SOLVER_DEFAULTS, type ValidateOpts, type ViaByNet, type ViaData, type ViaGraphFromXYConnectionsResult, ViaGraphSolver, type ViaGraphWithConnections, type ViaTile, type XYConnection, applyTransformToGraph, calculateGraphBounds, convertConnectionsToSerializedConnections, convertHyperGraphToSerializedHyperGraph, createConvexViaGraphFromXYConnections, createGraphWithConnectionsFromBaseGraph, createViaGraphFromXYConnections, createViaGraphWithConnections, generateConvexViaTopologyRegions, generateDefaultViaTopologyGrid, generateDefaultViaTopologyRegions, generateJumperGrid, generateJumperX4Grid, generateViaTopologyGrid, generateViaTopologyRegions, rotateGraph90Degrees, viaTile4Regions as viaTile };
|
package/dist/index.js
CHANGED
|
@@ -3763,8 +3763,8 @@ ${errors.map((e) => ` - ${e}`).join("\n")}`
|
|
|
3763
3763
|
}
|
|
3764
3764
|
};
|
|
3765
3765
|
|
|
3766
|
-
// assets/ViaGraphSolver/via-tile.json
|
|
3767
|
-
var
|
|
3766
|
+
// assets/ViaGraphSolver/via-tile-4-regions.json
|
|
3767
|
+
var via_tile_4_regions_default = {
|
|
3768
3768
|
viasByNet: {
|
|
3769
3769
|
Net6: [
|
|
3770
3770
|
{
|
|
@@ -5061,12 +5061,12 @@ function generateViaTopologyGrid(opts) {
|
|
|
5061
5061
|
|
|
5062
5062
|
// lib/ViaGraphSolver/defaultTopology.ts
|
|
5063
5063
|
function generateDefaultViaTopologyRegions(opts) {
|
|
5064
|
-
return generateViaTopologyRegions(
|
|
5064
|
+
return generateViaTopologyRegions(via_tile_4_regions_default, opts);
|
|
5065
5065
|
}
|
|
5066
5066
|
function generateDefaultViaTopologyGrid(opts) {
|
|
5067
5067
|
return generateViaTopologyGrid({
|
|
5068
5068
|
...opts,
|
|
5069
|
-
viaTile:
|
|
5069
|
+
viaTile: via_tile_4_regions_default
|
|
5070
5070
|
});
|
|
5071
5071
|
}
|
|
5072
5072
|
|
|
@@ -15165,7 +15165,7 @@ function calculateBoundsFromConnections(xyConnections) {
|
|
|
15165
15165
|
}
|
|
15166
15166
|
return { minX, maxX, minY, maxY };
|
|
15167
15167
|
}
|
|
15168
|
-
function createConvexViaGraphFromXYConnections(xyConnections, viaTile =
|
|
15168
|
+
function createConvexViaGraphFromXYConnections(xyConnections, viaTile = via_tile_4_regions_default, opts) {
|
|
15169
15169
|
const bounds = calculateBoundsFromConnections(xyConnections);
|
|
15170
15170
|
const {
|
|
15171
15171
|
regions,
|
|
@@ -15262,7 +15262,7 @@ export {
|
|
|
15262
15262
|
generateViaTopologyGrid,
|
|
15263
15263
|
generateViaTopologyRegions,
|
|
15264
15264
|
rotateGraph90Degrees,
|
|
15265
|
-
|
|
15265
|
+
via_tile_4_regions_default as viaTile
|
|
15266
15266
|
};
|
|
15267
15267
|
/*! Bundled license information:
|
|
15268
15268
|
|