@tscircuit/3d-viewer 0.0.637 → 0.0.639

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.d.ts CHANGED
@@ -29,6 +29,14 @@ declare const CameraAnimatorWithContext: React$1.FC;
29
29
 
30
30
  type ReferenceObjectType = "banana" | "credit-card" | "14in-macbook";
31
31
 
32
+ /** Viewer-local visibility of pickable scene objects, keyed by their
33
+ * cad_component_id, cad_cable_id, or rendered pcb_board_id/pcb_panel_id. */
34
+ interface ObjectVisibility {
35
+ hiddenIds: ReadonlySet<string>;
36
+ /** Hides every other object, including geometry without an object id. */
37
+ isolatedId?: string;
38
+ }
39
+
32
40
  interface Props {
33
41
  /**
34
42
  * @deprecated Use circuitJson instead.
@@ -42,13 +50,13 @@ interface Props {
42
50
  onCameraControllerReady?: (controller: CameraController | null) => void;
43
51
  resolveStaticAsset?: (modelUrl: string) => string;
44
52
  referenceObject?: ReferenceObjectType | null;
45
- hiddenCadComponentIds?: ReadonlySet<string>;
53
+ objectVisibility?: ObjectVisibility;
46
54
  }
47
55
  declare const CadViewerJscad: React$1.ForwardRefExoticComponent<Props & {
48
56
  children?: React$1.ReactNode | undefined;
49
57
  } & React$1.RefAttributes<THREE.Object3D<THREE.Object3DEventMap>>>;
50
58
 
51
- type CadViewerProps = Omit<React.ComponentProps<typeof CadViewerJscad>, "circuitJson" | "hiddenCadComponentIds"> & {
59
+ type CadViewerProps = Omit<React.ComponentProps<typeof CadViewerJscad>, "circuitJson" | "objectVisibility"> & {
52
60
  circuitJson?: any[];
53
61
  /** Settled circuit retaining authored assembly.explosion stages. */
54
62
  circuit?: RootCircuit;