@tscircuit/core 0.0.263 → 0.0.264

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -787,6 +787,11 @@ var PrimitiveComponent = class extends Renderable {
787
787
  const symbol_name_down = `${base_symbol_name}_down`;
788
788
  const symbol_name_left = `${base_symbol_name}_left`;
789
789
  const symbol_name_right = `${base_symbol_name}_right`;
790
+ if (props.schRotation !== void 0 && props.schRotation !== 0 && props.schRotation !== 90 && props.schRotation !== 180 && props.schRotation !== 270) {
791
+ throw new Error(
792
+ `Schematic rotation ${props.schRotation} is not supported for ${this.componentName}`
793
+ );
794
+ }
790
795
  if (symbol_name_right in symbols && (props.schRotation === void 0 || props.schRotation === 0)) {
791
796
  return symbol_name_right;
792
797
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.263",
4
+ "version": "0.0.264",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",