Options
All
  • Public
  • Public/Protected
  • All
Menu

The Base class for a PointMarker in SciChart - High Performance JavaScript Charts.

description

PointMarkers may be displayed on Renderable Series to add scatter-points to charts. For example: setting the XyScatterRenderableSeries.pointMarker property or FastLineRenderableSeries.pointMarker property will render a point at each xy data-value

remarks

See derived types of BasePointMarker for specific point-marker types.

Hierarchy

Implements

Index

Constructors

Protected constructor

  • Creates an instance of the BasePointMarker

    Parameters

    • webAssemblyContext: TSciChart

      The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods

    • Optional options: IPointMarkerOptions

      Optional parameters of type IPointMarkerOptions used to configure the point-marker at instantiation time

    Returns BasePointMarker

Properties

fillOriginalValue

fillOriginalValue: string

The {@link TSciChart | SciChart 2D WebAssembly Context} containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods

invalidateParentCallback

invalidateParentCallback: () => void

Callback to invalidate the parent 2D SciChartSurface

Type declaration

    • (): void
    • Returns void

strokeOriginalValue

strokeOriginalValue: string

Protected webAssemblyContext

webAssemblyContext: TSciChart

Accessors

fill

  • get fill(): string
  • set fill(fill: string): void
  • Gets or sets the point-marker fill as an HTML Color Code

    Returns string

  • Gets or sets the point-marker fill as an HTML Color Code

    Parameters

    • fill: string

    Returns void

height

  • get height(): number
  • set height(height: number): void
  • Gets or sets the height of the point-marker in pixels

    Returns number

  • Gets or sets the height of the point-marker in pixels

    Parameters

    • height: number

    Returns void

opacity

  • set opacity(opacity: number): void
  • Gets or sets the opacity of the point-marker

    Parameters

    • opacity: number

    Returns void

stroke

  • get stroke(): string
  • set stroke(stroke: string): void
  • Gets or sets the point-marker stroke as an HTML Color Code

    Returns string

  • Gets or sets the point-marker stroke as an HTML Color Code

    Parameters

    • stroke: string

    Returns void

strokeThickness

  • get strokeThickness(): number
  • set strokeThickness(strokeThickness: number): void
  • Gets or sets the stroke-thickness of the point-marker in pixels

    Returns number

  • Gets or sets the stroke-thickness of the point-marker in pixels

    Parameters

    • strokeThickness: number

    Returns void

width

  • get width(): number
  • set width(width: number): void
  • Gets or sets the width of the point-marker in pixels

    Returns number

  • Gets or sets the width of the point-marker in pixels

    Parameters

    • width: number

    Returns void

Methods

createCanvasTexture

  • Called internally - creates the CanvasTexture object and calls drawSprite for creating the cached texture to draw

    Returns ISpriteTextures

delete

  • delete(): void
  • Deletes native (WebAssembly) memory used by this type, after which it cannot be used.

    remarks

    Call .delete() before finishing with the object to ensure that WebAssmembly memory leaks do not occur.

    All elements within SciChart's High Performance Realtime JavaScript Charts which implement IDeletable must be deleted manually to free native (WebAssembly) memory

    Returns void

Abstract drawSprite

  • drawSprite(canvas: CanvasRenderingContext2D, spriteWidth: number, spriteHeight: number, stroke: string, strokeThickness: number, fill: string): void
  • 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

    Parameters

    • canvas: CanvasRenderingContext2D

      the {@link CanvasRenderingContext2D} to draw to

    • spriteWidth: number

      the sprite target width

    • spriteHeight: number

      the sprite target height

    • stroke: string

      the stroke color

    • strokeThickness: number

      the thickness of the stroke

    • fill: string

      the fill color

    Returns void

getFillMask

  • Gets a CanvasTexture object which represents the fill mask sprite instance to use for points, which appearance is overridden by a Palette Provider

    remarks

    note CanvasTexture implements IDeletable and must be deleted manually to free memory

    Returns CanvasTexture

getSprite

getStrokeMask

  • Gets a CanvasTexture object which represents the stroke mask sprite instance to use for points, which appearance is overridden by a Palette Provider

    remarks

    note CanvasTexture implements IDeletable and must be deleted manually to free memory

    Returns CanvasTexture

Protected notifyPropertyChanged

  • notifyPropertyChanged<PropertyType>(propertyName: string, newValue: PropertyType, oldValue: PropertyType): void
  • Notifies listeners to invalidateParentCallback that a property has changed and redraw is required

    Type parameters

    • PropertyType

    Parameters

    • propertyName: string

      the property name

    • newValue: PropertyType
    • oldValue: PropertyType

    Returns void

Generated using TypeDoc