Hiyve Components - v1.0.0
    Preparing search index...
    • Create a shape object

      Parameters

      • type: "circle" | "rect" | "triangle" | "text"

        Shape type

      • options: {
            customProps?: WhiteboardObjectCustomProps;
            fill?: string;
            height?: number;
            id?: string;
            left: number;
            radius?: number;
            stroke?: string;
            strokeWidth?: number;
            text?: string;
            top: number;
            width?: number;
        }

        Shape options

      Returns
          | FabricObject<
              Partial<FabricObjectProps>,
              SerializedObjectProps,
              ObjectEvents,
          >
          | null

      Created Fabric.js object