Interface DrawingAreaProps

interface DrawingAreaProps {
    disableDrag?: boolean;
    disableResize?: boolean;
    disabled?: boolean;
    drawingContainer: IDrawingContainer<any>;
    drawingContainerView: IDrawingContainerView<any>;
    onFirstRender?: (() => void);
    onUnFocus?: (() => void);
    renderDirections?: string[];
    renderDrawing: ((props) => ReactElement<any, string | JSXElementConstructor<any>>);
    transactionStack: ITransactionStack;
    view: GridOverlayView;
}

Hierarchy

  • HTMLAttributes<HTMLDivElement>
    • DrawingAreaProps

Properties

disableDrag?: boolean

If disabled then unable to move.

Default Value

false
disableResize?: boolean

If disabled then unable to resize.

Default Value

false
disabled?: boolean

If disabled then drawing selection will not be allowed and frames will be passed disabled.

Default Value

false
drawingContainer: IDrawingContainer<any>

The container to retrieve drawing objects

drawingContainerView: IDrawingContainerView<any>

The container view to retrieve selection information about the drawings.

onFirstRender?: (() => void)

Called after the first render of a drawing.

Type declaration

    • (): void
    • Returns void

Returns

onUnFocus?: (() => void)

Called when the final drawing is unselected.

Type declaration

    • (): void
    • Returns void

renderDirections?: string[]

Provider the anchor element to render.

renderDrawing: ((props) => ReactElement<any, string | JSXElementConstructor<any>>)

Callback to render the Drawing

Type declaration

    • (props): ReactElement<any, string | JSXElementConstructor<any>>
    • Parameters

      Returns ReactElement<any, string | JSXElementConstructor<any>>

Returns

transactionStack: ITransactionStack

If provided this will be used start and stop transactions on being/end move.

The gridView