@tscircuit/pcb-viewer 1.11.417 → 1.11.419
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 +6 -1
- package/dist/index.js +328 -177
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ interface ViewSchematicComponentEvent {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
interface State {
|
|
15
|
+
copper_pour_opacity: number;
|
|
16
|
+
setCopperPourOpacity: (opacity: number) => void;
|
|
15
17
|
hidden_layer_opacity: number;
|
|
16
18
|
setHiddenLayerOpacity: (opacity: number) => void;
|
|
17
19
|
selected_layer: LayerRef;
|
|
@@ -88,6 +90,8 @@ type Props = {
|
|
|
88
90
|
editEvents?: ManualEditEvent[];
|
|
89
91
|
initialState?: Partial<StateProps>;
|
|
90
92
|
onEditEventsChanged?: (editEvents: ManualEditEvent[]) => void;
|
|
93
|
+
/** Called once after the active renderer first paints the current Circuit JSON. */
|
|
94
|
+
onRenderComplete?: () => void;
|
|
91
95
|
/** Omit when the host has no enabled schematic tab. */
|
|
92
96
|
onViewSchematicComponent?: (event: ViewSchematicComponentEvent) => void;
|
|
93
97
|
onBoundsSelected?: (bounds: BoundsSelection) => void;
|
|
@@ -96,7 +100,7 @@ type Props = {
|
|
|
96
100
|
debugGraphics?: GraphicsObject | null;
|
|
97
101
|
disablePcbGroups?: boolean;
|
|
98
102
|
};
|
|
99
|
-
declare const PCBViewer: ({ circuitJson, debugGraphics, height, renderer, initialState, allowEditing, editEvents: editEventsProp, onEditEventsChanged, onBoundsSelected, onViewSchematicComponent, focusOnHover, clickToInteractEnabled, disablePcbGroups, }: Props) => react_jsx_runtime.JSX.Element;
|
|
103
|
+
declare const PCBViewer: ({ circuitJson, debugGraphics, height, renderer, initialState, allowEditing, editEvents: editEventsProp, onEditEventsChanged, onRenderComplete, onBoundsSelected, onViewSchematicComponent, focusOnHover, clickToInteractEnabled, disablePcbGroups, }: Props) => react_jsx_runtime.JSX.Element;
|
|
100
104
|
|
|
101
105
|
interface CanvasElementsRendererProps {
|
|
102
106
|
elements: AnyCircuitElement[];
|
|
@@ -112,6 +116,7 @@ interface CanvasElementsRendererProps {
|
|
|
112
116
|
onViewSchematicComponent?: (event: ViewSchematicComponentEvent) => void;
|
|
113
117
|
onBoundsSelected?: (bounds: BoundsSelection) => void;
|
|
114
118
|
onContextMenuOpenChange?: (open: boolean) => void;
|
|
119
|
+
onRenderComplete?: () => void;
|
|
115
120
|
cancelPanDrag: () => void;
|
|
116
121
|
onCreateEditEvent: (event: ManualEditEvent) => void;
|
|
117
122
|
onModifyEditEvent: (event: Partial<ManualEditEvent>) => void;
|