Module: obitech-report/vizcontext

obitech-report/vizcontext

The VizContext object provides the context for visualization properties needed during a user gesture / rendering a outer visualization ( gridvizhost ) and inner visualization ( Embeddable viz ). VizContext properties do not live beyond the lifetime of a call. The VizContext is different than the RenderingContext, in that the VizContext is global context used for the outer/inner visualization & the RenderingContext is a inner visualization specific context that is only used for an inner visualization. Currently, we use the VizContext to pass around the dataModelsCacheID, so it is only generated once per visualization action. The following properties are optional: 1) dataModelsCacheID - The data model cache id ( generated for this gesture / render ) There are two ways to use an instance of this class to get/set properties: myInstance.foo = 'value' myInstance.set('foo', 'value'); var foo = myInstance.foo; var foo = myInstance.get('foo'); myInstance.remove('foo');