diff --git a/bun.lockb b/bun.lockb index 23fde87..8585826 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/examples/example19-custom-symbol.fixture.tsx b/examples/example19-custom-symbol.fixture.tsx new file mode 100644 index 0000000..c7033bd --- /dev/null +++ b/examples/example19-custom-symbol.fixture.tsx @@ -0,0 +1,46 @@ +import { SchematicViewer } from "lib/components/SchematicViewer" +import { renderToCircuitJson } from "lib/dev/render-to-circuit-json" + +const triangleSvgPath = "M -0.5 -0.7 L -0.5 0.7 L 0.7 0 Z" +// Rectangle (gate style) +const rectSvgPath = "M -0.6 -0.6 L 0.6 -0.6 L 0.6 0.6 L -0.6 0.6 Z" + +const circuitJson = renderToCircuitJson( + + + + + + + + } + /> + + + + + } + /> + , +) + +export default () => ( + +) diff --git a/package.json b/package.json index b10d7c9..2a8f46f 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "react-dom": "^19.1.0", "react-reconciler": "^0.31.0", "semver": "^7.7.2", - "tscircuit": "^0.0.1194", + "tscircuit": "^0.0.1437", "tsup": "^8.3.5", "vite": "^6.0.3" },