@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.
- package/dist/index.js +6 -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
|
|
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.
|
|
16693
|
+
version: "0.0.787",
|
|
16690
16694
|
types: "dist/index.d.ts",
|
|
16691
16695
|
main: "dist/index.js",
|
|
16692
16696
|
module: "dist/index.js",
|