@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
38 lines (37 loc) • 1.26 kB
TypeScript
import { Component, ReactNode } from 'react';
declare class UUIDComponent<T> extends Component<T> {
UUID: string;
constructor(props: T);
}
declare const useUUID: () => string;
declare function UUIDProvider({ children }: {
children: any;
}): import('react').FunctionComponentElement<import('react').ProviderProps<string | null>>;
interface FrameProps {
id: string;
className?: string;
}
declare function SimpleFrame(props: FrameProps): import('react').ReactSVGElement;
interface GrainsizeFrameProps {
id: string;
zigZagBottom?: boolean;
zigZagTop?: boolean;
}
declare function GrainsizeFrame(props: GrainsizeFrameProps): import('react').ReactSVGElement | null;
declare const ClipPath: (props: any) => import('react').ReactSVGElement;
export interface ClipToFrameProps {
left: number;
shiftY: number;
onClick?: () => void;
frame?: any;
width?: number;
className?: string;
children?: ReactNode;
clip?: boolean;
}
export declare function ClippingFrame(props: ClipToFrameProps): import('react').DOMElement<{
className: string | undefined;
transform: null;
onClick: (() => void) | undefined;
}, Element>;
export { SimpleFrame, GrainsizeFrame, ClipPath, UUIDComponent, UUIDProvider, useUUID, };