Interface TypedAddDrawingOptions<J>

interface TypedAddDrawingOptions<J> {
    anchorType?: AnchorType;
    bounds?: Partial<Bounds>;
    description?: string;
    drawing?: J;
    fromResourceId?: ((resourceId) => ISharedResource);
    type: string;
}

Type Parameters

Hierarchy (view full)

Properties

anchorType?: AnchorType

The initial anchor for the drawing object.

Default Value

TwoCell for Shapes and OneCell for Images
bounds?: Partial<Bounds>

The boundary for the drawing object in pixels.

description?: string

Used for transactional operations.

drawing?: J

Initial drawing value.

fromResourceId?: ((resourceId) => ISharedResource)

If a referenceId is provided then the drawing will be linked to the resource.

Type declaration

Returns

ISharedResource

type: string

The type of drawing to add.