I

ICanvasContext

This interface describes the context for many operations performed on items in a canvasComponent.
ImplementsInheritance Hierarchy

Remarks

This interface extends the ILookup interface to provide dynamic lookup capability.

Members

Show:

Properties

Gets the Canvas that is associated with this context.
readonlyabstract
Gets the radius for hit tests and marquee selection tests in world coordinates.

In the default implementations, this property automatically distinguishes between different radii depending on the last interaction event type.

This value already takes the zoom level into account.

readonlyabstract

See Also

Developer's Guide
Gets the current zoom level that is the ratio of world coordinates to screen pixels.
readonlyabstract

Implemented in

InputModeContext.zoom

Methods

Adds an element to the defs section of the document, if it has not been added yet.
abstract

Parameters

defsSupport: ISvgDefsCreator
The instance that is used to create and update the element and to query if the element is still referenced

Return Value

string
The id of the element with which it can be referenced using an url reference.
Returns an instance that implements the given type or null.
Typically, this method will be called to obtain a different view or aspect of the current instance. This is quite similar to casting or using a super type or interface of this instance, but is not limited to inheritance or compile-time constraints. An instance implementing this method is not required to return non-null implementations for the types, nor does it have to return the same instance any time. Also, it depends on the type and context whether the instance returned stays up to date or needs to be re-obtained for further use.
abstract

Parameters

type: Constructor<T>
the type for which an instance shall be returned

Return Value

T
an instance that is assignable to the type or null

See Also

Developer's Guide

Defined in

ILookup.lookup