Hiyve Components - v1.0.0
    Preparing search index...

    Interface WhiteboardAddinContext

    Add-in context provided to add-ins

    interface WhiteboardAddinContext {
        broadcastMessage: (data: unknown) => void;
        canvas: Canvas;
        currentColor: string;
        forceUpdate: () => void;
        generateObjectId: () => string;
        getFileURL: (fileId: string) => Promise<string>;
        readOnly: boolean;
        userId: string;
    }
    Index

    Properties

    broadcastMessage: (data: unknown) => void

    Broadcast a message to other users

    canvas: Canvas

    Fabric.js canvas instance

    currentColor: string

    Current drawing color

    forceUpdate: () => void

    Force re-render of whiteboard

    generateObjectId: () => string

    Generate a unique object ID

    getFileURL: (fileId: string) => Promise<string>

    Get file URL for loading resources

    readOnly: boolean

    Whether in read-only mode

    userId: string

    Current user ID