@tscircuit/core 0.0.93 → 0.0.94

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 CHANGED
@@ -197,7 +197,7 @@ declare abstract class PrimitiveComponent<ZodProps extends ZodType = any> extend
197
197
  * component
198
198
  */
199
199
  computeSchematicGlobalTransform(): Matrix;
200
- getSchematicSymbol(variant?: "horz" | "vert" | null): SchSymbol | null;
200
+ getSchematicSymbol(): SchSymbol | null;
201
201
  /**
202
202
  * Subcircuit groups have a prop called "layout" that can include manual
203
203
  * placements for pcb components. These are typically added from an IDE
package/dist/index.js CHANGED
@@ -360,15 +360,10 @@ var PrimitiveComponent = class extends Renderable {
360
360
  this.computeSchematicPropsTransform()
361
361
  );
362
362
  }
363
- getSchematicSymbol(variant = null) {
364
- if (variant === null) {
365
- return this.getSchematicSymbol(
366
- this.props.schRotation % 90 === 0 ? "vert" : "horz"
367
- );
368
- }
363
+ getSchematicSymbol() {
369
364
  const { config } = this;
370
365
  if (!config.schematicSymbolName) return null;
371
- return symbols[`${config.schematicSymbolName}_${variant}`] ?? null;
366
+ return symbols[`${config.schematicSymbolName}`] ?? null;
372
367
  }
373
368
  /**
374
369
  * Subcircuit groups have a prop called "layout" that can include manual
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.93",
4
+ "version": "0.0.94",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",