@tscircuit/schematic-viewer 2.0.55 → 2.0.57
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 +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/.github/workflows/bun-formatcheck.yml +0 -26
- package/.github/workflows/bun-pver-release.yml +0 -59
- package/.github/workflows/bun-typecheck.yml +0 -26
- package/.github/workflows/on-merge-inform-release-tracker.yml +0 -24
- package/CLAUDE.md +0 -1
- package/biome.json +0 -56
- package/bun.lockb +0 -0
- package/cosmos.config.json +0 -3
- package/cosmos.decorator.tsx +0 -3
- package/docs/circuit-to-svg-metadata.md +0 -151
- package/docs/dragndrop-spec.md +0 -39
- package/examples/example1-resistor-and-capacitor.fixture.tsx +0 -16
- package/examples/example10-groups-view-schematic-groups.fixture.tsx +0 -76
- package/examples/example11-automatic-grouping-view-schematic-groups.fixture.tsx +0 -109
- package/examples/example12-spice-boost-converter.fixture.tsx +0 -78
- package/examples/example13-disablegroups.fixture.tsx +0 -30
- package/examples/example14-schematic-component-click.fixture.tsx +0 -46
- package/examples/example15-analog-simulation-viewer.fixture.tsx +0 -145
- package/examples/example16-no-analog-simulation.fixture.tsx +0 -13
- package/examples/example17-schematic-ports.fixture.tsx +0 -49
- package/examples/example2-small-circuit.fixture.tsx +0 -48
- package/examples/example3-small-circuit-without-debug-grid.fixture.tsx +0 -44
- package/examples/example4-reset-edit-events.fixture.tsx +0 -57
- package/examples/example5-circuit-json-rerender.fixture.tsx +0 -110
- package/examples/example6-click-to-interact.fixture.tsx +0 -36
- package/examples/example7-schematic-viewer-fix-snapping.fixture.tsx +0 -123
- package/examples/example8-color-overrides.fixture.tsx +0 -52
- package/examples/example9-spice-rc-charging-voltage-divider.fixture.tsx +0 -77
- package/index.html +0 -12
- package/lib/components/AnalogSimulationViewer.tsx +0 -300
- package/lib/components/ControlledSchematicViewer.tsx +0 -40
- package/lib/components/EditIcon.tsx +0 -46
- package/lib/components/GridIcon.tsx +0 -45
- package/lib/components/MouseTracker.tsx +0 -257
- package/lib/components/SchematicComponentMouseTarget.tsx +0 -189
- package/lib/components/SchematicPortMouseTarget.tsx +0 -224
- package/lib/components/SchematicViewer.tsx +0 -582
- package/lib/components/SpiceIcon.tsx +0 -14
- package/lib/components/SpicePlot.tsx +0 -221
- package/lib/components/SpiceSimulationIcon.tsx +0 -32
- package/lib/components/SpiceSimulationOverlay.tsx +0 -250
- package/lib/components/ViewMenu.tsx +0 -218
- package/lib/components/ViewMenuIcon.tsx +0 -47
- package/lib/dev/render-to-circuit-json.ts +0 -8
- package/lib/hooks/use-resize-handling.ts +0 -35
- package/lib/hooks/useChangeSchematicComponentLocationsInSvg.ts +0 -117
- package/lib/hooks/useChangeSchematicTracesForMovedComponents.ts +0 -121
- package/lib/hooks/useComponentDragging.ts +0 -251
- package/lib/hooks/useLocalStorage.ts +0 -63
- package/lib/hooks/useMouseEventsOverBoundingBox.ts +0 -74
- package/lib/hooks/useSchematicGroupsOverlay.ts +0 -364
- package/lib/hooks/useSpiceSimulation.ts +0 -149
- package/lib/index.ts +0 -4
- package/lib/types/edit-events.ts +0 -16
- package/lib/types/eecircuit-engine.d.ts +0 -147
- package/lib/utils/debug.ts +0 -9
- package/lib/utils/get-component-offset-due-to-events.ts +0 -43
- package/lib/utils/spice-utils.ts +0 -128
- package/lib/utils/z-index-map.ts +0 -11
- package/lib/workers/spice-simulation.worker.ts +0 -51
- package/scripts/build-worker-blob-url.ts +0 -55
- package/src/main.tsx +0 -21
- package/tsconfig.json +0 -33
- package/tsup-webworker.config.ts +0 -13
- package/vite.config.js +0 -15
package/dist/index.js
CHANGED
|
@@ -852,7 +852,7 @@ import { su as su5 } from "@tscircuit/soup-util";
|
|
|
852
852
|
// package.json
|
|
853
853
|
var package_default = {
|
|
854
854
|
name: "@tscircuit/schematic-viewer",
|
|
855
|
-
version: "2.0.
|
|
855
|
+
version: "2.0.56",
|
|
856
856
|
main: "dist/index.js",
|
|
857
857
|
type: "module",
|
|
858
858
|
scripts: {
|
|
@@ -865,6 +865,9 @@ var package_default = {
|
|
|
865
865
|
format: "biome format --write .",
|
|
866
866
|
"format:check": "biome format ."
|
|
867
867
|
},
|
|
868
|
+
files: [
|
|
869
|
+
"dist"
|
|
870
|
+
],
|
|
868
871
|
devDependencies: {
|
|
869
872
|
"@biomejs/biome": "^1.9.4",
|
|
870
873
|
"@types/bun": "latest",
|
|
@@ -2423,7 +2426,8 @@ var SchematicViewer = ({
|
|
|
2423
2426
|
} = useSpiceSimulation(hasSpiceSimRun ? spiceString : null);
|
|
2424
2427
|
const [editModeEnabled, setEditModeEnabled] = useState7(defaultEditMode);
|
|
2425
2428
|
const [snapToGrid, setSnapToGrid] = useState7(true);
|
|
2426
|
-
const [
|
|
2429
|
+
const [showGridInternal, setShowGridInternal] = useState7(false);
|
|
2430
|
+
const showGrid = debugGrid || showGridInternal;
|
|
2427
2431
|
const [isInteractionEnabled, setIsInteractionEnabled] = useState7(
|
|
2428
2432
|
!clickToInteractEnabled
|
|
2429
2433
|
);
|
|
@@ -2748,7 +2752,7 @@ var SchematicViewer = ({
|
|
|
2748
2752
|
}
|
|
2749
2753
|
},
|
|
2750
2754
|
showGrid,
|
|
2751
|
-
onToggleGrid:
|
|
2755
|
+
onToggleGrid: setShowGridInternal
|
|
2752
2756
|
}
|
|
2753
2757
|
),
|
|
2754
2758
|
spiceSimulationEnabled && /* @__PURE__ */ jsx12(SpiceSimulationIcon, { onClick: () => setShowSpiceOverlay(true) }),
|