@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
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
5
  "types": "index.ts",
6
- "version": "0.0.1",
6
+ "version": "0.0.2",
7
7
  "main": "dist/index.cjs",
8
8
  "files": [
9
9
  "index.ts",