@tscircuit/core 0.0.686 → 0.0.688

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 CHANGED
@@ -1787,6 +1787,7 @@ declare class Board extends Group<typeof boardProps> {
1787
1787
  } & {
1788
1788
  material: zod.ZodDefault<zod.ZodEnum<["fr4", "fr1"]>>;
1789
1789
  layers: zod.ZodDefault<zod.ZodUnion<[zod.ZodLiteral<2>, zod.ZodLiteral<4>]>>;
1790
+ borderRadius: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
1790
1791
  }, "strip", zod.ZodTypeAny, {
1791
1792
  material: "fr4" | "fr1";
1792
1793
  layers: 2 | 4;
@@ -2023,6 +2024,7 @@ declare class Board extends Group<typeof boardProps> {
2023
2024
  }[] | undefined;
2024
2025
  outlineOffsetX?: number | undefined;
2025
2026
  outlineOffsetY?: number | undefined;
2027
+ borderRadius?: number | undefined;
2026
2028
  }, {
2027
2029
  pcbX?: string | number | undefined;
2028
2030
  pcbY?: string | number | undefined;
@@ -2263,6 +2265,7 @@ declare class Board extends Group<typeof boardProps> {
2263
2265
  outlineOffsetY?: string | number | undefined;
2264
2266
  material?: "fr4" | "fr1" | undefined;
2265
2267
  layers?: 2 | 4 | undefined;
2268
+ borderRadius?: string | number | undefined;
2266
2269
  }>;
2267
2270
  };
2268
2271
  get boardThickness(): number;
@@ -14143,6 +14146,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
14143
14146
  inductance: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
14144
14147
  maxCurrentRating: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>>;
14145
14148
  schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
14149
+ connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "left", "pin2", "right"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
14146
14150
  }, "strip", zod.ZodTypeAny, {
14147
14151
  name: string;
14148
14152
  inductance: number;
@@ -14224,6 +14228,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
14224
14228
  children?: any;
14225
14229
  symbolName?: string | undefined;
14226
14230
  doNotPlace?: boolean | undefined;
14231
+ connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
14227
14232
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
14228
14233
  maxCurrentRating?: string | number | undefined;
14229
14234
  }, {
@@ -14309,6 +14314,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
14309
14314
  children?: any;
14310
14315
  symbolName?: string | undefined;
14311
14316
  doNotPlace?: boolean | undefined;
14317
+ connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
14312
14318
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
14313
14319
  maxCurrentRating?: string | number | undefined;
14314
14320
  }>;
package/dist/index.js CHANGED
@@ -3328,7 +3328,9 @@ var Port = class extends PrimitiveComponent2 {
3328
3328
  } else if (labelHints.length > 0) {
3329
3329
  bestDisplayPinLabel = labelHints[0];
3330
3330
  }
3331
- const schematic_port = db.schematic_port.insert({
3331
+ const pinAttributes = this.parent?._parsedProps?.pinAttributes;
3332
+ const schematicPortInsertProps = {
3333
+ type: "schematic_port",
3332
3334
  schematic_component_id: this.parent?.schematic_component_id,
3333
3335
  center: portCenter,
3334
3336
  source_port_id: this.source_port_id,
@@ -3339,7 +3341,21 @@ var Port = class extends PrimitiveComponent2 {
3339
3341
  true_ccw_index: localPortInfo?.trueIndex,
3340
3342
  display_pin_label: bestDisplayPinLabel,
3341
3343
  is_connected: false
3342
- });
3344
+ };
3345
+ if (pinAttributes) {
3346
+ for (const alias of this.getNameAndAliases()) {
3347
+ if (pinAttributes[alias]) {
3348
+ const attributes = pinAttributes[alias];
3349
+ if (attributes.requiresPower) {
3350
+ schematicPortInsertProps.has_input_arrow = true;
3351
+ }
3352
+ if (attributes.providesPower) {
3353
+ schematicPortInsertProps.has_output_arrow = true;
3354
+ }
3355
+ }
3356
+ }
3357
+ }
3358
+ const schematic_port = db.schematic_port.insert(schematicPortInsertProps);
3343
3359
  this.schematic_port_id = schematic_port.schematic_port_id;
3344
3360
  }
3345
3361
  _getSubcircuitConnectivityKey() {
@@ -14073,7 +14089,7 @@ import { identity as identity6 } from "transformation-matrix";
14073
14089
  var package_default = {
14074
14090
  name: "@tscircuit/core",
14075
14091
  type: "module",
14076
- version: "0.0.685",
14092
+ version: "0.0.687",
14077
14093
  types: "dist/index.d.ts",
14078
14094
  main: "dist/index.js",
14079
14095
  module: "dist/index.js",
@@ -14112,7 +14128,7 @@ var package_default = {
14112
14128
  "@tscircuit/matchpack": "^0.0.16",
14113
14129
  "@tscircuit/math-utils": "^0.0.18",
14114
14130
  "@tscircuit/miniflex": "^0.0.4",
14115
- "@tscircuit/props": "0.0.292",
14131
+ "@tscircuit/props": "0.0.296",
14116
14132
  "@tscircuit/schematic-autolayout": "^0.0.6",
14117
14133
  "@tscircuit/schematic-match-adapt": "^0.0.16",
14118
14134
  "@tscircuit/schematic-trace-solver": "^0.0.25",
@@ -14126,11 +14142,11 @@ var package_default = {
14126
14142
  "bun-match-svg": "0.0.12",
14127
14143
  "calculate-elbow": "^0.0.9",
14128
14144
  "chokidar-cli": "^3.0.0",
14129
- "circuit-json": "^0.0.238",
14145
+ "circuit-json": "^0.0.241",
14130
14146
  "circuit-json-to-bpc": "^0.0.13",
14131
14147
  "circuit-json-to-connectivity-map": "^0.0.22",
14132
14148
  "circuit-json-to-simple-3d": "^0.0.6",
14133
- "circuit-to-svg": "^0.0.182",
14149
+ "circuit-to-svg": "^0.0.185",
14134
14150
  concurrently: "^9.1.2",
14135
14151
  "connectivity-map": "^1.0.0",
14136
14152
  debug: "^4.3.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.686",
4
+ "version": "0.0.688",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@tscircuit/matchpack": "^0.0.16",
41
41
  "@tscircuit/math-utils": "^0.0.18",
42
42
  "@tscircuit/miniflex": "^0.0.4",
43
- "@tscircuit/props": "0.0.292",
43
+ "@tscircuit/props": "0.0.296",
44
44
  "@tscircuit/schematic-autolayout": "^0.0.6",
45
45
  "@tscircuit/schematic-match-adapt": "^0.0.16",
46
46
  "@tscircuit/schematic-trace-solver": "^0.0.25",
@@ -54,11 +54,11 @@
54
54
  "bun-match-svg": "0.0.12",
55
55
  "calculate-elbow": "^0.0.9",
56
56
  "chokidar-cli": "^3.0.0",
57
- "circuit-json": "^0.0.238",
57
+ "circuit-json": "^0.0.241",
58
58
  "circuit-json-to-bpc": "^0.0.13",
59
59
  "circuit-json-to-connectivity-map": "^0.0.22",
60
60
  "circuit-json-to-simple-3d": "^0.0.6",
61
- "circuit-to-svg": "^0.0.182",
61
+ "circuit-to-svg": "^0.0.185",
62
62
  "concurrently": "^9.1.2",
63
63
  "connectivity-map": "^1.0.0",
64
64
  "debug": "^4.3.6",