react-fabric-canvas-designer
Version:
A React-based wrapper for Fabric.js to create interactive and customizable canvas-based designs. This library provides tools for drawing, editing, and managing objects on a canvas with React-friendly APIs.
33 lines • 706 B
TypeScript
import { TFiller } from "fabric";
export type FabricObjectPropertyValueType = FabricObjectPropertyType extends {
value: infer T;
} ? T : never;
export type FabricObjectPropertyType = {
type: "range";
min: number;
max: number;
step: number;
value: number;
} | {
type: "boolean";
value: boolean;
} | {
type: "enum";
enum: string[];
value: string;
} | {
type: "font";
value: string;
} | {
type: "number";
min?: number;
step: number;
value: number;
} | {
type: "color";
value: string | TFiller;
};
export type FabricObjectPropertyList = {
[key: string]: FabricObjectPropertyType;
};
//# sourceMappingURL=WrapperFabricType.d.ts.map