Creates an instance of the ShadowEffect
The SciChart WebAssembly Context containing native methods and access to our WebGL2 WebAssembly Drawing Engine
Optional parameters of type IShaderEffectOptions to configure the effect
Event handler for when properties change, signalling that the parent SciChartSurface needs to redraw
Gets or sets the color property as an HTML Color code
Gets or sets the color property as an HTML Color code
Gets or sets the intensity property
Gets or sets the intensity property
Gets or sets the range property
Gets or sets the range property
Gets the native {@link SCRTSeriesEffect} which contains the shader effect that will be applied in WebGL
Notifies subscribers to propertyChanged that a property has changed and the parent SciChartSurface needs to redraw
Convert the object to a definition that can be serialized to JSON, or used directly with the builder api
Generated using TypeDoc
Defines a drop-shadow shader effect that may be applied to a RenderableSeries
To apply a Shadow effect to a chart series, use the following code:
const effect = new ShadowEffect(wasmContext, { range: 1, brightness: 100, offset: new Point(10, 10) }); const lineSeries = new FastLineRenderableSeries(wasmContext, { stroke, effect });
Note that effects implement IDeletable and must be manually deleted to free webassembly / native memory