@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 +1 -1
- package/dist/index.js +2 -7
- package/package.json +1 -1
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(
|
|
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(
|
|
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}
|
|
366
|
+
return symbols[`${config.schematicSymbolName}`] ?? null;
|
|
372
367
|
}
|
|
373
368
|
/**
|
|
374
369
|
* Subcircuit groups have a prop called "layout" that can include manual
|