@cs-open/react-fabric
Version:
24 lines • 812 B
TypeScript
import type { GroupEvents, GroupProps } from 'fabric';
import { Group as BaseGroup } from 'fabric';
import type { AllEvents } from '../../types/canvas';
export type MyGroupProps = Partial<GroupProps & AllEvents<GroupEvents>> & {
children: React.ReactElement<{
group?: BaseGroup;
}>[] | React.ReactElement<{
group?: BaseGroup;
}>;
controlsVisibility?: {
ml?: boolean;
mt?: boolean;
mr?: boolean;
mb?: boolean;
mtr?: boolean;
tl?: boolean;
tr?: boolean;
bl?: boolean;
br?: boolean;
};
};
declare const Group: import("react").MemoExoticComponent<({ children, controlsVisibility, ...props }: MyGroupProps) => import("react/jsx-runtime").JSX.Element>;
export default Group;
//# sourceMappingURL=index.d.ts.map