@tscircuit/core 0.0.2157 → 0.0.2159
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 +18 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18292,6 +18292,9 @@ var NormalComponent = class extends PrimitiveComponent2 {
|
|
|
18292
18292
|
propsPinLabels.map((label, index2) => [`pin${index2 + 1}`, label])
|
|
18293
18293
|
) : propsPinLabels ? getNumericPinLabels(propsPinLabels) : void 0;
|
|
18294
18294
|
const existingChildPorts = this._getAllPortsFromChildren();
|
|
18295
|
+
const hasCustomSymbolPorts = existingChildPorts.some(
|
|
18296
|
+
(port) => port._getSymbolAncestor() !== null
|
|
18297
|
+
);
|
|
18295
18298
|
const hasExistingOrQueuedPortWithPinNumber = (pinNumber) => existingChildPorts.some((p2) => p2._parsedProps.pinNumber === pinNumber) || portsToCreate.some((p2) => p2._parsedProps.pinNumber === pinNumber);
|
|
18296
18299
|
const schPortArrangement = this._getSchematicPortArrangement();
|
|
18297
18300
|
if (schPortArrangement && !pinLabels) {
|
|
@@ -18418,6 +18421,7 @@ var NormalComponent = class extends PrimitiveComponent2 {
|
|
|
18418
18421
|
symbolPortMatches.set(symPort, existingPort);
|
|
18419
18422
|
existingPort.schematicSymbolPortDef = symPort;
|
|
18420
18423
|
} else {
|
|
18424
|
+
if (hasCustomSymbolPorts) continue;
|
|
18421
18425
|
const port = getPortFromHints(
|
|
18422
18426
|
symPort.labels.concat(
|
|
18423
18427
|
opts.additionalAliases?.[`pin${pinNumber}`] ?? []
|
|
@@ -119173,7 +119177,7 @@ var RoutingPhasePreparationError = class extends Error {
|
|
|
119173
119177
|
var package_default = {
|
|
119174
119178
|
name: "@tscircuit/core",
|
|
119175
119179
|
type: "module",
|
|
119176
|
-
version: "0.0.
|
|
119180
|
+
version: "0.0.2158",
|
|
119177
119181
|
types: "dist/index.d.ts",
|
|
119178
119182
|
main: "dist/index.js",
|
|
119179
119183
|
module: "dist/index.js",
|
|
@@ -125028,7 +125032,10 @@ var Board = class extends Group5 {
|
|
|
125028
125032
|
finalWidth,
|
|
125029
125033
|
finalHeight,
|
|
125030
125034
|
props.borderRadius
|
|
125031
|
-
)
|
|
125035
|
+
).map((point6) => ({
|
|
125036
|
+
x: point6.x + center.x,
|
|
125037
|
+
y: point6.y + center.y
|
|
125038
|
+
}));
|
|
125032
125039
|
}
|
|
125033
125040
|
const update2 = {
|
|
125034
125041
|
width: finalWidth,
|
|
@@ -125036,10 +125043,10 @@ var Board = class extends Group5 {
|
|
|
125036
125043
|
center
|
|
125037
125044
|
};
|
|
125038
125045
|
if (outline) {
|
|
125039
|
-
update2.outline = outline.map((point6) => ({
|
|
125046
|
+
update2.outline = props.outline ? outline.map((point6) => ({
|
|
125040
125047
|
x: point6.x + (props.outlineOffsetX ?? 0),
|
|
125041
125048
|
y: point6.y + (props.outlineOffsetY ?? 0)
|
|
125042
|
-
}));
|
|
125049
|
+
})) : outline;
|
|
125043
125050
|
}
|
|
125044
125051
|
db2.pcb_board.update(this.pcb_board_id, update2);
|
|
125045
125052
|
}
|
|
@@ -125170,10 +125177,13 @@ var Board = class extends Group5 {
|
|
|
125170
125177
|
computedWidth,
|
|
125171
125178
|
computedHeight,
|
|
125172
125179
|
props.borderRadius
|
|
125173
|
-
)
|
|
125180
|
+
).map((point6) => ({
|
|
125181
|
+
x: point6.x + center.x,
|
|
125182
|
+
y: point6.y + center.y
|
|
125183
|
+
}));
|
|
125174
125184
|
}
|
|
125175
125185
|
let outlineTranslation = { x: 0, y: 0 };
|
|
125176
|
-
if (outline && outline.length > 0 && (this.parent?.lowercaseComponentName === "panel" || this.parent?.lowercaseComponentName === "subpanel")) {
|
|
125186
|
+
if (props.outline && outline && outline.length > 0 && (this.parent?.lowercaseComponentName === "panel" || this.parent?.lowercaseComponentName === "subpanel")) {
|
|
125177
125187
|
const outlineBounds = getBoundsFromPoints13(outline);
|
|
125178
125188
|
if (outlineBounds) {
|
|
125179
125189
|
const outlineCenterX = (outlineBounds.minX + outlineBounds.maxX) / 2;
|
|
@@ -125200,10 +125210,10 @@ var Board = class extends Group5 {
|
|
|
125200
125210
|
num_layers: this.allLayers.length,
|
|
125201
125211
|
width: computedWidth,
|
|
125202
125212
|
height: computedHeight,
|
|
125203
|
-
outline: outline?.map((point6) => ({
|
|
125213
|
+
outline: props.outline ? outline?.map((point6) => ({
|
|
125204
125214
|
x: point6.x + (props.outlineOffsetX ?? 0) + outlineTranslation.x,
|
|
125205
125215
|
y: point6.y + (props.outlineOffsetY ?? 0) + outlineTranslation.y
|
|
125206
|
-
})),
|
|
125216
|
+
})) : outline,
|
|
125207
125217
|
material: props.material,
|
|
125208
125218
|
...resolvedIsViaInPadAllowed !== void 0 && {
|
|
125209
125219
|
is_via_in_pad_allowed: resolvedIsViaInPadAllowed
|