Interface ChartEditorProps

interface ChartEditorProps {
    disabled?: boolean;
    drawing: IDrawingChartModel;
    isDragging?: boolean;
    onHide: ((hide) => void);
    onShow: ((show) => void);
    view: GridOverlayView;
}

Hierarchy (view full)

Properties

disabled?: boolean

If true then the component is disabled.

Default Value

false

Remarks

To see if an element is readonly check the IDrawingModel.isProtected() method.

The underlying model for the chart.

isDragging?: boolean

Indicator for dragging.

Default Value

false
onHide: ((hide) => void)

Called when the drawing is hidden from view. If this returns a false the drawing will not be unmounted but will still have a style opacity property of 0 (and pointerEvents of none).

Type declaration

    • (hide): void
    • Parameters

      • hide: ((drawing) => boolean | void | Promise<boolean>)
          • (drawing): boolean | void | Promise<boolean>
          • Parameters

            Returns boolean | void | Promise<boolean>

      Returns void

Remarks

Keeping a drawing mounted is useful for elements that take a long of time to render but increase the memory footprint of the application.

onShow: ((show) => void)

Call when the drawing is returned to the view.

Type declaration

    • (show): void
    • Parameters

      Returns void

The view to use for the drawing. // TODO - this should not be the GridOverlayView, rather a simpler interface that doesn't have a grid dependency.