@tscircuit/core 0.0.787 → 0.0.788

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 +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13014,7 +13014,11 @@ import {
13014
13014
  } from "@tscircuit/checks";
13015
13015
  var getRoundedRectOutline = (width, height, radius) => {
13016
13016
  const r = Math.min(radius, width / 2, height / 2);
13017
- const segments = Math.max(1, Math.ceil(Math.PI / 2 * r));
13017
+ const maxArcLengthPerSegment = 0.1;
13018
+ const segments = Math.max(
13019
+ 1,
13020
+ Math.ceil(Math.PI / 2 * r / maxArcLengthPerSegment)
13021
+ );
13018
13022
  const step = Math.PI / 2 / segments;
13019
13023
  const w2 = width / 2;
13020
13024
  const h2 = height / 2;
@@ -16686,7 +16690,7 @@ import { identity as identity6 } from "transformation-matrix";
16686
16690
  var package_default = {
16687
16691
  name: "@tscircuit/core",
16688
16692
  type: "module",
16689
- version: "0.0.786",
16693
+ version: "0.0.787",
16690
16694
  types: "dist/index.d.ts",
16691
16695
  main: "dist/index.js",
16692
16696
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.787",
4
+ "version": "0.0.788",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",