@tscircuit/core 0.0.1117 → 0.0.1119
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 +8 -7
- package/dist/index.js +11 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { symbols, SchSymbol, BaseSymbolName } from 'schematic-symbols';
|
|
|
12
12
|
import { CircuitJsonUtilObjects } from '@tscircuit/circuit-json-util';
|
|
13
13
|
import { Matrix } from 'transformation-matrix';
|
|
14
14
|
import { PackSolver2 } from 'calculate-packing';
|
|
15
|
-
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver3_HgPortPointPathing } from '@tscircuit/capacity-autorouter';
|
|
15
|
+
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver4 } from '@tscircuit/capacity-autorouter';
|
|
16
16
|
import { CopperPourPipelineSolver } from '@tscircuit/copper-pour-solver';
|
|
17
17
|
import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
|
|
18
18
|
import { GraphicsObject } from 'graphics-debug';
|
|
@@ -24,6 +24,7 @@ declare const SOLVERS: {
|
|
|
24
24
|
AssignableAutoroutingPipeline3: typeof AssignableAutoroutingPipeline3;
|
|
25
25
|
AutoroutingPipeline1_OriginalUnravel: typeof AutoroutingPipeline1_OriginalUnravel;
|
|
26
26
|
AutoroutingPipelineSolver3_HgPortPointPathing: typeof AutoroutingPipelineSolver3_HgPortPointPathing;
|
|
27
|
+
AutoroutingPipelineSolver4: typeof AutoroutingPipelineSolver4;
|
|
27
28
|
CopperPourPipelineSolver: typeof CopperPourPipelineSolver;
|
|
28
29
|
};
|
|
29
30
|
type SolverName = keyof typeof SOLVERS;
|
|
@@ -2609,7 +2610,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2609
2610
|
pcbRouteCache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
|
|
2610
2611
|
autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
|
|
2611
2612
|
autorouterEffortLevel: zod.ZodOptional<zod.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>>;
|
|
2612
|
-
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "v3", "latest"]>>;
|
|
2613
|
+
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "v3", "v4", "latest"]>>;
|
|
2613
2614
|
square: zod.ZodOptional<zod.ZodBoolean>;
|
|
2614
2615
|
emptyArea: zod.ZodOptional<zod.ZodString>;
|
|
2615
2616
|
filledArea: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2953,7 +2954,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2953
2954
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
2954
2955
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
2955
2956
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
2956
|
-
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
2957
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "v4" | "latest" | undefined;
|
|
2957
2958
|
square?: boolean | undefined;
|
|
2958
2959
|
emptyArea?: string | undefined;
|
|
2959
2960
|
filledArea?: string | undefined;
|
|
@@ -3280,7 +3281,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
3280
3281
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
3281
3282
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
3282
3283
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
3283
|
-
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
3284
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "v4" | "latest" | undefined;
|
|
3284
3285
|
square?: boolean | undefined;
|
|
3285
3286
|
emptyArea?: string | undefined;
|
|
3286
3287
|
filledArea?: string | undefined;
|
|
@@ -4119,7 +4120,7 @@ declare class MountedBoard extends Subcircuit implements BoardI {
|
|
|
4119
4120
|
pcbRouteCache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
|
|
4120
4121
|
autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
|
|
4121
4122
|
autorouterEffortLevel: zod.ZodOptional<zod.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>>;
|
|
4122
|
-
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "v3", "latest"]>>;
|
|
4123
|
+
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "v3", "v4", "latest"]>>;
|
|
4123
4124
|
square: zod.ZodOptional<zod.ZodBoolean>;
|
|
4124
4125
|
emptyArea: zod.ZodOptional<zod.ZodString>;
|
|
4125
4126
|
filledArea: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4579,7 +4580,7 @@ declare class MountedBoard extends Subcircuit implements BoardI {
|
|
|
4579
4580
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
4580
4581
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
4581
4582
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
4582
|
-
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
4583
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "v4" | "latest" | undefined;
|
|
4583
4584
|
square?: boolean | undefined;
|
|
4584
4585
|
emptyArea?: string | undefined;
|
|
4585
4586
|
filledArea?: string | undefined;
|
|
@@ -4929,7 +4930,7 @@ declare class MountedBoard extends Subcircuit implements BoardI {
|
|
|
4929
4930
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
4930
4931
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
4931
4932
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
4932
|
-
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
4933
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "v4" | "latest" | undefined;
|
|
4933
4934
|
square?: boolean | undefined;
|
|
4934
4935
|
emptyArea?: string | undefined;
|
|
4935
4936
|
filledArea?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -11316,9 +11316,11 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
11316
11316
|
cadModel.zOffsetFromSurface
|
|
11317
11317
|
) : 0 : 0;
|
|
11318
11318
|
const computedLayer = this.props.layer === "bottom" ? "bottom" : "top";
|
|
11319
|
+
const pcbComponent = db.pcb_component.get(this.pcb_component_id);
|
|
11319
11320
|
const globalTransform = this._computePcbGlobalTransformBeforeLayout();
|
|
11320
11321
|
const decomposedTransform = decomposeTSR8(globalTransform);
|
|
11321
|
-
const
|
|
11322
|
+
const preLayoutRotation = decomposedTransform.rotation.angle * 180 / Math.PI;
|
|
11323
|
+
const totalRotation = pcbComponent?.position_mode === "packed" ? pcbComponent.rotation ?? preLayoutRotation : preLayoutRotation;
|
|
11322
11324
|
const isBottomLayer = computedLayer === "bottom";
|
|
11323
11325
|
const rotationWithOffset = totalRotation + (rotationOffset.z ?? 0);
|
|
11324
11326
|
const cadRotationZ = normalizeDegrees(rotationWithOffset);
|
|
@@ -12235,7 +12237,8 @@ import {
|
|
|
12235
12237
|
AssignableAutoroutingPipeline2,
|
|
12236
12238
|
AutoroutingPipeline1_OriginalUnravel,
|
|
12237
12239
|
AssignableAutoroutingPipeline3,
|
|
12238
|
-
AutoroutingPipelineSolver3_HgPortPointPathing
|
|
12240
|
+
AutoroutingPipelineSolver3_HgPortPointPathing,
|
|
12241
|
+
AutoroutingPipelineSolver4
|
|
12239
12242
|
} from "@tscircuit/capacity-autorouter";
|
|
12240
12243
|
import { CopperPourPipelineSolver } from "@tscircuit/copper-pour-solver";
|
|
12241
12244
|
var SOLVERS = {
|
|
@@ -12245,6 +12248,7 @@ var SOLVERS = {
|
|
|
12245
12248
|
AssignableAutoroutingPipeline3,
|
|
12246
12249
|
AutoroutingPipeline1_OriginalUnravel,
|
|
12247
12250
|
AutoroutingPipelineSolver3_HgPortPointPathing,
|
|
12251
|
+
AutoroutingPipelineSolver4,
|
|
12248
12252
|
CopperPourPipelineSolver
|
|
12249
12253
|
};
|
|
12250
12254
|
|
|
@@ -12278,6 +12282,8 @@ var TscircuitAutorouter = class {
|
|
|
12278
12282
|
solverName = "AutoroutingPipeline1_OriginalUnravel";
|
|
12279
12283
|
} else if (autorouterVersion2 === "v3") {
|
|
12280
12284
|
solverName = "AutoroutingPipelineSolver3_HgPortPointPathing";
|
|
12285
|
+
} else if (autorouterVersion2 === "v4") {
|
|
12286
|
+
solverName = "AutoroutingPipelineSolver4";
|
|
12281
12287
|
} else if (useAutoJumperSolver) {
|
|
12282
12288
|
solverName = "AssignableAutoroutingPipeline3";
|
|
12283
12289
|
} else if (useAssignableSolver) {
|
|
@@ -18674,7 +18680,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
18674
18680
|
var package_default = {
|
|
18675
18681
|
name: "@tscircuit/core",
|
|
18676
18682
|
type: "module",
|
|
18677
|
-
version: "0.0.
|
|
18683
|
+
version: "0.0.1118",
|
|
18678
18684
|
types: "dist/index.d.ts",
|
|
18679
18685
|
main: "dist/index.js",
|
|
18680
18686
|
module: "dist/index.js",
|
|
@@ -18707,7 +18713,7 @@ var package_default = {
|
|
|
18707
18713
|
"@resvg/resvg-js": "^2.6.2",
|
|
18708
18714
|
"@tscircuit/alphabet": "0.0.18",
|
|
18709
18715
|
"@tscircuit/checks": "0.0.110",
|
|
18710
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
18716
|
+
"@tscircuit/capacity-autorouter": "^0.0.353",
|
|
18711
18717
|
"@tscircuit/circuit-json-util": "^0.0.90",
|
|
18712
18718
|
"@tscircuit/common": "^0.0.20",
|
|
18713
18719
|
"@tscircuit/copper-pour-solver": "^0.0.20",
|
|
@@ -18719,7 +18725,7 @@ var package_default = {
|
|
|
18719
18725
|
"@tscircuit/math-utils": "^0.0.36",
|
|
18720
18726
|
"@tscircuit/miniflex": "^0.0.4",
|
|
18721
18727
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
18722
|
-
"@tscircuit/props": "^0.0.
|
|
18728
|
+
"@tscircuit/props": "^0.0.498",
|
|
18723
18729
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
18724
18730
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
|
18725
18731
|
"@tscircuit/solver-utils": "^0.0.3",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1119",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@resvg/resvg-js": "^2.6.2",
|
|
35
35
|
"@tscircuit/alphabet": "0.0.18",
|
|
36
36
|
"@tscircuit/checks": "0.0.110",
|
|
37
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
37
|
+
"@tscircuit/capacity-autorouter": "^0.0.353",
|
|
38
38
|
"@tscircuit/circuit-json-util": "^0.0.90",
|
|
39
39
|
"@tscircuit/common": "^0.0.20",
|
|
40
40
|
"@tscircuit/copper-pour-solver": "^0.0.20",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@tscircuit/math-utils": "^0.0.36",
|
|
47
47
|
"@tscircuit/miniflex": "^0.0.4",
|
|
48
48
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
49
|
-
"@tscircuit/props": "^0.0.
|
|
49
|
+
"@tscircuit/props": "^0.0.498",
|
|
50
50
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
51
51
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
|
52
52
|
"@tscircuit/solver-utils": "^0.0.3",
|