0.0.8 • Published 1 year ago

@tscircuit/table-viewer v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

@tscircuit/table-viewer

This table viewer allows inspection of "tscircuit soup elements", which is the output of tscircuit builder or an intermediate step of tscircuit react.

You might use the table viewer to debug why a particular selector isn't working.

npm.io

Usage

npm add @tscircuit/table-viewer
import { SoupTableViewer } from "@tscircuit/table-viewer"
import "react-data-grid/lib/styles.css"

export const MyApp = () => (
  <SoupTableViewer
    elements={[
      {
        type: "source_component",
        source_component_id: "simple_resistor_0",
        name: "R1",
        ftype: "simple_resistor",
      },
      {
        type: "schematic_component",
        source_component_id: "simple_resistor_0",
        schematic_component_id: "schematic_component_simple_resistor_0",
        rotation: 0,
        size: {
          width: 1,
          height: 0.3,
        },
        center: {
          x: 2,
          y: 1,
        },
        schematic_center: {
          x: 2,
          y: 1,
        },
      },
      {
        type: "source_port",
        name: "left",
        source_port_id: "source_port_0",
        source_component_id: "simple_resistor_0",
      },
      // ...
    ]}
  />
)

Development

Add/remove stories or use the existing stories to test new UI features.

npm run storybook
0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago