@tscircuit/core 0.0.1044 → 0.0.1045
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.js +14 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9424,7 +9424,8 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
9424
9424
|
source_component_id: this.source_component_id,
|
|
9425
9425
|
subcircuit_id: subcircuit.subcircuit_id ?? void 0,
|
|
9426
9426
|
do_not_place: props.doNotPlace ?? false,
|
|
9427
|
-
obstructs_within_bounds: props.obstructsWithinBounds ?? true
|
|
9427
|
+
obstructs_within_bounds: props.obstructsWithinBounds ?? true,
|
|
9428
|
+
metadata: props.kicadFootprintMetadata ? { kicad_footprint: props.kicadFootprintMetadata } : void 0
|
|
9428
9429
|
});
|
|
9429
9430
|
const footprint = props.footprint ?? this._getImpliedFootprintString();
|
|
9430
9431
|
if (!footprint && !this.isGroup) {
|
|
@@ -16348,7 +16349,8 @@ var Chip = class extends NormalComponent3 {
|
|
|
16348
16349
|
subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0,
|
|
16349
16350
|
do_not_place: props.doNotPlace ?? false,
|
|
16350
16351
|
obstructs_within_bounds: props.obstructsWithinBounds ?? true,
|
|
16351
|
-
is_allowed_to_be_off_board: props.allowOffBoard ?? false
|
|
16352
|
+
is_allowed_to_be_off_board: props.allowOffBoard ?? false,
|
|
16353
|
+
metadata: props.kicadFootprintMetadata ? { kicad_footprint: props.kicadFootprintMetadata } : void 0
|
|
16352
16354
|
});
|
|
16353
16355
|
this.pcb_component_id = pcb_component.pcb_component_id;
|
|
16354
16356
|
}
|
|
@@ -17547,7 +17549,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
17547
17549
|
var package_default = {
|
|
17548
17550
|
name: "@tscircuit/core",
|
|
17549
17551
|
type: "module",
|
|
17550
|
-
version: "0.0.
|
|
17552
|
+
version: "0.0.1044",
|
|
17551
17553
|
types: "dist/index.d.ts",
|
|
17552
17554
|
main: "dist/index.js",
|
|
17553
17555
|
module: "dist/index.js",
|
|
@@ -17605,7 +17607,7 @@ var package_default = {
|
|
|
17605
17607
|
"bun-match-svg": "0.0.12",
|
|
17606
17608
|
"calculate-elbow": "^0.0.12",
|
|
17607
17609
|
"chokidar-cli": "^3.0.0",
|
|
17608
|
-
"circuit-json": "^0.0.
|
|
17610
|
+
"circuit-json": "^0.0.383",
|
|
17609
17611
|
"circuit-json-to-bpc": "^0.0.13",
|
|
17610
17612
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
17611
17613
|
"circuit-json-to-gltf": "^0.0.68",
|
|
@@ -19054,7 +19056,8 @@ var Jumper = class extends NormalComponent3 {
|
|
|
19054
19056
|
source_component_id: this.source_component_id,
|
|
19055
19057
|
subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0,
|
|
19056
19058
|
do_not_place: props.doNotPlace ?? false,
|
|
19057
|
-
obstructs_within_bounds: props.obstructsWithinBounds ?? true
|
|
19059
|
+
obstructs_within_bounds: props.obstructsWithinBounds ?? true,
|
|
19060
|
+
metadata: props.kicadFootprintMetadata ? { kicad_footprint: props.kicadFootprintMetadata } : void 0
|
|
19058
19061
|
});
|
|
19059
19062
|
this.pcb_component_id = pcb_component.pcb_component_id;
|
|
19060
19063
|
}
|
|
@@ -19277,7 +19280,8 @@ var SolderJumper = class extends NormalComponent3 {
|
|
|
19277
19280
|
source_component_id: this.source_component_id,
|
|
19278
19281
|
subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0,
|
|
19279
19282
|
do_not_place: props.doNotPlace ?? false,
|
|
19280
|
-
obstructs_within_bounds: props.obstructsWithinBounds ?? true
|
|
19283
|
+
obstructs_within_bounds: props.obstructsWithinBounds ?? true,
|
|
19284
|
+
metadata: props.kicadFootprintMetadata ? { kicad_footprint: props.kicadFootprintMetadata } : void 0
|
|
19281
19285
|
});
|
|
19282
19286
|
this.pcb_component_id = pcb_component.pcb_component_id;
|
|
19283
19287
|
}
|
|
@@ -23001,8 +23005,11 @@ var SymbolComponent = class extends PrimitiveComponent2 {
|
|
|
23001
23005
|
if (this.root?.schematicDisabled) return;
|
|
23002
23006
|
const { db } = this.root;
|
|
23003
23007
|
const { _parsedProps: props } = this;
|
|
23008
|
+
const parentNormal = this.getParentNormalComponent();
|
|
23009
|
+
const kicadSymbolMetadata = parentNormal?._parsedProps?.kicadSymbolMetadata;
|
|
23004
23010
|
const schematic_symbol = db.schematic_symbol.insert({
|
|
23005
|
-
name: props.name
|
|
23011
|
+
name: props.name,
|
|
23012
|
+
metadata: kicadSymbolMetadata ? { kicad_symbol: kicadSymbolMetadata } : void 0
|
|
23006
23013
|
});
|
|
23007
23014
|
this.schematic_symbol_id = schematic_symbol.schematic_symbol_id;
|
|
23008
23015
|
}
|
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.1045",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"bun-match-svg": "0.0.12",
|
|
60
60
|
"calculate-elbow": "^0.0.12",
|
|
61
61
|
"chokidar-cli": "^3.0.0",
|
|
62
|
-
"circuit-json": "^0.0.
|
|
62
|
+
"circuit-json": "^0.0.383",
|
|
63
63
|
"circuit-json-to-bpc": "^0.0.13",
|
|
64
64
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
65
65
|
"circuit-json-to-gltf": "^0.0.68",
|