SheetXL - v0.3.20
    Preparing search index...

    Interface ConstructorOptions

    Options for creating an IPicture.

    interface ConstructorOptions {
        beginPersistResource: () => IPersistScope<JSON>;
        createDescription?: string;
        defaultLockAspectRatio?: boolean;
        fromResourceId?: (resourceId: number) => IResource;
        json?: JSON;
        transactions?: IStore;
        type?: string;
        deleteFromContainer(options?: OperationOptions): void;
        isReadOnly(): boolean;
        setContainerReadOnlyCallback(callback: ReadOnlyCallback): void;
    }

    Hierarchy

    • ConstructorOptions<IPicture.JSON>
      • ConstructorOptions
    Index

    Properties

    beginPersistResource: () => IPersistScope<JSON>

    Useful for load/save/copying.

    createDescription?: string

    Use for the creation transaction description.

    defaultLockAspectRatio?: boolean

    Allow for the default lock aspect ratio to be overwritten.

    fromResourceId?: (resourceId: number) => IResource

    Returns an IResource from the resourceId or null if not found.

    json?: JSON

    JSON state to load.

    transactions?: IStore

    A transaction store that can be used to undo/redo changes to the model.

    type?: string

    The type of the model.

    Methods

    • Delete from the container.

      Parameters

      Returns void

    • If the item is readonly.

      Returns boolean

    • Notify if the readonly has been updated from the container.

      Parameters

      • callback: ReadOnlyCallback

      Returns void