circuit-json-to-gltf 0.0.155 → 0.0.156

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 CHANGED
@@ -18400,7 +18400,7 @@ async function convertSvgToPng(svgString, resolution, backgroundColor) {
18400
18400
  });
18401
18401
  } else {
18402
18402
  try {
18403
- const { svgToPngDataUrl } = await import("./svg-to-png-AFPNZW36.js");
18403
+ const { svgToPngDataUrl } = await import("./svg-to-png-NRFWX3UJ.js");
18404
18404
  return await svgToPngDataUrl(svgString, {
18405
18405
  width: resolution,
18406
18406
  background: backgroundColor
@@ -1,7 +1,6 @@
1
1
  import "./chunk-QGM4M3NI.js";
2
2
 
3
3
  // lib/utils/svg-to-png.ts
4
- import { Resvg } from "@resvg/resvg-js";
5
4
  import tscircuitFont from "@tscircuit/alphabet/base64font";
6
5
  var isNode = typeof process !== "undefined" && process.versions && process.versions.node;
7
6
  async function svgToPng(svgString, options = {}) {
@@ -49,6 +48,7 @@ async function svgToPng(svgString, options = {}) {
49
48
  sansSerifFamily: "TscircuitAlphabet"
50
49
  }
51
50
  };
51
+ const { Resvg } = await import("@resvg/resvg-js");
52
52
  const resvg = new Resvg(svgString, opts);
53
53
  const pngData = resvg.render();
54
54
  const pngBuffer = pngData.asPng();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "circuit-json-to-gltf",
3
3
  "main": "dist/index.js",
4
4
  "type": "module",
5
- "version": "0.0.155",
5
+ "version": "0.0.156",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/tscircuit/circuit-json-to-gltf.git"
@@ -19,6 +19,12 @@
19
19
  "files": [
20
20
  "dist"
21
21
  ],
22
+ "browser": {
23
+ "@resvg/resvg-js": false,
24
+ "fs": false,
25
+ "os": false,
26
+ "path": false
27
+ },
22
28
  "dependencies": {
23
29
  "@jscad/modeling": "^2.12.6",
24
30
  "@tscircuit/alphabet": "^0.0.25",
@@ -40,6 +46,7 @@
40
46
  "@tscircuit/circuit-json-util": "^0.0.114",
41
47
  "@tscircuit/core": "^0.0.1955",
42
48
  "@tscircuit/flex-utils": "https://jscdn.tscircuit.com/@tscircuit/flex-utils/0.0.8.tgz",
49
+ "@tscircuit/image-utils": "^0.0.10",
43
50
  "@tscircuit/props": "^0.0.664",
44
51
  "@types/bun": "latest",
45
52
  "@types/earcut": "^3.0.0",
@@ -50,7 +57,6 @@
50
57
  "circuit-json": "https://pkg.pr.new/circuit-json@90e54bd",
51
58
  "circuit-to-svg": "^0.0.445",
52
59
  "graphics-debug": "^0.0.96",
53
- "looks-same": "^9.0.1",
54
60
  "poppygl": "0.0.32",
55
61
  "react": "^19.1.1",
56
62
  "react-cosmos": "^7.0.0",