@tscircuit/runframe 0.0.1040 → 0.0.1042
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/{chunk-CCZLL35F.js → chunk-6NJXM2YQ.js} +20 -2
- package/dist/preview.js +1 -1
- package/dist/runner.js +1 -1
- package/dist/standalone-preview.min.js +307 -307
- package/dist/standalone.min.js +310 -310
- package/package.json +2 -2
|
@@ -1426,7 +1426,7 @@ var useErrorTelemetry = ({
|
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
1428
1428
|
// package.json
|
|
1429
|
-
var version = "0.0.
|
|
1429
|
+
var version = "0.0.1041";
|
|
1430
1430
|
|
|
1431
1431
|
// lib/hooks/use-eval-versions.ts
|
|
1432
1432
|
import { useEffect as useEffect5, useMemo as useMemo2, useState as useState6 } from "react";
|
|
@@ -3110,6 +3110,19 @@ var exportGlb = async ({
|
|
|
3110
3110
|
});
|
|
3111
3111
|
};
|
|
3112
3112
|
|
|
3113
|
+
// lib/optional-features/exporting/formats/export-pinout-svg.ts
|
|
3114
|
+
import { convertCircuitJsonToPinoutSvg } from "circuit-to-svg";
|
|
3115
|
+
var exportPinoutSvg = ({
|
|
3116
|
+
circuitJson,
|
|
3117
|
+
projectName
|
|
3118
|
+
}) => {
|
|
3119
|
+
const svgString = convertCircuitJsonToPinoutSvg(circuitJson);
|
|
3120
|
+
openForDownload(svgString, {
|
|
3121
|
+
fileName: `${projectName}-pinout.svg`,
|
|
3122
|
+
mimeType: "image/svg+xml"
|
|
3123
|
+
});
|
|
3124
|
+
};
|
|
3125
|
+
|
|
3113
3126
|
// lib/optional-features/exporting/formats/export-kicad-project.ts
|
|
3114
3127
|
import JSZip2 from "jszip";
|
|
3115
3128
|
import {
|
|
@@ -3147,7 +3160,8 @@ var availableExports = [
|
|
|
3147
3160
|
{ extension: "json", name: "Circuit JSON" },
|
|
3148
3161
|
{ extension: "zip", name: "Fabrication Files" },
|
|
3149
3162
|
{ extension: "zip", name: "KiCad Project" },
|
|
3150
|
-
{ extension: "glb", name: "GLB (Binary GLTF)" }
|
|
3163
|
+
{ extension: "glb", name: "GLB (Binary GLTF)" },
|
|
3164
|
+
{ extension: "svg", name: "Pinout SVG" }
|
|
3151
3165
|
// { extension: "svg", name: "SVG" },
|
|
3152
3166
|
// { extension: "dsn", name: "Specctra DSN" },
|
|
3153
3167
|
// { extension: "kicad_mod", name: "KiCad Module" },
|
|
@@ -3177,6 +3191,10 @@ var exportAndDownload = async ({
|
|
|
3177
3191
|
await exportGlb({ circuitJson, projectName });
|
|
3178
3192
|
return;
|
|
3179
3193
|
}
|
|
3194
|
+
if (exportName === "Pinout SVG") {
|
|
3195
|
+
exportPinoutSvg({ circuitJson, projectName });
|
|
3196
|
+
return;
|
|
3197
|
+
}
|
|
3180
3198
|
throw new Error(`Unsupported export type: "${exportName}"`);
|
|
3181
3199
|
};
|
|
3182
3200
|
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED