@tscircuit/pcb-viewer 1.11.418 → 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 +4 -1
- package/dist/index.js +65 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ type Props = {
|
|
|
90
90
|
editEvents?: ManualEditEvent[];
|
|
91
91
|
initialState?: Partial<StateProps>;
|
|
92
92
|
onEditEventsChanged?: (editEvents: ManualEditEvent[]) => void;
|
|
93
|
+
/** Called once after the active renderer first paints the current Circuit JSON. */
|
|
94
|
+
onRenderComplete?: () => void;
|
|
93
95
|
/** Omit when the host has no enabled schematic tab. */
|
|
94
96
|
onViewSchematicComponent?: (event: ViewSchematicComponentEvent) => void;
|
|
95
97
|
onBoundsSelected?: (bounds: BoundsSelection) => void;
|
|
@@ -98,7 +100,7 @@ type Props = {
|
|
|
98
100
|
debugGraphics?: GraphicsObject | null;
|
|
99
101
|
disablePcbGroups?: boolean;
|
|
100
102
|
};
|
|
101
|
-
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;
|
|
102
104
|
|
|
103
105
|
interface CanvasElementsRendererProps {
|
|
104
106
|
elements: AnyCircuitElement[];
|
|
@@ -114,6 +116,7 @@ interface CanvasElementsRendererProps {
|
|
|
114
116
|
onViewSchematicComponent?: (event: ViewSchematicComponentEvent) => void;
|
|
115
117
|
onBoundsSelected?: (bounds: BoundsSelection) => void;
|
|
116
118
|
onContextMenuOpenChange?: (open: boolean) => void;
|
|
119
|
+
onRenderComplete?: () => void;
|
|
117
120
|
cancelPanDrag: () => void;
|
|
118
121
|
onCreateEditEvent: (event: ManualEditEvent) => void;
|
|
119
122
|
onModifyEditEvent: (event: Partial<ManualEditEvent>) => void;
|