@tscircuit/core 0.0.1212 → 0.0.1213
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 +21 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11526,6 +11526,14 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
11526
11526
|
});
|
|
11527
11527
|
}
|
|
11528
11528
|
}
|
|
11529
|
+
if (this._parsedProps.schPinSpacing !== void 0 && this.root?.db) {
|
|
11530
|
+
this.root.db.source_property_ignored_warning.insert({
|
|
11531
|
+
source_component_id: this.source_component_id,
|
|
11532
|
+
property_name: "schPinSpacing",
|
|
11533
|
+
error_type: "source_property_ignored_warning",
|
|
11534
|
+
message: "schPinSpacing is deprecated and will be ignored. Pin spacing is always 0.2."
|
|
11535
|
+
});
|
|
11536
|
+
}
|
|
11529
11537
|
const { schematicSymbolName } = this.config;
|
|
11530
11538
|
const { _parsedProps: props } = this;
|
|
11531
11539
|
if (props.symbol && isReactElement2(props.symbol)) {
|
|
@@ -11628,7 +11636,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
11628
11636
|
// schematic_box size
|
|
11629
11637
|
// size: dimensions.getSizeIncludingPins(),
|
|
11630
11638
|
port_arrangement: underscorifyPortArrangement(schPortArrangement),
|
|
11631
|
-
pin_spacing:
|
|
11639
|
+
pin_spacing: 0.2,
|
|
11632
11640
|
// @ts-ignore soup needs to support distance for pin_styles
|
|
11633
11641
|
pin_styles: underscorifyPinStyles(props.schPinStyle, props.pinLabels),
|
|
11634
11642
|
port_labels: primaryPortLabels,
|
|
@@ -12184,7 +12192,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
12184
12192
|
}
|
|
12185
12193
|
const { _parsedProps: props } = this;
|
|
12186
12194
|
const pinCount = this._getPrimaryPinCount();
|
|
12187
|
-
const pinSpacing =
|
|
12195
|
+
const pinSpacing = 0.2;
|
|
12188
12196
|
const pinLabelsFromPorts = this._getPinLabelsFromPorts();
|
|
12189
12197
|
const allPinLabels = {
|
|
12190
12198
|
...pinLabelsFromPorts,
|
|
@@ -16944,6 +16952,14 @@ var Group_doInitialSchematicBoxComponentRender = (group) => {
|
|
|
16944
16952
|
if (group.root?.schematicDisabled) return;
|
|
16945
16953
|
const { db } = group.root;
|
|
16946
16954
|
const props = group._parsedProps;
|
|
16955
|
+
if (props.schPinSpacing !== void 0) {
|
|
16956
|
+
db.source_property_ignored_warning.insert({
|
|
16957
|
+
source_component_id: group.source_group_id ?? "",
|
|
16958
|
+
property_name: "schPinSpacing",
|
|
16959
|
+
error_type: "source_property_ignored_warning",
|
|
16960
|
+
message: "schPinSpacing is deprecated and will be ignored. Pin spacing is always 0.2."
|
|
16961
|
+
});
|
|
16962
|
+
}
|
|
16947
16963
|
normalizeGroupSchematicBoxPorts(group);
|
|
16948
16964
|
const dimensions = group._getSchematicBoxDimensions();
|
|
16949
16965
|
if (!dimensions) return;
|
|
@@ -16960,7 +16976,7 @@ var Group_doInitialSchematicBoxComponentRender = (group) => {
|
|
|
16960
16976
|
is_schematic_group: true,
|
|
16961
16977
|
is_box_with_pins: true,
|
|
16962
16978
|
port_arrangement: underscorifyPortArrangement(schPortArrangement),
|
|
16963
|
-
pin_spacing:
|
|
16979
|
+
pin_spacing: 0.2,
|
|
16964
16980
|
pin_styles: underscorifyPinStyles(
|
|
16965
16981
|
props.schPinStyle,
|
|
16966
16982
|
portLabels
|
|
@@ -20393,7 +20409,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
20393
20409
|
var package_default = {
|
|
20394
20410
|
name: "@tscircuit/core",
|
|
20395
20411
|
type: "module",
|
|
20396
|
-
version: "0.0.
|
|
20412
|
+
version: "0.0.1212",
|
|
20397
20413
|
types: "dist/index.d.ts",
|
|
20398
20414
|
main: "dist/index.js",
|
|
20399
20415
|
module: "dist/index.js",
|
|
@@ -24585,7 +24601,7 @@ var Connector = class extends Chip {
|
|
|
24585
24601
|
if (!this.config.shouldRenderAsSchematicBox) return null;
|
|
24586
24602
|
const { _parsedProps: props } = this;
|
|
24587
24603
|
const pinCount = this._getPrimaryPinCount();
|
|
24588
|
-
const pinSpacing =
|
|
24604
|
+
const pinSpacing = 0.2;
|
|
24589
24605
|
const pinLabelsFromPorts = this._getPinLabelsFromPorts();
|
|
24590
24606
|
const allPinLabels = {
|
|
24591
24607
|
...pinLabelsFromPorts
|