@tscircuit/core 0.0.159 → 0.0.160
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2532,6 +2532,7 @@ var NormalComponent = class extends PrimitiveComponent {
|
|
|
2532
2532
|
}
|
|
2533
2533
|
_doInitialSchematicComponentRenderWithSymbol() {
|
|
2534
2534
|
const { db } = this.root;
|
|
2535
|
+
const { _parsedProps: props } = this;
|
|
2535
2536
|
const base_symbol_name = this.config.schematicSymbolName;
|
|
2536
2537
|
const symbol_name_horz = `${base_symbol_name}_horz`;
|
|
2537
2538
|
let symbol_name;
|
|
@@ -2550,8 +2551,8 @@ var NormalComponent = class extends PrimitiveComponent {
|
|
|
2550
2551
|
const symbol = symbols2[symbol_name];
|
|
2551
2552
|
if (symbol) {
|
|
2552
2553
|
const schematic_component2 = db.schematic_component.insert({
|
|
2553
|
-
center: { x:
|
|
2554
|
-
rotation:
|
|
2554
|
+
center: { x: props.schX ?? 0, y: props.schY ?? 0 },
|
|
2555
|
+
rotation: props.schRotation ?? 0,
|
|
2555
2556
|
size: symbol.size,
|
|
2556
2557
|
source_component_id: this.source_component_id,
|
|
2557
2558
|
symbol_name,
|