Options
All
  • Public
  • Public/Protected
  • All
Menu
summary

Point-marker type which renders a triangle at each x-y datapoint location

remarks

To apply the TrianglePointMarker to a IRenderableSeries, use the following code:

const sciChartSurface: SciChartSurface;
const wasmContext: TSciChart;
sciChartSurface.renderableSeries.add(new FastLineRenderableSeries(wasmContext, {
             pointMarker: new TrianglePointMarker(wasmContext, {
                 width: 9,
                 height: 9,
                 fill: "#FF0000",
                 stroke: "#0000FF",
                 strokeThickness: 1
             })
}));

Hierarchy

Implements

Index

Constructors

constructor

Properties

invalidateParentCallback

invalidateParentCallback: () => void

Callback to invalidate the parent 2D SciChartSurface

Type declaration

    • (): void
    • Returns void

Readonly type

type: Triangle = EPointMarkerType.Triangle

Type of the point marker

Protected webAssemblyContext

webAssemblyContext: TSciChart

The SciChart 2D WebAssembly Context containing native methods and access to our WebGL2 Engine and WebAssembly numerical methods

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

lastPointOnly

  • get lastPointOnly(): boolean
  • set lastPointOnly(lastPointOnly: boolean): void
  • Set true to make the point marker render only for the last point on the data series

    Returns boolean

  • Set true to make the point marker render only for the last point on the data series

    Parameters

    • lastPointOnly: boolean

    Returns void

opacity

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

    Returns number

  • 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

adjustAutoColor

  • adjustAutoColor(propertyName: string, color: string): string
  • Replace this to do custom adjustments to the auto color for a particular property

    Parameters

    • propertyName: string
    • color: string

    Returns string

createCanvasTexture

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

drawSprite

  • drawSprite(context: 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

    • context: 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

getPointMarkerStyle

getSprite

getStrokeMask

invalidateCache

  • invalidateCache(): void

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

      the new value

    • oldValue: PropertyType

      the old value

    Returns void

onDpiChanged

  • Called when the Dpi changes in the browser. This could be due to user zooming the browser, or changing DPI settings in Windows, or moving the browser containing SciChart to another monitor

    Parameters

    Returns void

resetCache

  • resetCache(): void

resolveAutoColors

  • resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void
  • Resolve colors marked AUTO_COLOR using the theme's strokePalette and fillPalette To do custom adjustments to the resolved colors, override the adjustAutoColor method

    Parameters

    Returns void

resumeUpdates

  • resumeUpdates(): void

suspendUpdates

  • suspendUpdates(): void
  • Suspends recreation of the PointMarker, used to increase performance when several properties of the PointMarker needs to be updated

    Returns void

toJSON

Generated using TypeDoc