- I
- I
- I
Remarks
Members
Constructors
Creates a new instance of a context that is nested within the parentInputModeContext.
parentInputModeContext.The lookup behavior of this instance will by default delegate all queries to the parentInputModeContext, unless the provided IInputModeContext implements the requested type, already. Then, the input mode instance will be returned.
Use the getDecoratorFor method to add additional lookup behavior to this instance.
Parameters
- parentInputModeContext: IInputModeContext
- The enclosing context to which lookup calls will be delegated to that will not be answered by this instance.
- inputMode?: IInputMode
- The optional IInputMode that establishes this nested context. This will be set as the inputMode property, when specified. When omitted, the
parentInputModeContext's property will be returned, instead.
Properties
Gets the Canvas that is associated with this context.
Implements
ICanvasContext.canvasComponentTries to retrieve an IGraph instance from an IInputModeContext.
Defined in
IInputModeContext.graphIn 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.
Implements
ICanvasContext.hitTestRadiusGets the IInputMode which this context conceptually has been created for.
This can be null if this instance is used outside the context of an IInputMode.
When an IInputMode triggers an event, performs an action or invokes a callback that expects an IInputModeContext, typically that context will provide the invoking mode via this property.
Implements
IInputModeContext.inputModeImplements
ICanvasContext.zoomMethods
getDecoratorFor
<TInterface> (interfaceType: Constructor<TInterface>): LookupDecorator<IInputModeContext, TInterface>Creates a LookupDecorator<IInputModeContext, TInterface> for this instance that can be used to modify the lookup behavior of this instance.
getDecoratorFor
<TInterface> (interfaceType: Constructor<TInterface>): LookupDecorator<IInputModeContext, TInterface>Parameters
- interfaceType: Constructor<TInterface>
Return Value
- LookupDecorator<IInputModeContext, TInterface>
- A helper class to decorate the lookup.
Adds an element to the defs section of the document, if it has not been added yet.
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.
Implements
ICanvasContext.getDefsIdDefined in
IInputModeContext.invalidateDisplaysImplements the ILookup interface for this class.
Parameters
- type: Constructor<T>
- The type to request an implementation for.
Return Value
- T
- An implementation or
null