@tscircuit/core 0.0.1100 → 0.0.1102
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 +9 -7
- package/dist/index.js +19 -5
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { symbols, SchSymbol, BaseSymbolName } from 'schematic-symbols';
|
|
|
11
11
|
import { CircuitJsonUtilObjects } from '@tscircuit/circuit-json-util';
|
|
12
12
|
import { Matrix } from 'transformation-matrix';
|
|
13
13
|
import { PackSolver2 } from 'calculate-packing';
|
|
14
|
-
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel } from '@tscircuit/capacity-autorouter';
|
|
14
|
+
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver3_HgPortPointPathing } from '@tscircuit/capacity-autorouter';
|
|
15
15
|
import { CopperPourPipelineSolver } from '@tscircuit/copper-pour-solver';
|
|
16
16
|
import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
|
|
17
17
|
import { GraphicsObject } from 'graphics-debug';
|
|
@@ -22,6 +22,7 @@ declare const SOLVERS: {
|
|
|
22
22
|
AssignableAutoroutingPipeline2: typeof AssignableAutoroutingPipeline2;
|
|
23
23
|
AssignableAutoroutingPipeline3: typeof AssignableAutoroutingPipeline3;
|
|
24
24
|
AutoroutingPipeline1_OriginalUnravel: typeof AutoroutingPipeline1_OriginalUnravel;
|
|
25
|
+
AutoroutingPipelineSolver3_HgPortPointPathing: typeof AutoroutingPipelineSolver3_HgPortPointPathing;
|
|
25
26
|
CopperPourPipelineSolver: typeof CopperPourPipelineSolver;
|
|
26
27
|
};
|
|
27
28
|
type SolverName = keyof typeof SOLVERS;
|
|
@@ -497,6 +498,7 @@ declare abstract class PrimitiveComponent<ZodProps extends ZodType = any> extend
|
|
|
497
498
|
schematic_component_id: string | null;
|
|
498
499
|
pcb_component_id: string | null;
|
|
499
500
|
cad_component_id: string | null;
|
|
501
|
+
_reportedInvalidPcbCalcWarnings: Set<string>;
|
|
500
502
|
fallbackUnassignedName?: string;
|
|
501
503
|
constructor(props: z.input<ZodProps>);
|
|
502
504
|
setProps(props: Partial<z.input<ZodProps>>): void;
|
|
@@ -2589,7 +2591,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2589
2591
|
pcbRouteCache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
|
|
2590
2592
|
autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
|
|
2591
2593
|
autorouterEffortLevel: zod.ZodOptional<zod.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>>;
|
|
2592
|
-
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "latest"]>>;
|
|
2594
|
+
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "v3", "latest"]>>;
|
|
2593
2595
|
square: zod.ZodOptional<zod.ZodBoolean>;
|
|
2594
2596
|
emptyArea: zod.ZodOptional<zod.ZodString>;
|
|
2595
2597
|
filledArea: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2933,7 +2935,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2933
2935
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
2934
2936
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
2935
2937
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
2936
|
-
autorouterVersion?: "v1" | "v2" | "latest" | undefined;
|
|
2938
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
2937
2939
|
square?: boolean | undefined;
|
|
2938
2940
|
emptyArea?: string | undefined;
|
|
2939
2941
|
filledArea?: string | undefined;
|
|
@@ -3260,7 +3262,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
3260
3262
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
3261
3263
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
3262
3264
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
3263
|
-
autorouterVersion?: "v1" | "v2" | "latest" | undefined;
|
|
3265
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
3264
3266
|
square?: boolean | undefined;
|
|
3265
3267
|
emptyArea?: string | undefined;
|
|
3266
3268
|
filledArea?: string | undefined;
|
|
@@ -4099,7 +4101,7 @@ declare class MountedBoard extends Subcircuit implements BoardI {
|
|
|
4099
4101
|
pcbRouteCache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
|
|
4100
4102
|
autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
|
|
4101
4103
|
autorouterEffortLevel: zod.ZodOptional<zod.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>>;
|
|
4102
|
-
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "latest"]>>;
|
|
4104
|
+
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "v3", "latest"]>>;
|
|
4103
4105
|
square: zod.ZodOptional<zod.ZodBoolean>;
|
|
4104
4106
|
emptyArea: zod.ZodOptional<zod.ZodString>;
|
|
4105
4107
|
filledArea: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4559,7 +4561,7 @@ declare class MountedBoard extends Subcircuit implements BoardI {
|
|
|
4559
4561
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
4560
4562
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
4561
4563
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
4562
|
-
autorouterVersion?: "v1" | "v2" | "latest" | undefined;
|
|
4564
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
4563
4565
|
square?: boolean | undefined;
|
|
4564
4566
|
emptyArea?: string | undefined;
|
|
4565
4567
|
filledArea?: string | undefined;
|
|
@@ -4909,7 +4911,7 @@ declare class MountedBoard extends Subcircuit implements BoardI {
|
|
|
4909
4911
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
4910
4912
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
4911
4913
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
4912
|
-
autorouterVersion?: "v1" | "v2" | "latest" | undefined;
|
|
4914
|
+
autorouterVersion?: "v1" | "v2" | "v3" | "latest" | undefined;
|
|
4913
4915
|
square?: boolean | undefined;
|
|
4914
4916
|
emptyArea?: string | undefined;
|
|
4915
4917
|
filledArea?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1199,6 +1199,7 @@ var PrimitiveComponent2 = class extends Renderable {
|
|
|
1199
1199
|
schematic_component_id = null;
|
|
1200
1200
|
pcb_component_id = null;
|
|
1201
1201
|
cad_component_id = null;
|
|
1202
|
+
_reportedInvalidPcbCalcWarnings = /* @__PURE__ */ new Set();
|
|
1202
1203
|
fallbackUnassignedName;
|
|
1203
1204
|
constructor(props) {
|
|
1204
1205
|
super(props);
|
|
@@ -1289,6 +1290,15 @@ var PrimitiveComponent2 = class extends Renderable {
|
|
|
1289
1290
|
(identifier) => !identifier.startsWith("board.")
|
|
1290
1291
|
);
|
|
1291
1292
|
if (includesComponentVariable && !allowComponentVariables) {
|
|
1293
|
+
if (this._isInsideFootprint() && this.root && !this._reportedInvalidPcbCalcWarnings.has(axis)) {
|
|
1294
|
+
this.root.db.source_invalid_component_property_error.insert({
|
|
1295
|
+
source_component_id: this.source_component_id || "",
|
|
1296
|
+
property_name: axis,
|
|
1297
|
+
message: `component-relative calc references are not supported for footprint elements (${this.componentName}); ${axis} will be ignored. expression="${rawValue}"`,
|
|
1298
|
+
error_type: "source_invalid_component_property_error"
|
|
1299
|
+
});
|
|
1300
|
+
this._reportedInvalidPcbCalcWarnings.add(axis);
|
|
1301
|
+
}
|
|
1292
1302
|
return 0;
|
|
1293
1303
|
}
|
|
1294
1304
|
return evaluateCalcString(rawValue, { knownVariables });
|
|
@@ -11814,7 +11824,8 @@ import {
|
|
|
11814
11824
|
AutoroutingPipelineSolver,
|
|
11815
11825
|
AssignableAutoroutingPipeline2,
|
|
11816
11826
|
AutoroutingPipeline1_OriginalUnravel,
|
|
11817
|
-
AssignableAutoroutingPipeline3
|
|
11827
|
+
AssignableAutoroutingPipeline3,
|
|
11828
|
+
AutoroutingPipelineSolver3_HgPortPointPathing
|
|
11818
11829
|
} from "@tscircuit/capacity-autorouter";
|
|
11819
11830
|
import { CopperPourPipelineSolver } from "@tscircuit/copper-pour-solver";
|
|
11820
11831
|
var SOLVERS = {
|
|
@@ -11823,6 +11834,7 @@ var SOLVERS = {
|
|
|
11823
11834
|
AssignableAutoroutingPipeline2,
|
|
11824
11835
|
AssignableAutoroutingPipeline3,
|
|
11825
11836
|
AutoroutingPipeline1_OriginalUnravel,
|
|
11837
|
+
AutoroutingPipelineSolver3_HgPortPointPathing,
|
|
11826
11838
|
CopperPourPipelineSolver
|
|
11827
11839
|
};
|
|
11828
11840
|
|
|
@@ -11854,6 +11866,8 @@ var TscircuitAutorouter = class {
|
|
|
11854
11866
|
let solverName;
|
|
11855
11867
|
if (autorouterVersion2 === "v1") {
|
|
11856
11868
|
solverName = "AutoroutingPipeline1_OriginalUnravel";
|
|
11869
|
+
} else if (autorouterVersion2 === "v3") {
|
|
11870
|
+
solverName = "AutoroutingPipelineSolver3_HgPortPointPathing";
|
|
11857
11871
|
} else if (useAutoJumperSolver) {
|
|
11858
11872
|
solverName = "AssignableAutoroutingPipeline3";
|
|
11859
11873
|
} else if (useAssignableSolver) {
|
|
@@ -18250,7 +18264,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
18250
18264
|
var package_default = {
|
|
18251
18265
|
name: "@tscircuit/core",
|
|
18252
18266
|
type: "module",
|
|
18253
|
-
version: "0.0.
|
|
18267
|
+
version: "0.0.1101",
|
|
18254
18268
|
types: "dist/index.d.ts",
|
|
18255
18269
|
main: "dist/index.js",
|
|
18256
18270
|
module: "dist/index.js",
|
|
@@ -18282,7 +18296,7 @@ var package_default = {
|
|
|
18282
18296
|
"@biomejs/biome": "^1.8.3",
|
|
18283
18297
|
"@resvg/resvg-js": "^2.6.2",
|
|
18284
18298
|
"@tscircuit/alphabet": "0.0.18",
|
|
18285
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
18299
|
+
"@tscircuit/capacity-autorouter": "^0.0.326",
|
|
18286
18300
|
"@tscircuit/checks": "0.0.107",
|
|
18287
18301
|
"@tscircuit/circuit-json-util": "^0.0.82",
|
|
18288
18302
|
"@tscircuit/common": "^0.0.20",
|
|
@@ -18295,7 +18309,7 @@ var package_default = {
|
|
|
18295
18309
|
"@tscircuit/math-utils": "^0.0.29",
|
|
18296
18310
|
"@tscircuit/miniflex": "^0.0.4",
|
|
18297
18311
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
18298
|
-
"@tscircuit/props": "^0.0.
|
|
18312
|
+
"@tscircuit/props": "^0.0.495",
|
|
18299
18313
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
18300
18314
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
|
18301
18315
|
"@tscircuit/solver-utils": "^0.0.3",
|
|
@@ -18309,7 +18323,7 @@ var package_default = {
|
|
|
18309
18323
|
"bun-match-svg": "0.0.12",
|
|
18310
18324
|
"calculate-elbow": "^0.0.12",
|
|
18311
18325
|
"chokidar-cli": "^3.0.0",
|
|
18312
|
-
"circuit-json": "^0.0.
|
|
18326
|
+
"circuit-json": "^0.0.397",
|
|
18313
18327
|
"circuit-json-to-bpc": "^0.0.13",
|
|
18314
18328
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
18315
18329
|
"circuit-json-to-gltf": "^0.0.73",
|
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.1102",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@biomejs/biome": "^1.8.3",
|
|
34
34
|
"@resvg/resvg-js": "^2.6.2",
|
|
35
35
|
"@tscircuit/alphabet": "0.0.18",
|
|
36
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
36
|
+
"@tscircuit/capacity-autorouter": "^0.0.326",
|
|
37
37
|
"@tscircuit/checks": "0.0.107",
|
|
38
38
|
"@tscircuit/circuit-json-util": "^0.0.82",
|
|
39
39
|
"@tscircuit/common": "^0.0.20",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@tscircuit/math-utils": "^0.0.29",
|
|
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.495",
|
|
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",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"bun-match-svg": "0.0.12",
|
|
61
61
|
"calculate-elbow": "^0.0.12",
|
|
62
62
|
"chokidar-cli": "^3.0.0",
|
|
63
|
-
"circuit-json": "^0.0.
|
|
63
|
+
"circuit-json": "^0.0.397",
|
|
64
64
|
"circuit-json-to-bpc": "^0.0.13",
|
|
65
65
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
66
66
|
"circuit-json-to-gltf": "^0.0.73",
|