@tscircuit/core 0.0.1 → 0.0.2
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.cjs
CHANGED
|
@@ -4161,7 +4161,7 @@ var PrimitiveComponent = class extends Renderable {
|
|
|
4161
4161
|
* components
|
|
4162
4162
|
*/
|
|
4163
4163
|
computePcbPropsTransform() {
|
|
4164
|
-
return (0, import_transformation_matrix.compose)((0, import_transformation_matrix.translate)(this.props.pcbX, this.props.pcbY));
|
|
4164
|
+
return (0, import_transformation_matrix.compose)((0, import_transformation_matrix.translate)(this.props.pcbX ?? 0, this.props.pcbY ?? 0));
|
|
4165
4165
|
}
|
|
4166
4166
|
/**
|
|
4167
4167
|
* Compute a transformation matrix combining all parent transforms for PCB
|
|
@@ -95,7 +95,7 @@ export abstract class PrimitiveComponent<
|
|
|
95
95
|
*/
|
|
96
96
|
computePcbPropsTransform(): Matrix {
|
|
97
97
|
// TODO rotations
|
|
98
|
-
return compose(translate(this.props.pcbX, this.props.pcbY))
|
|
98
|
+
return compose(translate(this.props.pcbX ?? 0, this.props.pcbY ?? 0))
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|