Creates an instance of the SquarePointMarker
The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
Optional parameters of type IPointMarkerOptions used to configure the point-marker at instantiation time
The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
Callback to invalidate the parent 2D SciChartSurface
Gets or sets the point-marker fill as an HTML Color Code
Gets or sets the point-marker fill as an HTML Color Code
Gets or sets the height of the point-marker in pixels
Gets or sets the height of the point-marker in pixels
Gets or sets the opacity of the point-marker
Gets or sets the point-marker stroke as an HTML Color Code
Gets or sets the point-marker stroke as an HTML Color Code
Gets or sets the stroke-thickness of the point-marker in pixels
Gets or sets the stroke-thickness of the point-marker in pixels
Gets or sets the width of the point-marker in pixels
Gets or sets the width of the point-marker in pixels
Called internally - creates the CanvasTexture object and calls drawSprite for creating the cached texture to draw
Deletes native (WebAssembly) memory used by this type, after which it cannot be used.
When overridden in a derived class, draw once the point-marker to the {@link CanvasRenderingContext2D}. This will create a sprite (image or bitmap) which will be repeated at each xy data-value using our fast WebGL WebAssembly graphics engine
the {@link CanvasRenderingContext2D} to draw to
the sprite target width
the sprite target height
the stroke color
the thickness of the stroke
the fill color
Gets a CanvasTexture object which represents the fill mask sprite instance to use for points, which appearance is overridden by a Palette Provider
Gets a CanvasTexture object which represents the point-marker sprite instance to draw
Gets a CanvasTexture object which represents the stroke mask sprite instance to use for points, which appearance is overridden by a Palette Provider
Notifies listeners to invalidateParentCallback that a property has changed and redraw is required
the property name
Generated using TypeDoc
Point-marker type which renders a square at each x-y datapoint location
To apply the SquarePointMarker to a IRenderableSeries, use the following code:
const sciChartSurface: SciChartSurface; const wasmContext: TSciChart; sciChartSurface.renderableSeries.add(new FastLineRenderableSeries(wasmContext, { pointMarker: new SquarePointMarker(wasmContext, { width: 9, height: 9, fill: "#FF0000", stroke: "#0000FF", strokeThickness: 1 }) }));