@tscircuit/core 0.0.625 → 0.0.627
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 +1 -0
- package/dist/index.js +25 -7
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2705,6 +2705,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
|
|
|
2705
2705
|
}>;
|
|
2706
2706
|
sourceFtype: "simple_capacitor";
|
|
2707
2707
|
};
|
|
2708
|
+
initPorts(): void;
|
|
2708
2709
|
_getSchematicSymbolDisplayValue(): string | undefined;
|
|
2709
2710
|
doInitialCreateNetsFromProps(): void;
|
|
2710
2711
|
doInitialCreateTracesFromProps(): void;
|
package/dist/index.js
CHANGED
|
@@ -5080,7 +5080,10 @@ var Trace_doInitialSchematicTraceRender = (trace) => {
|
|
|
5080
5080
|
connectedPorts = result.portsWithSelectors ?? [];
|
|
5081
5081
|
} catch (error) {
|
|
5082
5082
|
if (error instanceof TraceConnectionError) {
|
|
5083
|
-
db.
|
|
5083
|
+
db.source_trace_not_connected_error.insert({
|
|
5084
|
+
...error.errorData,
|
|
5085
|
+
error_type: "source_trace_not_connected_error"
|
|
5086
|
+
});
|
|
5084
5087
|
return;
|
|
5085
5088
|
}
|
|
5086
5089
|
throw error;
|
|
@@ -5897,7 +5900,7 @@ function Trace__findConnectedPorts(trace) {
|
|
|
5897
5900
|
const subcircuit2 = trace.getSubcircuit();
|
|
5898
5901
|
const sourceGroup2 = subcircuit2.getGroup();
|
|
5899
5902
|
throw new TraceConnectionError({
|
|
5900
|
-
error_type: "
|
|
5903
|
+
error_type: "source_trace_not_connected_error",
|
|
5901
5904
|
message: errorMessage2,
|
|
5902
5905
|
subcircuit_id: subcircuit2.subcircuit_id ?? void 0,
|
|
5903
5906
|
source_group_id: sourceGroup2?.source_group_id ?? void 0,
|
|
@@ -5924,7 +5927,7 @@ function Trace__findConnectedPorts(trace) {
|
|
|
5924
5927
|
const subcircuit = trace.getSubcircuit();
|
|
5925
5928
|
const sourceGroup = subcircuit.getGroup();
|
|
5926
5929
|
throw new TraceConnectionError({
|
|
5927
|
-
error_type: "
|
|
5930
|
+
error_type: "source_trace_not_connected_error",
|
|
5928
5931
|
message: errorMessage,
|
|
5929
5932
|
subcircuit_id: subcircuit.subcircuit_id ?? void 0,
|
|
5930
5933
|
source_group_id: sourceGroup?.source_group_id ?? void 0,
|
|
@@ -6076,7 +6079,10 @@ var Trace3 = class extends PrimitiveComponent2 {
|
|
|
6076
6079
|
ports = result.portsWithSelectors ?? [];
|
|
6077
6080
|
} catch (error) {
|
|
6078
6081
|
if (error instanceof TraceConnectionError) {
|
|
6079
|
-
db.
|
|
6082
|
+
db.source_trace_not_connected_error.insert({
|
|
6083
|
+
...error.errorData,
|
|
6084
|
+
error_type: "source_trace_not_connected_error"
|
|
6085
|
+
});
|
|
6080
6086
|
this._couldNotFindPort = true;
|
|
6081
6087
|
return;
|
|
6082
6088
|
}
|
|
@@ -10068,6 +10074,18 @@ var Capacitor = class extends NormalComponent {
|
|
|
10068
10074
|
sourceFtype: FTYPE.simple_capacitor
|
|
10069
10075
|
};
|
|
10070
10076
|
}
|
|
10077
|
+
initPorts() {
|
|
10078
|
+
if (typeof this.props.footprint === "string") {
|
|
10079
|
+
super.initPorts({
|
|
10080
|
+
additionalAliases: {
|
|
10081
|
+
pin1: ["anode", "pos"],
|
|
10082
|
+
pin2: ["cathode", "neg"]
|
|
10083
|
+
}
|
|
10084
|
+
});
|
|
10085
|
+
} else {
|
|
10086
|
+
super.initPorts();
|
|
10087
|
+
}
|
|
10088
|
+
}
|
|
10071
10089
|
_getSchematicSymbolDisplayValue() {
|
|
10072
10090
|
const capacitanceDisplay = `${formatSiUnit(this._parsedProps.capacitance)}F`;
|
|
10073
10091
|
if (this._parsedProps.schShowRatings && this._parsedProps.maxVoltageRating) {
|
|
@@ -12313,7 +12331,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
12313
12331
|
var package_default = {
|
|
12314
12332
|
name: "@tscircuit/core",
|
|
12315
12333
|
type: "module",
|
|
12316
|
-
version: "0.0.
|
|
12334
|
+
version: "0.0.626",
|
|
12317
12335
|
types: "dist/index.d.ts",
|
|
12318
12336
|
main: "dist/index.js",
|
|
12319
12337
|
module: "dist/index.js",
|
|
@@ -12337,7 +12355,7 @@ var package_default = {
|
|
|
12337
12355
|
devDependencies: {
|
|
12338
12356
|
"@biomejs/biome": "^1.8.3",
|
|
12339
12357
|
"@tscircuit/capacity-autorouter": "^0.0.100",
|
|
12340
|
-
"@tscircuit/checks": "^0.0.
|
|
12358
|
+
"@tscircuit/checks": "^0.0.68",
|
|
12341
12359
|
"@tscircuit/circuit-json-util": "^0.0.64",
|
|
12342
12360
|
"@tscircuit/footprinter": "^0.0.208",
|
|
12343
12361
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
@@ -12359,7 +12377,7 @@ var package_default = {
|
|
|
12359
12377
|
"bun-match-svg": "0.0.12",
|
|
12360
12378
|
"calculate-elbow": "^0.0.5",
|
|
12361
12379
|
"chokidar-cli": "^3.0.0",
|
|
12362
|
-
"circuit-json": "^0.0.
|
|
12380
|
+
"circuit-json": "^0.0.228",
|
|
12363
12381
|
"circuit-json-to-bpc": "^0.0.13",
|
|
12364
12382
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
12365
12383
|
"circuit-json-to-simple-3d": "^0.0.6",
|
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.627",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@biomejs/biome": "^1.8.3",
|
|
27
27
|
"@tscircuit/capacity-autorouter": "^0.0.100",
|
|
28
|
-
"@tscircuit/checks": "^0.0.
|
|
28
|
+
"@tscircuit/checks": "^0.0.68",
|
|
29
29
|
"@tscircuit/circuit-json-util": "^0.0.64",
|
|
30
30
|
"@tscircuit/footprinter": "^0.0.208",
|
|
31
31
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"bun-match-svg": "0.0.12",
|
|
48
48
|
"calculate-elbow": "^0.0.5",
|
|
49
49
|
"chokidar-cli": "^3.0.0",
|
|
50
|
-
"circuit-json": "^0.0.
|
|
50
|
+
"circuit-json": "^0.0.228",
|
|
51
51
|
"circuit-json-to-bpc": "^0.0.13",
|
|
52
52
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
53
53
|
"circuit-json-to-simple-3d": "^0.0.6",
|