Internal type used to track suspendable instances and number of nested suspend calls
Function signature for the SVG builder function
Horizontal text alignment for multiline text.
Text rotation in degrees.
Defines text style with advanced options
Definition of an animation, comprising a EAnimationType and the relevant options
Definition of an annotation, comprising a EAnnotationType and the relevant options
A type class to contain information about the current state of 3D Axis Cube, such is Visible Range or World Dimensions.
Definition of an AxisBase2D, comprising a EAxisType and the relevant options
A Border applied to the series viewport, axes or the entire chart surface
Defines text style and positioning options used for Chart Title rendering
Type args for the LegendModifier.isCheckedChanged callback
Whether the corresponding legend item is checked or not (by default, this corresponds to IRenderableSeries.isVisible)
The series which was checked or unchecked
Defines text style which allows to switch between Native / Non-native text rendering
A type class to contain information about contour line styles
The start point for text drawing. This is not the top left of the text rectangle, since the y value for text is on the alphabetic baseline Difference is bounds.GetLineBounds(0).m_fHeight
The Rectangle that contains the label, relative to the seriesViewRect
A type class to contain information about data label styles
Type arguments to DpiHelper.dpiChanged event
The new Dpi scaling factor
The previous Dpi scaling factor
An easing function used in animations through SciChart. See easing for a list of values
Definition of a shader effect, comprising a EShaderEffectType and the relevant options
Type used by Guard.arraysSameLengthArr
Definition of a data filter
Formats a data-value into a string for display
A Gradient stop applied to gradients on lines, fills thoughout SciChart
The gradient stop color as an HTML color code
The gradient offset. Allowable values are in the range 0 to 1
A type class to contain information about gridline styles
Definition of Open, High, Low, Close data
Definition of a LabelProviderBase2D, comprising a ELabelProviderType and the relevant options
Definition of a 2d chart modifier, comprising a EChart2DModifierType and the relevant options
Type to store whether modifier keys (Control, Shift, Alt) are pressed or not
Defines properties of text rendered via Native Text API
Definition of Open, High, Low, Close data
Definition of a palette provider, comprising a EPaletteProviderType and the relevant options
Definition of a pointmarker, comprising a EPointMarkerType and the relevant options
Defines Render Layers 1,2,3,4 which are used to compose rendering
Internal testing use only
Definition of series data, which can take various shapes
Definition of a renderable series, comprising a ESeriesType, the relevant options, and an optional data object whose type depends on the series type
Shared data that can be used in ISciChart2DDefinition or directly in chartBuilder.buildSeries or chartBuilder.buildDataSeries
Length defined as an absolute number or percentage
A type class to contain information about Axis Label text styles
Horizontal label alignment for vertical axes. Default Auto.
Horizontal text alignment for multiline text.
Padding is left 4, right 4, top 2, bottom 0 by default. This is because there is natural space below the text baseline. If you are using text labels rather than just numbers, or when using native text, you may want to increase the bottom padding.
Defines common properties of text to render
Line spacing to use if text is wrapped. This is a multiple of the line height and defaults to 1.1
Defines properties of text rendered as a texture
A type class to contain information about Tick line styles
A type which contains info about major, minor tick coordinates, labels and values. Used when drawing the axis gridlines
The major tick coordinates
The major tick label strings
The major tick numeric values
The minor tick coordinates
The minor tick numeric values
Definition of XY data
Definition of XYText data
Definition of XYY data
Definition of XYZ data
A function to execute when zoomExtents is activated. If this exists and returns false, the builtin behaviour is ignored;
Relocate the tooltip so that it is always within the seriesViewRect
Relocate the tooltip so that it is always within the seriesViewRect
Runs update for the animation
Helper function to append an array to a target array, treating the target as a circular buffer
Applies the given opacity to an html color code or name, returning an html color code.
Generate random base64 id string. The default length is 22 which is 132-bits so almost the same as a GUID but as base64
Optional value to specify the length of the id to be generated, defaults to 22
Construct a chart with SciChartSurface using a ISciChart2DDefinition which can be pure data.
The Div Element ID where the SciChartSurface will reside
Build one or more annotations from a definition that can be pure data.
One or an array of TAnnotationDefinition
An array of annotations
Build one or more axes from a definition that can be pure data.
One or an array of TAxisDefinition
An array of AxisBase2D.
Builds an entire chart from a definition that can be pure data.
The Div Element ID where the SciChartSurface will reside
Build a data series from a definition that can be pure data.
Optional TSharedDataDefinition to define shared data which can be referenced by the data series
Optional IDataSeries to define original data for filter
An IDataSeries
Build one or more chart modifiers from a definition that can be pure data.
One or an array of TModifierDefinition
An array of modifiers
Construct a chart with SciChartPieSurface using a ISciChartPieDefinition which can be pure data.
The Div Element ID where the SciChartPieSurface will reside
Build one or more renderable series from a definition that can be pure data.
One or an array of TSeriesDefinition
Optional TSharedDataDefinition to define shared data which can be referenced by the renderable series
An array of IRenderableSeries.
Calculates annotation borders for AxisMarkerAnnotation
the vertical chart flag
the X1 data value of the annotation
the Y1 data value of the annotation
the horizontal axis
the vertical axis
the texture width
the seriesViewRect
the X position of the texture on the SciChartSurface, the left-top corner position on the canvas
the Y position of the texture on the SciChartSurface, the left-top corner position on the canvas
the texture width
the texture margin in X direction
the texture margin in Y direction
if true EAxisAlignment.Top, otherwise EAxisAlignment.Bottom
if true EAxisAlignment.Left, otherwise EAxisAlignment.Right
number of values to respect for the average
index of the latest value to include, by default equals to length-1 of DoubleVector
Calculate the width and height of the tooltip based on the content array
layer z-order offset of the surface
specifies the capacity of layers that could be potentially added between the default chart layers
layer number relative to the specific surface layers
absolute order of the layer on the chart (considering parent chart and previous subChart surface layers)
Calculates absolute coordinates of the heatmap cells
relative cell sizes
texture size
The reviver function needed when parsing definitions to JSON
Checks if can draw, is used not to draw when {@link BaseAnimation} has delay
Checks if the animation is running
The animation queue
The animation finate state machine
Configures an existing surface using a definition. This is useful if you need to use the wasmContext in methods or classes you use in your definition
The webassemply context. Pass undefined for a pie surface.
rgbColor, for example "0xff00ff00" - green
Converts individual R,G, and B components to HEX Color
argbColor, for example "0xff00ff00" - green
Converts ESearchMode (typescript friendly Enum) to SCRTFindIndexSearchMode which is required by the webassembly engine
number value from 0 to 255
number value from 0 to 255
number value from 0 to 255
number value from 0 to 255
pixel in hex format: opacity, red, green, blue. For example: "0xff0000ff" - blue pixel with no opacity
Creates a native {@link SCRTBrush} brush from html color code string passed in and caches it
The object that will store a brush
The HTML Color code
The opacity factor.
The height ratio of the main canvas to the WebGl canvas.
The width ratio of the main canvas to the WebGl canvas.
The gradient params.
new or existing instance of {@link SCRTBrush}}
the X coordinate on the screen relative to seriesViewRect, X and Y swapped for vertical charts
the Y coordinate on the screen relative to seriesViewRect, X and Y swapped for vertical charts
Helper function to create an HTML Image {@link HTMLImageElement} asychronously by passing in the string image source
Helper function to create an HTML Images {@link HTMLImageElement} asychronously by passing in the string array
Helper function to create a {@link SCRTRectVertex} native rectangle vertex
The SciChart 2D WebAssembly Context containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods
Creates a native {@link SCRTPen} Pen from html color code string passed in and caches it
The object that will store a pen
The HTML Color code
The strokethickness in pixels
The opacity factor
the StrokeDashArray which defines any dash e.g. [2,2] means dash for 2pts, gap for 2pts (or undefined = solid line).
the new or existing instance of {@link SCRTPen}}
Creates the point marker
Helper function to create a {@link SCRTPen} native pen access to our WebGL2 Engine and WebAssembly numerical methods
The SciChart WebAssembly Context containing native methods and access to our WebGL2 WebAssembly Drawing Engine
Html color code in the format "#fff", "#ff0000", "rgba(255,255,0,1)", "#11333333"
the stroke thickness of the pen in pixels
The opacity factor
the StrokeDashArray which defines any dash e.g. [2,2] means dash for 2pts, gap for 2pts (or undefined = solid line).
Helper function to create a {@link SCRTBrush} native solid color brushes
Html color code in the format "#fff", "#ff0000", "rgba(255,255,0,1)", "#11333333"
All svg creation is run through this funciton so it can be mocked for tests
Checks if an object implements IDeletable, then calls IDeletable.delete
Function to draw Vertical or Horizontal Line annotations with labels
This is just something to call to ensure that all the registrations are run before a surface is created
Result 11/23/2018
Converts a value into a pixel coordinate accordingly to the coordinate mode
the value to convert
the CoordinateCalculatorBase which will do the transformation
the ECoordinateMode to apply
the pixel coordinate
Returns true if descriptors are deeply equal, else false
get a fontKey required to aquire a native font
set true to get an alternative instance of the font which can be used multiple times while transformations are in effect, without disrupting global font rendering
Creates the font string, which is used to set font on CanvasRenderingContext2D
The font style
The font weight
The font size in pixels
The font family
Calculates coordinates of the annotation label. The coordinates are defined as an absolute position on the whole SciChartSurface.
Calculates annotation line coordinates accordingly to axis alignment and label placement. Returns coordinates relative to seriesViewRect.
Return random number in range [min, max]
Given the starting and end mouse-point, computes a rectangle to perform zoom over. Takes into account the xyDirection
the starting point of the mouse
the end point of the mouse
the XyDirection
Retrieves a native {@link SCRTBrush} Brush from the provided {@link BrushCache} cache object. The retrieved entity is a wrapper around {@link SCRTPen}
The object that stores a brush
new or existing instance of {@link SCRTBrush}}
Retrieves a native {@link SCRTPen} Pen from the provided {@link Pen2DCache} cache object
The object that stores a pen
the new or existing instance of {@link SCRTPen}}
Creates function to generate stock data
Converts a pixel coordinate back to a value
coordinate or dataValue to convert
the CoordinateCalculatorBase which will do the transformation
the ECoordinateMode to apply
the data-value or value
Returns an empty vector of Rectangles
Retrieves a native WebGlBrush Brush from the provided {@link BrushCache} cache object
new or existing instance of WebGlPen}
Interpolates colors
Interpolates numbers
returns true if the array is sorted
The array
If True checks for sorted ascending, if False for descending
returns true if the number is a real number (not NAN, not Infinite)
Linearly interpolates a data-value in a TLinearColorMap, which specifies Gradient Stops, Data Minimum and Maximum and color stepping mode
Copies own properties of an interface or copies all of its props if base type is not provided. Makes all of the props required.