@tscircuit/core 0.0.421 → 0.0.422
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 +1 -0
- package/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4286,6 +4286,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
|
|
|
4286
4286
|
}>;
|
|
4287
4287
|
shouldRenderAsSchematicBox: boolean;
|
|
4288
4288
|
};
|
|
4289
|
+
_getSchematicPortArrangement(): _tscircuit_props.SchematicPortArrangement;
|
|
4289
4290
|
doInitialSourceRender(): void;
|
|
4290
4291
|
doInitialPcbComponentRender(): void;
|
|
4291
4292
|
doInitialPcbTraceRender(): void;
|
package/dist/index.js
CHANGED
|
@@ -7292,6 +7292,16 @@ var Jumper = class extends NormalComponent {
|
|
|
7292
7292
|
shouldRenderAsSchematicBox: true
|
|
7293
7293
|
};
|
|
7294
7294
|
}
|
|
7295
|
+
_getSchematicPortArrangement() {
|
|
7296
|
+
const arrangement = super._getSchematicPortArrangement();
|
|
7297
|
+
if (arrangement) return arrangement;
|
|
7298
|
+
const pinCount = this._parsedProps.pinCount ?? (Array.isArray(this._parsedProps.pinLabels) ? this._parsedProps.pinLabels.length : this._parsedProps.pinLabels ? Object.keys(this._parsedProps.pinLabels).length : this.getPortsFromFootprint().length);
|
|
7299
|
+
const direction = this._parsedProps.schDirection ?? "right";
|
|
7300
|
+
return {
|
|
7301
|
+
leftSize: direction === "left" ? pinCount : 0,
|
|
7302
|
+
rightSize: direction === "right" ? pinCount : 0
|
|
7303
|
+
};
|
|
7304
|
+
}
|
|
7295
7305
|
doInitialSourceRender() {
|
|
7296
7306
|
const { db } = this.root;
|
|
7297
7307
|
const { _parsedProps: props } = this;
|
|
@@ -8471,7 +8481,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
8471
8481
|
var package_default = {
|
|
8472
8482
|
name: "@tscircuit/core",
|
|
8473
8483
|
type: "module",
|
|
8474
|
-
version: "0.0.
|
|
8484
|
+
version: "0.0.421",
|
|
8475
8485
|
types: "dist/index.d.ts",
|
|
8476
8486
|
main: "dist/index.js",
|
|
8477
8487
|
module: "dist/index.js",
|