@tscircuit/core 0.0.213 → 0.0.214
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 +0 -26
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4856,32 +4856,6 @@ var Jumper = class extends NormalComponent {
|
|
|
4856
4856
|
manufacturer_part_number: props.manufacturerPartNumber,
|
|
4857
4857
|
supplier_part_numbers: props.supplierPartNumbers
|
|
4858
4858
|
});
|
|
4859
|
-
const dimensions = this._getSchematicBoxDimensions();
|
|
4860
|
-
const hasOnlyLeftAndRightPins = props.schPortArrangement?.topSide !== void 0 && props.schPortArrangement?.bottomSide !== void 0;
|
|
4861
|
-
const schematic_box_width = dimensions?.getSize().width;
|
|
4862
|
-
const schematic_box_height = dimensions?.getSize().height;
|
|
4863
|
-
const manufacturer_part_number_text = db.schematic_text.insert({
|
|
4864
|
-
text: props.manufacturerPartNumber ?? "",
|
|
4865
|
-
schematic_component_id: source_component.source_component_id,
|
|
4866
|
-
anchor: "left",
|
|
4867
|
-
rotation: 0,
|
|
4868
|
-
position: {
|
|
4869
|
-
x: hasOnlyLeftAndRightPins ? (props.schX ?? 0) + (schematic_box_width ?? 0) / 2 : (props.schX ?? 0) - (schematic_box_width ?? 0) / 2,
|
|
4870
|
-
y: hasOnlyLeftAndRightPins ? (props.schY ?? 0) + (schematic_box_height ?? 0) / 2 + 0.55 : (props.schY ?? 0) - (schematic_box_height ?? 0) / 2 - 0.13
|
|
4871
|
-
},
|
|
4872
|
-
color: "#006464"
|
|
4873
|
-
});
|
|
4874
|
-
const component_name_text = db.schematic_text.insert({
|
|
4875
|
-
text: props.name ?? "",
|
|
4876
|
-
schematic_component_id: source_component.source_component_id,
|
|
4877
|
-
anchor: "left",
|
|
4878
|
-
rotation: 0,
|
|
4879
|
-
position: {
|
|
4880
|
-
x: hasOnlyLeftAndRightPins ? (props.schX ?? 0) + (schematic_box_width ?? 0) / 2 : (props.schX ?? 0) - (schematic_box_width ?? 0) / 2,
|
|
4881
|
-
y: hasOnlyLeftAndRightPins ? (props.schY ?? 0) + (schematic_box_height ?? 0) / 2 + 0.35 : (props.schY ?? 0) + (schematic_box_height ?? 0) / 2 + 0.13
|
|
4882
|
-
},
|
|
4883
|
-
color: "#006464"
|
|
4884
|
-
});
|
|
4885
4859
|
this.source_component_id = source_component.source_component_id;
|
|
4886
4860
|
}
|
|
4887
4861
|
doInitialPcbComponentRender() {
|